/* ============================================================
   GRUPO MAGJOSE — "El Documento Estratégico"
   Editorial oscuro · Fraunces + Archivo + IBM Plex Mono
   ============================================================ */

:root {
  --bg-0: #04060b;        /* noir */
  --bg-1: #0a1322;        /* navy profundo */
  --bg-2: #101b2d;        /* superficie elevada */
  --ink: #f3eee3;         /* marfil cálido — titulares */
  --body: #aab4c4;        /* texto */
  --muted: #66707f;       /* secundario */
  --cyan: #64ffda;        /* reliquia técnica (consola) */
  --gold: #d6b27c;        /* champagne — acento principal */
  --gold-bright: #f0deb9; /* champagne claro — brillos */
  --gold-soft: rgba(214, 178, 124, 0.08);
  --line: rgba(160, 170, 190, 0.13);
  --line-strong: rgba(180, 185, 200, 0.26);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --container: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(214, 178, 124, 0.22); color: var(--ink); }

/* ---------- Grano de papel ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Los hijos de grid no deben forzar el ancho de su columna */
.hero-grid > *, .split > *, .versus > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
img, svg { max-width: 100%; }

/* ============ Tipografía ============ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 120;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 90;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 500;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: #c4d2e8;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 8px 30px -10px rgba(214, 178, 124, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 1.15em 2.2em; font-size: 0.92rem; }

.btn-whatsapp {
  background: transparent;
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}
.btn-whatsapp:hover { border-color: #4ade80; background: rgba(74, 222, 128, 0.06); color: #4ade80; }

/* ============ Barra de lectura ============ */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(214, 178, 124, 0.6);
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(4, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(214, 178, 124, 0.55);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0;
}
.brand-dot { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

.btn-nav { padding: 0.7em 1.3em; font-size: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 10px clamp(20px, 4vw, 40px) 26px;
  background: rgba(4, 11, 22, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile-cta { color: var(--gold) !important; }
.nav.open .nav-mobile { display: flex; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 190px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(214, 178, 124, 0.07), transparent 65%),
    radial-gradient(700px 500px at 8% 110%, rgba(216, 185, 138, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 140%);
}
@keyframes aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); opacity: 0.85; }
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(700px 420px at 70% 15%, rgba(214, 178, 124, 0.05), transparent 60%),
    radial-gradient(560px 420px at 20% 80%, rgba(216, 185, 138, 0.04), transparent 60%);
  animation: aurora 16s ease-in-out infinite;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* — Sello ajolote (marca de agua) — */
@keyframes seal-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.015); }
}
.hero-seal {
  position: absolute;
  top: 2%;
  right: clamp(-220px, -12vw, -80px);
  width: clamp(480px, 52vw, 820px);
  opacity: 0.09;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: seal-breathe 14s ease-in-out infinite;
  z-index: 0;
}

.fork-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 80vw);
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero-seal { width: 420px; right: -160px; opacity: 0.06; }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 176, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 176, 215, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(60px, 8vh, 96px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.eyebrow-rule {
  width: 42px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* — Revelado cinemático del titular — */
.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.mask-inner {
  display: block;
  transform: translateY(112%);
  animation: line-rise 1.1s var(--ease-out) forwards;
}
.mask-line:nth-child(2) .mask-inner { animation-delay: 0.18s; }
@keyframes line-rise {
  to { transform: translateY(0); }
}

.hero-copy .lede { margin-top: 30px; max-width: 56ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-claims {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-claims li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-claims li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* — Tarjeta-documento del hero — */
.hero-doc {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 32, 56, 0.65), rgba(10, 25, 47, 0.35));
  backdrop-filter: blur(6px);
  padding: 30px 30px 24px;
  position: relative;
}
.hero-doc::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 46px; height: 46px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.doc-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.doc-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(216, 185, 138, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.doc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: #d7e2f2;
  margin: 0 0 24px;
}

.doc-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* — Cinta inferior del hero — */
.hero-strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 25, 47, 0.4);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-sep {
  flex: 1;
  height: 1px;
  min-width: 30px;
  background: var(--line);
}

/* ============ Secciones ============ */
.section {
  position: relative;
  padding-block: clamp(84px, 12vh, 140px);
}

.section-deep {
  position: relative;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(214, 178, 124, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 30%, var(--bg-1) 70%, var(--bg-0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Circuitos sutiles — trazos de PCB dorados */
.section-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cg fill='none' stroke='%23d6b27c' stroke-width='1'%3E%3Cpath d='M20 50h96l34 34v72'/%3E%3Cpath d='M360 70h-78l-28 28v50h-58'/%3E%3Cpath d='M44 340v-64l30-30h78'/%3E%3Cpath d='M318 352v-86l-44-44'/%3E%3Cpath d='M190 18v54l28 28h74'/%3E%3Cpath d='M120 360h70l24-24'/%3E%3C/g%3E%3Cg fill='%23d6b27c'%3E%3Ccircle cx='20' cy='50' r='2.6'/%3E%3Ccircle cx='150' cy='156' r='2.6'/%3E%3Ccircle cx='360' cy='70' r='2.6'/%3E%3Ccircle cx='196' cy='148' r='2.6'/%3E%3Ccircle cx='44' cy='340' r='2.6'/%3E%3Ccircle cx='152' cy='246' r='2.6'/%3E%3Ccircle cx='318' cy='352' r='2.6'/%3E%3Ccircle cx='274' cy='222' r='2.6'/%3E%3Ccircle cx='190' cy='18' r='2.6'/%3E%3Ccircle cx='292' cy='100' r='2.6'/%3E%3Ccircle cx='214' cy='336' r='2.6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d6b27c' stroke-width='1'%3E%3Crect x='142' y='148' width='16' height='16'/%3E%3Crect x='266' y='214' width='16' height='16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 380px 380px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 20%, transparent 78%);
}
.section-deep > .container { position: relative; }

.section-fork { position: relative; overflow: hidden; }
.section-fork .container { position: relative; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 42px);
  margin-bottom: clamp(36px, 5vh, 56px);
}

.sec-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 178, 124, 0.38);
  line-height: 1;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.sec-intro {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: #c4d2e8;
  max-width: 64ch;
  margin-bottom: clamp(40px, 5vh, 60px);
}

/* — Split: texto + métrica — */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split-copy p { max-width: 58ch; }

.metric-card {
  margin: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: linear-gradient(170deg, var(--bg-2), rgba(10, 25, 47, 0.5));
  padding: clamp(30px, 4vw, 48px);
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Barrido de escaneo al revelarse */
.metric-card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(214, 178, 124, 0.07), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}
.metric-card.visible::after { animation: scan-sweep 1.4s 0.35s var(--ease-out) forwards; }
@keyframes scan-sweep {
  to { left: 130%; }
}

.metric-card-gold {
  border-top-color: var(--gold-bright);
  background: linear-gradient(170deg, rgba(38, 32, 20, 0.4), rgba(10, 19, 34, 0.6));
}
.metric-card-gold .metric-value { color: var(--gold-bright); }

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.metric-suffix {
  font-size: 0.36em;
  font-style: italic;
  letter-spacing: 0;
}

.metric-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 18px;
}
.metric-desc {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}

