/* ===== Paleta: azul, blanco y detalles dorados ===== */
:root {
  --navy: #1b2a4a;
  --navy-900: #13203a;
  --navy-700: #24375f;
  --celeste: #74acdf;
  --gold: #c9a24a;
  --gold-300: #e3c77f;
  --gold-700: #9c7a2c;
  --cream: #f6f4ef;
  --white: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e5e0d4;
  --wa: #25d366;
  --wa-700: #1da851;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(19, 32, 58, .25);
  --font: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --font-h: "Sofia Sans Condensed", "Sofia Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chips button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-300); outline-offset: 2px;
}
.btn--sm { padding: .7em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 22px -10px rgba(201,162,74,.8); }
.btn--gold:hover { background: var(--gold-300); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--wa { background: var(--wa); color: #0b3d1f; font-size: 1.08rem; padding: 1em 1.5em; }
.btn--wa:hover { background: var(--wa-700); color: var(--white); }
.btn.is-disabled { background: #d9dde3; color: #7b8494; box-shadow: none; cursor: not-allowed; transform: none; }

/* ===== Encabezado ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s;
}
.topbar.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font: 800 1.5rem/1 var(--font-h); color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold));
}
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(201,162,74,.55); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt b { font: 700 1.1rem/1.1 var(--font-h); }
.brand__txt small { font-size: .75rem; color: rgba(255,255,255,.7); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.82); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a.is-active { color: var(--white); border-bottom-color: var(--gold); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1240px) {
  .topbar__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-900); padding: 8px 16px 16px; margin: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.is-active { border-bottom-color: rgba(255,255,255,.08); color: var(--gold-300); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Inicio ===== */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    linear-gradient(170deg, rgba(116,172,223,.18) 0 22%, transparent 22% 100%),
    radial-gradient(1200px 500px at 85% 20%, rgba(116,172,223,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy) 45%, var(--navy-900));
  padding: 88px 0 0;
}
.hero__sun { position: absolute; right: -60px; top: 40px; width: 460px; height: 460px; color: var(--gold); opacity: .22; pointer-events: none; }
.hero__in { position: relative; max-width: 1160px; }
.eyebrow { display: inline-block; color: var(--gold-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; max-width: 820px; }
.hero__lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 600px; }
.hero__lead b { color: var(--gold-300); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.stats {
  list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.stats li { padding: 24px 20px 28px 0; border-right: 1px solid rgba(255,255,255,.14); }
.stats li + li { padding-left: 24px; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font: 700 1.3rem/1.2 var(--font-h); }
.stats b::before { content: ""; display: block; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 10px; }
.stats span { font-size: .9rem; color: rgba(255,255,255,.7); }
@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero__sun { width: 300px; height: 300px; right: -90px; top: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li + li { padding: 20px 12px 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
  .stats li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ===== Secciones ===== */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section__head { margin-bottom: 44px; max-width: 680px; }
.kicker { color: var(--gold-700); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--navy); }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.section__head--light h2 { color: var(--white); }
.section__head--light .section__sub { color: rgba(255,255,255,.78); }
.section__head--light .kicker { color: var(--gold-300); }
@media (max-width: 720px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* Paso a paso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.3rem/1 var(--font-h); color: var(--navy-900);
  background: var(--white); border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px #fbf3df;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }
.needs { margin-top: 28px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.needs h3 { font-size: 1.25rem; color: var(--gold-300); }
.needs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.needs li { display: flex; align-items: center; gap: 8px; }
.needs li::before { content: "✓"; color: var(--gold); font-weight: 800; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .needs ul { flex-direction: column; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.08rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fbf3df; color: var(--gold-700); font-size: 1.3rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ===== Simulador ===== */
.section--sim {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(116,172,223,.18), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-900));
}
.sim { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.card { background: var(--white); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.sim__form { border-top: 4px solid var(--gold); }
.field { margin-bottom: 22px; }
.field label, .field .lbl { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.num { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: var(--gold-300); font-size: .78rem; font-weight: 800; flex: none; }
input:not([type=range]), select {
  width: 100%; font: 500 1.02rem var(--font); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fcfbf8;
  transition: border-color .2s, background .2s;
}
input:not([type=range]):focus, select:focus { border-color: var(--navy); background: var(--white); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.money { position: relative; }
.money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 800 1.5rem var(--font-h); color: var(--gold-700); }
.money input { padding-left: 40px !important; font: 800 1.6rem var(--font-h) !important; color: var(--navy) !important; letter-spacing: .01em; }
input[type=range] { width: 100%; margin: 16px 0 4px; accent-color: var(--gold); height: 6px; cursor: pointer; }
.range-lbl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.chips--wide { grid-template-columns: repeat(3, 1fr); }
.chips button {
  font: 700 1.05rem var(--font); padding: 12px 0; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fcfbf8; color: var(--navy); transition: .15s;
}
.chips button:hover { border-color: var(--navy); }
.chips button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { color: var(--err); font-size: .85rem; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.field.has-err input, .field.has-err select, .field.has-err .chips button { border-color: var(--err); }

.sim__side { display: grid; gap: 20px; position: sticky; top: 90px; }
.result__empty { text-align: center; color: var(--muted); padding: 18px 8px; }
.result__ico { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold); }
.result__lbl { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.result__cuota { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1.05 var(--font-h); color: var(--navy); margin-top: 6px; }
.result__sub { color: var(--gold-700); font-weight: 700; margin-top: 2px; }
.result__dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.result__dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result__dl dt { color: var(--muted); }
.result__dl dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.rates { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rates li { background: #fbf3df; border-radius: 10px; padding: 10px; text-align: center; }
.rates span { display: block; font-size: .75rem; font-weight: 700; color: var(--gold-700); letter-spacing: .08em; }
.rates b { font: 800 1.15rem var(--font-h); color: var(--navy); }
.fine { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.result.flash { animation: flash .6s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(201,162,74,.7); } 100% { box-shadow: 0 0 0 14px rgba(201,162,74,0); } }

.wa-preview__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.wa-preview__title .ico { color: var(--wa-700); }
.bubble {
  background: #e7fbd8; border-radius: 12px 12px 12px 4px; padding: 14px 16px; margin-bottom: 16px;
  font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: #1f2a1f;
  border: 1px solid #cdeebb; position: relative;
}
.bubble .ph { color: #8a968a; font-style: italic; }

@media (max-width: 960px) {
  .sim { grid-template-columns: 1fr; }
  .sim__side { position: static; }
}
@media (max-width: 560px) {
  .card { padding: 20px; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}

/* ===== Acerca de mí ===== */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.about__photo {
  aspect-ratio: 4/5; border-radius: 20px; display: grid; place-items: center; color: rgba(255,255,255,.6);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); position: relative; font-weight: 700;
  box-shadow: 18px 18px 0 -2px var(--gold);
}
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 20px; z-index: 1; }
.about__txt p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about__txt h2 span { color: var(--gold-700); }
.about__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.safety { margin-top: 28px; padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink); }
.safety b { color: var(--navy); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } .about__photo { max-width: 300px; } }

/* ===== Pie ===== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 56px 0 24px; }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--gold-300); font-size: 1.05rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__note { margin-top: 14px; font-size: .92rem; max-width: 300px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.55); }
.brand--foot { color: var(--white); }
@media (max-width: 860px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__in { grid-template-columns: 1fr; } }

.footer__legal a { color: rgba(255,255,255,.75); text-decoration: underline; }
.btn--ig { background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737); color: var(--white); }
.btn--ig:hover { filter: brightness(1.08); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Páginas simples (privacidad, 404) */
.simple { min-height: 70vh; padding: 64px 0 88px; background: var(--cream); }
.simple h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); font-weight: 800; margin-bottom: 8px; }
.simple h2 { font-size: 1.4rem; color: var(--navy); margin: 32px 0 8px; }
.simple p, .simple li { color: var(--muted); }
.simple p + p { margin-top: 12px; }
.simple ul { padding-left: 20px; }
.simple .volver { margin-top: 36px; }
.simple .actualizado { font-size: .9rem; color: var(--gold-700); font-weight: 700; }

/* Botón flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .ico { width: 32px; height: 32px; }
.ig-float {
  position: fixed; right: 20px; bottom: 92px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s;
}
.ig-float:hover { transform: scale(1.07); }
.ig-float .ico { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
