:root {
  --navy: #0f2a44;
  --ink: #1d2733;
  --muted: #5b6b7b;
  --teal: #0e7c7b;
  --teal-soft: #e6f3f2;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --line: #e3e8ee;
  --bg-alt: #f5f8fa;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 42, 68, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color-scheme: light;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--teal); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.h-center { text-align: center; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.h-center.sub { margin: 0 auto 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--teal); margin: 0 0 12px; }
.fine { font-size: .82rem; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.ico { width: 22px; height: 22px; fill: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.cta-center { justify-content: center; }

/* Barra superior */
.dev-banner { background: #fff3cd; color: #6b4e00; font-size: .85rem; text-align: center; padding: 6px 12px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--navy); text-decoration: none; }
.brand b { color: var(--teal); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 800; font-size: 1.3rem; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--teal); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-soft), #fff 85%); padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.18rem; color: #3a4a5a; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li::before, .checks li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 10px; }

/* Fotos y placeholders */
.photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #dfe9ee; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 4 / 5; }
.about-photo { aspect-ratio: 1 / 1; }
.photo.is-empty img { display: none; }
.photo.is-empty::before {
  content: attr(data-label); white-space: pre-line; position: absolute; inset: 14px;
  display: grid; place-items: center; text-align: center; padding: 20px;
  border: 2px dashed #8fb1bf; border-radius: 16px; color: #4d6b7a; font-size: .95rem; font-weight: 600;
}
.photo-badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.95);
  border-radius: 14px; padding: 12px 16px; display: grid; font-size: .9rem; color: var(--muted);
}
.photo-badge strong { color: var(--navy); font-size: 1.05rem; }

/* Confianza */
.trust { background: var(--navy); color: #cfdbe6; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; }
.trust-in div { display: grid; gap: 2px; font-size: .92rem; }
.trust-in b { color: #fff; font-size: 1.25rem; }

/* Caminos */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.path .btn { margin-top: auto; align-self: flex-start; }
.tag { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 16px; }
.tag-fonasa { background: #e8f0fe; color: #1d4ed8; }
.tag-isapre { background: var(--teal-soft); color: var(--teal); }
.checks { list-style: none; padding: 0; margin: 8px 0 26px; display: grid; gap: 8px; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.calc-box { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.calc-box label { font-weight: 700; color: var(--navy); }
.input-money { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; }
.input-money:focus-within { border-color: var(--teal); }
.input-money span { color: var(--muted); font-weight: 700; }
.input-money input { border: 0; outline: 0; font-size: 1.3rem; padding: 12px 8px; width: 100%; font-family: inherit; color: var(--ink); }
.calc-out { margin: 4px 0; font-size: 1.05rem; }
.calc-out b { color: var(--teal); font-size: 1.4rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { text-align: center; padding: 10px 18px; }
.steps span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.creds { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; }
.creds li { padding-left: 28px; position: relative; }
.creds li::before { content: "★"; position: absolute; left: 0; color: var(--teal); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 32px; }
.quote { margin: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.quote blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.quote figcaption { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* FAQ */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #3a4a5a; margin: 12px 0 0; }

/* CTA final */
.final { background: linear-gradient(135deg, var(--navy), #164a63); color: #dbe7f0; text-align: center; padding: 80px 0; }
.final h2 { color: #fff; }
.hours { font-size: .92rem; opacity: .8; margin: 0; }

/* Footer */
.footer { background: #0b1f33; color: #a9b8c6; padding: 44px 0; font-size: .92rem; }
.footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.brand-foot { color: #fff; margin: 0 0 10px; font-weight: 700; }
.footer .fine { color: #8193a5; }

/* Botón flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Móvil */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 36px 0 48px; }
  .hero-in, .paths, .calc, .about, .footer-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 340px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 4.4; }
  .brand { font-size: .98rem; }
  .brand-mark { width: 28px; height: 28px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .path { padding: 26px; }
  .cta-row .btn { flex: 1 1 100%; }
  .about-photo { max-width: 360px; margin-inline: auto; width: 100%; }
}

.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps-4 { grid-template-columns: 1fr; } }
