/*
 * Sitio público de CORE Consultorios. Mobile-first, sin dependencias ni paso de
 * compilación. Colores: solo tokens de public/assets/brand/brand.css (--app-*).
 * Referencia visual: docs/UX.md § Sitio público.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;              /* el pie siempre queda abajo */
    font-family: var(--app-font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--app-color-text);
    background: var(--app-color-canvas);
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; color: var(--app-color-graphite); }
p { margin: 0 0 1rem; }
a { color: var(--app-color-primary); text-underline-offset: .18em; }
a:hover { color: var(--app-color-primary-hover); }
:focus-visible { outline: 3px solid var(--app-color-sky-ink); outline-offset: 3px; border-radius: .35rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; padding: .6rem 1rem; z-index: 60; border-radius: .5rem; font-weight: 700; }
.skip:focus { left: .5rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 40rem; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* ---------- Tonos de apoyo (el color sigue a la especialidad/profesional) ---------- */
.tone-sage { --tone: var(--app-color-sage); --tone-ink: var(--app-color-sage-ink); --tone-soft: var(--app-color-sage-soft); }
.tone-clay { --tone: var(--app-color-clay); --tone-ink: var(--app-color-clay-ink); --tone-soft: var(--app-color-clay-soft); }
.tone-sky  { --tone: var(--app-color-sky);  --tone-ink: var(--app-color-sky-ink);  --tone-soft: var(--app-color-sky-soft); }
.tone-sand { --tone: var(--app-color-accent); --tone-ink: var(--app-color-sand-ink); --tone-soft: var(--app-color-sand-soft); }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--app-color-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.site-brand { text-decoration: none; font-size: 26px; display: inline-flex; align-items: center; color: var(--app-color-graphite); }
.site-nav { display: none; }
.site-nav a:not(.btn) { color: var(--app-color-text-secondary); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .5rem .15rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--app-color-graphite); }
.site-nav a[aria-current="page"] { color: var(--app-color-graphite); border-bottom-color: var(--app-color-accent); }

.menu-mobile summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .45rem;
    min-height: 2.75rem; padding: .45rem .85rem;
    border-radius: 999px; border: 1px solid var(--app-color-border);
    font-weight: 700; font-size: .95rem; color: var(--app-color-graphite); background: #fff;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile .icon-close { display: none; }
.menu-mobile[open] .icon-open { display: none; }
.menu-mobile[open] .icon-close { display: inline; }
.menu-mobile[open] summary { background: var(--app-color-graphite); color: #fff; border-color: var(--app-color-graphite); }
.menu-panel {
    display: none; flex-direction: column; gap: .25rem;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--app-color-border);
    padding: .75rem 1rem 1.25rem; box-shadow: var(--app-shadow-lg);
    max-height: calc(100dvh - 4rem); overflow-y: auto;
}
.menu-mobile[open] .menu-panel { display: flex; }
.menu-panel a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 3.25rem; padding: 0 .75rem; border-radius: .75rem;
    color: var(--app-color-graphite); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.menu-panel a:not(.btn):hover, .menu-panel a[aria-current="page"] { background: var(--app-color-sand-soft); }
.menu-panel a:not(.btn)::after { content: "›"; color: var(--app-color-text-muted); font-size: 1.3rem; }
.menu-panel .btn { margin-top: .75rem; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .7rem 1.35rem;
    border-radius: 999px; border: 2px solid transparent;
    font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--app-color-graphite); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; box-shadow: 0 8px 20px rgba(var(--app-color-graphite-rgb), .22); }
