/* ═══════════════════════════════════════════════════════════════
   1. TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", system-ui, sans-serif;

  /* Neutros (paleta Apple) */
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --white: #fff;
  --mist: #f5f5f7;
  --fog: #eeeef3;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --on-dark-3: #86868b;
  --tile-dark: #161617;
  --field-dark: #1d1d1f;

  /* Marca: un solo acento + el degradado del rayo para momentos especiales */
  --accent: #5e5ce6;
  --accent-hover: #4d4ad6;
  --link-light: #5452d4;
  --link-dark: #a8a6ff;
  --grad: linear-gradient(90deg, #b18cff 0%, #7a77ff 42%, #3fd3f0 100%);
  --grad-deep: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #0891b2 100%);

  --hair-light: rgba(0, 0, 0, .09);
  --hair-dark: rgba(255, 255, 255, .12);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4.6vw, 48px);
  --wrap: 1260px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --nav-h: 52px;
}

/* ═══════════════════════════════════════════════════════════════
   2. BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(94, 92, 230, .28); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-size: 14px;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }

.sec { position: relative; padding-block: clamp(96px, 12vw, 168px); scroll-margin-top: var(--nav-h); }
.sec[data-theme="dark"]  { background: var(--black); color: var(--on-dark); }
.sec[data-theme="light"] { background: var(--white); color: var(--ink); }
.sec[data-theme="mist"]  { background: var(--mist); color: var(--ink); }
.sec[data-theme="fog"]   { background: var(--fog); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   ═══════════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: clamp(17px, .5vw + 14px, 21px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-2);
  margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--on-dark-3); }

.h2 {
  font-size: clamp(40px, 4.6vw + 16px, 80px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(28px, 1.6vw + 18px, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.028em;
}
.lead {
  font-size: clamp(19px, .6vw + 15px, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -.016em;
  color: var(--ink-2);
  text-wrap: pretty;
}
[data-theme="dark"] .lead { color: var(--on-dark-2); }
.dim { color: var(--ink-3); }
[data-theme="dark"] .dim { color: #6e6e73; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[data-theme="light"] .grad-text,
[data-theme="mist"] .grad-text,
[data-theme="fog"] .grad-text { background-image: var(--grad-deep); }

.head-split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; flex-wrap: wrap;
}
.head-split .lead { max-width: 30ch; }

/* ═══════════════════════════════════════════════════════════════
   4. BOTONES Y LINKS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), transform .5s var(--ease), color .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: rgba(255, 255, 255, .12); color: #f5f5f7; }
.btn-secondary:hover { background: rgba(255, 255, 255, .2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-sm { min-height: 36px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: clamp(17px, .4vw + 15px, 21px); font-weight: 500; letter-spacing: -.01em;
  color: var(--link-light); text-decoration: none;
}
[data-theme="dark"] .more, .hero .more { color: var(--link-dark); }
.more svg { width: 1em; height: 1em; transition: transform .45s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   5. SPLASH
   ═══════════════════════════════════════════════════════════════ */
