/* ============================================================
   Maestry.co — hoja de estilo del sitio público
   Construida sobre los tokens del Maestry Design System
   (assets/css/ds/*.css). No introduce colores fuera del núcleo
   de marca: ink · gold · purple.

   Traducción del lenguaje visual de XGaige (cian neón #04CECE)
   al núcleo Maestry: el gradiente y los glows pasan de
   cian/azul a purple → gold sobre ink-900.
   ============================================================ */

/* ---------- 1. Alias locales sobre tokens del DS ---------- */
:root {
  --bg:            var(--ink-900);          /* #08070C */
  --bg-deep:       #15121C;
  --bg-raised:     var(--ink-800);          /* #1E1929 */
  --glass:         rgba(30, 25, 41, 0.5);

  --gold:          var(--gold-500);         /* #E0B24E */
  --gold-bright:   var(--gold-100);         /* #F7E3A6 */
  --gold-deep:     var(--gold-700);
  --violet:        var(--purple-600);       /* #7A2FBF */
  --violet-light:  var(--purple-300);       /* #A96AE0 */

  --txt:           #F5F1EA;
  --txt-2:         var(--ink-200);          /* #B9B2C4 */
  --txt-3:         var(--ink-300);          /* #8E86A0 */

  --rule:          rgba(224, 178, 78, 0.22);
  --rule-soft:     rgba(224, 178, 78, 0.10);
  --rule-violet:   rgba(122, 47, 191, 0.28);

  /* El "gradiente de marca": reemplaza el azul→cian de XGaige */
  --grad-brand:    linear-gradient(135deg, var(--violet-light) 12%, var(--gold) 88%);
  --grad-soft:     linear-gradient(113deg, rgba(245,241,234,0.62) 3%, rgba(245,241,234,0.22) 112%);
  --grad-rule:     linear-gradient(270deg, rgba(8,7,12,0) 0%, var(--gold) 50%, rgba(8,7,12,0) 100%);
  --grad-rule-v:   linear-gradient(270deg, rgba(8,7,12,0) 0%, var(--violet-light) 50%, rgba(8,7,12,0) 100%);

  --glow-gold:     0 0 24px rgba(224, 178, 78, 0.35);
  --shell:         1180px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-ui), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grano fino — mismo recurso que investors.maestry.co, mantiene
   coherencia entre las dos propiedades de la marca. */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(224, 178, 78, 0.28); color: #FFF; }

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

.shell { width: min(100% - 10vw, var(--shell)); margin-inline: auto; }
section[id] { scroll-margin-top: 110px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono), monospace; font-variant-numeric: tabular-nums; }