.btn-sand { background: var(--app-color-accent); color: var(--app-color-graphite); }
.btn-sand:hover { background: var(--app-color-primary-on-dark); color: var(--app-color-graphite); }
.btn-outline { background: #fff; color: var(--app-color-graphite); border-color: var(--app-color-graphite); }
.btn-outline:hover { background: var(--app-color-graphite); color: #fff; }
.btn-ghost { background: var(--app-color-sand-soft); color: var(--app-color-graphite); }
.btn-ghost:hover { background: var(--app-color-primary-border); color: var(--app-color-graphite); }
.btn-whatsapp { background: var(--app-color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--app-color-whatsapp-hover); color: #fff; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-on-dark:hover { background: #fff; color: var(--app-color-graphite); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 3.5rem; padding: .85rem 1.6rem; font-size: 1.08rem; }
.btn-sm { min-height: 2.6rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--app-color-sand-soft); padding: 2.5rem 0 3rem; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 22rem; height: 22rem; right: -9rem; top: -8rem; background: var(--app-color-sage-soft); }
.hero::after { width: 12rem; height: 12rem; left: -5rem; bottom: -6rem; background: var(--app-color-clay-soft); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px;
    background: #fff; color: var(--app-color-sage-ink);
    font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: var(--app-shadow-sm); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--app-color-sage); }
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--app-color-clay-ink); }
.hero-lead { font-size: clamp(1.08rem, 3.6vw, 1.3rem); color: var(--app-color-text-secondary); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .btn-row .btn { flex: 1 1 15rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--app-color-text-secondary); font-size: .95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .icon { color: var(--app-color-sage-ink); }

/* Tarjeta ilustrativa de los pasos (portada, escritorio) */
.hero-visual { display: none; }
.preview {
    position: relative; background: #fff; border-radius: 1.5rem; padding: 1.4rem;
    box-shadow: var(--app-shadow-lg); max-width: 24rem; margin-left: auto;
}
.preview-title { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--app-color-text-muted); margin: 0 0 .9rem; }
.preview-item { display: flex; align-items: center; gap: .85rem; padding: .7rem; border-radius: 1rem; background: var(--tone-soft); margin-bottom: .6rem; }
.preview-item:last-child { margin-bottom: 0; }
.preview-num { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--tone); color: var(--app-color-graphite); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.preview-item strong { display: block; color: var(--app-color-graphite); line-height: 1.25; }
.preview-item span { color: var(--tone-ink); font-size: .9rem; font-weight: 600; }
.preview-badge {
    position: absolute; left: -1.4rem; bottom: -1.2rem; background: var(--app-color-graphite); color: #fff;
    border-radius: 1rem; padding: .7rem 1rem; font-size: .9rem; font-weight: 700; box-shadow: var(--app-shadow-lg);
    display: flex; align-items: center; gap: .5rem;
}
.preview-badge .icon { color: var(--app-color-accent); }

/* Datos rápidos bajo la portada */
.facts { margin-top: -1.5rem; position: relative; z-index: 2; }
.facts-grid { display: grid; gap: .75rem; }
.fact {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--app-color-border); border-radius: 1.1rem;
    padding: 1rem 1.1rem; box-shadow: var(--app-shadow-sm); color: inherit; text-decoration: none;
}
a.fact:hover { border-color: var(--tone); }
.fact-icon { width: 2.75rem; height: 2.75rem; border-radius: .9rem; background: var(--tone-soft); color: var(--tone-ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fact-icon .icon { width: 1.35rem; height: 1.35rem; }
.fact-label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tone-ink); }
.fact-value { display: block; font-weight: 700; color: var(--app-color-graphite); line-height: 1.35; }
.fact-extra { display: block; font-size: .92rem; color: var(--app-color-text-secondary); }

/* ---------- Secciones ---------- */
.section { padding: 3rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--app-color-border); border-bottom: 1px solid var(--app-color-border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.55rem, 5vw, 2.1rem); margin: 0; font-weight: 800; }
.section-head p { margin: .35rem 0 0; color: var(--app-color-text-secondary); max-width: 36rem; }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--app-color-clay-ink); margin-bottom: .35rem; }
.link-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; color: var(--app-color-graphite); min-height: 2.75rem; }
.link-more:hover { color: var(--app-color-clay-ink); }
.lead { color: var(--app-color-text-secondary); font-size: 1.08rem; }

/* Encabezado de páginas internas */
.page-head { background: var(--app-color-sand-soft); padding: 2rem 0 2.25rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; width: 14rem; height: 14rem; border-radius: 50%; right: -6rem; top: -7rem; background: var(--app-color-sage-soft); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); margin: 0; font-weight: 800; }
.page-head p { margin: .6rem 0 0; color: var(--app-color-text-secondary); max-width: 38rem; font-size: 1.08rem; }
.page-body { padding-top: 2rem; padding-bottom: 3rem; }

