/* ==========================================================
   Sterling Financial Group — landing
   Paleta: medianoche + oro (tomada del logo y el banner)
   ========================================================== */
:root {
  --midnight: #0C1A3D;
  --navy: #142A5C;
  --navy-2: #1B3772;
  --gold: #D4A63A;
  --gold-hi: #F2D58A;
  --gold-lo: #A9782A;
  --mist: #EEF2F9;
  --paper: #FFFFFF;
  --ink: #101B38;
  --ink-soft: #4A5672;
  --wa: #1FAF54;
  --wa-dark: #178A42;

  --gold-grad: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 45%, var(--gold) 70%, var(--gold-lo) 100%);
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 999px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--midnight); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Iconos ---------- */
.ico-wa { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border-radius: var(--r-pill); border: 0;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-gold {
  color: var(--midnight);
  background: var(--gold-grad);
  background-size: 200% 100%;
  background-position: 0 0;
  box-shadow: 0 10px 28px -10px rgba(212, 166, 58, .7), inset 0 1px 0 rgba(255,255,255,.55);
  transition: background-position .5s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 14px 32px -10px rgba(212, 166, 58, .85), inset 0 1px 0 rgba(255,255,255,.55); }

.btn-wa { color: #fff; background: var(--wa); box-shadow: 0 10px 24px -12px rgba(31,175,84,.9); }
.btn-wa:hover { background: var(--wa-dark); }

.btn-ghost {
  color: #fff; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(242, 213, 138, .55);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold-hi); background: rgba(242, 213, 138, .08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 26, 61, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(242, 213, 138, .14);
  color: #fff;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .06em; }
.brand-sub {
  font-family: var(--serif); font-size: .78rem; letter-spacing: .14em; margin-top: .25rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--midnight); color: #fff;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(46, 86, 170, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(212, 166, 58, .16), transparent 70%),
    linear-gradient(180deg, var(--midnight) 0%, #0F2150 100%);
}
.hero-bg::after {
  /* vetas sutiles como el fondo texturizado del logo */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.kicker {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .22em;
  color: var(--gold-hi); margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--sans); font-style: italic; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em;
  max-width: 12ch;
}
.swoosh { display: block; width: min(100%, 420px); height: 22px; margin: .9rem 0 1.4rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.84); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.4rem; }

.pillars {
  list-style: none; margin: 0; padding: 1.2rem 0 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  border-top: 1px solid rgba(242, 213, 138, .22);
}
.pillars li {
  display: flex; align-items: center; gap: .65rem;
  padding: .2rem 1.4rem .2rem 0; margin-right: 1.4rem;
  font-size: .95rem; line-height: 1.25; color: rgba(255,255,255,.9);
  border-right: 1px solid rgba(242, 213, 138, .35);
}
.pillars li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.pillars svg { width: 34px; height: 34px; color: var(--gold); flex: none; }

/* El templo: la foto enmarcada como el emblema del logo */
.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.temple { margin: 0; position: relative; }
.temple-roof {
  height: clamp(54px, 7vw, 78px);
  margin: 0 -6%;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  position: relative;
}
.temple-roof::after {
  content: ""; position: absolute; inset: 9px 18px 0;
  background: var(--midnight);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .9;
}
.temple picture {
  display: block; position: relative;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-image: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)) 1;
  margin-top: 6px;
}
.temple picture::before {
  /* friso dorado */
  content: ""; position: absolute; left: -6px; right: -6px; top: -6px; height: 6px; background: var(--gold-grad);
}
.temple img { width: 100%; aspect-ratio: 676 / 728; object-fit: cover; }
.temple-base { margin: 6px -4% 0; height: 10px; background: var(--gold-grad); border-radius: 2px; position: relative; }
.temple-base::after { content: ""; position: absolute; left: -5%; right: -5%; top: 16px; height: 8px; background: var(--gold-grad); border-radius: 2px; opacity: .85; }

.chat-card {
  position: absolute; left: -12%; bottom: 14%;
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem .85rem .95rem;
  background: #fff; color: var(--ink); text-decoration: none;
  border-radius: var(--r-md);
  box-shadow: 0 24px 50px -18px rgba(3, 10, 30, .65);
  transition: transform .2s ease;
}
.chat-card:hover { transform: translateY(-3px); }
.chat-card .ico-wa { color: var(--wa); width: 30px; height: 30px; }
.chat-text { display: flex; flex-direction: column; line-height: 1.25; font-size: .9rem; color: var(--ink-soft); }
.chat-text strong { color: var(--ink); font-size: 1rem; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(31,175,84,.2); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.light { background: var(--paper); }
#proceso { background: var(--mist); }
.section.dark { background: var(--navy); color: #fff; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2, .sim-intro h2, .apply-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: .01em;
}
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 1rem; background: var(--gold-grad); border-radius: 2px;
}
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #D9DFEC; }
.product {
  padding: 2rem 2rem 2.2rem 0;
  border-bottom: 1px solid #D9DFEC;
  display: flex; flex-direction: column;
}
.product:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid #D9DFEC; }
.product-ico { width: 40px; height: 40px; color: var(--gold-lo); margin-bottom: 1.1rem; }
.product h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--midnight); }
.product p { margin: .6rem 0 1.4rem; color: var(--ink-soft); }
.product-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 700; color: var(--navy-2); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.product-link:hover { color: var(--gold-lo); }

/* ---------- Simulador ---------- */
#simulador {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(212,166,58,.12), transparent 70%),
    var(--navy);
}
.sim-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sim-intro p { margin-top: 1.1rem; color: rgba(255,255,255,.82); max-width: 44ch; }
.sim-intro .fine { font-size: .88rem; color: rgba(255,255,255,.6); margin-top: 1.6rem; padding-left: 1rem; border-left: 2px solid rgba(242,213,138,.4); }