/* Wordmark — Cinzel está reservada para la marca, nunca para interfaz. */
.wordmark {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Texto con el gradiente de marca (equivalente al .text-special de XGaige) */
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-soft {
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 3. Animaciones base (heredadas de XGaige) ---------- */
@keyframes float      { 0% { transform: translateY(0) } 50% { transform: translateY(18px) } 100% { transform: translateY(0) } }
@keyframes pulseGlow  { 0%,100% { opacity: .55 } 50% { opacity: 1 } }
@keyframes bounceDown { from { transform: translateY(0) } to { transform: translateY(26px) } }
@keyframes fadeSeq    { 0% { opacity: 0 } 100% { opacity: 1 } }
@keyframes marquee    { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes spinSlow   { to { transform: rotate(360deg) } }

/* Red de seguridad: AOS deja todo en opacity:0 hasta que se inicializa. Si el
   script no carga (bloqueado, error de red), la página quedaría en blanco.
   `.no-aos` se aplica desde site.js cuando AOS no está disponible, y el
   <noscript> del documento cubre el caso sin JavaScript. */
html.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 4. Auroras (el "blur blob" de XGaige, en oro/púrpura) ---------- */
.aurora {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
}
.aurora.gold   { background: rgba(224, 178, 78, 0.16); }
.aurora.violet { background: rgba(122, 47, 191, 0.20); }

/* ---------- 5. Header (pill flotante, hereda de XGaige) ---------- */
.site-header {
  position: sticky;
  top: 20px;
  z-index: var(--z-nav);
  width: min(96%, 1200px);
  margin: 20px auto 0;
  padding: 12px 14px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  background: rgba(12, 10, 18, 0.82);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 1px 0 rgba(224,178,78,.08) inset, 0 10px 40px rgba(0,0,0,.55);
}

/* `backdrop-filter` convierte al header en bloque contenedor de sus
   descendientes `position:fixed` — lo que dejaba el cajón móvil atrapado
   dentro de la píldora. Con el menú abierto se cambia por un fondo sólido
   (sin filtro) para liberar el posicionamiento. */
.site-header.menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #0C0A12;
  /* Por encima del cajón, para que el botón de cerrar siga siendo alcanzable. */
  z-index: var(--z-levelUp);
}

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-lockup img { height: 42px; width: auto; }
.brand-lockup .brand-tag {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--txt-3); border-left: 1px solid var(--rule); padding-left: 10px;
}

.nav-shell { display: flex; align-items: center; gap: 28px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  position: relative;
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--txt-2);
  transition: color .25s ease;
  padding: 4px 0;
}
.nav-menu a:hover { color: var(--txt); }
.nav-menu a::before {
  content: '';
  position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 1px;
  background: var(--grad-rule);
  box-shadow: 0 -6px 18px 1px var(--gold);
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
.nav-menu a.active { color: var(--gold-bright); }
.nav-menu a.active::before { opacity: 1; }

/* Botón principal — el .btn-main de XGaige, con glow oro */
.btn-main {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(224, 178, 78, 0.55);
  background: rgba(224, 178, 78, 0.06);
  color: var(--gold-bright);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  line-height: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 14px rgba(224,178,78,.22), 0 0 13px rgba(224,178,78,.20) inset;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-main:hover {
  transform: translateY(-3px);
  background: rgba(224, 178, 78, 0.12);
  box-shadow: 0 8px 22px rgba(224,178,78,.34), 0 0 22px rgba(224,178,78,.30) inset;
}
.btn-main.solid {
  background: var(--gold);
  color: var(--ink-900);
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(224, 178, 78, 0.32);
}
.btn-main.solid:hover { background: var(--gold-bright); }

/* Toggle de idioma — mismo componente que el Investor Hub */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius-full);
  overflow: hidden; flex-shrink: 0;
}
.lang-toggle .lang-btn {
  display: inline-block;
  background: transparent; border: 0; cursor: pointer;
  padding: 7px 11px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(185, 178, 196, .5);
  transition: color .25s, background .25s;
}
.lang-toggle .lang-btn.active { color: var(--gold); background: rgba(224, 178, 78, .12); }

/* Hamburguesa */
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger .line {
  display: block; width: 26px; height: 2px; margin: 5px auto;
  border-radius: var(--radius-full); background: var(--gold);
  transition: all .22s ease-in-out;
}
.hamburger.is-active .line:nth-child(2) { opacity: 0; }
.hamburger.is-active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(90px, 12vh, 150px) 5vw clamp(40px, 8vh, 90px);
  overflow: hidden;
}
.hero .aurora.a1 { width: 820px; height: 820px; top: -28%; right: -14%; }
.hero .aurora.a2 { width: 620px; height: 620px; bottom: -22%; left: -12%; }

.hero-inner { position: relative; z-index: 2; max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .6;
}

.hero-title {
  font-family: var(--font-ui), sans-serif;
  font-weight: 300;
  font-size: clamp(38px, 7.2vw, 92px);
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-title strong { font-weight: 700; }

.hero-dek {
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--txt-2);
  max-width: 720px;
  margin: 28px auto 38px;
  text-wrap: balance;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-ghost {
  display: inline-block; padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule-violet);
  color: var(--txt-2);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  transition: border-color .25s, color .25s, transform .25s;
}
.btn-ghost:hover { border-color: var(--violet-light); color: var(--txt); transform: translateY(-3px); }

/* Emblema flotante — sustituye al logo Lottie de XGaige */
.hero-emblem {
  position: relative; z-index: 2;
  width: clamp(160px, 22vw, 260px);
  margin-top: clamp(44px, 7vh, 80px);
  animation: float 4500ms ease-in-out infinite;
  filter: drop-shadow(0 24px 60px rgba(224, 178, 78, 0.28));
}
.hero-emblem::after {
  content: '';
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,178,78,.20) 0%, transparent 62%);
  animation: pulseGlow 4000ms ease-in-out infinite;
  z-index: -1;
}

