/* =========================================================
   INFOCLIPP 2026 — Noche eléctrica
   Negro + azul marino, contraluces cyan / amarillo ácido,
   el degradado del clip solo en el isotipo 3D.
   ========================================================= */

:root {
  --bg: #07091A;
  --bg-2: #0B0F26;
  --navy: #0D1333;
  --panel: #121A42;
  --panel-2: #18214F;
  --line: rgba(244, 239, 227, .12);
  --line-2: rgba(244, 239, 227, .22);

  --text: #F4EFE3;
  --text-soft: rgba(244, 239, 227, .68);

  --paper: #F4EFE3;
  --paper-deep: #E7E1D2;
  --ink: #0D1333;
  --ink-soft: #4E5270;

  --blue: #385CED;
  --blue-press: #2A49D0;
  --cyan: #6FE8FB;
  --violet: #7F1FFA;
  --lilac: #D8C3FF;
  --acid: #6FE8FB; /* acento principal: cian del logo */
  --detail: #A98BFF; /* mini detalles: violeta del logo aclarado para leerse sobre oscuro */
  --coral: #FF5A47;

  --f-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-card: 40px;
  --r-art: 56px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --section: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; background: var(--bg); }
/* sin scroll-behavior: smooth (rompe las mediciones de ScrollTrigger); el scroll suave de anclas va en JS */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { /* grano fílmico fijo */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* sin mix-blend-mode: obligaba a recomponer toda la pantalla en cada cuadro */
}
img, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
address { font-style: normal; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--acid); color: var(--ink); padding: 12px 18px; border-radius: 50px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

/* secciones claras (descanso visual) */
.is-light { background: var(--paper); color: var(--ink); }
.is-light .eyebrow { color: var(--ink-soft); }
.is-light .eyebrow__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(56,92,237,.15); }