.splash { display: none; }
.splash-on { overflow: hidden; }
.splash-on .splash {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 90; background: #000;
  animation: splashOut .8s var(--ease) 1.55s forwards;
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.splash img {
  width: auto; height: 76px;
  opacity: 0; transform: scale(.72) translateY(6px); filter: blur(6px);
  animation: splashBolt 1s var(--ease) .1s forwards;
}
.splash p {
  font-size: clamp(26px, 2vw + 16px, 36px); font-weight: 600; letter-spacing: -.03em; color: #f5f5f7;
  opacity: 0; transform: translateY(12px);
  animation: splashTxt .9s var(--ease) .5s forwards;
}
@keyframes splashBolt { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes splashTxt  { to { opacity: 1; transform: none; } }
@keyframes splashOut  { to { opacity: 0; visibility: hidden; } }

/* ═══════════════════════════════════════════════════════════════
   6. NAVEGACIÓN
   ═══════════════════════════════════════════════════════════════ */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: rgba(255, 255, 255, .86);
}
.gnav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.gnav[data-mode="light"] { color: rgba(29, 29, 31, .86); }
.gnav[data-mode="light"]::before { background: rgba(251, 251, 253, .78); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.gnav-inner {
  position: relative; height: 100%;
  width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.gnav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; height: 100%; }
.gnav-logo img { height: 21px; width: auto; }
.gnav-logo .wt { height: 14px; }
.gnav-logo .on-light { display: none; }
.gnav[data-mode="light"] .gnav-logo .on-dark { display: none; }
.gnav[data-mode="light"] .gnav-logo .on-light { display: block; }

.gnav-links { display: flex; gap: clamp(20px, 2.6vw, 38px); }
.gnav-links a {
  font-size: 13px; letter-spacing: -.005em; text-decoration: none; opacity: .86;
  transition: opacity .3s var(--ease);
}
.gnav-links a:hover { opacity: 1; }
.gnav-right { display: flex; align-items: center; gap: 12px; }
.gnav-cta {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 500; text-decoration: none;
  transition: background-color .3s var(--ease);
}
.gnav-cta:hover { background: var(--accent-hover); }

.burger {
  display: none; position: relative; width: 40px; height: 40px; margin-right: -10px;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 12px; width: 17px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mnav a {
  display: block; padding: 8px 0; color: #f5f5f7; text-decoration: none;
  font-size: 30px; font-weight: 600; letter-spacing: -.03em;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu-open .mnav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 80ms); }
.mnav a.btn { display: inline-flex; margin-top: 28px; padding: 0 26px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   7. HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 88px)) 0 clamp(28px, 5vh, 64px);
  background: #000; color: var(--on-dark);
}
.hero-top, .hero-bottom { position: relative; z-index: 2; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.hero-kicker {
  font-size: clamp(17px, .5vw + 14px, 21px); font-weight: 600; letter-spacing: -.01em;
  color: var(--on-dark-2); margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(64px, min(8.4vw + 18px, 15vh), 152px);
  line-height: .96; font-weight: 700; letter-spacing: -.048em;
}
.hero-title .grad-text {
  padding-right: .03em;
  background-image: linear-gradient(90deg, #b18cff 0%, #7a77ff 25%, #3fd3f0 50%, #7a77ff 75%, #b18cff 100%);
  background-size: 200% 100%;
  animation: gradShift 9s var(--ease-io) infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-stage {
  position: relative; z-index: 1; flex: 1 1 auto;
  width: 100%; min-height: clamp(220px, 34vh, 640px);
  margin-block: 4px 14px;
}
.hero-stage-inner { position: absolute; inset: 0; will-change: transform, opacity; }
.hero-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transform: scale(1.1);
}
.hero-sub {
  max-width: 40ch; margin: 0 auto;
  font-size: clamp(19px, .7vw + 14px, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.018em;
  color: var(--on-dark-2); text-wrap: balance;
}
.hero-ctas { margin-top: 26px; display: flex; gap: 14px 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--on-dark-3); letter-spacing: 0; }
@media (min-width: 735px) and (max-height: 780px) { .hero-note { display: none; } }

/* entrada del hero */
.js .hero [data-in] { opacity: 0; transform: translateY(26px); }
.js.is-ready .hero [data-in] {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s);
}
.js .hero-stage { opacity: 0; transform: scale(.94); }
.js.is-ready .hero-stage { opacity: 1; transform: none; transition: opacity 1.6s var(--ease) .15s, transform 2s var(--ease) .15s; }

/* ═══════════════════════════════════════════════════════════════
   8. STATEMENT (texto que se ilumina con el scroll)
   ═══════════════════════════════════════════════════════════════ */
.statement { padding-block: clamp(120px, 16vw, 240px); }
.statement-text {
  font-size: clamp(30px, 3vw + 14px, 60px);
  line-height: 1.14; font-weight: 600; letter-spacing: -.034em;
  text-wrap: balance;
}
.has-gsap .statement-text .w { opacity: .16; }
.statement-text .w { display: inline; }

/* ═══════════════════════════════════════════════════════════════
   9. PRODUCCIÓN (video que se expande + reels)
   ═══════════════════════════════════════════════════════════════ */
.film-stage { margin-top: clamp(56px, 7vw, 96px); }
.film-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh;
  overflow: hidden; background: #0b0b0c; transform-origin: 50% 0%;
  will-change: transform;
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-cap { margin-top: 18px; font-size: 14px; color: var(--on-dark-3); text-align: center; }

.reels-head { margin-top: clamp(96px, 11vw, 160px); }
.reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}
.reel-media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden;
  background: #111; isolation: isolate;
}
.reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { margin-top: 18px; font-size: 15px; color: var(--on-dark-3); line-height: 1.4; }
.reel figcaption strong { display: block; font-size: 17px; font-weight: 600; color: var(--on-dark); letter-spacing: -.015em; }