/* Flecha de scroll (idéntica en comportamiento a XGaige) */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 40px; opacity: .85;
}
.scroll-cue span {
  width: 15px; height: 15px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounceDown 1.5s ease-in-out infinite alternate, fadeSeq 1.5s ease-in-out infinite alternate;
}
.scroll-cue span:last-child { margin-top: -8px; animation-direction: alternate-reverse; }

/* ---------- 7. Marquee con scrub de scroll (GSAP) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vh, 70px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-ui), sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 11vw, 150px);
  letter-spacing: -.045em;
  line-height: 1;
  color: rgba(245, 241, 234, .26);
}
.marquee-track > span { padding-right: .35em; }

/* ---------- 8. Secciones y rejilla ---------- */
.section { position: relative; padding: clamp(70px, 11vh, 130px) 0; }
.section.deep   { background: var(--bg-deep); }
.section.ruled::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 28%, var(--rule) 72%, transparent);
}

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head.center { margin-inline: auto; }

.kicker {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 18px;
}
.sec-title {
  font-family: var(--font-ui), sans-serif;
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.sec-title strong { font-weight: 700; }
.sec-dek {
  margin-top: 20px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--txt-2);
  max-width: 640px;
}
.sec-head.center .sec-dek { margin-inline: auto; }

/* ---------- 9. Superficie de vidrio (bg-card de XGaige) ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(124%);
  -webkit-backdrop-filter: blur(14px) saturate(124%);
  border: 1px solid var(--rule-soft);
}

/* Tarjeta grande con halo radial (container-card de XGaige) */
.feature-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule-violet);
}
.feature-card::before {
  content: '';
  position: absolute; left: 12%; top: -20%;
  width: 132%; height: 132%;
  background: radial-gradient(50% 50% at 50% 51%, rgba(122,47,191,.28) 0%, transparent 100%);
  z-index: -1;
}
.feature-card > * { position: relative; }
.feature-card .body { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--txt-2); }
.feature-card .shot { max-width: 300px; margin-inline: auto; width: 100%; }

/* Filete corto sobre un párrafo (text-p-card de XGaige) */
.railed { margin-top: 34px; }
.railed::before {
  content: '';
  display: block;
  width: 164px; height: 1px;
  margin-bottom: 22px;
  background: var(--grad-brand);
  box-shadow: 0 4px 20px 1px rgba(224, 178, 78, .3);
}

/* ---------- 10. Banda de cifras ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border-block: 1px solid var(--rule-soft);
}
.stat {
  background: var(--bg);
  padding: clamp(26px, 4vw, 42px) clamp(16px, 2.4vw, 30px);
  text-align: center;
}
.stat .n {
  font-family: var(--font-mono), monospace;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold);
}
.stat .l {
  margin-top: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3);
  line-height: 1.5;
}

/* ---------- 11. Mapa de red (SVG animado con scrub) ---------- */
.map-wrap { position: relative; max-width: 980px; margin-inline: auto; }
.map-wrap .aurora { width: 420px; height: 420px; top: 16%; left: 50%; transform: translateX(-50%); opacity: .55; }
#network-map { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
#network-map .link {
  fill: none;
  stroke: url(#linkGrad);
  stroke-width: 1.1;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(224,178,78,.55));
}
#network-map .node { fill: var(--gold); filter: drop-shadow(0 0 7px rgba(224,178,78,.85)); }
#network-map .node-halo { fill: rgba(224,178,78,.14); }
#network-map .node-label {
  font-family: var(--font-ui), sans-serif;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  fill: var(--txt-3);
}
#network-map .land { fill: none; stroke: rgba(224,178,78,.18); stroke-width: .6; }
#network-map .globe-fill { fill: rgba(122,47,191,.10); }

/* ---------- 12. Verticales ---------- */
.verticals { display: grid; gap: 16px; }
.vertical {
  position: relative;
  display: grid;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 183, 232, .09);
  transition: border-color .3s ease, transform .3s ease;
}
.vertical::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 1px;
  /* Filete de dato: uno de los cuatro usos permitidos del acento de vertical. */
  background: linear-gradient(270deg, rgba(8,7,12,0) 0%, var(--accent, var(--violet-light)) 50%, rgba(8,7,12,0) 100%);
}
.vertical:hover { border-color: var(--rule); transform: translateY(-2px); }

