/* Clínica Dental Aurea · estilos propios. Azul marino, hielo y un toque de oro. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
:focus-visible { outline-color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display), Georgia, serif; font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
h3 { font-size: 1.25rem; line-height: 1.2; }
.h-lg { font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.1; margin: 10px 0 12px; }
.kicker { color: var(--blue); }
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.kicker-gold { color: var(--gold); }
.title .lead { margin-top: 12px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-main { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line-w { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { filter: none; background: var(--blue); transform: translateY(-2px); }
  .btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
  .btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
  .btn-line-w:hover, .btn-ghost-w:hover { background: #fff; color: var(--navy); }
}

/* encabezado */
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo img { flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.logo-txt small { font-family: var(--font-body), sans-serif; font-weight: 600; font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav a { padding: 10px 0; }

/* portada */
.hero { position: relative; padding: 0; overflow: hidden; background: #fff; }
.hero-grid { display: block; }
.hero-copy { padding: 36px 0 28px; }
.hero h1 { font-size: clamp(2.3rem, 9.5vw, 4.2rem); margin-top: 14px; line-height: 1.02; }
.hero .lead { margin-top: 16px; font-size: 1.0625rem; }
.hero-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.trust { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ice); color: var(--navy); font-size: .8125rem; font-weight: 600; }
.trust small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-art { position: relative; margin-inline: -20px; }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; }
.js .hero-photo img { transform: scale(1.1); animation: ph-in 1600ms var(--ease-out) 100ms forwards; }
@keyframes ph-in { to { transform: none; } }
.ilus { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 600; }

/* tratamientos */
.trat { background: var(--ice); }
.t-grid { list-style: none; padding: 0; display: grid; gap: 14px; }
.t-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.t-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.t-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-card p { color: var(--muted); font-size: .9688rem; }
.t-card h3 { margin-bottom: 6px; }
.t-card .t-price { margin-top: 14px; color: var(--ink); font-family: var(--font-display), serif; font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.t-price small { font-family: var(--font-body), sans-serif; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.t-go { margin-top: 14px; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); text-decoration: none; }
.t-go::after { content: '→'; margin-left: 8px; transition: transform 220ms var(--ease-out); }
.t-urg { background: var(--navy); border-color: var(--navy); }
.t-urg h3, .t-urg .t-price { color: #fff; }
.t-urg p, .t-urg .t-price small { color: #C9D6E6; }
.t-urg .t-go { color: var(--gold); }
.t-urg .t-ico { background: rgba(255,255,255,.1); }
.t-urg :focus-visible { outline-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .t-card { transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
  .t-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,42,74,.12); }
  .t-go:hover::after { transform: translateX(4px); }
}

/* antes y después */
.ba-block { display: grid; gap: 28px; margin-top: 72px; align-items: center; }
.ba-copy .lead { margin-bottom: 22px; }
.ba-fig { margin: 0; }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--navy); user-select: none; -webkit-user-select: none; box-shadow: 0 18px 44px rgba(11,42,74,.16); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.ba-tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.ba-tag-a { left: 12px; } .ba-tag-d { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(11,42,74,.2); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--navy); }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba-knob::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.js .ba:not(.is-touched) .ba-knob::after { animation: ba-pulse 1400ms var(--ease-out) 800ms 3 both; }
@keyframes ba-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.ba-hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-size: .75rem; font-weight: 600; transition: opacity 400ms var(--ease-out); }
.ba.is-touched .ba-hint { opacity: 0; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.ba-fig figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* ortodoncia invisible */
.ali { background: var(--navy); color: #fff; overflow: hidden; }
.ali-grid { display: grid; gap: 32px; align-items: center; }
.ali-fig { margin: 0; position: relative; width: 82%; border-radius: 200px 200px 22px 22px; overflow: hidden; background: #123A63; }
.ali-fig img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.ali-fig figcaption { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ali h2 { color: #fff; margin: 10px 0 16px; }
.ali .kicker { color: var(--gold); }
.ali-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 22px; color: #D6E2F0; }
.ali-list li { position: relative; padding-left: 28px; }
.ali-list li::before { content: ''; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.ali-price { font-family: var(--font-display), serif; font-size: 2rem; font-weight: 600; margin-bottom: 20px; }
.ali-price small { font-family: var(--font-body), sans-serif; font-size: .8125rem; font-weight: 500; color: #C9D6E6; }
.ali :focus-visible { outline-color: #fff; }

/* primera visita */
.pasos { list-style: none; padding: 0; display: grid; gap: 14px; }
.pasos li { position: relative; padding: 22px 22px 22px 78px; border-radius: 18px; background: var(--ice); }
.p-n { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-display), serif; font-size: 1.25rem; font-weight: 600; display: grid; place-items: center; }
.pasos p { color: var(--muted); margin-top: 4px; }
.center-cta { text-align: center; margin-top: 32px; }

/* clínica */
.clinica { padding-top: 24px; }
.galeria { list-style: none; padding: 0 20px 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; scrollbar-width: thin; }
.galeria li { position: relative; flex: 0 0 78%; scroll-snap-align: center; border-radius: 20px; overflow: hidden; background: var(--navy); }
.galeria li.g-1 { flex-basis: 92%; }
.galeria img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galeria .g-1 img { aspect-ratio: 4 / 3; }
.galeria span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: .8125rem; font-weight: 600; }
.clinica .note { margin-top: 10px; }
.doc { display: grid; gap: 28px; margin-top: 64px; align-items: center; }
.doc-fig { margin: 0; position: relative; border-radius: 24px; overflow: hidden; background: var(--ice); max-width: 420px; }
.doc-fig img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.doc-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(11,42,74,.97) 60%, rgba(11,42,74,0)); color: #fff; display: flex; flex-direction: column; }
.doc-fig figcaption span { color: #D6E2F0; font-size: .875rem; }
.doc-fig figcaption strong { font-family: var(--font-display), serif; font-size: 1.25rem; }
.doc-fig .ilus { top: 12px; right: 12px; }
.doc-list { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 8px; color: var(--muted); }
.doc-list li { padding-left: 22px; position: relative; }
.doc-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--gold); }

/* agenda */
.agenda { background: var(--navy); color: #fff; }
.agenda h2, .agenda h3 { color: #fff; }
.agenda .lead { color: #C9D6E6; }
.agenda .kicker { color: var(--gold); }
.agenda :focus-visible { outline-color: #fff; }
.agenda-grid { display: grid; gap: 36px; }
.agenda-intro h2 { margin: 10px 0 12px; }
.loc { margin-top: 32px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.loc h3 { font-size: 1.125rem; margin-bottom: 8px; }
.loc p { color: #D6E2F0; }
.horas { margin: 0 0 14px; }
.horas div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.22); }
.horas dt { color: #C9D6E6; } .horas dd { margin: 0; font-weight: 600; }
.loc .btn { margin-top: 14px; }
.note-w { margin-top: 12px; color: #B8C8DC; font-size: .8125rem; }

.booking { background: #0F3560; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; padding: 20px 18px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.bk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.bk-step { color: var(--gold); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.bk-name { color: #C9D6E6; font-size: .875rem; }
.bk-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.16); overflow: hidden; }
.bk-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.25); transition: transform 500ms var(--ease-out); }
.bk-panels { margin-top: 22px; min-height: 250px; }
.bk-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk-panel:not([hidden]) { animation: bk-in 420ms var(--ease-out) both; }
.bk-panel.back:not([hidden]) { animation-name: bk-in-back; }
@keyframes bk-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bk-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.bk-panel legend { font-family: var(--font-display), serif; font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 16px; padding: 0; line-height: 1.15; }
.bk-panel legend:focus { outline: none; }
.bk-panel legend:focus { outline: none; }
.bk-sub { color: #C9D6E6; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.days { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.chips.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.chips label { position: relative; display: block; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips input:disabled { cursor: not-allowed; }
.chips label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 600; font-size: .9375rem; line-height: 1.15; text-align: center; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.chips label > span em { font-style: normal; font-weight: 500; font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: #C9D6E6; }
.chips label > span strong { font-size: 1.125rem; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chips input:checked + span em { color: var(--ink); }
.chips input:disabled + span { opacity: .45; }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.chips input:active:not(:disabled) + span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked):not(:disabled):hover + span { background: rgba(255,255,255,.12); } }
.chips.yn { flex-wrap: nowrap; } .chips.yn label { flex: 1; }
.hint { color: #C9D6E6; grid-column: 1 / -1; }
.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-weight: 600; margin-bottom: 8px; color: #fff; font-size: .9375rem; }
.field input[type=text], .field input[type=tel] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: #fff; color: var(--ink); font: inherit; }
.field input[aria-invalid="true"] { border-color: #FFB4A8; box-shadow: 0 0 0 3px rgba(255,180,168,.35); }
.resumen { margin: 0; display: grid; }
.resumen div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.22); }
.resumen dt { color: #C9D6E6; } .resumen dd { margin: 0; font-weight: 600; text-align: right; }
.bk-err { min-height: 1.4em; margin-top: 12px; color: #FFD3CC; font-weight: 600; font-size: .9375rem; }
.bk-nav { display: flex; gap: 10px; margin-top: 8px; }
.bk-nav .btn { flex: 1; }
.bk-nav #bk-back { flex: 0 0 auto; }
.bk-nav [hidden] { display: none; }

/* faq */
.faq-wrap { max-width: 820px; margin-top: 72px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg) translateY(-2px); transition: transform 240ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 18px 18px; color: #D6E2F0; }

/* pie */
.foot { background: var(--ink); color: #C9D6E6; border: 0; text-align: left; padding: 40px 0 100px; font-size: .875rem; }
.foot a { color: #fff; }
.foot .logo-txt { color: #fff; }
.foot .logo-txt small { color: #B8C8DC; }
.foot-in { display: grid; gap: 18px; justify-items: start; }
.foot :focus-visible { outline-color: #fff; }
.wa-bar { position: fixed; left: 16px; right: 76px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 14; box-shadow: 0 8px 24px rgba(11,42,74,.35); }
.to-top { background: var(--gold); color: var(--ink); }

@media (min-width: 600px) {
  .hero-cta { flex-direction: row; }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .booking { padding: 28px; }
}
@media (min-width: 900px) {
  section { padding: 104px 0; }
  .hero { padding: 0; }
  .hero-grid { min-height: 680px; display: grid; align-items: center; }
  .hero-copy { width: 50%; padding: 80px 0; position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(2.8rem, 4.3vw, 3.9rem); }
  .hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; margin: 0; }
  .hero-photo { height: 100%; aspect-ratio: auto; }
  .hero-photo::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--gold); }
  .hero-art .ilus { top: auto; bottom: 16px; right: 16px; }
  .t-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ba-block { grid-template-columns: .9fr 1.1fr; gap: 64px; margin-top: 96px; }
  .ali-grid { grid-template-columns: .75fr 1.25fr; gap: 88px; }
  .ali-fig { width: 100%; max-width: 400px; }
  .ali-copy { max-width: 32rem; }
  .pasos { grid-template-columns: repeat(4, 1fr); }
  .pasos li { padding: 84px 20px 24px; }
  .p-n { left: 20px; top: 22px; width: 46px; height: 46px; }
  .galeria { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; overflow: visible; margin-inline: 0; padding: 0; }
  .galeria li, .galeria li.g-1 { flex: none; }
  .galeria img, .galeria .g-1 img { aspect-ratio: auto; height: 100%; min-height: 460px; }
  .doc { grid-template-columns: .7fr 1.3fr; gap: 80px; margin-top: 96px; }
  .doc-copy { max-width: 34rem; }
  .agenda-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .agenda-intro { position: sticky; top: 110px; }
  .booking { padding: 36px; }
  .wa-bar { display: none; }
  .foot { padding-bottom: 40px; }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo img { animation: none; transform: none; }
  .js .ba:not(.is-touched) .ba-knob::after { animation: none; }
  .bk-panel:not([hidden]) { animation: none; }
  .bk-bar i, .faq-list summary::after, .chips label > span { transition: none; }
}