/* control de video estilo Apple */
.vctl {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(210, 210, 215, .22); color: #fff;
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.vctl:hover { background: rgba(210, 210, 215, .36); }
.vctl:active { transform: scale(.92); }
.vctl svg { width: 14px; height: 14px; }
.vctl .i-play { display: none; }
.vctl[data-state="paused"] .i-play { display: block; }
.vctl[data-state="paused"] .i-pause { display: none; }
.film-frame .vctl { right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); }

/* ═══════════════════════════════════════════════════════════════
   10. TRABAJO (galería horizontal)
   ═══════════════════════════════════════════════════════════════ */
.gallery {
  margin-top: clamp(40px, 5vw, 64px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: clamp(14px, 1.6vw, 22px); padding-inline: var(--edge); width: max-content; }
.gallery-track::after { content: ""; flex: 0 0 1px; }
.gcard {
  position: relative; flex: 0 0 clamp(270px, 27vw, 392px); aspect-ratio: 392 / 560;
  border-radius: var(--r-xl); overflow: hidden; background: #111; scroll-snap-align: start;
  isolation: isolate;
}
.gcard img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.gcard:hover img { transform: scale(1.045); }
.gcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .18) 28%, rgba(0, 0, 0, 0) 46%);
}
.gcard-copy { position: absolute; z-index: 2; inset: 0 0 auto 0; padding: clamp(24px, 2.2vw, 32px); color: #fff; }
.gcard-cat { font-size: 14px; font-weight: 600; letter-spacing: -.005em; opacity: .82; margin-bottom: 6px; }
.gcard h3 { font-size: clamp(26px, 1.2vw + 18px, 34px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }

.gallery-ctrl { display: flex; justify-content: flex-end; gap: 14px; margin-top: 26px; }
.gbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0, 0, 0, .08); color: var(--ink);
  transition: background-color .3s var(--ease), opacity .3s var(--ease), transform .4s var(--ease);
}
.gbtn:hover { background: rgba(0, 0, 0, .13); }
.gbtn:active { transform: scale(.92); }
.gbtn:disabled { opacity: .35; cursor: default; }
.gbtn svg { width: 18px; height: 18px; }

