/* Dentistx · estilos públicos v3 — editorial clínico, luminoso y sobrio.
   Paleta real de la marca (Canva): marino #19284A, azul profundo #03497D / #004E85,
   blanco cálido #FAF6F5, blanco #FFFFFF, piedra #6B7280, línea #E4DEDB.
   Una sola sección oscura por página. Sin celeste ni glassmorphism. */
:root {
  --navy: #19284A;
  --deep: #03497D;
  --deep-2: #004E85;
  --warm: #FAF6F5;
  --white: #FFFFFF;
  --stone: #6B7280;
  --line: #E4DEDB;
  --line-2: #EFE9E6;
  --text: #2B3346;
  --wa: #25A55F;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 10px 30px rgba(25, 40, 74, .06);
  --shadow-hover: 0 16px 40px rgba(25, 40, 74, .10);
  --head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Great Vibes', 'Allura', cursive;
  --ease: cubic-bezier(.25, .8, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--warm); line-height: 1.7; font-size: 16.5px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--stone); }
.small { font-size: .875rem; }
.light { color: #fff; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.flipx { transform: scaleX(-1); }
.ico-wa { color: var(--wa); }
.tag { font: 600 .75rem/1.4 var(--head); text-transform: uppercase; letter-spacing: .2em; color: var(--deep); margin: 0 0 14px; }
.ulink { color: var(--deep); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .25s var(--ease); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo-mark { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); }
.logo-word { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.logo-sub { font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-top: 5px; }

/* Botones: radio 12px, sin píldoras */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-md); border: 1px solid transparent; font: 600 .95rem/1.2 var(--head); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--deep); color: #fff; box-shadow: 0 10px 24px rgba(25, 40, 74, .16); }
.btn-primary .ico-wa { color: #7fd6a4; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline:hover .ico-wa { color: #7fd6a4; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--warm); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); padding-left: 4px; padding-right: 10px; }
.btn-ghost-dark:hover { color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Tarjeta blanca */
.card-w { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Diente fino en círculo, montado sobre el borde superior */
.tooth-badge { position: absolute; top: 0; left: 28px; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--line); z-index: 2; }
.tooth-badge .logo-mark circle { stroke: transparent; }

/* Ondas: solo como textura muy suave */
.waves { position: absolute; left: 0; width: 100%; pointer-events: none; }
.waves path { stroke-linecap: round; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 245, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand-link { color: var(--navy); text-decoration: none; }
.brand-link .logo-word { font-size: 1.18rem; }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--navy); text-decoration: none; font: 500 .9rem var(--head); padding: 6px 0; background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.main-nav a:hover { background-size: 100% 1px; }
.header-cta { min-height: 44px; }

/* Hero editorial: texto a la izquierda, foto (o duotono) a la derecha */
.hero { padding: 36px 0 56px; background: var(--warm); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-title { margin: 0; font-family: var(--head); }
.hero-slogan { display: block; font-size: clamp(3.4rem, 15vw, 5.8rem); line-height: 1; color: var(--navy); margin: 0 0 14px; }
.hero-tag { display: block; font-weight: 600; font-size: clamp(1.35rem, 5.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); max-width: 19ch; }
.hero-lead { font-size: 1.06rem; max-width: 46ch; color: var(--stone); margin: 18px 0 28px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-actions .btn { padding-left: 12px; padding-right: 12px; }
.hero-points { list-style: none; padding: 26px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .95rem; color: var(--text); }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points svg { color: var(--deep); flex: none; }
.hero-photo { position: relative; margin: 0; border-radius: 180px 180px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; max-height: 560px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.duotone { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(250, 246, 245, .9);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(0, 78, 133, .55), transparent 60%),
    radial-gradient(90% 70% at 90% 100%, rgba(3, 73, 125, .5), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px),
    linear-gradient(165deg, #22355e 0%, #19284A 55%, #142140 100%); }
.duotone .waves { top: 30%; height: 45%; opacity: .5; }
.duotone .logo-mark { position: relative; margin-bottom: 70px; }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px 22px; background: rgba(25, 40, 74, .72); color: #fff; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(2px); }
.hero-band .script { font-size: 1.9rem; line-height: 1; color: #fff; }
.hero-band b { font: 600 1rem var(--head); letter-spacing: .01em; margin-top: 6px; }
.hero-band span:last-child { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; opacity: .8; }

/* Promo: tarjeta clara con filete, sin bloque saturado */
.promo-band { background: var(--warm); padding: 0 0 8px; }
.promo-inner { display: grid; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; border-left: 3px solid var(--navy); }
.promo-ico { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); display: grid; place-items: center; }
.promo-txt .tag { margin: 0 0 4px; }
.promo-txt p { margin: 0; font: 500 1.06rem/1.5 var(--head); color: var(--navy); letter-spacing: -.01em; }
.countdown { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; width: max-content; }
.countdown div { min-width: 62px; text-align: center; padding: 8px 6px; border-left: 1px solid var(--line); }
.countdown div:first-child { border-left: 0; }
.countdown b { display: block; font: 600 1.3rem/1.15 var(--head); color: var(--navy); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: var(--stone); }

/* Secciones */
.section { position: relative; padding: 76px 0; }
.sec-head { max-width: 640px; margin: 0 0 36px; }
.sec-head.center, .center .sec-head { margin-left: auto; margin-right: auto; }
.h2 { font-family: var(--head); font-size: clamp(1.7rem, 6.2vw, 2.55rem); line-height: 1.15; color: var(--navy); margin: 0 0 14px; font-weight: 600; letter-spacing: -.025em; }
.h2.light { color: #fff; }
.lead { font: 500 1.06rem/1.5 var(--head); color: var(--deep); }
.section-sub { margin: 0; max-width: 56ch; }
.sec-script { font-size: clamp(2.1rem, 9vw, 3rem); color: #fff; margin: 0 0 2px; line-height: 1.1; opacity: .9; }

/* Servicios: lista editorial numerada */
.services { background: #fff; border-top: 1px solid var(--line-2); }
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc-grid .card { border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }
.svc-grid .card.open { background: var(--warm); }
.svc-toggle { width: 100%; display: grid; grid-template-columns: 34px 44px 1fr 28px; align-items: center; gap: 14px; padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--navy); -webkit-tap-highlight-color: transparent; }
.svc-num { font: 500 .8rem var(--head); color: var(--stone); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.svc-ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--deep); transition: border-color .25s, color .25s, background-color .25s; }
.svc-toggle:hover .svc-ico, .card.open .svc-ico { border-color: var(--navy); color: var(--navy); background: #fff; }
.svc-name { font: 600 1.05rem/1.3 var(--head); letter-spacing: -.01em; }
.svc-plus { width: 28px; height: 28px; position: relative; flex: none; }
.svc-plus::before, .svc-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--navy); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.card.open .svc-plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.card.open .svc-more { grid-template-rows: 1fr; }
.svc-more-in { overflow: hidden; padding: 0 4px 0 52px; }
.card.open .svc-more-in { padding-bottom: 22px; }
.svc-info { margin: 0 0 16px; display: grid; gap: 10px; }
.svc-info div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.svc-info dt { font: 600 .7rem/1.9 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--deep); }
.svc-info dd { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--text); }
.svc-more .btn { width: auto; }
html:not(.js) .svc-more { grid-template-rows: 1fr; }
html:not(.js) .svc-more-in { padding-bottom: 22px; }

/* La única sección oscura: Tu primera cita, paso a paso */
.steps-sec { background: var(--navy); color: #fff; overflow: hidden; }
.steps-sec .waves { top: 55%; height: 45%; opacity: .35; }
.steps-sec .sec-head { margin-bottom: 30px; }
.stepper { max-width: 880px; position: relative; }
.stepper-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); }
.stepper-nav button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: none; border: 0; color: rgba(255, 255, 255, .55); cursor: pointer; padding: 16px 8px 14px 0; text-align: left; position: relative; }
.stepper-nav button::before { content: ''; position: absolute; left: 0; right: 8px; top: -1px; height: 2px; background: transparent; transition: background-color .3s; }
.st-num { font: 500 .8rem var(--head); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.st-lbl { font: 600 .78rem/1.3 var(--head); }
.stepper-nav .done button { color: rgba(255, 255, 255, .8); }
.stepper-nav .done button::before { background: rgba(255, 255, 255, .45); }
.stepper-nav [aria-selected=true] { color: #fff; }
.stepper-nav [aria-selected=true]::before { background: #fff; }
.stepper-bar { display: none; }
.stepper-panel { position: relative; padding: 28px 0 0; animation: fadeUp .35s var(--ease); max-width: 560px; }
.stepper-panel .tooth-badge { display: none; }
.st-kicker { margin: 0 0 6px; font: 600 .72rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.stepper-panel h3 { font: 600 1.45rem/1.3 var(--head); letter-spacing: -.02em; margin: 0 0 10px; }
.stepper-panel p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); }
.stepper-ctl { display: flex; gap: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Mini test */
.quiz-sec { background: var(--warm); }
.quiz { padding: 40px 24px 26px; margin-top: 34px; }
.quiz .tooth-badge { color: var(--deep); }
.quiz-progress { height: 2px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .4s var(--ease); }
.quiz-q { border: 0; margin: 0; padding: 0; animation: fadeUp .3s var(--ease); }
.quiz-q legend { font: 600 1.15rem/1.4 var(--head); color: var(--navy); margin-bottom: 16px; padding: 0; letter-spacing: -.01em; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { min-height: 52px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--navy); font: 500 .98rem var(--head); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s, color .2s; display: flex; align-items: center; gap: 12px; }
.quiz-opts button::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #b9b2ae; flex: none; transition: border-color .2s, box-shadow .2s; }
.quiz-opts button:hover { border-color: var(--navy); }
.quiz-opts button.on { border-color: var(--navy); background: var(--warm); }
.quiz-opts button.on::before { border-color: var(--navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--navy); }
.quiz-result { animation: fadeUp .35s var(--ease); }
.quiz-script { font-size: 2.2rem; color: var(--navy); margin: 0; line-height: 1.1; }
.quiz-title { font: 600 1.3rem/1.3 var(--head); color: var(--navy); margin: 6px 0 8px; letter-spacing: -.02em; }
.quiz-result .btn-row { justify-content: flex-start; }

/* Mito o verdad: tarjetas blancas refinadas */
.myths-sec { background: #fff; border-top: 1px solid var(--line-2); }
.myths { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.flip { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; text-align: left; -webkit-tap-highlight-color: transparent; }
.flip-in { display: grid; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flip[aria-pressed=true] .flip-in { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; min-height: 190px; border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--warm); border: 1px solid var(--line-2); }
.flip-front::before { content: '¿Mito o verdad?'; font: 600 .7rem var(--head); text-transform: uppercase; letter-spacing: .2em; color: var(--deep); }
.flip-q { font: 500 1.15rem/1.45 var(--head); color: var(--navy); letter-spacing: -.01em; flex: 1; }
.flip-hint { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem var(--head); color: var(--navy); }
.flip:hover .flip-hint svg { transform: translateX(3px); }
.flip-hint svg { transition: transform .2s var(--ease); }
.flip-back { transform: rotateY(180deg); background: #fff; box-shadow: var(--shadow); justify-content: flex-start; }
.flip-ans { display: inline-flex; align-items: center; gap: 10px; font: 600 1.35rem var(--head); color: var(--navy); letter-spacing: -.01em; }
.flip-ans svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid currentColor; }
.is-myth .flip-ans { color: #9B4A3C; }
.is-true .flip-ans { color: #3F7D5A; }
.flip-exp { font-size: .98rem; line-height: 1.6; color: var(--text); }

/* Doctora */
.doctor { background: var(--warm); }
.doctor-grid { display: grid; gap: 40px; align-items: center; }
.doctor-photo { position: relative; max-width: 460px; width: 100%; }
.doctor-photo img, .doctor-photo .ph { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.doctor-photo .ph { position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(250, 246, 245, .85); background: radial-gradient(120% 80% at 80% 0%, rgba(0, 78, 133, .5), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px), linear-gradient(170deg, #22355e, #19284A); }
.doctor-photo .ph .waves { top: 55%; height: 40%; opacity: .45; }
.doctor-photo .ph .logo-mark { position: relative; }
.doctor-badge { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); }
.doctor-badge b { font: 600 1.7rem/1 var(--head); color: var(--navy); letter-spacing: -.02em; }
.doctor-badge span { font: 500 .78rem/1.3 var(--head); color: var(--stone); max-width: 14ch; }
.doctor-quote { font-size: 2rem; line-height: 1.2; color: var(--navy); margin: 20px 0 20px; padding: 0 0 0 18px; border-left: 1px solid var(--navy); }
.office { margin: 48px 0 0; }
.office img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 2/1; object-fit: cover; }

/* FAQ */
.faq { background: #fff; border-top: 1px solid var(--line-2); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.02rem/1.45 var(--head); color: var(--navy); padding: 20px 44px 20px 0; list-style: none; position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-a { padding: 0 44px 22px 0; color: var(--stone); }
.faq-a p { margin: 0; }
.faq details[open] .faq-a { animation: fadeUp .35s var(--ease); }

/* Reseñas */
.reviews { background: var(--warm); }
.stars { display: inline-flex; gap: 4px; color: var(--navy); margin-bottom: 8px; }

/* Ubicación */
.location { background: var(--warm); }
.loc-grid { display: grid; gap: 32px; }
.addr { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.addr svg { color: var(--deep); flex: none; margin-top: 3px; }
.hours-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; border-top: 1px solid var(--line); }
.hours-table th, .hours-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hours-table th { color: var(--navy); font: 500 .95rem var(--head); }
.hours-table td { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: #efeae8; border: 1px solid var(--line-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.35) contrast(1.02); }

/* Cierre claro */
.cta-final { padding: 64px 0; background: #fff; border-top: 1px solid var(--line-2); }
.cta-inner { display: grid; gap: 20px; align-items: center; }
.cta-script { font-size: clamp(1.9rem, 8vw, 2.6rem); color: var(--navy); margin: 0 0 4px; line-height: 1.15; }
.cta-final .h2 { margin-bottom: 6px; }
.cta-final p.muted { margin: 0; }

/* Footer marino sobrio */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .72); padding: 56px 0 110px; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-logo { color: #fff; }
.footer-slogan { font-size: 1.7rem; line-height: 1.2; color: #fff; margin: 16px 0 4px; opacity: .9; }
.footer-h { color: rgba(255, 255, 255, .55); font: 600 .7rem var(--head); text-transform: uppercase; letter-spacing: .2em; margin: 0 0 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-list svg { flex: none; margin-top: 4px; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* WhatsApp flotante discreto + burbuja */
.wa-dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: flex-end; gap: 10px; }
.wa-float { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(25, 40, 74, .14); transition: transform .2s var(--ease), box-shadow .2s; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(25, 40, 74, .2); }
.wa-bubble { position: relative; display: flex; align-items: center; gap: 4px; background: #fff; color: var(--navy); border: 1px solid var(--line-2); border-radius: 14px 14px 4px 14px; padding: 10px 6px 10px 16px; box-shadow: var(--shadow-hover); margin-bottom: 28px; max-width: 230px; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.wa-bubble.show { opacity: 1; transform: none; }
.wa-bubble a { color: var(--navy); text-decoration: none; font: 500 .88rem/1.35 var(--head); }
.wa-bubble-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--stone); display: grid; place-items: center; cursor: pointer; }
.wa-bubble-x:hover { background: var(--warm); }

/* Aparición sutil al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Agendar ---------- */
.book-main { position: relative; min-height: 80vh; padding: 40px 0 80px; background: var(--warm); }
.book-head { margin-bottom: 26px; }
.book-script { font-size: clamp(1.9rem, 8vw, 2.5rem); color: var(--navy); margin: 0; line-height: 1.1; }
.book-head .h2 { margin-bottom: 4px; }
.book-head p { margin: 0; }
.wz-progress { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.wz-progress li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; color: #a8a3a0; font: 500 .7rem var(--head); }
.wz-progress li::before { content: ''; position: absolute; left: 0; right: 6px; top: -1px; height: 2px; background: transparent; transition: background-color .3s; }
.wz-dot { font: 500 .78rem var(--head); letter-spacing: .08em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; height: 18px; }
.wz-progress li.done { color: var(--stone); }
.wz-progress li.done::before { background: #b9b2ae; }
.wz-progress li.done .wz-dot { color: var(--deep); }
.wz-progress li.on { color: var(--navy); }
.wz-progress li.on::before { background: var(--navy); }
.wz-lbl { font-weight: 600; }
.wizard:not(.wz-on) .wz-progress { display: none; }
.wz-step { border: 1px solid var(--line-2); margin: 0 0 40px; padding: 40px 20px 22px; min-width: 0; }
.wz-step.enter { animation: fadeUp .35s var(--ease); }
.wz-title { float: left; width: 100%; font: 600 1.3rem/1.3 var(--head); color: var(--navy); padding: 0; margin: 2px 0 6px; letter-spacing: -.02em; outline: none; }
.wz-title ~ * { clear: both; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wz-nav .btn-lg { flex: 1; max-width: 300px; }
.wizard.wz-on .wz-step[hidden] { display: none; }
.wizard:not(.wz-on) .wz-nav [data-wz] { display: none; }

.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pick { position: relative; cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-in { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pick-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--deep); transition: background-color .2s, color .2s, border-color .2s; }
.pick-name { font: 600 .88rem/1.3 var(--head); color: var(--navy); }
.pick:hover .pick-in { border-color: #b9b2ae; }
.pick input:checked + .pick-in { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--warm); }
.pick input:checked + .pick-in .pick-ico { background: var(--navy); color: #fff; border-color: var(--navy); }
.pick input:focus-visible + .pick-in { outline: 2px solid var(--deep); outline-offset: 2px; }

.day-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 20px 14px; margin: 6px -20px 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.day-month { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 .64rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--deep); align-self: center; }
.day-chip { position: relative; flex: none; width: 62px; scroll-snap-align: start; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 10px 0; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--navy); transition: border-color .2s, background-color .2s, color .2s; }
.day-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dc-w { font: 600 .64rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.dc-d { font: 600 1.4rem/1.25 var(--head); font-variant-numeric: tabular-nums; }
.dc-m { font-size: .7rem; color: var(--stone); }
.day-chip:hover { border-color: #b9b2ae; }
.day-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-chip:has(input:checked) .dc-w, .day-chip:has(input:checked) .dc-m { color: rgba(255, 255, 255, .7); }
.day-chip:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 2px; }
.day-chip.closed { background: transparent; border-style: dashed; color: #b9b2ae; cursor: not-allowed; }
.day-chip.closed .dc-w, .day-chip.closed .dc-m { color: #c8c2bf; }
.day-chip.closed input { cursor: not-allowed; }

.slots { margin-top: 12px; min-height: 60px; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-h { font: 600 .68rem var(--head); text-transform: uppercase; letter-spacing: .2em; color: var(--deep); margin: 0 0 10px; }
.slot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-chip { position: relative; cursor: pointer; }
.time-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.time-chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font: 600 .92rem var(--head); color: var(--navy); font-variant-numeric: tabular-nums; transition: background-color .2s, border-color .2s, color .2s; }
.time-chip:hover span { border-color: var(--navy); }
.time-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.time-chip input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 2px; }
.time-chip.busy, .time-chip.busy input { cursor: not-allowed; }
.time-chip.busy span { background: transparent; border-color: var(--line-2); color: #a8a3a0; text-decoration: line-through; text-decoration-color: rgba(107, 114, 128, .45); text-decoration-thickness: 1px; }
.time-chip.busy span small { display: block; font: 500 .56rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--stone); text-decoration: none; margin-top: 1px; }
.time-chip.busy:hover span { border-color: var(--line-2); }
.slot-skel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-skel i { height: 48px; border-radius: var(--r-sm); background: linear-gradient(90deg, #f3efed, #fbf9f8, #f3efed); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.wz-recap { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.recap-chip { background: var(--warm); color: var(--navy); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 10px; font: 500 .8rem var(--head); }

/* Campos */
.form { display: grid; gap: 6px; }
.form label { font: 600 .86rem var(--head); color: var(--navy); margin-top: 12px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); font: 400 1rem var(--body); color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 84px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(25, 40, 74, .08); }
.form [aria-invalid=true] { border-color: #9B4A3C !important; background: #fdf8f7; }
.hint { font-size: .88rem; color: var(--stone); margin: 4px 0 0; }
.hint.warn { display: flex; gap: 8px; align-items: flex-start; color: #7a5a1c; background: #FBF3E4; border-radius: var(--r-sm); padding: 9px 12px; }
.hint.warn svg { flex: none; margin-top: 3px; }
.field-error { color: #9B4A3C; font: 600 .86rem var(--head); margin: 4px 0 0; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font: 400 .9rem/1.5 var(--body) !important; color: var(--text) !important; margin: 20px 0 4px !important; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--navy); }

.flash { padding: 12px 16px; border-radius: var(--r-md); margin: 14px 0; font: 500 .92rem var(--head); }
.flash-error { background: #fbf0ee; color: #7d3a2f; border: 1px solid #efd4ce; }
.flash-ok { background: #E9F3EC; color: #2f6447; border: 1px solid #cfe5d6; }
.flash-warn { background: #FBF3E4; color: #7a5a1c; border: 1px solid #efdfbf; }

/* Confirmación */
.success-card { padding: 34px 22px 26px; }
.success-card .h2 { margin-bottom: 8px; }
.check-anim { width: 72px; height: 72px; margin: 0 0 10px; display: block; }
.check-anim circle { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw .8s var(--ease) forwards; }
.check-anim path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-script { font-size: 2.4rem; color: var(--navy); margin: 0; line-height: 1; }
.summary { margin: 22px 0 16px; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--stone); font: 600 .68rem/1.9 var(--head); text-transform: uppercase; letter-spacing: .14em; }
.summary dd { margin: 0; font: 600 .98rem var(--head); color: var(--navy); }
.summary .code { letter-spacing: .12em; color: var(--deep); }
.addr-small { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }

.legal-text h2 { color: var(--navy); font: 600 1.12rem var(--head); margin: 28px 0 6px; letter-spacing: -.01em; }

/* ---------- Enlaces ---------- */
.links-page { background: var(--warm); min-height: 100vh; }
.links-main { position: relative; min-height: 100vh; overflow: hidden; display: flex; justify-content: center; padding: 48px 20px 48px; background: var(--warm); }
.waves-links { top: 0; height: 180px; opacity: .06; }
.links-card { position: relative; z-index: 1; width: 100%; max-width: 430px; text-align: center; color: var(--navy); }
.links-logo { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: 0 0 0 8px rgba(255, 255, 255, .7), var(--shadow); animation: rise .6s var(--ease) both; }
.links-name { margin: 20px 0 0; font: 600 2rem var(--head); letter-spacing: -.03em; animation: rise .6s .06s var(--ease) both; }
.links-sub { margin: 2px 0 0; font: 600 .7rem var(--head); color: var(--deep); text-transform: uppercase; letter-spacing: .2em; animation: rise .6s .1s var(--ease) both; }
.links-slogan { font-size: 2.6rem; color: var(--navy); margin: 10px 0 28px; line-height: 1.1; animation: rise .6s .16s var(--ease) both; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links-list li { animation: rise .55s var(--ease) both; animation-delay: calc(.24s + var(--i) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lk { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 18px 10px 12px; border-radius: 14px; text-decoration: none; text-align: left; color: var(--navy); background: #fff; border: 1px solid var(--line); transition: border-color .2s var(--ease), box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.lk:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow); }
.lk:active { transform: scale(.985); }
.lk-ico { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid var(--line); color: var(--deep); }
.lk-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lk-txt strong { font: 600 .98rem var(--head); letter-spacing: -.01em; }
.lk-txt small { color: var(--stone); font-size: .8rem; line-height: 1.4; }
.lk-arrow { color: var(--navy); flex: none; transition: transform .2s var(--ease); }
.lk:hover .lk-arrow { transform: translateX(3px); }
.lk-main { background: var(--navy); border-color: var(--navy); color: #fff; }
.lk-main:hover { color: #fff; background: var(--deep); border-color: var(--deep); }
.lk-main .lk-ico { border-color: rgba(255, 255, 255, .35); color: #fff; }
.lk-main .lk-txt small { color: rgba(255, 255, 255, .7); }
.lk-main .lk-arrow { color: #fff; }
.lk-promo { border-style: dashed; border-color: #b9b2ae; background: #fff; }
.lk-promo .lk-ico { background: var(--warm); color: var(--navy); }
.links-foot { margin: 30px 0 4px; font-size: .9rem; color: var(--stone); }
.links-addr { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: .78rem; color: var(--stone); }

/* Tablet / escritorio */
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .svc-grid .card { border-top: 1px solid var(--line); border-bottom: 0; }
  .svc-grid .card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .myths { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { padding-left: 26px; padding-right: 26px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .svc-pick { grid-template-columns: repeat(4, 1fr); }
  .slot-row, .slot-skel { grid-template-columns: repeat(6, 1fr); }
  .wz-step { padding: 44px 30px 26px; }
  .quiz { padding: 44px 34px 30px; }
  .quiz-opts { grid-template-columns: repeat(3, 1fr); }
  .promo-inner { grid-template-columns: auto 1fr auto auto; padding: 22px 28px; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .st-lbl { font-size: .86rem; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .doctor-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .loc-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .section { padding: 104px 0; }
  .site-footer { padding-bottom: 44px; }
  .flip-face { min-height: 220px; }
  .stepper-panel h3 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flip-in { transition: none !important; }
}
/* Ajustes tras revisar capturas */
.promo-band { padding: 0 20px 8px; }
.promo-inner { max-width: 1100px; margin: 0 auto; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 4 / 3.4; border-radius: 140px 140px var(--r-lg) var(--r-lg); } }
/* Placeholder de la doctora en tono claro (la página tiene una sola sección oscura) */
.doctor-photo .ph { color: var(--navy); background: radial-gradient(120% 80% at 80% 0%, rgba(3, 73, 125, .08), transparent 60%), repeating-linear-gradient(135deg, rgba(25, 40, 74, .025) 0 2px, transparent 2px 7px), linear-gradient(170deg, #f1ebe8, #e9e2de); border: 1px solid var(--line-2); }
.doctor-photo .ph .waves path { stroke: #19284A; }
.doctor-photo .ph .waves { opacity: .12; }