/* — Versus — */
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  align-items: stretch;
}

.versus-card {
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background: rgba(8, 18, 33, 0.55);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.versus-generic { opacity: 0.82; }
.versus-generic h3 { color: #92a6c2; }

.versus-magjose {
  border-color: rgba(214, 178, 124, 0.35);
  background:
    linear-gradient(165deg, var(--gold-soft), transparent 55%),
    rgba(12, 28, 50, 0.75);
  position: relative;
}
.versus-magjose::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 46px; height: 46px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}
.versus-magjose:hover { transform: translateY(-4px); border-color: rgba(214, 178, 124, 0.6); }

/* Pulso de borde al revelarse la carta destacada */
.versus-magjose.visible { animation: edge-pulse 1.8s 0.5s ease-out 1; }
@keyframes edge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 178, 124, 0.0); }
  35% { box-shadow: 0 0 40px -6px rgba(214, 178, 124, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(214, 178, 124, 0.0); }
}

.versus-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.versus-magjose .versus-role { color: var(--gold); }

.versus-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin-bottom: 16px;
}

.versus-card ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.versus-card li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.versus-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.versus-magjose li::before { content: "→"; color: var(--gold); }

/* — Bóveda (soberanía) — */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(8, 18, 33, 0.4);
}

.vault-item {
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.vault-item:last-child { border-right: 0; }
.vault-item:hover { background: var(--gold-soft); }

.vault-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 40px;
}
.vault-item h3 { font-size: 1.18rem; margin-bottom: 12px; }
.vault-item p { font-size: 0.93rem; line-height: 1.65; color: var(--muted); }

.alliance {
  margin-top: clamp(36px, 5vh, 52px);
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  padding: 26px clamp(24px, 3vw, 40px);
  max-width: 860px;
}
.alliance p { color: #cfd9e8; font-size: 1.02rem; }
.alliance strong { color: var(--gold); }

/* — Fases — */
.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  counter-reset: fase;
}

.phase {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 33, 0.55);
}
.phase::after {
  content: "";
  position: absolute;
  top: 50%; right: -15px;
  width: 14px; height: 1px;
  background: var(--line-strong);
}
.phase:last-child::after { display: none; }

.phase-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.phase h3 { font-size: 1.12rem; margin-bottom: 10px; }
.phase p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

/* — Política de discreción — */
.discretion {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(214, 178, 124, 0.06), transparent 65%),
    var(--bg-0);
  padding-block: clamp(56px, 8vh, 88px);
}
.discretion-inner {
  text-align: center;
  max-width: 760px;
}
.discretion .sec-label { margin-bottom: 24px; }
.discretion-line {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
}
.discretion-line em {
  font-style: italic;
  color: var(--gold);
}
.discretion-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* — Nota de dirección (contacto) — */
.direction-note {
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  padding: 20px 24px;
  margin-bottom: 34px;
}
.direction-note p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #cdd5e0;
}
.direction-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--gold-bright);
  margin: 14px 0 0 !important;
}
.direction-sig span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* — Bifurcación / CTA — */
.fork-cta {
  margin-top: clamp(48px, 7vh, 72px);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vh, 64px);
}

