html { scroll-behavior: smooth; }
body { font-size: 1.0625rem; }
section[id], footer[id] { scroll-margin-top: 90px; }
h1, h2, h3 { letter-spacing: -0.02em; }

.nav-link { padding: .5rem .8rem; border-radius: 999px; font-weight: 500; color: #475569; transition: all .2s; }
.nav-link:hover { background: #e6effa; color: #1d4f8a; }
.m-link { padding: .75rem; border-radius: .75rem; }
.m-link:hover { background: #e6effa; }

.btn-cta, .btn-soft {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1.25rem;
  border-radius: 999px; font-weight: 600; transition: all .2s; cursor: pointer;
}
.btn-cta { background: #f0602b; color: #fff; box-shadow: 0 10px 25px -10px rgba(240,96,43,.7); }
.btn-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-cta:disabled { opacity: .45; transform: none; cursor: not-allowed; }
.btn-soft { background: #e6effa; color: #1d4f8a; }
.btn-soft:hover { background: #1d4f8a; color: #fff; }
.btn-lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; justify-content: center; }

.eyebrow { color: #f0602b; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; }
.section-title { font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-top: .75rem; }

.card-service { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 1.5rem; padding: 1.75rem; text-align: left; transition: all .25s; }
.card-service:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(29,79,138,.45); border-color: rgba(29,79,138,.25); }
.card-service .ico { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #e6effa; color: #1d4f8a; transition: all .25s; }
.card-service:hover .ico { background: #1d4f8a; color: #fff; }

.chip { padding: .5rem 1.25rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: #1d4f8a; }
.chip[aria-selected="true"] { background: #1d4f8a; border-color: #1d4f8a; color: #fff; }

.product { background: #fff; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(29,79,138,.5); }
.product img { transition: transform .5s; }
.product:hover img { transform: scale(1.05); }

.slide { transition: opacity .9s ease; }
.dot { width: .6rem; height: .6rem; border-radius: 999px; background: rgba(255,255,255,.6); transition: all .3s; }
.dot.active { width: 1.6rem; background: #fff; }

.marquee { animation: scroll 35s linear infinite; width: max-content; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee, .slide { animation: none; transition: none; } }

.step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: .75rem .5rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; background: #f3f0e8; color: #64748b; }
.step.active { background: #1d4f8a; color: #fff; }
.step.done { background: #e6effa; color: #1d4f8a; }

.field { width: 100%; height: 3rem; padding: 0 1rem; border-radius: .9rem; border: 1px solid rgba(0,0,0,.15); outline: none; }
.field:focus { border-color: #1d4f8a; box-shadow: 0 0 0 3px #e6effa; }

.opt { border: 2px solid rgba(0,0,0,.08); border-radius: .5rem; padding: 1rem; text-align: left; transition: all .2s; width: 100%; }
.opt:hover { border-color: rgba(29,79,138,.4); }
.opt.selected { border-color: #1d4f8a; background: #e6effa; }
.time { min-height: 2.75rem; border: 1px solid rgba(0,0,0,.12); border-radius: .5rem; padding: .5rem 0; font-size: .875rem; font-weight: 500; }
.time:hover { border-color: #1d4f8a; }
.time.selected { background: #1d4f8a; color: #fff; border-color: #1d4f8a; }

.marquee { align-items: center; }
.brand-logo { height: 3rem; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: all .3s; mix-blend-mode: multiply; }
.brand-logo:hover { filter: none; opacity: 1; }

.exam-scrim { background: linear-gradient(90deg, #faf7f0 0%, rgba(250,247,240,.97) 29%, rgba(250,247,240,.78) 43%, transparent 70%); }
@media (max-width: 767px) { .exam-scrim { background: rgba(250,247,240,.9); } }

.step-number { font-size: .75rem; font-weight: 700; }
#steps svg { flex-shrink: 0; }
#booking .btn-cta { height: auto; min-height: 2.75rem; white-space: normal; text-align: center; }
#booking button:focus-visible, #booking a:focus-visible { outline: 2px solid #1d4f8a; outline-offset: 3px; }
@media (max-width: 420px) { .step { font-size: .75rem; } #bkNav { gap: .5rem; } #bkNext { padding: .75rem; } }

/* ===== Auditoría responsiva ===== */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { font-size: 1rem; line-height: 1.6; }
@media (min-width: 640px) { body { font-size: 1.0625rem; } }
img, video, iframe { max-width: 100%; }
h1 { overflow-wrap: anywhere; }
@media (max-width: 639px) { h1 { font-size: 2rem !important; line-height: 1.12 !important; } .btn-lg { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 3.25rem; } }
/* Zonas táctiles mínimas 44x44 */
.btn-cta, .btn-soft { min-height: 2.75rem; height: auto; white-space: normal; }
#menuBtn, [data-close], header a[aria-label] { min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; }
.m-link { display: flex; align-items: center; min-height: 3rem; }
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
#dots button, .dot { position: relative; }
#dots button::after, .dot::after { content: ""; position: absolute; inset: -17px -8px; }
/* Menú móvil con despliegue suave sin tapar contenido */
#mobileMenu:not(.hidden) { animation: menuIn .25s ease-out; max-height: calc(100dvh - 5rem); overflow-y: auto; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* Modal: scroll interno y botones siempre visibles */
#booking > .relative { max-height: calc(100dvh - 2rem); margin-top: 1rem; overscroll-behavior: contain; }
@media (min-width: 640px) { #booking > .relative { margin-top: 6vh; max-height: 88dvh; } }
#bkNav { position: sticky; bottom: -1.5rem; margin: 1rem -1.5rem -1.5rem; padding: .75rem 1.5rem max(.75rem, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(0,0,0,.08); z-index: 2; }
#bkBack { min-height: 2.75rem; }
#branchCards > * { min-width: 0; }
nav[aria-label="Ruta de navegación"] a, a[href^="tel:"], a[href^="mailto:"], a[href*="catalogo"], a[href*="wa.me"] { display: inline-flex; align-items: center; min-height: 2.75rem; }
.chip { min-height: 2.75rem; }
.product button[aria-label], #brands ~ * button[aria-label] { min-width: 2.75rem; min-height: 2.75rem; }
[aria-label^="Consultar"], a[aria-label="Facebook"] { min-width: 2.75rem; min-height: 2.75rem; }
