:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --teal: #0E7C86;
  --teal-2: #0A6670;
  --mint: #2EC4B6;
  --mint-soft: #E6F7F5;
  --coral: #FF6B4A;
  --coral-2: #F0532F;
  --ink: #1A2B3C;
  --muted: #5B6B7C;
  --line: #E3EBF0;
  --bg: #FFFFFF;
  --bg-soft: #F5FAFB;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 37, 69, .28);
  --shadow-sm: 0 6px 20px -10px rgba(11, 37, 69, .25);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 15px/1 var(--font-head); padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 107, 74, .8); }
.btn-primary:hover { background: var(--coral-2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 37, 69, .3); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-word { font: 800 25px/1 var(--font-head); letter-spacing: -.04em; color: var(--navy); }
.brand-word b { color: var(--teal); font-weight: 800; }
.brand-word small { display: block; font: 600 9.5px/1 var(--font-head); letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.m-only { display: none; }
.menu-btn span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #DDF4F1 0%, transparent 60%), linear-gradient(180deg, #F7FCFC 0%, #FFFFFF 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--mint-soft); color: var(--teal-2); font: 700 13px/1 var(--font-head); padding: 9px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 196, 182, .25); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: rgba(46, 196, 182, .28); z-index: -1; border-radius: 4px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.trust strong { display: block; font: 800 20px/1.1 var(--font-head); color: var(--navy); }
.trust .ico { width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--teal); }

.hero-art { position: relative; }
.hero-art > img { width: 100%; max-width: 520px; margin-inline: auto; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font: 800 16px/1.2 var(--font-head); color: var(--navy); }
.float-card .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fc-1 { top: 8%; right: -2%; }
.fc-2 { bottom: 18%; left: -4%; animation-delay: -2s; }
.fc-3 { bottom: 0; right: 4%; animation-delay: -4s; min-width: 210px; display: block; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--teal)); border-radius: 99px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }

/* Secciones */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker { font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--muted); font-size: 18px; }
.soft { background: var(--bg-soft); }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.benefit .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.benefit h3 { font-size: 19px; }
.benefit p { color: var(--muted); font-size: 15px; margin: 0; }
.i-mint { background: var(--mint-soft); color: var(--teal); }
.i-coral { background: #FFEDE8; color: var(--coral-2); }
.i-navy { background: #E7EEF7; color: var(--navy-2); }
.i-gold { background: #FFF5DD; color: #B7791F; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; border-top: 2px dashed #BFE3DF; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .num { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #fff; border: 2px solid var(--mint); color: var(--teal); position: relative; box-shadow: 0 0 0 8px var(--bg-soft); }
.step .num::after { counter-increment: step; content: counter(step); position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font: 800 13px/26px var(--font-head); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* Simulador */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.sim-form { padding: 40px; }
.sim-result { padding: 40px; background: linear-gradient(160deg, var(--navy) 0%, #0E4D64 100%); color: #DCE8F2; display: flex; flex-direction: column; }
.sim-result h3 { color: #fff; font-size: 16px; font-weight: 600; opacity: .85; }
.sim-big { font: 800 clamp(40px, 5vw, 56px)/1 var(--font-head); color: #fff; margin: 6px 0 4px; letter-spacing: -.03em; }
.sim-big small { font-size: 18px; font-weight: 600; opacity: .75; }
.sim-rows { margin: 26px 0; display: grid; gap: 12px; }
.sim-rows div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 10px; font-size: 15px; }
.sim-rows b { color: #fff; }
.sim-note { font-size: 12.5px; opacity: .7; margin-top: auto; }
.field { margin-bottom: 26px; }
.field label { display: flex; justify-content: space-between; font: 700 15px/1.2 var(--font-head); color: var(--navy); margin-bottom: 12px; }
.field label output { color: var(--teal); font-size: 18px; }
input[type=range] { width: 100%; accent-color: var(--teal); height: 6px; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { flex: 1; min-width: 80px; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 10px; font: 700 15px/1 var(--font-head); color: var(--navy); cursor: pointer; text-align: center; }
.chip small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 4px; }
.chip[aria-pressed=true] { border-color: var(--teal); background: var(--mint-soft); color: var(--teal-2); }

/* Especialidades */
.specialties { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.spec { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 600; font-size: 15px; color: var(--navy); }
.spec span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); }

/* Médicos */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.doctor { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font: 800 30px/1 var(--font-head); color: #fff; position: relative; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35); }
.doctor h3 { font-size: 17px; margin-bottom: 4px; }
.doctor .esp { display: inline-block; background: var(--mint-soft); color: var(--teal-2); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.doctor .loc { color: var(--muted); font-size: 14px; display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
.car-btns { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.car-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.car-btn:hover { border-color: var(--teal); color: var(--teal); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 700 17px/1.35 var(--font-head); color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 20px; color: var(--teal); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* CTA banda */
.cta-band { background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%); color: #fff; border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .85; }

/* Footer */
.site-footer { background: var(--navy); color: #B8C7D6; padding: 72px 0 28px; font-size: 15px; }
.site-footer a { color: #DCE8F2; text-decoration: none; }
.site-footer a:hover { color: #5EEAD4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word b { color: #5EEAD4; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--teal); color: #fff; }
.legal-note { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.reg { display: inline-flex; gap: 8px; align-items: center; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); z-index: 40; }

/* Modal / formulario */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(640px, 100% - 24px); box-shadow: 0 30px 80px -20px rgba(11, 37, 69, .5); color: var(--ink); }
dialog::backdrop { background: rgba(11, 37, 69, .55); backdrop-filter: blur(3px); }
.modal-head { padding: 26px 30px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.modal-head p { color: var(--muted); margin: 0; font-size: 15px; }
.modal-body { padding: 22px 30px 30px; }
.x-btn { background: var(--bg-soft); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--navy); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font: 600 14px/1.2 var(--font-head); color: var(--navy); }
.f input, .f select, .f textarea { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 124, 134, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--teal); }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert-err { background: #FFEDE8; color: #A2341A; }
.alert-ok { background: var(--mint-soft); color: var(--teal-2); }
.success { text-align: center; padding: 20px 10px; }
.success .big-check { width: 80px; height: 80px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 18px; }

/* Páginas internas */
.page-hero { background: linear-gradient(180deg, #F2FAF9, #fff); padding: 56px 0 24px; }
.prose { max-width: 820px; margin: 0 auto; padding: 24px 0 80px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose p, .prose li { color: #3A4B5C; }

/* Responsive */
@media (max-width: 1024px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: calc((100% - 44px) / 3); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 18px 16px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { display: block; padding: 12px 4px; font-size: 17px; }
}
@media (max-width: 880px) {
  .nav-cta .btn-ghost { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 36px 0 56px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .sim { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  #nav .nav-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .nav.open .m-only { display: block; }
  .brand-word { font-size: 21px; }
  .brand-word small { display: none; }
  .benefits, .steps { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 82%; }
  .sim-form, .sim-result { padding: 28px 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .fc-1 { right: 0; } .fc-2 { left: 0; }
  .float-card { padding: 10px 12px; font-size: 12px; }
  .float-card strong { font-size: 14px; }
  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
}