.vertical .emblem {
  width: clamp(78px, 9vw, 104px);
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.5));
}
.vertical .v-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.v-name {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700; letter-spacing: -.015em;
}
.v-sub {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3);
  margin-top: 4px;
}
.v-body { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--txt-2); }
.v-body strong { color: var(--gold); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--txt-2);
  white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live  { color: var(--status-success); border-color: rgba(63,190,134,.4); }
/* Chip de vertical: segundo uso permitido del acento. */
.vertical .chip { border-color: var(--accent-soft, var(--rule)); }
.chip.build { color: var(--gold);           border-color: rgba(224,178,78,.4); }
.chip.next  { color: var(--violet-light);   border-color: var(--rule-violet); }
.chip.queue { color: var(--txt-3);          border-color: rgba(142,134,160,.3); }

/* ---------- 13. Cómo funciona ---------- */
.how {
  position: relative;
  background: linear-gradient(313deg, rgba(61, 21, 96, .55) 0%, rgba(21, 18, 28, .9) 100%);
  overflow: hidden;
}
.how .aurora { width: 460px; height: 460px; bottom: -18%; left: -8%; }

.steps { display: grid; gap: 18px; margin-top: clamp(34px, 5vh, 54px); }
.step {
  position: relative;
  padding: clamp(28px, 3.6vw, 42px) clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 241, 234, .10);
  text-align: center;
}
.step::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 30%; height: 1px;
  background: var(--grad-rule);
  box-shadow: 0 4px 20px 1px rgba(224, 178, 78, .3);
}
.step .step-icon { width: 92px; height: 92px; margin: 0 auto 20px; }
.step .step-icon svg { width: 100%; height: 100%; overflow: visible; }
.step h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 10px;
}
.step p { font-size: 15px; line-height: 1.6; color: var(--txt-2); }

/* Iconos SVG animados — reemplazan los Lottie de XGaige */
.ico-ring   { animation: spinSlow 14s linear infinite; transform-origin: 50% 50%; }
.ico-pulse  { animation: pulseGlow 2.4s ease-in-out infinite; }
.ico-rise   { animation: float 3200ms ease-in-out infinite; }

/* Modelo de dos pagadores */
.payers { display: grid; gap: 16px; margin-top: 18px; }
.payer {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft);
}
.payer h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.payer p { font-size: 15px; line-height: 1.65; color: var(--txt-2); }
.payer p + p { margin-top: 10px; }

/* ---------- 14. Acordeón "Por qué Maestry" ---------- */
.why-grid { display: grid; gap: clamp(30px, 5vw, 64px); align-items: center; }
.why-art { position: relative; }
.why-art img {
  width: 100%; max-width: 420px; margin-inline: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.why-art .aurora { width: 420px; height: 420px; top: 10%; left: 50%; transform: translateX(-50%); }

.accordion { display: grid; gap: 12px; margin-top: 32px; }
.acc-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-soft);
  background: linear-gradient(313deg, rgba(61,21,96,.22) 0%, rgba(30,25,41,.9) 100%);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  color: var(--txt);
  transition: color .25s;
}
.acc-trigger:hover { color: var(--gold-bright); }
.acc-trigger .plus {
  position: relative; flex-shrink: 0;
  width: 16px; height: 16px;
}
.acc-trigger .plus::before,
.acc-trigger .plus::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--gold);
  transition: transform .3s ease, opacity .3s ease;
}
.acc-trigger .plus::before { width: 16px; height: 1.5px; }
.acc-trigger .plus::after  { width: 1.5px; height: 16px; }
.acc-item.open .acc-trigger .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 24px 22px;
  font-size: 15px; line-height: 1.7; color: var(--txt-2);
}

/* ---------- 15. Marcas (Swiper) ---------- */
.brands { margin-top: clamp(34px, 5vh, 54px); }
.brands .swiper-wrapper { align-items: center; }
.brands .swiper-slide { display: flex; align-items: center; justify-content: center; }
.brands img {
  width: 130px; height: 62px;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(1) brightness(1.7);
  transition: opacity .3s ease, filter .3s ease;
}
.brands .swiper-slide:hover img { opacity: 1; filter: grayscale(0) brightness(1); }

