/* =============================================================
   adv!se — styles.css
   Archetype: Mouse-Reactive Gradient (adaptado a la paleta de marca)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:       #0e0d25;   /* navy muy profundo, derivado de #2C2957 */
  --bg-2:     #161538;
  --navy:     #2c2957;   /* navy de marca */
  --deep:     #001e62;
  --ink:      #eef2f4;
  --mute:     #9fb0bd;
  --line:     rgba(238, 242, 244, 0.12);
  --line-2:   rgba(238, 242, 244, 0.22);
  --cyan:     #38b3d9;   /* cian del logo */
  --sky:      #54c0e8;   /* azul cielo de tarjetas */
  --violet:   #5a43c9;   /* destello del hero original */
  --paper:    #f0f3f2;
  --paper-2:  #e3e8eb;
  --paper-ink:#2c2957;
  --paper-mute:#5f727f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --nav-h: 76px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@property --sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; font-weight: 900; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--sky); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 920px); margin-inline: auto; }
.bang { color: var(--cyan); font-style: normal; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--sans); font-weight: 500;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  letter-spacing: -0.015em;
}
.display em { font-style: normal; color: var(--sky); }
.lead {
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 60ch;
}
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--mute); font-size: 1.08rem; max-width: 62ch; }
.prose strong { color: var(--ink); font-weight: 500; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons ------------------------------------------------- */
.btn {
  --fg: var(--bg); --bgc: var(--sky);
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.5rem;
  font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  color: var(--fg); background: var(--bgc);
  border: 1px solid var(--bgc);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { border-color: var(--ink); }
.btn .arr { transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { --fg: var(--ink); --bgc: transparent; border-color: var(--line-2); }
.btn-ghost:hover { color: var(--bg); }

/* --- Logo ---------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .8rem; }
.logo img { width: 44px; height: 44px; box-shadow: 0 0 0 1px var(--line-2); }
.logo-word { font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; }

/* --- Nav ----------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(14, 13, 37, 0.86);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(14, 13, 37, 0.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-menu { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile panel */
.nav-panel {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.nav.is-open + .nav-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.nav-panel-group h2 {
  font-family: var(--sans); font-weight: 500; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: .6rem;
}
.nav-panel a {
  display: block; padding: .35rem 0;
  font-family: var(--serif); font-weight: 900; font-size: 1.85rem; line-height: 1.15;
}
.nav-panel a[aria-current="page"] { color: var(--sky); }
.nav-panel-foot { margin-top: auto; color: var(--mute); font-size: .95rem; }
.nav-panel-foot a { font-family: var(--sans); font-weight: 400; font-size: 1rem; }

/* desktop menu */
.menu { display: flex; align-items: center; gap: .3rem; }
.menu > li { position: relative; }
.menu-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .9rem;
  font-size: .95rem; font-weight: 400; color: var(--ink);
  transition: color .3s;
}
.menu-link:hover, .menu-link[aria-current="page"], .menu > li.is-current > .menu-link { color: var(--sky); }
.menu-link .chev { width: 9px; height: 9px; transition: transform .3s var(--ease-out); }
.sub {
  position: absolute; top: calc(100% + 6px); left: .4rem;
  min-width: 250px; padding: .6rem;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.sub a {
  display: block; padding: .65rem .8rem;
  font-size: .95rem; color: var(--mute);
  transition: background .25s, color .25s;
}
.sub a:hover, .sub a[aria-current="page"] { background: rgba(84,192,232,.1); color: var(--ink); }
.sub a small { display: block; font-size: .78rem; color: var(--mute); opacity: .75; }
.menu > li:hover > .sub, .menu > li:focus-within > .sub, .menu > li.is-open > .sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.menu > li:hover .chev, .menu > li.is-open .chev { transform: rotate(180deg); }
.nav-cta { padding: .75rem 1.15rem; font-size: .88rem; }

/* --- Section header ------------------------------------------ */
.sec-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head .lead { margin-top: .3rem; }

/* --- Rows (lista editorial, hover invert) -------------------- */
.rows { border-bottom: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3rem 1fr; gap: .4rem 1.2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--sky);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
}
.row-n { font-family: var(--serif); font-weight: 900; font-size: 1rem; color: var(--cyan); padding-top: .35rem; transition: color .4s; }
.row-t { font-family: var(--serif); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; transition: color .4s; }
.row-d { grid-column: 2; color: var(--mute); max-width: 58ch; transition: color .4s; }
@media (hover: hover) {
  .row:hover::before { clip-path: inset(0 0 0 0); }
  .row:hover .row-n, .row:hover .row-t, .row:hover .row-d { color: var(--bg); }
}

/* --- Stats --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2rem 1rem 2rem 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.2rem; }
.stat-n {
  display: block;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.2rem); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-n sup { font-size: .45em; color: var(--cyan); vertical-align: top; margin-left: .05em; }
.stat-l { display: block; margin-top: .8rem; color: var(--mute); font-size: .95rem; max-width: 24ch; }

/* --- Details / accordion (nativo, funciona sin JS) ----------- */
.acc { border-bottom: 1px solid var(--line); }
.acc details { border-top: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 3rem 1fr 2rem; align-items: start; gap: 1.2rem;
  padding: 1.7rem 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc .acc-n { font-family: var(--serif); font-weight: 900; color: var(--cyan); padding-top: .3rem; }
.acc .acc-t { font-family: var(--serif); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.12; transition: color .3s; }
.acc .acc-t small { display: block; margin-top: .45rem; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--mute); letter-spacing: 0; }
.acc summary:hover .acc-t { color: var(--sky); }
.acc .acc-i { position: relative; width: 22px; height: 22px; margin-top: .45rem; justify-self: end; }
.acc .acc-i::before, .acc .acc-i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease-out);
}
.acc .acc-i::after { transform: rotate(90deg); }
.acc details[open] .acc-i::after { transform: rotate(0deg); }
.acc-body { padding: 0 0 2rem calc(3rem + 1.2rem); color: var(--mute); max-width: 74ch; }
.acc-body p + p, .acc-body p + ul, .acc-body ul + p { margin-top: .9rem; }
.acc-body ul li { position: relative; padding-left: 1.4rem; margin-top: .45rem; }
.acc-body ul li::before { content: "!"; position: absolute; left: 0; color: var(--cyan); font-weight: 600; }
details[open] .acc-body { animation: accIn .5s var(--ease-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }

/* --- Tag ----------------------------------------------------- */
.tag {
  display: inline-block; padding: .3rem .7rem;
  border: 1px solid var(--line-2);
  font-size: .78rem; letter-spacing: .06em; color: var(--mute);
  transition: border-color .3s, color .3s;
}
a.tag:hover { border-color: var(--sky); color: var(--sky); }

/* --- Form ---------------------------------------------------- */
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.field label .req { color: var(--cyan); }
.field input, .field textarea {
  width: 100%; padding: .85rem 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  font-size: 1.15rem; font-weight: 300; color: var(--ink);
  transition: border-color .3s;
  border-radius: 0;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sky); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff7a8a; }
.field-err { font-size: .85rem; color: #ff9aa6; min-height: 1.1em; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .9rem; align-items: start; font-size: .92rem; color: var(--mute); }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin-top: .1rem; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-content: center; cursor: pointer;
}
.check input::after { content: ""; width: 10px; height: 10px; background: var(--sky); transform: scale(0); transition: transform .25s var(--ease-out); }
.check input:checked::after { transform: scale(1); }
.check a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid input { border-color: #ff7a8a; }
.form-status { font-size: .95rem; color: var(--sky); min-height: 1.4em; }
.form-row { display: grid; gap: 1.6rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9.5rem); }
.section + .section.is-flush { padding-top: 0; }
.section-alt { background: var(--bg-2); }

/* --- Hero (home + páginas) ----------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: clip;
}
.hero--page { min-height: 72vh; min-height: 72svh; }
.hero-gradient {
  position: absolute; inset: -10%; z-index: -3;
  background:
    radial-gradient(circle 46vmax at var(--mx, 70%) var(--my, 35%), rgba(56,179,217,.55) 0%, transparent 60%),
    radial-gradient(circle 38vmax at calc(100% - var(--mx, 70%)) calc(var(--my, 35%) + 30%), rgba(90,67,201,.45) 0%, transparent 62%),
    radial-gradient(circle 60vmax at 10% 110%, rgba(0,30,98,.9) 0%, transparent 70%),
    radial-gradient(circle 40vmax at 95% 0%, rgba(44,41,87,.95) 0%, transparent 70%),
    var(--bg);
  filter: blur(30px) saturate(130%);
  animation: breathe 16s var(--ease-soft) infinite alternate;
}
@keyframes breathe { to { transform: scale(1.06) translate3d(-1%, 1%, 0); } }
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-ghost {
  position: absolute; z-index: -1; right: -2vw; top: calc(var(--nav-h) + 1vh);
  font-family: var(--sans); font-weight: 500; font-size: 26vw; line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(238,242,244,.08);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-ghost i { font-style: normal; -webkit-text-stroke-color: rgba(56,179,217,.35); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { display: grid; gap: 1.6rem; }
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.9rem, 9vw, 8.6rem);
  line-height: .95; letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero--page .hero-title { font-size: clamp(2.6rem, 7.5vw, 6.6rem); max-width: 16ch; }
.hero-title em { font-style: normal; color: var(--sky); }
.hero-title .line { display: block; overflow: clip; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: rgba(238,242,244,.82); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 7vw, 5rem); padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.hero-meta .scroll-cue { display: inline-flex; align-items: center; gap: .6rem; }
.hero-meta .scroll-cue::after {
  content: ""; width: 1px; height: 22px; background: var(--cyan);
  animation: cue 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.crumbs { font-size: .82rem; color: var(--mute); }
.crumbs a:hover { color: var(--sky); }
.crumbs span { margin-inline: .45rem; color: var(--cyan); }

/* --- Manifesto ------------------------------------------------ */
.manifesto-text {
  font-weight: 300;
  font-size: clamp(1.5rem, 3.1vw, 2.75rem);
  line-height: 1.32; letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 30ch;
}
.manifesto-text mark { background: none; color: var(--sky); font-weight: 400; }
.manifesto-grid { display: grid; gap: 3rem; }
.manifesto-side { display: grid; gap: 1.3rem; align-content: start; }
.quote-mark { font-family: var(--serif); font-weight: 900; font-size: 7rem; line-height: .6; color: var(--cyan); height: 3.2rem; }

/* --- Paper (franja clara) ------------------------------------ */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .kicker { color: #1b8fb5; }
.paper .lead, .paper .prose p, .paper .row-d, .paper .stat-l { color: var(--paper-mute); }
.paper .display em { color: #1b8fb5; }
.paper .rows, .paper .row, .paper .stats, .paper .stat { border-color: rgba(44,41,87,.16); }
.paper .row-n { color: #1b8fb5; }
.paper .row::before { background: var(--navy); }
@media (hover: hover) {
  .paper .row:hover .row-n { color: var(--sky); }
  .paper .row:hover .row-t, .paper .row:hover .row-d { color: var(--paper); }
}

/* --- Services (filas gigantes) ------------------------------- */
.services { border-bottom: 1px solid var(--line); }
.svc {
  position: relative; isolation: isolate;
  display: grid; gap: 1rem;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--sky);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.svc-tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); transition: color .4s; }
.svc-title { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -0.02em; transition: color .4s; }
.svc-lema { font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--mute); max-width: 44ch; transition: color .4s; }
.svc-go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: 50%;
  font-size: 1.4rem; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease-out);
}
@media (hover: hover) {
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc-title, .svc:hover .svc-lema { color: var(--bg); }
  .svc:hover .svc-tag { color: var(--navy); }
  .svc:hover .svc-go { background: var(--bg); color: var(--sky); border-color: var(--bg); transform: rotate(-45deg); }
}