.logos { margin-top: clamp(88px, 10vw, 140px); }
.logos-title { font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: center; letter-spacing: -.005em; }
.logo-row {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 28px 36px; align-items: center;
}
.logo-row li { display: grid; place-items: center; height: 64px; }
.logo-row img {
  width: auto; height: auto; max-width: 100%; max-height: 52px;
  filter: grayscale(1); opacity: .55; mix-blend-mode: multiply;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.logo-row li:hover img { filter: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   11. SERVICIOS (bento)
   ═══════════════════════════════════════════════════════════════ */
.bento {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.4vw, 20px);
}
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(320px, 30vw, 440px);
  padding: clamp(28px, 2.8vw, 44px);
  border-radius: var(--r-xl); background: var(--mist); color: var(--ink);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.tile-ic { width: 36px; height: 36px; color: var(--accent); margin-bottom: 22px; }
.tile-ic svg { width: 100%; height: 100%; }
.tile-k { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; letter-spacing: -.005em; }
.tile h3 { font-size: clamp(26px, 1.3vw + 18px, 36px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; margin-bottom: 12px; text-wrap: balance; }
.tile p { font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.tile-foot { margin-top: auto; padding-top: 28px; }

.tile--dark { background: #000; color: var(--on-dark); }
.tile--dark p, .tile--dark .tile-k { color: var(--on-dark-2); }
.tile--img { justify-content: flex-end; color: #fff; background: #111; }
.tile--img > img, .tile--img > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile--img > picture { position: absolute; inset: 0; z-index: -2; }
.tile--img:hover img { transform: scale(1.04); }
.tile--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, 0) 62%);
}
.tile--img p, .tile--img .tile-k { color: rgba(255, 255, 255, .78); }

.stat-big { font-size: clamp(64px, 6vw + 24px, 128px); line-height: .9; font-weight: 700; letter-spacing: -.05em; }
.stat-cap { margin-top: 10px; font-size: 17px; color: var(--on-dark-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--on-dark); }

.ads-list { margin-top: 22px; display: grid; gap: 0; }
.ads-list li { padding: 16px 0; box-shadow: inset 0 -1px 0 var(--hair-light); }
.ads-list li:last-child { box-shadow: none; }
.ads-list strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ads-list span { font-size: 15px; color: var(--ink-2); }

.tile--ai {
  background: #000; color: var(--on-dark);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: clamp(300px, 26vw, 400px);
}
.tile--ai::before {
  content: ""; position: absolute; inset: -40% -10% -40% 35%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(122, 119, 255, .55), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(63, 211, 240, .35), transparent 70%);
  filter: blur(10px); opacity: .8;
}
.tile--ai p { color: var(--on-dark-2); }
.chat { display: grid; gap: 10px; justify-items: start; max-width: 380px; margin-left: auto; width: 100%; }
.bubble {
  max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.35; letter-spacing: -.01em;
  background: #2c2c2e; color: #f5f5f7; border-bottom-left-radius: 6px;
}
.bubble--me { justify-self: end; background: var(--accent); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.chat-meta { justify-self: end; font-size: 12px; color: var(--on-dark-3); display: flex; align-items: center; gap: 6px; }
.chat-meta i { width: 6px; height: 6px; border-radius: 50%; background: #30d158; display: inline-block; }
.js .chat .bubble, .js .chat .chat-meta { opacity: 0; transform: translateY(10px) scale(.98); }
.chat.is-in .bubble, .chat.is-in .chat-meta { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.chat.is-in > :nth-child(2) { transition-delay: .9s; }
.chat.is-in > :nth-child(3) { transition-delay: 1.3s; }

/* ═══════════════════════════════════════════════════════════════
   12. POR QUÉ
   ═══════════════════════════════════════════════════════════════ */
.why-stage { position: relative; width: min(1180px, 100%); margin: clamp(8px, 2vw, 24px) auto 0; }
.why-stage video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 58% 64% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 64% at 50% 50%, #000 62%, transparent 100%);
}
.why-grid {
  margin-top: clamp(24px, 3vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px);
}
.why-grid .ic { width: 32px; height: 32px; color: var(--accent); margin-bottom: 18px; }
.why-grid p { font-size: 17px; line-height: 1.47; color: var(--ink-2); text-wrap: pretty; }
.why-grid strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   13. PROCESO
   ═══════════════════════════════════════════════════════════════ */
.steps { position: relative; margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; }
.steps-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.steps::before, .steps-progress {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--hair-light); }
.steps-progress { background: var(--grad-deep); transform-origin: 0 50%; transform: scaleX(1); }
.has-gsap .steps-progress { transform: scaleX(0); }
.step-n {
  display: block; font-size: 15px; font-weight: 600; color: var(--link-light);
  font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.step h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.022em; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ═══════════════════════════════════════════════════════════════
   14. PAQUETES
   ═══════════════════════════════════════════════════════════════ */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin-top: clamp(32px, 4vw, 48px); padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .06);
}
.seg button {
  position: relative; z-index: 1; min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .35s var(--ease);
}
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .55s var(--ease);
}
.seg[data-active="1"] .seg-thumb { transform: translateX(100%); }
[data-theme="light"] .seg { background: var(--mist); }

.plans {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px);
}
.plans[hidden] { display: none; }
.plan {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px);
  border-radius: var(--r-xl); background: #fff;
}
.plan--pop::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-deep); }
.plan-flag { min-height: 20px; font-size: 14px; font-weight: 600; color: var(--link-light); letter-spacing: -.005em; }
.plan h3 { margin-top: 6px; font-size: clamp(32px, 1.4vw + 22px, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -.034em; }
.plan-tag { margin-top: 10px; font-size: 17px; line-height: 1.42; color: var(--ink-2); min-height: 4.3em; }
.plan-price { margin-top: 22px; font-size: clamp(30px, 1vw + 22px, 38px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); margin-left: 4px; }
.plan .btn { margin: 22px 0 26px; align-self: flex-start; }
.plan-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; font-size: 15px; line-height: 1.4;
  box-shadow: inset 0 1px 0 var(--hair-light);
}
.plan-list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }

.notes {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.notes li { padding-top: 14px; box-shadow: inset 0 1px 0 var(--hair-light); }

/* ═══════════════════════════════════════════════════════════════
   15. COTIZADOR
   ═══════════════════════════════════════════════════════════════ */
.cfg {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 48px); align-items: start;
}
.cfg .seg { margin-top: 0; }
.cfg-pane { margin-top: 24px; display: grid; gap: 12px; }
.cfg-pane[hidden] { display: none; }
.cfg-pane--grid { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 20px 22px; border-radius: 18px; cursor: pointer;
  box-shadow: inset 0 0 0 1px #d2d2d7; background: #fff;
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { box-shadow: inset 0 0 0 1px #86868b; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.opt.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt-name { font-size: 17px; font-weight: 600; letter-spacing: -.018em; }
.opt-desc { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.opt-price { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.opt-price small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; }

.cfg-sum {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 32px; border-radius: var(--r-xl); background: var(--mist);
}
.cfg-sum h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.cfg-items { margin-top: 18px; min-height: 88px; display: grid; align-content: start; gap: 10px; }
.cfg-items li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.cfg-items li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.cfg-empty { font-size: 15px; color: var(--ink-2); }
.cfg-total { margin-top: 20px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--hair-light); display: flex; justify-content: space-between; align-items: baseline; }
.cfg-total span { font-size: 15px; color: var(--ink-2); }
.cfg-total strong { font-size: 36px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cfg-sum .btn { margin-top: 22px; }
.cfg-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }

/* ═══════════════════════════════════════════════════════════════
   16. FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq { margin-top: clamp(40px, 5vw, 64px); }
.qa { box-shadow: inset 0 -1px 0 var(--hair-light); }
.qa:first-child { box-shadow: inset 0 1px 0 var(--hair-light), inset 0 -1px 0 var(--hair-light); }
.qa h3 { font-size: inherit; }
.qa-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: clamp(19px, .5vw + 16px, 24px); font-weight: 600; letter-spacing: -.022em; color: var(--ink);
}
.pm { position: relative; flex: 0 0 22px; height: 22px; }
.pm::before, .pm::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease);
}
.pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 48px 28px 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 68ch; }

/* ═══════════════════════════════════════════════════════════════
   17. EQUIPO
   ═══════════════════════════════════════════════════════════════ */
.team { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 24px); }
.person-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: #0d1a2a; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.person:hover .person-photo img { transform: scale(1.03); }
.person figcaption { padding: 24px 4px 0; }
.person h3 { font-size: clamp(24px, .8vw + 18px, 32px); font-weight: 600; letter-spacing: -.028em; }
.person .role { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--link-dark); }
.person p { margin-top: 12px; font-size: 17px; line-height: 1.47; color: var(--on-dark-2); max-width: 46ch; }