/* ---------- Grillas y tarjetas ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--app-color-border); border-radius: 1.25rem; padding: 1.25rem; box-shadow: var(--app-shadow-sm); }
.card h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.card .meta { color: var(--app-color-text-secondary); font-size: .95rem; margin: 0; }
.prose { white-space: pre-line; font-size: 1.08rem; }

/* Especialidades: baldosas de color */
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
    min-height: 8.5rem; padding: 1.1rem; border-radius: 1.25rem;
    background: var(--tone-soft); color: var(--app-color-graphite); text-decoration: none;
    border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--tone); color: var(--app-color-graphite); transform: translateY(-2px); }
.tile-mark { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tone); color: var(--app-color-graphite); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.tile-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.tile-count { display: block; font-size: .88rem; font-weight: 600; color: var(--tone-ink); margin-top: .2rem; }
.tile-desc { display: block; font-size: .92rem; color: var(--app-color-text-secondary); margin-top: .35rem; font-weight: 500; }

/* Chips de filtro */
.chips { display: flex; gap: .5rem; padding: 0 0 .25rem; margin: 0 0 1.5rem; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: 0 0 auto; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem 1rem;
    border-radius: 999px; background: #fff; border: 1px solid var(--app-color-border);
    text-decoration: none; color: var(--app-color-graphite); font-weight: 600; white-space: nowrap;
}
.chip-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--tone, var(--app-color-graphite)); }
.chip:hover { border-color: var(--app-color-graphite); color: var(--app-color-graphite); }
.chip[aria-current="true"] { background: var(--app-color-graphite); border-color: var(--app-color-graphite); color: #fff; }
.chip[aria-current="true"] .chip-dot { background: #fff; }

/* Profesionales */
.pro {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--app-color-border); border-radius: 1.25rem;
    padding: 1rem; box-shadow: var(--app-shadow-sm); color: inherit; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pro:hover { border-color: var(--tone); box-shadow: var(--app-shadow-lg); transform: translateY(-2px); color: inherit; }
.pro-body { min-width: 0; flex: 1; }
.pro-name { display: block; font-weight: 800; font-size: 1.08rem; color: var(--app-color-graphite); line-height: 1.25; }
.pro-meta { display: block; font-size: .92rem; color: var(--app-color-text-secondary); margin-top: .15rem; }
.tag { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font-size: .82rem; font-weight: 700; margin-top: .45rem; }
.pro-go { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--app-color-surface-muted); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--app-color-graphite); transition: background-color .15s ease, color .15s ease; }
.pro:hover .pro-go { background: var(--app-color-graphite); color: #fff; }
.avatar {
    width: 4rem; height: 4rem; border-radius: 1.1rem; object-fit: cover; flex: 0 0 auto;
    background: var(--tone-soft, var(--app-color-sand-soft)); color: var(--tone-ink, var(--app-color-sand-ink));
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
}
.avatar-lg { width: 7.5rem; height: 7.5rem; border-radius: 1.75rem; font-size: 2.3rem; border: 4px solid #fff; box-shadow: var(--app-shadow-lg); }

/* Ficha del profesional */
.profile { display: grid; gap: 1.25rem; align-items: center; grid-template-columns: auto 1fr; }
.profile h1 { margin: 0 0 .35rem; }
.profile .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.profile-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.profile-facts li { display: flex; gap: .65rem; align-items: center; color: var(--app-color-text-secondary); }
.profile-facts .icon { color: var(--app-color-graphite); }

/* Cómo funciona */
.how { display: grid; gap: 1rem; counter-reset: how; list-style: none; padding: 0; margin: 0; }
.how li { position: relative; background: #fff; border: 1px solid var(--app-color-border); border-radius: 1.25rem; padding: 1.25rem 1.25rem 1.25rem 4.6rem; min-height: 5.5rem; }
.how li::before {
    counter-increment: how; content: counter(how);
    position: absolute; left: 1.15rem; top: 1.2rem;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--tone); color: var(--app-color-graphite);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.how h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.how p { margin: 0; color: var(--app-color-text-secondary); font-size: .97rem; }

/* Sede */
.place { display: grid; gap: 0; overflow: hidden; padding: 0; }
.place-main { padding: 1.4rem; }
.place-main h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.place-address { display: flex; gap: .6rem; align-items: flex-start; color: var(--app-color-text-secondary); margin: 0 0 1rem; }
.place-address .icon { color: var(--app-color-clay-ink); margin-top: .2rem; }
.place-hours { background: var(--app-color-sage-soft); padding: 1.4rem; }
.place-hours h4 { margin: 0 0 .75rem; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; color: var(--app-color-sage-ink); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(63, 93, 74, .25); font-variant-numeric: tabular-nums; }
.hours li:last-child { border-bottom: 0; }
.hours strong { color: var(--app-color-graphite); }

/* Franja final de llamada a la acción */
.cta-band { flex-shrink: 0; background: var(--app-color-graphite); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 18rem; height: 18rem; border-radius: 50%; border: 2px solid rgba(200, 182, 154, .35); right: -6rem; top: -8rem; }
.cta-band::after { content: ""; position: absolute; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(111, 143, 122, .35); left: -3rem; bottom: -4rem; }
.cta-band .wrap { position: relative; z-index: 1; padding-top: 2.75rem; padding-bottom: 2.75rem; display: grid; gap: 1.25rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 5.5vw, 2.1rem); font-weight: 800; }
.cta-band p { margin: .4rem 0 0; color: var(--app-color-sidebar-text); }

/* ---------- Reserva ---------- */
.booking { padding-top: 1.5rem; padding-bottom: 3rem; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li { display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--app-color-text-muted); }
.steps li::before { content: ""; height: .35rem; border-radius: 999px; background: var(--app-color-border); }
.steps li.done::before { background: var(--app-color-sage); }
.steps li.current::before { background: var(--app-color-graphite); }
.steps li.current { color: var(--app-color-graphite); }
.steps li.done { color: var(--app-color-sage-ink); }
.step-label { color: var(--app-color-clay-ink); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .35rem; }
.page-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 .5rem; font-weight: 800; }
.back { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; text-decoration: none; font-weight: 700; color: var(--app-color-graphite); min-height: 2.75rem; }
.back:hover { color: var(--app-color-clay-ink); }

.summary { display: flex; gap: .9rem; align-items: center; background: var(--app-color-graphite); color: var(--app-color-sidebar-text); border-radius: 1.1rem; padding: 1rem 1.1rem; margin: 1rem 0 1.25rem; }
.summary-icon { width: 2.75rem; height: 2.75rem; border-radius: .9rem; background: var(--app-color-accent); color: var(--app-color-graphite); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.summary strong { display: block; color: #fff; font-size: 1.08rem; line-height: 1.3; }
.summary span { font-size: .95rem; }

.pick { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-height: 5rem; }
.pick:hover { border-color: var(--app-color-graphite); color: inherit; }

.days { display: grid; gap: 1rem; }
.day { padding: 1.1rem; }
.day-head { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .5rem; }
.day-head h3 { font-size: 1.12rem; margin: 0; }
.day-head .day-num { font-size: .9rem; color: var(--app-color-text-muted); font-weight: 600; }
.period { display: inline-flex; align-items: center; gap: .35rem; color: var(--app-color-sky-ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin: .75rem 0 .45rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.time {
    display: flex; align-items: center; justify-content: center; min-height: 3.1rem;
    border-radius: .9rem; border: 1.5px solid var(--app-color-border); background: var(--app-color-surface-subtle);
    color: var(--app-color-graphite); font-weight: 700; font-size: 1.05rem; text-decoration: none; font-variant-numeric: tabular-nums;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.time:hover, .time:focus-visible { background: var(--app-color-graphite); color: #fff; border-color: var(--app-color-graphite); }
.pager { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.pager .btn { flex: 1 1 0; }
.pager > span:empty { display: none; }
.pager .btn:only-child, .pager > span:empty + .btn { margin-left: auto; }
.note { display: flex; gap: .75rem; align-items: flex-start; background: var(--app-color-sky-soft); border-radius: 1.1rem; padding: 1rem 1.1rem; margin-top: 1.25rem; color: var(--app-color-graphite); }
.note .icon { color: var(--app-color-sky-ink); margin-top: .15rem; }
.note p { margin: 0; }
.note a { color: var(--app-color-sky-ink); font-weight: 700; }

/* Formulario */
.form-card { padding: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--app-color-graphite); }
.field input[type="text"], .field input[type="tel"] {
    width: 100%; min-height: 3.25rem; padding: .7rem 1rem;
    border: 1.5px solid var(--app-color-primary-border); border-radius: .9rem;
    font-size: 1.08rem; font-family: inherit; background: #fff; color: var(--app-color-text);
}
.field input:focus { border-color: var(--app-color-graphite); outline: none; box-shadow: 0 0 0 4px rgba(var(--app-color-accent-rgb), .45); }
.field input[aria-invalid="true"] { border-color: #b91c1c; }
.hint { color: var(--app-color-text-muted); font-size: .92rem; margin: .35rem 0 0; }
.check { display: flex; gap: .8rem; align-items: flex-start; margin: 1.25rem 0; padding: 1rem; border-radius: 1rem; background: var(--app-color-sage-soft); cursor: pointer; }
.check input { width: 1.45rem; height: 1.45rem; margin-top: .1rem; accent-color: var(--app-color-sage-ink); flex: 0 0 auto; }
.check a { color: var(--app-color-sage-ink); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #b91c1c; font-weight: 700; font-size: .95rem; margin-top: .35rem; }
.alert { border-radius: 1rem; padding: 1rem 1.1rem; margin: 1rem 0; border: 1px solid; }
.alert-warning { background: var(--app-color-clay-soft); border-color: #e9c3ae; color: var(--app-color-clay-ink); font-weight: 600; }
.alert-danger { background: #fdecec; border-color: #f5b8bb; color: #8a1116; font-weight: 600; }

/* Confirmación */
.done-hero { text-align: center; padding: 1rem 0 .5rem; }
.done-icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--app-color-clay-soft); color: var(--app-color-clay-ink); display: inline-flex; align-items: center; justify-content: center; margin: .5rem 0 1rem; }
.done-icon .icon { width: 2.1rem; height: 2.1rem; }
.not-confirmed { border: 2px solid #b45309; background: #fff7ed; border-radius: 1.1rem; padding: 1rem 1.1rem; margin: 1rem 0; color: #7c2d12; }
.not-confirmed strong { color: #9a3412; display: block; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .2rem; }

/* ---------- Barra fija inferior (celular) ---------- */
.cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--app-color-border);
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    display: flex; gap: .6rem;
}
.cta-bar .btn-primary { flex: 1; }
.cta-bar .btn-whatsapp { width: 3.5rem; padding: 0; flex: 0 0 auto; }
.cta-bar .btn-whatsapp .icon { width: 1.5rem; height: 1.5rem; }
.has-cta-bar .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

/* ---------- Pie ---------- */
.site-footer { flex-shrink: 0; background: var(--app-color-graphite-deep); color: var(--app-color-sidebar-text); padding: 2.5rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--app-color-accent); }
.site-footer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--app-color-accent); margin: 0 0 .75rem; }
.site-footer .cols { display: grid; gap: 1.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .footer-brand .app-logo { font-size: 30px; }
.site-footer .footer-brand p { margin: .75rem 0 0; max-width: 22rem; color: #b8afa3; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact .icon { color: var(--app-color-accent); margin-top: .2rem; }
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #b8afa3; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Escritorio ---------- */
@media (min-width: 40rem) {
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .how { grid-template-columns: repeat(2, 1fr); }
    .days { grid-template-columns: repeat(2, 1fr); }
    .pager .btn { flex: 0 1 auto; }
    .hero .btn-row .btn { flex: 0 1 auto; }
}
@media (min-width: 56rem) {
    .site-nav { display: flex; gap: 1.5rem; align-items: center; }
    .site-brand { font-size: 32px; }
    .site-header .wrap { min-height: 4.75rem; }
    .menu-mobile { display: none; }
    .cta-bar { display: none; }
    .has-cta-bar .site-footer { padding-bottom: 2rem; }
    .hero { padding: 4.5rem 0 5.5rem; }
    .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
    .hero-visual { display: block; }
    .hero::before { width: 34rem; height: 34rem; right: -10rem; top: -12rem; }
    .facts-grid { grid-template-columns: repeat(3, 1fr); }
    .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .how { grid-template-columns: repeat(4, 1fr); }
    .how li { padding: 4.4rem 1.25rem 1.4rem; }
    .section { padding: 4.5rem 0; }
    .place { grid-template-columns: 1.3fr 1fr; }
    .cta-band .wrap { grid-template-columns: 1fr auto; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
    .page-head { padding: 3rem 0 3.25rem; }
    .booking { padding-top: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