/* --- Marquee de clientes ------------------------------------- */
.marquee { overflow: clip; border-block: 1px solid var(--line); }
.marquee + .marquee { border-top: 0; }
.marquee-label {
  position: relative; z-index: 2;
  display: inline-block; padding: .3rem .7rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bg); background: var(--cyan);
}
.marquee-row { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 0; }
.marquee-track { display: flex; flex: none; align-items: center; animation: marquee 70s linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; animation-duration: 90s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: none; padding-inline: 1.6rem;
  font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.8rem); letter-spacing: -.005em;
  color: var(--ink); white-space: nowrap;
}
.marquee-track span::after { content: "!"; margin-left: 3.2rem; color: var(--cyan); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --- Logo wall tipográfico (página Clientes) ----------------- */
.namegrid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.namegrid li {
  display: flex; align-items: center; min-height: 5.5rem; padding: 1rem 1.1rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 400;
  transition: background .35s, color .35s;
}
@media (hover: hover) { .namegrid li:hover { background: var(--sky); color: var(--bg); } }

/* --- Case / testimonial -------------------------------------- */
.case {
  position: relative; isolation: isolate;
  display: grid; gap: 2rem;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--navy), var(--deep));
  border: 1px solid var(--line);
  overflow: clip;
}
.case::after {
  content: "BBVA"; position: absolute; right: -1rem; bottom: -2.6rem; z-index: -1;
  font-family: var(--serif); font-weight: 900; font-size: clamp(7rem, 22vw, 18rem); line-height: 1;
  color: rgba(84,192,232,.08);
}
.case-q { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.14; max-width: 24ch; }
.case-q em { font-style: normal; color: var(--sky); }
.case-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; color: var(--mute); font-size: .95rem; }