/* ═══════════════════════════════════════════════════════════════
   18. CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.contact { padding-top: clamp(40px, 6vw, 80px); }
.contact-bolt { width: clamp(160px, 18vw, 240px); aspect-ratio: 880 / 1080; margin: 0 auto -8px; position: relative; }
.contact-bolt video { width: 100%; height: 100%; object-fit: cover; }
.contact-title { font-size: clamp(44px, 5vw + 16px, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.contact .lead { margin: 20px auto 0; max-width: 34ch; }
.contact-ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.form-card {
  margin: clamp(56px, 7vw, 96px) auto 0; width: min(880px, 100%);
  scroll-margin-top: calc(var(--nav-h) + 24px);
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--tile-dark);
  text-align: left;
}
.form-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.form-card > p { margin-top: 6px; font-size: 15px; color: var(--on-dark-3); }
.form-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; height: 58px; padding: 24px 16px 6px;
  border-radius: 12px; border: 0; outline: 0;
  box-shadow: inset 0 0 0 1px #424245;
  background: var(--field-dark); color: var(--on-dark);
  font: inherit; font-size: 17px; letter-spacing: -.012em;
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .3s var(--ease);
}
.field textarea { height: 140px; padding-top: 28px; resize: vertical; line-height: 1.4; }
.field select { cursor: pointer; padding-right: 40px; }
.field--select::after {
  content: ""; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--on-dark-3); border-bottom: 1.5px solid var(--on-dark-3); transform: rotate(45deg);
}
.field select option { background: #1d1d1f; color: #f5f5f7; }
.field label {
  position: absolute; left: 17px; top: 18px; pointer-events: none;
  font-size: 17px; color: var(--on-dark-3); transform-origin: 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.field--select label { max-width: calc((100% - 56px) / .72); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.72); }
.field.bad input, .field.bad select, .field.bad textarea { box-shadow: inset 0 0 0 2px #ff453a; }
.field-err { display: none; margin-top: 6px; font-size: 13px; color: #ff6961; }
.field.bad .field-err { display: block; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot p { font-size: 13px; color: var(--on-dark-3); }
.form-foot a { color: var(--link-dark); text-decoration: none; }
.form-ok { display: none; text-align: center; padding: 24px 0 8px; }
.form-ok.show { display: block; }
.form-ok h3 { font-size: 28px; }
.form-ok p { margin: 10px auto 0; max-width: 40ch; color: var(--on-dark-2); }

/* ═══════════════════════════════════════════════════════════════
   19. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.foot { background: var(--mist); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 40px 0 28px; }
.foot-note { padding-bottom: 18px; box-shadow: inset 0 -1px 0 var(--hair-light); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; flex-wrap: wrap; }
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-logo img { height: 26px; width: auto; }
.foot-logo .wt { height: 17px; }
.foot-top p { font-size: 14px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; }
.foot-cols h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols a { text-decoration: none; color: #424245; }
.foot-cols a:hover { text-decoration: underline; color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--hair-light); }
.foot-bottom nav { display: flex; gap: 0; flex-wrap: wrap; }
.foot-bottom nav a { color: #424245; text-decoration: none; padding: 0 10px; box-shadow: inset -1px 0 0 #d2d2d7; }
.foot-bottom nav a:first-child { padding-left: 0; }
.foot-bottom nav a:last-child { box-shadow: none; }
.foot-bottom nav a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   20. FLOTANTES
   ═══════════════════════════════════════════════════════════════ */
.wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px;
  border-radius: 999px; text-decoration: none; color: #fff; font-size: 15px; font-weight: 500;
  background: rgba(29, 29, 31, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s var(--ease);
}
.wa.show { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: rgba(29, 29, 31, .92); }
.wa svg { width: 22px; height: 22px; color: #30d158; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; color: #fff;
  background: rgba(29, 29, 31, .9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════════════════════════════════════════════════════
   21. REVEAL AL HACER SCROLL
   ═══════════════════════════════════════════════════════════════ */
.js .rv { opacity: 0; transform: translateY(36px); }
.js .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}

/* ═══════════════════════════════════════════════════════════════
   22. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1068px) {
  .gnav-links { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
  .tile--ai { grid-template-columns: 1fr; }
  .chat { margin-left: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { padding-top: 0; padding-left: 36px; }
  .steps-list { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps-progress { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps-progress { transform-origin: 50% 0; transform: scaleY(1); }
  .has-gsap .steps-progress { transform: scaleY(0); }
  .step p { max-width: 52ch; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-tag { min-height: 0; }
  .notes { grid-template-columns: 1fr 1fr; }
  .cfg { grid-template-columns: 1fr; }
  .cfg-sum { position: relative; top: 0; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 734px) {
  :root { --r-xl: 24px; }
  .gnav-cta { display: none; }
  .hero-stage { min-height: clamp(280px, 48svh, 520px); }
  .hero-stage video { transform: scale(1.08); }
  .reels {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 74%; scroll-snap-align: start; }
  .gcard { flex-basis: 78vw; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: auto; }
  .tile { min-height: 300px; }
  .tile--img { min-height: 420px; }
  .why-stage video { aspect-ratio: 4 / 5; }
  .why-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .cfg-pane--grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .qa-a p { padding-right: 0; }
  .wa span { display: none; }
  .wa { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .head-split { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv, .js .hero [data-in], .js .hero-stage, .js .chat .bubble, .js .chat .chat-meta { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   23. VIDEOS DE PORTAFOLIO (YouTube: miniatura primero, video al hacer clic)
   ═══════════════════════════════════════════════════════════════ */
.yt { position: absolute; inset: 0; background: #0b0b0c; }
.yt img, .yt picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt img { object-fit: cover; transition: transform 1.4s var(--ease), filter .6s var(--ease); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); margin: 0; border: 0; border-radius: 50%;
  transform: translate(-50%, -50%); cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: transform .6s var(--ease), background-color .3s var(--ease);
}
.yt-play svg { width: 34%; height: 34%; margin-left: 6%; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 255, 255, .3); }
.yt:hover img { transform: scale(1.03); }
.yt-play:active { transform: translate(-50%, -50%) scale(.95); }
.yt--sin-video .yt-play { display: none; }
.yt.is-playing .yt-play, .yt.is-playing img, .yt.is-playing picture { display: none; }
.reel-media .yt-play { width: 60px; height: 60px; }