.sim {
  background: var(--midnight);
  border: 1px solid rgba(242, 213, 138, .28);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.sim-field + .sim-field { margin-top: 1.6rem; }
.sim-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.sim-row label { font-weight: 600; color: rgba(255,255,255,.88); }
.sim-row output { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.sim-scale { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .35rem; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(255,255,255,.16) var(--p) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  border: 3px solid var(--midnight); box-shadow: 0 0 0 1.5px var(--gold);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  border: 3px solid var(--midnight); box-shadow: 0 0 0 1.5px var(--gold);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(242,213,138,.5); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(242,213,138,.5); }

.sim-result { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(242, 213, 138, .25); }
.sim-label { color: rgba(255,255,255,.7); font-size: .95rem; }
.sim-cuota {
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1.05; margin: .2rem 0 1rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.sim-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.6rem; }
.sim-detail div { background: rgba(255,255,255,.05); border-radius: var(--r-sm); padding: .8rem 1rem; }
.sim-detail dt { font-size: .85rem; color: rgba(255,255,255,.62); }
.sim-detail dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ---------- Proceso ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  opacity: .7;
}
.steps li { position: relative; }
.step-n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--midnight); color: var(--gold-hi);
  font-family: var(--serif); font-size: 1.5rem;
  box-shadow: 0 0 0 5px var(--mist), 0 0 0 6.5px var(--gold);
  margin-bottom: 1.3rem; position: relative;
}
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--midnight); }
.steps p { margin-top: .5rem; color: var(--ink-soft); }

.docs {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center;
  background: var(--paper); border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-left: 4px solid var(--gold);
}
.docs h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--midnight); }
.docs-text p { margin-top: .6rem; color: var(--ink-soft); }
.docs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.docs-list li { position: relative; padding-left: 1.8rem; font-weight: 600; color: var(--ink); }
.docs-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.5L12 5.5' fill='none' stroke='%230C1A3D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Solicitud ---------- */
.apply { background: var(--midnight); }
.apply-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.apply-copy p { margin-top: 1.1rem; color: rgba(255,255,255,.82); max-width: 42ch; }
.phone {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 2rem;
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-hi); text-decoration: none;
}
.phone .ico-wa { color: var(--wa); }
.phone:hover { color: #fff; }

.apply-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border-radius: var(--r-sm);
  border: 1.5px solid #CBD3E3; background: #FAFBFE;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,166,58,.25); background: #fff;
}
.field input[aria-invalid="true"] { border-color: #C0392B; }
.err { color: #B03A2E; font-size: .88rem; }
.form-note { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid #D3DAE8; }
.faq details:first-child { border-top: 1px solid #D3DAE8; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-weight: 700; font-size: 1.12rem; color: var(--midnight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(var(--gold-lo), var(--gold-lo)) center / 12px 2px no-repeat,
    linear-gradient(var(--gold-lo), var(--gold-lo)) center / 2px 12px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }

/* ---------- Cierre ---------- */
.closing {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(46, 86, 170, .5), transparent 70%),
    var(--midnight);
  color: #fff; text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(242,213,138,.2);
}
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.closing img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.closing-quote { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: #081330; color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-tag { margin-top: .9rem; font-family: var(--serif); letter-spacing: .18em; color: var(--gold-hi); font-size: .9rem; }
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-hi); }
.footer-contact p { color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: .3rem; }
.footer-contact a { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 2rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-legal p:first-child { max-width: 70ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: .55rem;
  height: 60px; padding: 0 1.2rem 0 1rem; border-radius: var(--r-pill);
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(10, 60, 30, .7);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.25, 1.45); opacity: 0; } }

/* ---------- Entrada del hero (único momento animado) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .hero-copy > :nth-child(6) { animation-delay: .38s; }
  .temple-roof { animation: drop .9s cubic-bezier(.2,.7,.2,1) .35s both; }
  .temple picture { animation: fade 1s ease .1s both; }
  .temple-base { animation: grow .8s cubic-bezier(.2,.7,.2,1) .45s both; }
  .chat-card { animation: rise .7s cubic-bezier(.2,.7,.2,1) .9s both; }
  .swoosh path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.2s ease .5s forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::before { animation: none; display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 1.2rem; }
  .products { grid-template-columns: 1fr 1fr; }
  .product, .product:not(:nth-child(3n+1)) { padding: 2rem 1.6rem 2.2rem 0; border-left: 0; }
  .product:nth-child(even) { padding-left: 1.6rem; border-left: 1px solid #D9DFEC; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; }
  .steps::before { display: none; }
  .chat-card { left: -4%; }
}

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 10px;
    background: transparent; border: 1px solid rgba(242,213,138,.35); border-radius: var(--r-sm); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--midnight); border-bottom: 1px solid rgba(242,213,138,.2);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 14ch; }
  .hero-visual { width: min(88%, 420px); margin-top: 1rem; }
  .sim-grid, .apply-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: .6rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; gap: .8rem; }
  .pillars li { border-right: 0; margin-right: 0; padding-right: 0; }
  .products { grid-template-columns: 1fr; }
  .product, .product:nth-child(even), .product:not(:nth-child(3n+1)) { padding: 1.7rem 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .docs-list { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  .chat-card { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: -1.6rem; white-space: nowrap; }
  .hero-visual { margin-bottom: 1.6rem; }
  .faq details p { padding-right: 0; }
  .wa-float { right: 14px; bottom: 14px; height: 56px; padding: 0 .9rem; }
  .wa-float-label { display: none; }
  .wa-float::before { transform-origin: center; }
}

/* ---------- Utilidades ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-404 { min-height: 100vh; display: grid; place-items: center; }
.muted-404 { color: rgba(255,255,255,.75); }