/* --- Flow (diagramas de proceso en HTML) --------------------- */
.flow { display: grid; gap: 0; counter-reset: step; }
.flow li {
  position: relative; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  padding-bottom: 2.2rem;
}
.flow li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; border: 1px solid var(--cyan); border-radius: 50%;
  font-family: var(--serif); font-weight: 900; color: var(--cyan); background: var(--bg);
  position: relative; z-index: 1;
}
.flow li::after {
  content: ""; position: absolute; left: 1.7rem; top: 3.4rem; bottom: 0; width: 1px;
  background: linear-gradient(var(--cyan), var(--line));
}
.flow li:last-child::after { display: none; }
.flow li:last-child { padding-bottom: 0; }
.flow h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.25rem, 2vw, 1.6rem); margin: .55rem 0 .4rem; }
.flow p { color: var(--mute); max-width: 52ch; }
.section-alt .flow li::before { background: var(--bg-2); }

/* --- Two-up (bloques de enfoque) ----------------------------- */
.duo { display: grid; gap: 1.2rem; }
.panel {
  position: relative; padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  display: grid; gap: 1.1rem; align-content: start;
}
.panel-n { font-family: var(--serif); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--cyan); }
.panel h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; }
.panel p { color: var(--mute); }

/* --- Pirámide (certificado de recursos) ---------------------- */
.pyramid { display: grid; gap: 6px; justify-items: center; margin-top: .6rem; }
.pyramid span {
  display: block; height: 30px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  line-height: 30px; text-align: center; white-space: nowrap; overflow: hidden;
}
.pyramid span:nth-child(1) { width: 34%; }
.pyramid span:nth-child(2) { width: 52%; }
.pyramid span:nth-child(3) { width: 72%; }
.pyramid span:nth-child(4) { width: 92%; }