/* ---------- tipografía ---------- */
.h2 { font: 700 clamp(40px, 6vw, 88px)/0.95 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -0.045em; text-wrap: balance; }
.h3 { font: 650 clamp(24px, 2.3vw, 32px)/1.05 var(--f-display); letter-spacing: -0.03em; text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 22px; }
.eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(127,31,250,.22); }
.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { color: var(--text-soft); font-size: 18px; max-width: 52ch; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center p { margin: 22px auto 0; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.is-light .section-head p { color: var(--ink-soft); }

.link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.link:hover { color: var(--blue); background-size: 0 1.5px; background-position: 100% 100%; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- botones: píldora + círculo con flecha ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 6px 6px 6px 24px; border-radius: 50px; border: 1.5px solid transparent;
  font: 600 15.5px/1 var(--f-body); text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 58px; font-size: 17px; padding-left: 28px; }
.btn--sm { min-height: 44px; font-size: 14.5px; padding-left: 18px; }
.btn--block { width: 100%; }
.btn__circle { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: 0 0 auto; transition: transform .35s var(--ease); }
.btn--lg .btn__circle { width: 46px; height: 46px; }
.btn__circle svg { width: 16px; height: 16px; fill: none; stroke: var(--acid); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__circle { transform: translateX(3px) rotate(-45deg); }
.btn--acid { background: var(--acid); color: var(--ink); }
.btn--acid:hover { background: #A5F2FD; }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary .btn__circle { background: #fff; }
.btn--primary .btn__circle svg { stroke: var(--blue); }
.btn--primary:hover { background: var(--blue-press); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); padding-right: 24px; }
.btn--ghost:hover { border-color: var(--text); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn[aria-busy="true"] .btn__circle { animation: pulse .8s ease-in-out infinite alternate; }

.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); font: 500 14px/1.2 var(--f-body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.todo { outline: 2px dashed var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding-inline: var(--gutter); transition: transform .45s var(--ease); }
.nav-wrap.is-hidden { transform: translateY(-130%); }
.nav { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 50px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { display: block; padding: 11px 16px; border-radius: 50px; font: 500 15px/1 var(--f-body); text-decoration: none; transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--paper); }
.nav__links a.is-active { background: var(--ink); color: var(--paper); }
.nav__cta { margin-left: 6px; }
.nav__menu { display: none; width: 48px; height: 48px; margin-left: auto; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 15px; right: 15px; height: 2px; background: var(--acid); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__menu span:first-child { top: 19px; }
.nav__menu span:last-child { top: 27px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 95; background: var(--bg); padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden], [hidden] { display: none !important; }
.sheet a { display: block; padding: 8px 0; font: 700 clamp(40px, 11vw, 64px)/1 var(--f-display); letter-spacing: -0.045em; text-decoration: none; }
.sheet li { opacity: 0; transform: translateY(16px); animation: rise .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 50ms); }
.sheet__foot { color: var(--text-soft); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100dvh; padding-top: clamp(120px, 14vh, 170px); padding-bottom: 36px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 45% at 55% 100%, rgba(127,31,250,.28), transparent 70%),
  radial-gradient(30% 40% at 8% 8%, rgba(111,232,251,.12), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.hero__title { font: 750 clamp(56px, 8.2vw, 136px)/0.9 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -0.055em; margin-bottom: 30px; }
.hero__title .line { display: block; }
.rotator { position: relative; display: inline-grid; vertical-align: top; color: var(--acid); }
.rotator__word { grid-area: 1 / 1; transition: transform .7s var(--ease), opacity .45s var(--ease); }
.rotator__word:not(.is-on) { opacity: 0; transform: translateY(45%); }
.rotator__word.is-out { opacity: 0; transform: translateY(-45%); }
.hero__lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 44ch; color: var(--text-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stage { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 620px; justify-self: end; }
.hero__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.clip3d { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.clip3d.is-ready { opacity: 1; }
.no-webgl .hero__stage { background: radial-gradient(closest-side, rgba(79,123,255,.45), rgba(127,31,250,.15) 55%, transparent); }

.partners { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.partners__label { color: var(--text-soft); }
.partners ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.partners li { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--f-body); }
.partners__ico { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.partners__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.partners__link:hover { color: var(--acid); }
.partners__ico--txt { font: 800 8.5px/1 var(--f-body); color: var(--ink); letter-spacing: .02em; }

/* ---------- PLATAFORMAS (carriles de píldoras) ---------- */
.platforms { background: var(--navy); border-radius: var(--r-art) var(--r-art) 0 0; overflow: hidden; }
.rails { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rail { display: flex; overflow: hidden; }
.rail__track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; will-change: transform; }
.pill { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border-radius: 60px; background: var(--panel); border: 1px solid var(--line); font: 500 18px/1 var(--f-body); white-space: nowrap; transition: background-color .25s; }
.pill:hover { background: var(--panel-2); }
.pill__ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.pill__ico img { width: 26px; height: 26px; }
.platforms__note { margin-top: 36px; color: rgba(244,239,227,.58); font-size: 11.5px; text-align: center; }

/* ---------- REEL ---------- */
.reel { background: var(--navy); }
.reel__head { margin-bottom: clamp(36px, 5vw, 64px); }
.reel__head p { color: var(--text-soft); font-size: 18px; max-width: 40ch; }
.reel__frame { position: relative; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; background: #000; transform-origin: 50% 0; box-shadow: 0 0 0 1px var(--line); }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__toggle { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 50px; border: 0; background: rgba(7,9,26,.7); color: var(--text); backdrop-filter: blur(8px); cursor: pointer; font: 500 14px/1 var(--f-body); }
.reel__full { position: absolute; right: 20px; bottom: 20px; z-index: 2; }
.reel__icon { width: 10px; height: 12px; border-inline: 3.5px solid var(--acid); }
.reel__toggle[aria-pressed="true"] .reel__icon { border: 0; width: 0; height: 0; border-left: 11px solid var(--acid); border-block: 7px solid transparent; }

/* ---------- SERVICIOS: escenas 3D ---------- */
.roles { background: linear-gradient(var(--navy), var(--bg) 40%); }
.roles__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.role {
  position: relative; grid-column: span 4; min-height: 500px; border-radius: var(--r-card); overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(111,232,251,.13), transparent 60%),
    radial-gradient(90% 70% at 5% 100%, rgba(111,232,251,.18), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .5s var(--ease);
}
.role:hover { border-color: var(--line-2); transform: translateY(-4px); }
.role .clip3d { position: absolute; left: 0; top: 0; width: 100%; height: 64%; }
.role__body { position: relative; margin-top: auto; padding: 28px 30px 30px; display: grid; gap: 10px; justify-items: start; }
.role__body p { color: var(--text-soft); max-width: 44ch; }
.role__tag { color: var(--detail); }
.role--xl { grid-column: span 8; min-height: 520px; }
.role--xl .clip3d { left: 42%; width: 58%; height: 100%; }
.role--xl .role__body { max-width: 50%; }
.role--wide { grid-column: span 8; }
.role--wide .clip3d { left: 45%; width: 55%; height: 100%; }
.role--wide .role__body { max-width: 55%; }

.role--cta { grid-column: span 4; background: var(--acid); color: var(--ink); border: 0; padding: 32px; justify-content: space-between; text-decoration: none; }
.role--cta:hover { transform: translateY(-4px) rotate(-.5deg); }
.role--cta .h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.045em; }
.role--cta p { color: rgba(13,19,51,.72); margin-top: 12px; }
.role--cta .btn__circle { width: 64px; height: 64px; align-self: flex-end; }
.role--cta .btn__circle svg { width: 24px; height: 24px; }
.role--cta:hover .btn__circle { transform: rotate(-45deg); }

/* ---------- 4 FRENTES (tarjetas que se apilan) ---------- */
.pillars { display: grid; gap: 22px; }
.pillar {
  position: sticky; top: calc(96px + var(--i, 0) * 16px);
  display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 680px);
  border-radius: var(--r-card); overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,.6);
}
.pillar--flip .pillar__art { order: 2; }
.pillar__art { position: relative; margin: 0; min-height: 360px; overflow: hidden;
  background: radial-gradient(70% 60% at 70% 20%, rgba(111,232,251,.16), transparent 60%), radial-gradient(80% 70% at 10% 100%, rgba(111,232,251,.22), transparent 60%), var(--navy); }
.pillar__art .clip3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar__art.has-img { background: #E6E6F0; }
.pillar__body { padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.pillar__tag { color: var(--detail); }
.pillar__title { font: 700 clamp(36px, 4.2vw, 60px)/.95 var(--f-display); letter-spacing: -0.045em; text-wrap: balance; }
.pillar__promise { color: var(--text-soft); font-size: 18px; max-width: 46ch; }
.pillar__list { margin-top: 6px; border-top: 1px solid var(--line); }
.pillar__list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 500 16.5px/1.3 var(--f-body); }
.pillar__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.ia { font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--acid); color: var(--ink); }
.pillar__list .todo { font-size: 10px; padding: 3px 6px; color: var(--coral); }
.pillar__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: flex-start; gap: 20px; flex-wrap: wrap; }
.pillar__proof { display: grid; gap: 4px; max-width: 30ch; }
.pillar__proof b { font: 800 clamp(44px, 4.6vw, 68px)/.85 var(--f-display); letter-spacing: -0.05em; color: var(--acid); font-variant-numeric: tabular-nums; }
.pillar__proof small { font-size: .38em; letter-spacing: -0.02em; margin-left: .1em; color: var(--text); }
.pillar__proof span { color: var(--text-soft); font-size: 14px; }

.train { margin-top: 22px; display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; padding: 18px 28px 18px 18px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line); }
.train__art { position: relative; margin: 0; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 60% at 60% 30%, rgba(111,232,251,.2), transparent 60%), var(--navy); }
.train__art .clip3d, .train__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.train .pillar__title { font-size: clamp(28px, 3vw, 40px); }

.play { margin-top: 16px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line); padding: 28px 28px 16px; }
.play__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.play__hint { color: var(--text-soft); }
.playground { position: relative; height: 360px; margin-top: 16px; border-radius: 28px; background: var(--bg-2); overflow: hidden; touch-action: pan-y; }
.playground__list { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px; align-content: flex-end; height: 100%; }
.playground__list li { padding: 13px 20px; border-radius: 50px; background: var(--panel-2); border: 1px solid var(--line-2); font: 600 16px/1 var(--f-body); white-space: nowrap; user-select: none; }
.playground__list li[data-c="blue"] { background: var(--blue); border-color: var(--blue); }
.playground__list li[data-c="violet"] { background: var(--violet); border-color: var(--violet); }
.playground__list li[data-c="acid"] { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.playground__list li[data-c="cyan"] { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.playground__list li[data-c="coral"] { background: var(--coral); border-color: var(--coral); }
.playground.is-physics .playground__list { display: block; padding: 0; }
.playground.is-physics li { position: absolute; left: 0; top: 0; will-change: transform; cursor: grab; }
.playground.is-physics.is-grabbing li { cursor: grabbing; }


/* ---------- IA CON CRITERIO ---------- */
.ai { background: var(--bg); overflow: hidden; isolation: isolate; }
.ai__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 30% at 90% 8%, rgba(111,232,251,.14), transparent 70%),
  radial-gradient(45% 35% at 0% 40%, rgba(127,31,250,.22), transparent 70%),
  radial-gradient(40% 30% at 60% 100%, rgba(111,232,251,.14), transparent 70%); }
.ai .h2 { max-width: 16ch; }
.ai__featured { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.aicard { position: relative; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.aicard--geo { grid-row: span 2; background: linear-gradient(160deg, #1B2366, var(--panel) 55%); }
.aicard__demo { padding: 26px 26px 0; }
.aicard__body { padding: 24px 30px 30px; display: grid; gap: 10px; align-content: start; }
.aicard__body > p { color: var(--text-soft); max-width: 48ch; }
.aicard__tag { color: var(--detail); }
.aicard__list { display: grid; gap: 8px; margin-top: 6px; }
.aicard__list li { position: relative; padding-left: 22px; color: var(--text); font-size: 15.5px; }
.aicard__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); rotate: 45deg; }
.aicard__why { color: var(--text-soft); font-size: 11px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

.geo { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 26px; padding: 18px; display: grid; gap: 16px; }
.geo__bar { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 50px; background: var(--panel-2); font: 500 16px/1.3 var(--f-body); }
.geo__caret { width: 2px; height: 20px; background: var(--detail); margin-left: 2px; animation: pulse .6s steps(2) infinite; }
.geo__answer { display: grid; gap: 10px; padding: 4px 6px; }
.geo__line { display: block; height: 10px; border-radius: 6px; background: rgba(244,239,227,.14); width: var(--w); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.geo__sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.geo__sources .mono { color: var(--text-soft); font-size: 10.5px; margin-right: 4px; }
.geo__src { padding: 7px 12px; border-radius: 50px; border: 1px solid var(--line-2); font-size: 13.5px; opacity: 0; translate: 0 8px; transition: opacity .4s, translate .5s var(--ease); }
.geo__src.is-you { background: var(--acid); color: var(--ink); border-color: var(--acid); font-weight: 600; }
.geo__bots { display: flex; gap: 8px; }
.geo__bots span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.aicard--geo.is-run .geo__line { transform: scaleX(1); }
.aicard--geo.is-run .geo__line:nth-child(2) { transition-delay: .15s; }
.aicard--geo.is-run .geo__line:nth-child(3) { transition-delay: .3s; }
.aicard--geo.is-run .geo__src { opacity: 1; translate: 0 0; }

.chat { display: grid; gap: 8px; padding: 16px; border-radius: 26px; background: #0E1A2E; border: 1px solid var(--line); min-height: 238px; align-content: start; }
.chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.35; opacity: 0; translate: 0 10px; transition: opacity .35s, translate .5s var(--ease); }
.chat__msg--in { background: var(--panel-2); border-bottom-left-radius: 6px; }
.chat__msg--out { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.chat__msg.is-in { opacity: 1; translate: 0 0; }
.chat__typing { display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 18px; background: var(--panel-2); justify-self: start; opacity: 0; }
.chat__typing.is-on { opacity: 1; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); animation: pulse .6s ease-in-out infinite alternate; }
.chat__typing i:nth-child(2) { animation-delay: .2s; } .chat__typing i:nth-child(3) { animation-delay: .4s; }

.radar { width: 100%; height: auto; overflow: visible; }
.radar__grid { stroke: var(--line); stroke-width: 1; fill: none; }
.radar__line { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round; }
.radar__ping { fill: var(--detail); opacity: 0; transform-box: fill-box; transform-origin: center; }
.radar__tag { opacity: 0; transition: opacity .4s; }
.radar__tag rect { fill: var(--acid); }
.radar__tag text { font: 600 11px var(--f-body); fill: var(--ink); text-anchor: middle; }
.aicard--radar.is-run .radar__ping { opacity: 1; animation: ping 1.2s var(--ease) 2; }
.aicard--radar.is-run .radar__tag { opacity: 1; transition-delay: 1.4s; }
@keyframes ping { 0% { transform: scale(.6); } 50% { transform: scale(1.5); } 100% { transform: scale(1); } }

.ai__more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; }
.ai__more li { display: flex; gap: 18px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.ai__more li:nth-child(3n) { border-right: 0; }
.ai__more li:nth-last-child(-n+3) { border-bottom: 0; }
.ai__more li:hover { background: var(--panel); }
.ai__more .mono { color: var(--detail); padding-top: 6px; }
.ai__more h3 { font: 650 22px/1.1 var(--f-display); letter-spacing: -0.025em; margin-bottom: 8px; }
.ai__more p { color: var(--text-soft); font-size: 15.5px; }

.ai__ethics { margin-top: 16px; border-radius: var(--r-card); padding: 30px; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: .6fr 2fr; gap: 24px; align-items: start; }
.ai__ethics ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.ai__ethics li { color: var(--ink-soft); font-size: 15.5px; }
.ai__ethics b { color: var(--ink); display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -0.02em; }


/* ---------- VIDEO TILES (IA + portafolio) ---------- */
.ptile { position: relative; margin: 0; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--panel); color: var(--text); text-align: left; display: block; width: 100%; height: 100%; }
button.ptile { cursor: pointer; }
.ptile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.ptile:hover video { scale: 1.04; }
.ptile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,9,26,.8)); pointer-events: none; }
.ptile figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: 14px; color: var(--text-soft); }
.ptile figcaption b { display: block; color: var(--text); font: 700 20px/1.1 var(--f-display); letter-spacing: -0.02em; }
.ptile__play { position: absolute; top: 16px; right: 16px; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--acid); display: grid; place-items: center; transition: transform .35s var(--ease); }
.ptile__play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 3px; }
button.ptile:hover .ptile__play { transform: scale(1.12); }
button.ptile:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.madeai { margin-bottom: 16px; }
.madeai__label { color: var(--detail); margin: 0 0 14px; }
.madeai__grid { display: grid; grid-template-columns: 1fr 1fr .72fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 16 / 8.2; margin-bottom: 40px; }
.madeai__grid > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.madeai__grid > :nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
.madeai__grid > :nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.port { background: var(--bg); }
.prod__feature { aspect-ratio: 21 / 9; height: auto; margin-bottom: 12px; border-radius: 32px; }
.port__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pfilter { min-height: 44px; padding: 10px 18px; border-radius: 50px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 15px/1 var(--f-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pfilter:hover { border-color: var(--text); }
.pfilter.is-on { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.port__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(110px, 12vw, 170px); grid-auto-flow: dense; gap: 16px; }
.port__grid .ptile--h { grid-column: span 2; grid-row: span 2; }
.port__grid .ptile--v { grid-column: span 1; grid-row: span 3; }
.port__grid .ptile.is-hidden { display: none; }
.lightbox { width: min(92vw, 1200px); max-height: 92vh; padding: 0; border: 0; border-radius: 28px; background: #000; overflow: visible; }
.lightbox::backdrop { background: rgba(7,9,26,.86); backdrop-filter: blur(6px); }
.lightbox__video { display: block; width: 100%; max-height: 88vh; border-radius: 28px; background: #000; }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--acid); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.lightbox__close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ---------- CINTA sobre foto ---------- */
.ribbon { position: relative; z-index: 2; padding: calc(var(--section) * 1.2) var(--gutter); background: var(--bg); overflow-x: clip; overflow-y: visible; }
.ribbon__stage { position: relative; max-width: 1400px; margin-inline: auto; }
.ribbon__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; }
.ribbon__frame img { width: 100%; height: 100%; object-fit: cover; }
.ribbon__frame { background: #E3E4EE; }
.ribbon__svg { position: absolute; left: -6%; top: -18%; width: 112%; height: 136%; z-index: 1; overflow: visible; pointer-events: none; }
.ribbon__band { fill: none; stroke: var(--acid); stroke-width: 150; stroke-linecap: butt; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.ribbon__text { font: 800 70px var(--f-display); letter-spacing: -0.01em; fill: var(--ink); dominant-baseline: middle; }

/* ---------- PRUEBAS: recortes de periódico ---------- */
.proof { background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 20px; }
.stat {
  --tilt: -1.2deg; position: relative; grid-column: span 5; background: var(--paper); color: var(--ink); padding: 40px 30px 32px; rotate: var(--tilt);
  clip-path: polygon(0 1.5%, 6% 0, 14% 1.2%, 23% 0, 34% 1.4%, 45% .2%, 57% 1.3%, 68% 0, 79% 1.1%, 90% .1%, 100% 1.4%, 99.4% 50%, 100% 98.6%, 91% 100%, 80% 98.8%, 69% 100%, 57% 98.7%, 46% 100%, 34% 98.9%, 22% 100%, 11% 98.8%, 0 100%, .6% 50%);
  transition: rotate .5s var(--ease), translate .5s var(--ease);
}
.stat:nth-child(2) { --tilt: 1.4deg; }
.stat:nth-child(3) { --tilt: -.6deg; }
.stat:nth-child(4) { --tilt: .8deg; }
.stat:hover { rotate: 0deg; translate: 0 -6px; }
/* los recortes "caen" en su lugar cada vez que entran en pantalla */
.js .stat { opacity: 0; transform: translateY(60px) rotate(calc(var(--tilt) * -3)) scale(.96); transition: opacity .5s var(--ease), transform .8s cubic-bezier(.34, 1.4, .64, 1), rotate .5s var(--ease), translate .5s var(--ease); }
.js .stat.is-live { opacity: 1; transform: none; }
.js .stat:nth-child(2).is-live { transition-delay: .08s; }
.js .stat:nth-child(3).is-live { transition-delay: .16s; }
.js .stat:nth-child(4).is-live { transition-delay: .24s; }
.stat--xl { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.stat--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: end; }
.stat--wide .stat__brand, .stat--wide .stat__meta { grid-column: 1 / -1; }
.stat--wide .stat__num { margin-bottom: 0; }
.stat__brand { display: inline-block; align-self: flex-start; justify-self: start; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--acid); }
.stat__num { font: 800 clamp(64px, 8vw, 128px)/0.85 var(--f-display); letter-spacing: -0.06em; margin: 26px 0 16px; font-variant-numeric: tabular-nums; }
.stat--xl .stat__num { font-size: clamp(76px, 12vw, 196px); color: var(--blue); }
.stat__num small { font-size: .36em; letter-spacing: -0.03em; margin-left: .08em; }
.stat__label { color: var(--ink-soft); max-width: 40ch; font-size: 16px; }
.stat__meta { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed #D2CBB8; color: var(--ink-soft); font-size: 11px; }

/* ---------- CLIENTES: banda ácida ---------- */
.clients { background: var(--acid); color: var(--ink); padding-block: clamp(32px, 5vw, 56px); overflow: hidden; }
.clients__label { color: rgba(13,19,51,.65); margin-bottom: 18px; }
.marquee { display: flex; overflow: hidden; }
.marquee + .marquee { margin-top: 10px; }
.marquee__track { display: flex; flex-shrink: 0; gap: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); font: 750 clamp(34px, 4.6vw, 68px)/1.05 var(--f-display); letter-spacing: -0.045em; white-space: nowrap; will-change: transform; }
.marquee__track .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* ---------- TRABAJO ---------- */
.work { padding-top: var(--section); background: var(--navy); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--section); }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; }
.panel { scroll-snap-align: center; flex: 0 0 auto; width: min(86vw, 1040px); min-height: min(72vh, 620px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.panel--intro { width: min(78vw, 560px); background: transparent; border: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-left: 0; }
.panel--intro .eyebrow { margin: 0; }
.panel--intro p { color: var(--text-soft); max-width: 38ch; font-size: 18px; }
.panel__hint { display: inline-flex; align-items: center; gap: 10px; color: var(--acid); }
.panel__num { display: block; color: var(--detail); margin-bottom: 16px; }
.panel__text .h3 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.045em; margin-bottom: 16px; }
.panel__text p { color: var(--text-soft); margin-bottom: 20px; }
.collage { position: relative; height: 100%; min-height: 380px; }
.collage > * { position: absolute; object-fit: cover; border-radius: 22px; background: var(--bg-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); transition: rotate .6s var(--ease), scale .6s var(--ease); }
.collage > :nth-child(1) { width: 52%; height: 78%; left: 0; top: 4%; rotate: -3deg; z-index: 2; }
.collage > :nth-child(2) { width: 44%; height: 58%; right: 0; top: 0; rotate: 4deg; }
.collage > :nth-child(3) { width: 42%; height: 46%; right: 6%; bottom: 0; rotate: -2deg; z-index: 3; }
.collage--wide > :nth-child(1) { width: 78%; height: 62%; left: 0; top: 0; }
.collage--wide > :nth-child(2) { width: 64%; height: 52%; right: 0; bottom: 0; top: auto; rotate: 3deg; z-index: 3; }
.panel:hover .collage > * { rotate: 0deg; }
.panel .chip { border-color: var(--acid); color: var(--acid); }
.work.is-pinned .work__viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.work.is-pinned .work__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }

/* ---------- HISTORIA (clara) ---------- */
.story { border-radius: var(--r-art) var(--r-art) 0 0; }
.story__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.story__lead { position: sticky; top: 130px; }
.story__years { display: flex; align-items: flex-start; gap: 6px; margin-top: 44px; }
.story__num { font: 800 clamp(120px, 15vw, 220px)/0.8 var(--f-display); letter-spacing: -0.07em; color: var(--blue); }
.story__plus { font: 800 clamp(56px, 6vw, 96px)/0.8 var(--f-display); color: var(--violet); }
.story__unit { align-self: flex-end; margin-left: 12px; color: var(--ink-soft); line-height: 1.5; }
.story__sheets { display: grid; gap: 28px; padding-top: 20px; }
.sheetcard { position: relative; background: #fff; border-radius: 28px; padding: 44px 36px 36px; rotate: var(--r); box-shadow: 0 18px 40px -24px rgba(13,19,51,.35); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.sheetcard:hover { rotate: 0deg; translate: 0 -4px; }
.sheetcard--dark { background: var(--ink); color: var(--paper); }
.sheetcard.sheetcard--dark .sheetcard__tag, .sheetcard.sheetcard--dark p { color: rgba(244,239,227,.78); }
.sheetcard--dark .sheetcard__clip, .sheetcard--dark .sheetcard__clip::after { border-color: var(--acid); }
.sheetcard__tag { display: block; color: var(--ink-soft); margin-bottom: 14px; }
.sheetcard h3 { font: 700 clamp(26px, 2.6vw, 36px)/1 var(--f-display); letter-spacing: -0.035em; margin-bottom: 12px; }
.sheetcard p { color: var(--ink-soft); max-width: 48ch; }
.sheetcard__clip { position: absolute; top: -22px; left: 40px; width: 22px; height: 54px; border: 4px solid #9AA3C7; border-radius: 12px; }
.sheetcard__clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 30px; border: 3.5px solid #9AA3C7; border-radius: 8px; border-top: 0; }

/* ---------- PRODUCCIÓN ---------- */
.prod { background: var(--bg); }
.prod .section-head--split p { color: var(--text-soft); max-width: 46ch; font-size: 18px; }
.strip { display: flex; gap: 12px; height: clamp(380px, 46vw, 560px); }
.strip__item { position: relative; flex: 1 1 0; min-width: 0; border-radius: 32px; overflow: hidden; cursor: pointer; transition: flex-grow .7s var(--ease); background: var(--panel); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease), filter .6s; scale: 1.08; filter: saturate(.6) brightness(.7); }
.strip__item:hover, .strip__item:focus-visible, .strip__item.is-open { flex-grow: 4.2; }
.strip__item:hover img, .strip__item:focus-visible img, .strip__item.is-open img { scale: 1; filter: none; }
.strip__item figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(7,9,26,.72); backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 16px; font-size: 14px; color: var(--text-soft); opacity: 0; translate: 0 12px; transition: opacity .35s, translate .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__item figcaption b { display: block; color: var(--text); font: 700 18px/1.2 var(--f-display); letter-spacing: -0.02em; }
.strip__item:hover figcaption, .strip__item:focus-visible figcaption, .strip__item.is-open figcaption { opacity: 1; translate: 0 0; transition-delay: .15s; }

/* ---------- PRESENCIA ---------- */
.world { background: var(--navy); padding-top: 0; }
.world__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.countries { border-top: 1px solid var(--line-2); }
.countries li { display: flex; align-items: baseline; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line-2); font: 700 clamp(30px, 3.6vw, 54px)/1 var(--f-display); letter-spacing: -0.045em; transition: padding-left .5s var(--ease), color .25s; }
.countries li:hover { padding-left: 18px; color: var(--cyan); }
.countries .mono { color: var(--text-soft); font-size: 12px; min-width: 24px; }
.countries em { margin-left: auto; font-style: normal; padding: 6px 10px; border-radius: 8px; background: var(--acid); color: var(--ink); font-size: 11px; }

/* ---------- EQUIPO ---------- */
.team { background: var(--navy); }
.team__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.team__copy > p:not(.eyebrow) { color: var(--text-soft); margin-top: 22px; max-width: 42ch; font-size: 18px; }
.leads { margin-top: 36px; border-top: 1px solid var(--line-2); }
.leads li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.leads img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; object-position: 50% 30%; transition: transform .4s var(--ease), border-radius .4s var(--ease); }
.leads li:hover img { transform: scale(1.12) rotate(-3deg); border-radius: 50%; }
.leads b { font: 650 19px/1.2 var(--f-display); letter-spacing: -0.02em; }
.leads span { color: var(--text-soft); text-align: right; }
@media (max-width: 480px) { .leads li { grid-template-columns: 56px 1fr; } .leads img { width: 56px; height: 56px; grid-row: span 2; } .leads span { text-align: left; } }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start; }
.faces li:nth-child(even) { translate: 0 12%; }
.faces li { rotate: var(--r); border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); transition: rotate .5s var(--ease), scale .5s var(--ease); }
.faces li:hover { rotate: 0deg; scale: 1.05; z-index: 2; position: relative; }
.faces img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- MANIFIESTO (banda cyan) ---------- */
.manifesto { position: relative; isolation: isolate; overflow: hidden; background: var(--cyan); color: var(--ink); }
.manifesto__canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.manifesto__grid { display: block; }
.manifesto__quote { max-width: 18ch; font: 750 clamp(40px, 7.6vw, 124px)/.98 var(--f-display); letter-spacing: -0.045em; text-wrap: pretty; }
.manifesto__quote .w { transition: opacity .4s; }
.js .manifesto__quote .w { opacity: .22; }
.js .manifesto__quote .w.is-lit { opacity: 1; }
.manifesto__quote mark { background: none; color: var(--violet); }