/* ═══════════════════════════════════════════════════════════════
   24. FORMULARIO: casilla de privacidad y ayudas
   ═══════════════════════════════════════════════════════════════ */
.field-help { margin-top: 6px; font-size: 13px; color: var(--on-dark-3); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--on-dark-2); }
.check input {
  flex: 0 0 22px; width: 22px; height: 22px; margin: 0; border-radius: 6px; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: var(--field-dark); box-shadow: inset 0 0 0 1px #6e6e73;
  display: grid; place-items: center; transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check a { color: var(--link-dark); }
.field.bad .check input { box-shadow: inset 0 0 0 2px #ff453a; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--on-dark-3); }

/* ═══════════════════════════════════════════════════════════════
   25. BANNER DE COOKIES
   ═══════════════════════════════════════════════════════════════ */
.ck {
  position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(640px, 100% - 32px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
  padding: 18px 20px; border-radius: 22px; color: #f5f5f7; font-size: 14px; line-height: 1.45;
  background: rgba(29, 29, 31, .86);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.ck.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ck p { color: #d2d2d7; }
.ck a { color: var(--link-dark); }
.ck-btns { display: flex; gap: 8px; }
.ck .btn { min-height: 38px; padding: 0 18px; font-size: 14px; }
.ck .btn-secondary { background: rgba(255, 255, 255, .14); }
@media (max-width: 560px) { .ck { grid-template-columns: 1fr; } .ck-btns .btn { flex: 1; } }
.linkbtn { border: 0; padding: 0; background: none; font: inherit; color: #424245; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   26. PÁGINAS INTERNAS (legales, gracias)
   ═══════════════════════════════════════════════════════════════ */
.doc { background: #fff; color: var(--ink); padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(80px, 9vw, 128px); }
.doc-head { padding-bottom: clamp(28px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 48px); box-shadow: inset 0 -1px 0 var(--hair-light); }
.doc-head .h2 { font-size: clamp(36px, 3.4vw + 16px, 64px); }
.doc-meta { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.doc-body { font-size: 17px; line-height: 1.6; color: #333336; }
.doc-body h2 { margin: 48px 0 14px; font-size: clamp(22px, .8vw + 16px, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.022em; color: var(--ink); }
.doc-body h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.016em; color: var(--ink); }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table { margin-bottom: 16px; }
.doc-body ul { list-style: disc; padding-left: 1.3em; }
.doc-body ol { list-style: decimal; padding-left: 1.3em; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--link-light); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; box-shadow: inset 0 -1px 0 var(--hair-light); }
.doc-body th { font-weight: 600; color: var(--ink); }
.doc-table { overflow-x: auto; }
.doc-box { padding: 20px 22px; border-radius: var(--r-lg); background: var(--mist); margin-bottom: 16px; }
.pendiente { background: #fff1b8; color: #6b4f00; padding: 1px 6px; border-radius: 5px; font-weight: 600; font-size: .94em; }

.thanks { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; background: #000; color: var(--on-dark); }
.thanks-bolt { width: 64px; height: auto; margin: 0 auto 28px; }
.thanks h1 { font-size: clamp(44px, 5vw + 16px, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.thanks .lead { margin: 18px auto 0; max-width: 34ch; }
.thanks-ctas { margin-top: 32px; display: flex; gap: 12px 26px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* El atributo hidden siempre gana (botones de WhatsApp sin número, etc.) */
[hidden] { display: none !important; }

/* La casilla de privacidad no usa la etiqueta flotante de los demás campos */
.field .check {
  position: static; transform: none; white-space: normal; max-width: none; overflow: visible;
  font-size: 15px; color: var(--on-dark-2); pointer-events: auto; text-overflow: clip;
}
/* Si no hay número de WhatsApp, no dejar hueco */
.contact-ctas:not(:has(> :not([hidden]))) { display: none; }

/* Sin rayita de más cuando el último link del pie está oculto */
.foot-bottom nav a:has(+ a[hidden]) { box-shadow: none; }