/* --- FAQ grupos ---------------------------------------------- */
.faq-group + .faq-group { margin-top: clamp(3.5rem, 8vw, 6rem); }
.faq-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.faq-group-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.faq-group-head span { color: var(--mute); font-size: .9rem; }
.faq-route { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--sky); font-weight: 500; }
.faq-route:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Contacto gigante ---------------------------------------- */
.mega { text-align: left; display: grid; gap: 2rem; }
.mega-mail {
  justify-self: start;
  position: relative; display: inline-block;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 7.4vw, 6.6rem); line-height: 1; letter-spacing: -.02em;
  word-break: break-word;
  background: linear-gradient(var(--sky), var(--sky)) 0 100% / var(--sweep) 4px no-repeat;
  transition: --sweep .7s var(--ease-out), color .4s;
  padding-bottom: .12em;
}
.mega-mail:hover, .mega-mail:focus-visible { --sweep: 100%; color: var(--sky); }
.mega-mail .bang { color: var(--cyan); }
.mega-alt { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; font-size: 1.1rem; color: var(--mute); }
.mega-alt a:hover { color: var(--sky); }

/* --- Contact page -------------------------------------------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.contact-card { display: grid; gap: 1.6rem; align-content: start; }
.contact-card dl { display: grid; gap: 1.4rem; }
.contact-card dt { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .2rem; }
.contact-card dd { font-size: 1.2rem; font-weight: 300; }
.contact-card dd a:hover { color: var(--sky); }

/* --- Legal ---------------------------------------------------- */
.legal h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 3.5rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--mute); max-width: 70ch; }
.legal p + p { margin-top: .9rem; }
.pending { display: inline-block; margin-top: .6rem; padding: .3rem .6rem; border: 1px dashed var(--cyan); color: var(--sky); font-size: .85rem; }