/* ---------- 16. Producto (mockups) ---------- */
.shots { display: grid; gap: 20px; margin-top: clamp(34px, 5vh, 54px); }
.shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  background: var(--bg-raised);
  transition: transform .35s ease, border-color .35s ease;
}
.shot:hover { transform: translateY(-6px); border-color: var(--rule); }
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 14px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3);
  border-top: 1px solid var(--rule-soft);
}

/* ---------- 17. Formulario ---------- */
.contact {
  position: relative;
  background: linear-gradient(313deg, rgba(61,21,96,.42) 0%, rgba(21,18,28,.95) 100%);
  overflow: hidden;
}
.contact .aurora { width: 620px; height: 620px; top: -20%; right: -12%; }

.form-card {
  position: relative; z-index: 1;
  max-width: 520px; width: 100%;
  margin: clamp(34px, 5vh, 56px) auto 0;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule-violet);
  background: rgba(245, 241, 234, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--elev-2);
}
.field { margin-bottom: 14px; text-align: left; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--txt-3);
}
.field input, .field select {
  width: 100%;
  min-height: var(--layout-min-touch-target);
  padding: 14px 20px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-full);
  background: rgba(245, 241, 234, .06);
  color: var(--txt);
  font-size: 14px;
  outline: none;
  transition: border-color .25s, background .25s, transform .25s;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--bg-raised); color: var(--txt); }
.field input::placeholder { color: var(--txt-3); }
.field input:focus, .field select:focus {
  border-color: var(--gold);
  background: rgba(224, 178, 78, .10);
  transform: translateY(-2px);
}
.form-card .btn-main { width: 100%; margin-top: 8px; padding: 17px 24px; border: 0; cursor: pointer; }
.form-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--txt-3); text-align: center; }
.form-msg { min-height: 20px; margin-top: 12px; font-size: 13px; text-align: center; }
.form-msg.err { color: var(--status-error); }
.form-msg.ok  { color: var(--status-success); }

/* ---------- 18. Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(46px, 7vh, 72px) 0 34px;
  border-top: 1px solid var(--rule-soft);
}
.foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px;
}
.foot-top .brand-lockup img { height: 54px; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.foot-nav a { font-size: 13px; font-weight: 600; color: var(--txt-2); transition: color .25s; }
.foot-nav a:hover { color: var(--gold-bright); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--txt-3);
}

/* ---------- 19. Bilingüe ---------- */
[data-lang="es"] .en { display: none !important; }
[data-lang="en"] .es { display: none !important; }

/* ---------- 20. Breakpoints ---------- */
@media (max-width: 960px) {
  .site-header { top: 12px; padding: 10px 12px 10px 18px; }
  .hamburger { display: block; }
  .nav-shell {
    /* Se anima `transform`, no `left`: mover `left` fuerza layout en cada
       frame y sobre esta página (backdrop-filter + auroras desenfocadas)
       la apertura tardaba cerca de un segundo. `translateX` se compone en
       GPU y entra en los 320 ms previstos. */
    position: fixed; inset: 0 auto 0 0;
    width: min(84%, 380px);
    transform: translateX(-100%);
    will-change: transform;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 42px;
    padding: 48px 40px;
    background: linear-gradient(180deg, #0A0810 0%, #17131F 100%);
    border-right: 1px solid var(--rule);
    transition: transform 320ms cubic-bezier(.87, .13, 0, .97);
    z-index: var(--z-modal);
  }
  .nav-shell.active { transform: translateX(0); }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 26px; }
  .nav-menu a { font-size: 19px; }
  .nav-menu a::before { bottom: -10px; }
}

@media (min-width: 700px) {
  .steps    { grid-template-columns: repeat(3, 1fr); }
  .payers   { grid-template-columns: repeat(3, 1fr); }
  .shots    { grid-template-columns: repeat(3, 1fr); }
  .vertical { grid-template-columns: auto 1fr; }
}

@media (min-width: 900px) {
  .feature-card { grid-template-columns: 1fr 42%; }
  .why-grid     { grid-template-columns: 44% 1fr; }
}

@media (min-width: 1400px) {
  .shell { width: min(100%, var(--shell)); }
}