/* ---------- CONTACTO ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.contact__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__intro > p:not(.eyebrow) { color: var(--text-soft); font-size: 18px; margin-top: 20px; max-width: 40ch; }
.office { position: relative; margin-top: 44px; max-width: 460px; }
.office img { width: 72%; aspect-ratio: 3/4; object-fit: cover; border-radius: 32px; rotate: -2deg; }
.office__card { position: absolute; right: 0; bottom: 8%; width: 62%; background: var(--paper); color: var(--ink); border-radius: 24px; padding: 20px 22px; display: grid; gap: 8px; rotate: 2deg; }
.office__card .mono { color: var(--ink-soft); }
.office__card address { font: 600 16px/1.35 var(--f-body); }
.formcard { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 48px); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font: 600 15px/1.2 var(--f-body); padding: 0; }
.field legend { margin-bottom: 10px; }
.field > label > span[aria-hidden="true"], .field legend > span[aria-hidden="true"] { color: var(--coral); }   /* solo el asterisco, no el texto del aviso */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select { width: 100%; min-height: 52px; padding: 14px 18px; border: 1.5px solid #D2CBB8; border-radius: 16px; background: #fff; font: 400 16px/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 48px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,92,237,.25); }
.formcard :focus-visible { outline-color: var(--blue); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C2331F; background: #FFF4F1; }
.field__help { font-size: 14px; color: var(--ink-soft); }
.field__error { font-size: 14px; color: #B42A17; font-weight: 500; }
.field__error:empty { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__alt { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.pick__alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pick__alt img { width: 18px; height: 18px; }
.pick__alt[data-wa-help] { display: flex; align-items: center; gap: 8px; }
.pick__alt[data-wa-help][hidden] { display: none; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid #D2CBB8; border-radius: 50px; background: #fff; font: 500 15px/1 var(--f-body); transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--acid); }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pick label:active span { transform: scale(.96); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-error { color: #B42A17; background: #FFF4F1; border: 1.5px solid #E7B3A9; border-radius: 16px; padding: 12px 16px; }
.form-done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 20px 0; }
.form-done__check { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.form-done__check svg { width: 34px; fill: none; stroke: var(--acid); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done p { color: var(--ink-soft); }
.formcard .btn--ghost { color: var(--ink); border-color: #D2CBB8; }

/* ---------- FOOTER ---------- */
.footer { background: var(--blue); color: #fff; padding-top: clamp(56px, 7vw, 96px); overflow: hidden; border-radius: var(--r-art) var(--r-art) 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__claim { font: 700 clamp(30px, 3.4vw, 48px)/1 var(--f-display); letter-spacing: -0.04em; max-width: 14ch; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; opacity: .92; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer address { line-height: 1.7; opacity: .9; }

.footer__word { font: 800 clamp(96px, 23.5vw, 380px)/.74 var(--f-display); letter-spacing: -0.07em; color: var(--bg); text-align: center; margin: clamp(40px, 6vw, 80px) 0 0; white-space: nowrap; translate: 0 12%; }
.footer__legal { padding-block: 22px; color: rgba(255,255,255,.82); font-size: 11px; position: relative; background: var(--blue); }


/* ---------- PÁGINAS DE SERVICIO ---------- */
.shero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(130px, 16vh, 180px) 0 clamp(64px, 8vw, 110px); }
.shero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.crumbs { color: var(--text-soft); font-size: 11px; margin-bottom: 26px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--acid); }
.shero__title { font: 750 clamp(52px, 7.4vw, 120px)/.9 var(--f-display); letter-spacing: -0.055em; margin: 14px 0 24px; text-wrap: balance; }
.shero__lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-soft); max-width: 46ch; }
.shero__row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.shero__art { border-radius: var(--r-art); aspect-ratio: 4 / 5; min-height: 0; }
.svcs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc { padding: 30px; border-radius: 32px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.svc__title { font: 700 clamp(24px, 2.2vw, 30px)/1.05 var(--f-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc__pain { color: var(--cyan); font-size: 15.5px; }
.svc__list { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.svc__list li { position: relative; padding-left: 20px; color: var(--text-soft); }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); rotate: 45deg; }
.steps { border-radius: var(--r-art) var(--r-art) 0 0; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps__list li { padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 18px 40px -26px rgba(13,19,51,.35); }
.steps__list .mono { color: var(--blue); }
.steps__list h3 { font: 700 26px/1 var(--f-display); letter-spacing: -0.03em; margin: 16px 0 8px; }
.steps__list p { color: var(--ink-soft); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.case__img { border-radius: var(--r-art); overflow: hidden; aspect-ratio: 4 / 3; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__num { font: 800 clamp(56px, 7vw, 110px)/.85 var(--f-display); letter-spacing: -0.055em; color: var(--acid); margin: 18px 0 16px; }
.case__desc { color: var(--text-soft); font-size: 18px; max-width: 42ch; }
.case .stat__meta { border-top-color: var(--line); color: var(--text-soft); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 650 clamp(19px, 1.7vw, 23px)/1.2 var(--f-display); letter-spacing: -0.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { width: 28px; height: 28px; border-radius: 50%; background: var(--acid); flex: 0 0 auto; position: relative; transition: rotate .35s var(--ease); }
.faq__item summary span::before, .faq__item summary span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ink); }
.faq__item summary span::after { rotate: 90deg; transition: rotate .35s var(--ease); }
.faq__item[open] summary span::after { rotate: 0deg; }
.faq__item p { color: var(--text-soft); padding: 0 0 22px; max-width: 60ch; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-art); background: var(--acid); color: var(--ink); }
.cta-band .btn--acid { background: var(--ink); color: var(--acid); }
.cta-band .btn--acid .btn__circle { background: var(--acid); }
.cta-band .btn--acid .btn__circle svg { stroke: var(--ink); }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.more__card { display: grid; gap: 10px; padding: 26px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.more__card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.more__card .mono { color: var(--detail); }
.more__card b { font: 700 24px/1.05 var(--f-display); letter-spacing: -0.03em; }
.more__card .btn__circle { justify-self: end; background: var(--acid); }
.more__card .btn__circle svg { stroke: var(--ink); }
.pillar__more { font: 500 15px var(--f-body); color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.pillar__more:hover { color: var(--acid); border-color: var(--acid); }

/* ---------- reveals (titular en cascada, texto con máscara) ---------- */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
/* El hero entra solo con CSS desde el primer cuadro: no espera a JavaScript (mejora el LCP) */
.js .hero .reveal { opacity: 1; translate: none; transition: none; animation: heroUp .8s var(--ease) both; }
.js .hero .line.reveal { clip-path: inset(0 0 -20% 0); animation-name: heroLine; animation-duration: .9s; }
.js .hero .line.reveal:nth-child(2) { animation-delay: .08s; }
.js .hero .line.reveal:nth-child(3) { animation-delay: .16s; }
.js .hero .hero__lede.reveal { animation-delay: .25s; }
.js .hero .hero__ctas.reveal { animation-delay: .32s; }
@keyframes heroLine { from { translate: 0 60%; } to { translate: 0 0; } }
@keyframes heroUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__menu { display: block; margin-left: 0; }
  .role { grid-column: span 6; }
  .role--xl, .role--wide { grid-column: 1 / -1; }
  .role--cta { grid-column: 1 / -1; min-height: 280px; }
  .pillar { grid-template-columns: .9fr 1.1fr; position: relative; top: auto; min-height: 0; }
  .pillar__art { min-height: 100%; }
  .train { grid-template-columns: 1fr; }
  .train__art { max-width: 240px; }
  .shero__grid, .case__grid, .faq__grid { grid-template-columns: 1fr; }
  .shero__art { max-width: 460px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .more__grid { grid-template-columns: 1fr; }
  .ai__featured { grid-template-columns: 1fr; }
  .madeai__grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .madeai__grid > :nth-child(1) { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
  .madeai__grid > :nth-child(2) { grid-column: 1; grid-row: 2; aspect-ratio: 16 / 9; }
  .madeai__grid > :nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
  .aicard--geo { grid-row: auto; }
  .ai__more { grid-template-columns: repeat(2, 1fr); }
  .ai__more li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .ai__ethics { grid-template-columns: 1fr; }
  .stat, .stat--xl { grid-column: span 6; grid-row: auto; }
  .stat--xl, .stat--wide { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero__grid, .story__grid, .world__grid, .team__grid, .contact__grid, .section-head--split, .reel__head { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__title { font-size: clamp(56px, 12vw, 104px); }
  .hero__stage { max-width: 440px; justify-self: center; margin-top: 8px; }
  .story__lead { position: static; }
  .work__viewport { overflow: visible; scroll-snap-type: none; }
  .work__track { flex-direction: column; width: auto; gap: 16px; }
  .panel { grid-template-columns: 1fr; width: auto; min-height: 0; gap: 28px; }
  .panel--intro { width: auto; padding: 0 0 8px; align-items: flex-start; text-align: left; }
  .panel--intro > * { margin-inline: 0; }
  .panel__hint { display: none; }
  .collage { min-height: clamp(300px, 80vw, 460px); }
  .strip { flex-direction: column; height: auto; }
  .strip__item { flex: 0 0 auto; height: 220px; }
  .strip__item:hover, .strip__item:focus-visible, .strip__item.is-open { flex-grow: 0; }
  .strip__item img { filter: none; scale: 1; }
  .strip__item figcaption { opacity: 1; translate: 0 0; }
  .faces { gap: 10px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__claim { grid-column: 1 / -1; }
  .reel__frame, .ribbon__frame { aspect-ratio: 16 / 10; }
  .role--xl .clip3d, .role--wide .clip3d { left: 0; width: 100%; height: 60%; }
  .role--xl .role__body, .role--wide .role__body { max-width: none; }
}
@media (min-width: 621px) and (max-width: 860px) {
  .panel { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .collage { min-height: 400px; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .nav { padding-left: 16px; }
  .nav__cta { display: none; }
  .nav__menu { margin-left: auto; }
  .hero__title { font-size: clamp(46px, 14.2vw, 76px); }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .role, .role--xl, .role--wide { grid-column: 1 / -1; min-height: 460px; }
  .stat, .stat--xl, .stat--wide { grid-column: 1 / -1; }
  .stat--wide { display: block; }
  .pillar { grid-template-columns: 1fr; }
  .pillar--flip .pillar__art { order: 0; }
  .pillar__art { aspect-ratio: 4 / 3.4; min-height: 0; }
  .madeai__grid { grid-template-columns: 1fr; }
  .madeai__grid > :nth-child(1), .madeai__grid > :nth-child(2) { grid-column: 1; grid-row: auto; }
  .madeai__grid > :nth-child(3) { grid-column: 1; grid-row: auto; aspect-ratio: 9 / 12; }
  .port__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 26vw; }
  .playground { height: 440px; }
  .pill { font-size: 15px; padding-right: 20px; }
  .pill__ico { width: 42px; height: 42px; }
  .office img { width: 80%; }
  .office__card { position: relative; width: 92%; margin: -40px 0 0 auto; }
  .footer__top { grid-template-columns: 1fr; }
  .countries em { display: none; }
  .ai__more { grid-template-columns: 1fr; }
  .port__filters { justify-content: flex-start; }
  .prod__feature { aspect-ratio: 4 / 3; }
  .reel__full { left: 16px; right: auto; bottom: 72px; font-size: 14px; }
  .reel__frame, .ribbon__frame { aspect-ratio: 4 / 5; border-radius: 32px; }
  .ribbon__svg { top: -8%; height: 116%; }
  .ribbon__band { stroke-width: 112; }
  .ribbon__text { font-size: 56px; }
  .lightbox__close { top: 8px; right: 8px; }
  .ai__ethics ul { grid-template-columns: 1fr; }
  .svcs__grid, .steps__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: 180ms !important; }
  .js .reveal, .js .hero .line.reveal { opacity: 1; translate: none; clip-path: none; }
  .js .manifesto__quote .w { opacity: 1; }
  .js .stat { opacity: 1; transform: none; }
}
.pillar__link { text-decoration: none; } .pillar__link:hover { color: var(--acid); }
.pillar__more { align-self: flex-start; }

/* ---------- aviso de cookies (solo aparece si la medición está activa) ---------- */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: 720px; margin-inline: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; padding: 18px 20px; display: grid; gap: 14px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.consent p { color: var(--text-soft); font-size: 15px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