/* --- Footer --------------------------------------------------- */
.footer { position: relative; padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 2.6rem; }
.footer-brand p { margin-top: 1.1rem; color: var(--mute); max-width: 34ch; font-size: .98rem; }
.footer h2 { font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.footer li + li { margin-top: .5rem; }
.footer a { color: var(--mute); transition: color .25s; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--mute);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-bottom li + li { margin-top: 0; }
.footer-word {
  margin-top: 3rem;
  font-weight: 500; font-size: 22vw; line-height: .78; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(238,242,244,.1);
  user-select: none; white-space: nowrap; overflow: clip;
}
.footer-word i { font-style: normal; -webkit-text-stroke-color: rgba(56,179,217,.4); }

/* =============================================================
   7. Effects
   ============================================================= */
/* Reveal solo si hay JS: sin JS todo el contenido se ve. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: elementos con split nunca quedan invisibles */
.reveal[data-split] { opacity: 1; transform: none; }

.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .is-loaded .hero-title .line > span, .is-loaded .hero-title .line > span { transform: none; }
/* red de seguridad si el JS de carga no llega */
.js .hero-title .line > span { animation: lineSafety .01s 2.5s forwards; }
@keyframes lineSafety { to { transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .namegrid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-right: 1px solid var(--line); padding-left: 1.2rem; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .row { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; padding: 2.2rem 0; }
  .row-d { grid-column: 3; }
  .duo { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr auto; align-items: end; }
  .svc-go { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .case { grid-template-columns: 1fr auto; align-items: end; }
  .flow--h { grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 1.2rem; }
  .flow--h li { grid-template-columns: 1fr; gap: .6rem; padding-bottom: 0; }
  .flow--h li::after { left: 3.4rem; right: -1.2rem; top: 1.7rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--line)); }
  .flow--h li:last-child::after { display: none; }
}
@media (min-width: 960px) {
  .nav-menu { display: flex; align-items: center; gap: 1rem; }
  .nav-toggle, .nav-panel { display: none; }
  .manifesto-grid { grid-template-columns: 1.5fr 1fr; gap: 5rem; align-items: end; }
  .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .namegrid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.25fr; }
}
@media (min-width: 1280px) {
  .namegrid { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-meta .scroll-cue::after { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}