.fork-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto 34px;
}
.fork-line em { color: var(--gold); }

/* ============ Contacto ============ */
.section-contact {
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(214, 178, 124, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 22px; }
.contact-copy > p { max-width: 50ch; }

.contact-steps {
  list-style: none;
  margin: 32px 0 38px;
  padding: 0;
}
.contact-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: #c4d2e8;
}
.contact-steps li:last-child { border-bottom: 1px solid var(--line); }
.contact-steps span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid rgba(214, 178, 124, 0.4);
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-direct {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* — Formulario — */
.lead-form {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--bg-2), rgba(8, 18, 33, 0.7));
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}
.lead-form::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 46px; height: 46px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.form-progress {
  height: 2px;
  background: var(--line);
  margin-bottom: 32px;
  overflow: hidden;
}
.form-progress span {
  display: block;
  height: 100%;
  width: 33.3%;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step legend { max-width: 100%; }
.lead-form input, .lead-form select, .lead-form textarea { min-width: 0; }

.form-step legend {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(214, 178, 124, 0.35);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.lead-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: rgba(4, 11, 22, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-form textarea { resize: vertical; min-height: 96px; }

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 178, 124, 0.12);
}

.lead-form input.invalid,
.lead-form select.invalid,
.lead-form textarea.invalid {
  border-color: #f87171;
}

.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lead-form select:invalid { color: var(--muted); }
.lead-form option { background: var(--bg-1); color: var(--ink); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}
.form-nav .btn { flex: 0 0 auto; }
.form-nav #formNext, .form-nav #formSubmit { margin-left: auto; }

.btn[disabled] { opacity: 0.55; cursor: wait; }

.form-error {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #f87171;
}

.form-success { text-align: center; padding: 30px 10px; }
.form-success h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--gold);
}
.form-success p { color: var(--body); max-width: 42ch; margin-inline: auto; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding-top: clamp(50px, 7vh, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: 48px;
}

@media (max-width: 880px) and (min-width: 561px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-seal {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 10px 34px -8px rgba(214, 178, 124, 0.35);
}

.footer-brand .brand-name { font-size: 1.25rem; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-top: 18px;
  font-size: 1.05rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 9px;
}
.footer-col a:hover { color: var(--gold); text-decoration: none; }

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 26px;
}
.colophon p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
}
.colophon strong { color: var(--gold); font-weight: 600; }
.colophon em { color: var(--body); }
.colophon-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-right: 10px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-base p { margin: 0; }

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0c2a22;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px -8px rgba(74, 222, 128, 0.35);
  text-decoration: none;
}

/* ============ Centro legal ============ */
.legal-body { background: var(--bg-0); }

.legal-main { padding-top: clamp(120px, 16vh, 160px); padding-bottom: clamp(60px, 9vh, 110px); }

.btn-nav-back { padding: 0.7em 1.3em; font-size: 0.75rem; margin-left: auto; }

.legal-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 110px;
}
.legal-toc nav {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-toc nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.legal-toc nav a:hover { color: var(--gold); text-decoration: none; }

.legal-updated {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

.legal-docs { display: flex; flex-direction: column; gap: clamp(60px, 9vh, 100px); }

.legal-doc {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(14, 32, 56, 0.4), rgba(8, 18, 33, 0.55));
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  scroll-margin-top: 110px;
}
.legal-doc::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 46px; height: 46px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.legal-doc-head { margin-bottom: clamp(28px, 4vh, 40px); }
.legal-doc-head .doc-code { display: block; margin-bottom: 14px; }
.legal-doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
}
.legal-doc-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 60ch;
}

.legal-doc section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.legal-doc h2 {
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.legal-doc p, .legal-doc li { font-size: 0.97rem; line-height: 1.75; }
.legal-doc ul { margin: 0 0 1.1em; padding-left: 20px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc li::marker { color: var(--gold); }
.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 1px 6px;
  border-radius: 3px;
}

@media (max-width: 880px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ============ Aviso de cookies ============ */
.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  background: rgba(8, 18, 33, 0.96);
  backdrop-filter: blur(12px);
  padding: 22px 24px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
}
.cookie-banner::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 32px; height: 32px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 16px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 0.75em 1.3em; font-size: 0.72rem; }

.form-consent {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ Animaciones ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.32s; }
.d-4 { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .mask-inner { transform: none; }
  .hero-canvas { display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .vault-grid { grid-template-columns: 1fr 1fr; }
  .vault-item:nth-child(2n) { border-right: 0; }
  .vault-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase::after { display: none; }
}

@media (max-width: 880px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(4, 11, 22, 0.82); backdrop-filter: blur(14px); }

  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-doc { max-width: 520px; }

  .split { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .vault-grid { grid-template-columns: 1fr; }
  .vault-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .vault-item:last-child { border-bottom: 0; }
  .sec-head { flex-direction: column; gap: 10px; }
  .strip-sep { display: none; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
