/* =====================================================================
   DSI Citas · Pedir cita (reservar.html) · v4.3
   Pensado para cualquier persona, también mayores o con poca soltura con
   el móvil: letra grande (18px base), botones de 56px o más, una sola
   pregunta por pantalla, textos visibles en todos los botones y alto
   contraste. Este archivo cubre la cabecera, el pie y el asistente de un
   negocio; directorio.css, la página «Pedir cita» con todos los negocios.
   ===================================================================== */

:root { --acc: #D6B274; --acc-ink: #1B1407; --bar-h: 68px; --wrap: 1180px; --g: clamp(16px, 3.4vw, 40px); --r-xl: 26px; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); }
body { min-height: 100vh; overflow-x: clip; font-size: 18px; line-height: 1.55; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
body.is-booting > :not(.boot):not(script) { visibility: hidden; }

/* Textos secundarios: nunca por debajo de 4.5:1 en esta página */
body { --soft: var(--ink-2); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: .8rem 1.2rem; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- boot */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 200; transition: opacity .35s var(--ease); }
body:not(.is-booting) .boot { opacity: 0; pointer-events: none; }
.boot .brand__mark { width: 56px; height: 56px; border-radius: 16px; animation: boot 1s var(--ease) infinite alternate; }
.boot .brand__mark svg { width: 38px; height: 38px; }
@keyframes boot { from { transform: scale(.94); opacity: .7; } to { transform: scale(1); opacity: 1; } }

/* --------------------------------------------------------------- marca */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--paper); flex: none; }
.brand__mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .brand__tick { stroke: var(--tick); }
.brand__txt { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; }
.brand__txt b { font-weight: 800; }

.avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; flex: none; }
.avatar--sm { width: 38px; height: 38px; border-radius: 11px; font-size: .86rem; }
.avatar--xl { width: clamp(68px, 9vw, 92px); height: clamp(68px, 9vw, 92px); border-radius: clamp(20px, 2.6vw, 28px); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

/* ------------------------------------------------------------- botones */
.btn { min-height: 52px; font-size: 1rem; padding: 0 1.3rem; }
.btn--lg { min-height: 60px; padding: 0 1.5rem; font-size: 1.08rem; border-radius: 18px; }
.btn--xl { min-height: 68px; padding: 0 1.8rem; font-size: 1.2rem; border-radius: 20px; font-weight: 700; }
.btn--block { width: 100%; }
.btn--acc { --btn-bg: var(--acc); --btn-fg: var(--acc-ink); --btn-bd: var(--acc); font-weight: 800; }
.btn--acc:hover { filter: brightness(1.05); --btn-bd: var(--acc); }
.btn--ghost-line { --btn-bg: transparent; --btn-bd: var(--line-2); }
.btn--ghost-line:hover { --btn-bg: var(--surface); --btn-bd: var(--ink-3); }
.btn--wa { --btn-fg: #fff; font-weight: 700; }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn--wa .icon { width: 1.45em; height: 1.45em; }
.linkbtn { background: none; border: 0; padding: .3rem 0; min-height: 44px; color: var(--pen); font-weight: 700; font-size: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.linkbtn:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 4px; }
.spinner { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-busy .spinner { display: inline-block; }
.is-busy .btn__label { display: none; }
.btn__label { display: inline-flex; align-items: center; gap: .55rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ cabecera */
.bar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__in { max-width: var(--wrap); height: var(--bar-h); margin: 0 auto; padding: 0 var(--g); display: flex; align-items: center; gap: 12px; }
.bar__biz { display: flex; align-items: center; gap: .65rem; min-width: 0; margin-right: auto; }
.bar__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand.solo-dir { margin-right: auto; }
.bar__wa { min-height: 48px; padding: 0 1.1rem; font-size: .98rem; flex: none; }

/* ----------------------------------------------------------------- página */
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g) 32px; }

/* Volver al listado de negocios: visible desde el primer momento, sin tener
   que llegar al pie de página. Siempre lleva a reservar (lista completa). */
.back-dir { display: inline-flex; align-items: center; gap: .5rem; margin-top: 18px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: .98rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
.back-dir .icon { width: 1.3em; height: 1.3em; stroke-width: 2.6; flex: none; }
.back-dir:hover { color: var(--pen); text-decoration-color: currentColor; }
.back-dir:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }

.demo-aviso { display: flex; gap: .7rem; align-items: flex-start; margin: 16px 0 0; padding: 1rem 1.2rem; border-radius: 18px; background: var(--tick-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--tick) 40%, transparent); }
.demo-aviso .icon { color: var(--tick); width: 1.4em; height: 1.4em; margin-top: .1rem; }

.intro { display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 24px); padding: clamp(20px, 4vw, 40px) 0 clamp(18px, 3vw, 28px); }
.intro__txt { min-width: 0; display: grid; gap: .5rem; }
.intro h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.intro__pre { display: block; font-size: .5em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); margin-bottom: .2em; }
.intro__sector { color: var(--ink-2); font-size: 1.02rem; }
.intro__meta { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .45rem; }
.intro__meta li, .intro__meta a { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink-2); font-size: 1rem; }
.intro__meta a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.intro__meta a:hover { color: var(--ink); text-decoration-color: currentColor; }
.intro__meta .icon { width: 1.2em; height: 1.2em; margin-top: .2rem; color: var(--ink-3); }
.intro__meta .is-open b { color: var(--ok); }
.intro__meta .is-closed b { color: var(--bad); }
.intro__meta .is-open .icon { color: var(--ok); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 22px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-1); }

/* ------------------------------------------------------------ asistente */
.wizard { display: grid; gap: 18px; align-content: start; min-width: 0; scroll-margin-top: calc(var(--bar-h) + 12px); }
.wizard:focus { outline: none; }

.progreso { display: grid; gap: 12px; }
.progreso__txt { font-size: .95rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.progreso__ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.progreso__ol li { display: grid; gap: 6px; justify-items: start; position: relative; padding-top: 10px; border-top: 5px solid var(--line); color: var(--ink-3); }
.progreso__ol li.is-done { border-top-color: var(--ok); color: var(--ink-2); }
.progreso__ol li.is-now { border-top-color: var(--ink); color: var(--ink); }
.progreso__n { display: none; }
.progreso__t { font-size: .88rem; font-weight: 700; }

.volver { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; min-height: 52px; padding: 0 1.1rem 0 .8rem; margin: -4px 0 -6px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 1rem; cursor: pointer; }
.volver:hover { border-color: var(--ink-3); background: var(--surface-2); }
.volver:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }
.volver .icon { width: 1.3em; height: 1.3em; stroke-width: 2.4; }

.w-titulo { font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.w-titulo:focus { outline: none; }
.w-titulo:focus-visible { outline: 3px solid var(--tick); outline-offset: 4px; border-radius: 6px; }
.w-sub { color: var(--ink-2); font-size: 1.08rem; margin-top: -8px; }

.eleccion { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); padding: 4px 16px; }
.eleccion__i { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.eleccion__i:last-child { border-bottom: 0; }
.eleccion__k { font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.eleccion__v { font-weight: 700; min-width: 0; }
.eleccion__v small { display: block; font-weight: 500; color: var(--ink-2); font-size: .92rem; }

.w-cuerpo { display: grid; gap: 18px; min-width: 0; }
.w-cuerpo.entra { animation: entra .32s var(--ease-out) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Opciones (servicios y días): filas grandes, todo el ancho es el botón */
.opciones { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opcion {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px;
  min-height: 76px; padding: 14px 14px 14px 18px; border-radius: 18px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease);
}
@media (hover: hover) { .opcion:hover { border-color: var(--ink-3); background: var(--surface-2); } }
.opcion:active { transform: scale(.995); }
.opcion:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }
.opcion.is-sel { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--surface)); }
.opcion__txt { display: grid; gap: 3px; min-width: 0; }
.opcion__txt b { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
.opcion__txt small { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--ink-2); }
.opcion__txt small .icon { width: 1.05em; height: 1.05em; }
.opcion__precio { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; white-space: nowrap; }
.opcion__ir { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.opcion__ir .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.opcion:hover .opcion__ir, .opcion:focus-visible .opcion__ir { background: var(--ink); color: var(--paper); }

.opcion--dia { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.opcion__cal { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 1px; background: var(--paper-2); line-height: 1; }
.opcion__cal small { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.opcion__cal b { font-size: 1.5rem; font-weight: 800; font-family: var(--f-display); }
.opcion__libres { font-weight: 700; color: var(--ok); font-size: .98rem; white-space: nowrap; }

.mas { display: flex; flex-wrap: wrap; gap: 10px; }
.mas .btn { flex: 1 1 240px; }

.nota { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.nota .icon { width: 1.3em; height: 1.3em; color: var(--tick); margin-top: .1rem; }
.nota--warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.nota--warn .icon { color: var(--warn); }

.vacio { display: flex; gap: .8rem; align-items: flex-start; padding: 1.2rem; border-radius: 18px; background: var(--warn-soft); color: var(--ink); }
.vacio .icon { width: 1.5em; height: 1.5em; color: var(--warn); margin-top: .1rem; }

/* Horas */
.franja { display: grid; gap: 12px; }
.franja h3 { display: flex; align-items: center; gap: .5rem; font-family: var(--f-body); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; }
.franja h3 .icon { width: 1.3em; height: 1.3em; color: var(--warn); }
.franja h3 small { font-size: .95rem; font-weight: 600; color: var(--ok); margin-left: .2rem; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.hora {
  min-height: 72px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--ok) 55%, var(--line));
  background: color-mix(in srgb, var(--ok) 9%, var(--surface)); color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 0; cursor: pointer; padding: 6px;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.hora b { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1.1; }
.hora small { font-size: .82rem; font-weight: 700; color: var(--ok); }
@media (hover: hover) { .hora:not([disabled]):hover { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); border-color: var(--ok); } }
.hora:active:not([disabled]) { transform: scale(.98); }
.hora:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }
.hora.is-sel { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.hora.is-sel small { color: var(--acc-ink); }
.hora--ocupada, .hora[disabled] { border-style: dashed; border-color: var(--line-2); background: var(--paper-2); color: var(--ink-3); cursor: not-allowed; }
.hora--ocupada b { text-decoration: line-through; text-decoration-thickness: 2px; font-size: 1.2rem; }
.hora--ocupada small { color: var(--ink-3); font-weight: 600; }

.diasnav { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.diasnav .btn { min-height: 56px; }

/* Calendario del mes */
.mes { display: grid; gap: 12px; }
.mes__nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.mes__nav .btn { min-height: 52px; padding: 0 .9rem; }
.mes__t { text-align: center; font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; }
.mes__t:focus { outline: none; }
.mes__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mes__dow span { text-align: center; font-size: .82rem; font-weight: 800; text-transform: uppercase; color: var(--ink-2); }
.mes__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mdc { min-height: 64px; border-radius: 14px; border: 2px solid transparent; background: transparent; color: var(--ink-3); display: grid; place-items: center; align-content: center; gap: 0; padding: 4px 2px; }
.mdc b { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.mdc span { font-size: .72rem; font-weight: 700; line-height: 1.1; }
.mdc.is-ok { cursor: pointer; border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--ink); }
.mdc.is-ok b { color: var(--ok); }
.mdc.is-ok span { color: var(--ink-2); }
@media (hover: hover) { .mdc.is-ok:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 20%, var(--surface)); } }
.mdc.is-ok:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }
.mdc.is-today { box-shadow: inset 0 0 0 2px var(--pen); }
.mdc.is-sel { background: var(--acc); border-color: var(--acc); }
.mdc.is-sel b, .mdc.is-sel span { color: var(--acc-ink); }
.mdc[disabled] { cursor: default; }
.mdc--out { visibility: hidden; }

/* Resumen de la cita */
.sum { border-radius: 20px; padding: 18px 20px; background: var(--ink); color: var(--paper); display: grid; gap: 12px; }
:root[data-theme="dark"] .sum { background: #050817; border: 1px solid var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sum { background: #050817; border: 1px solid var(--line-2); } }
.sum__when { display: flex; align-items: baseline; gap: .3rem .8rem; flex-wrap: wrap; }
.sum__when b { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.sum__when span { font-weight: 700; font-size: 1.12rem; }
.sum__rows { margin: 0; display: grid; gap: 0; }
.sum__rows div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid rgba(233, 236, 248, .18); }
.sum__rows dt { opacity: .78; }
.sum__rows dd { margin: 0; font-weight: 700; }

/* Formulario */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field > label { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.field__hint { font-size: .95rem; color: var(--ink-2); margin-top: -.2rem; }
.field__err { font-size: 1rem; color: var(--bad); font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 60px; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 1.15rem; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; margin-top: .6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen) 22%, transparent); }
.field.has-err input { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }
.field--opc summary { cursor: pointer; font-weight: 700; color: var(--pen); min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.field--opc summary::marker { color: var(--pen); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); font-size: 1rem; color: var(--ink); cursor: pointer; line-height: 1.45; }
.check input { width: 28px; height: 28px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.check.has-err { border-color: var(--bad); background: var(--bad-soft); }
.form__err { background: var(--bad-soft); color: var(--bad); padding: .9rem 1rem; border-radius: 14px; font-size: 1rem; font-weight: 700; }
.form__pie { text-align: center; color: var(--ink-2); font-size: .98rem; margin-top: -.4rem; }
.btn--xl .icon { width: 1.4em; height: 1.4em; stroke-width: 2.6; }

/* Hecho */
.hecho { display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.hecho__ic { width: 96px; height: 96px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 20px 40px -18px var(--ok); animation: pop .6s var(--ease-out); }
.hecho__ic svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hecho__ic path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.06); } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hecho__txt { font-size: 1.12rem; color: var(--ink); max-width: 30em; }
.hecho .sum { width: 100%; text-align: left; }
.hecho__acts { display: grid; gap: 10px; width: 100%; }
.hecho .nota { text-align: left; width: 100%; }
.wizard[data-paso="5"] .w-titulo { text-align: center; color: var(--ok); }

/* -------------------------------------------------------------- lateral */
.lateral { display: grid; gap: 18px; position: sticky; top: calc(var(--bar-h) + 16px); }
.wa-card { display: grid; gap: 12px; border-color: color-mix(in srgb, var(--wa) 40%, var(--line)); background: color-mix(in srgb, var(--wa) 7%, var(--surface)); }
.wa-card__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wa); color: #fff; }
.wa-card__ic .icon { width: 30px; height: 30px; }
.wa-card h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.wa-card p { color: var(--ink); }
.wa-num { font-size: 1.15em; white-space: nowrap; }
.info { display: grid; gap: 12px; }
.info h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.info h2:not(:first-child) { margin-top: 8px; }
.horario { margin: 0; display: grid; }
.horario div { display: flex; justify-content: space-between; gap: 12px; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.horario div:last-child { border-bottom: 0; }
.horario dt { color: var(--ink-2); }
.horario dt small { font-size: .85em; }
.horario dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.horario .is-today { margin: 0 -.6rem; padding-inline: .6rem; border-radius: 10px; background: var(--surface-2); }
.horario .is-today dt { color: var(--ink); font-weight: 800; }
.horario .is-off dd { font-weight: 500; color: var(--ink-2); }

/* ------------------------------------------------------- toasts / fatal */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: var(--ink); color: var(--paper); border-radius: 18px; box-shadow: var(--shadow-2); font-size: 1.02rem; font-weight: 600; animation: toast-in .4s var(--ease-out) both; }
:root[data-theme="dark"] .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); } }
.toast__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.toast--warn .toast__ic { background: var(--warn); }
.toast--bad .toast__ic { background: var(--bad); }
.toast--info .toast__ic { background: var(--tick); }
.toast__ic .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.toast__txt { flex: 1; min-width: 0; line-height: 1.35; }
.toast__txt small { display: block; opacity: .85; font-size: .94rem; font-weight: 500; }
.toast.is-out { animation: toast-out .25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.fatal { position: fixed; inset: 0; z-index: 70; background: var(--paper); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.fatal__in { max-width: 34rem; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.fatal__t { font-family: var(--f-display); font-size: 4.4rem; font-weight: 800; line-height: 1; color: var(--line-2); }
.fatal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.fatal p { color: var(--ink-2); }

/* skeleton */
.sk { height: 76px; border-radius: 18px; background: linear-gradient(90deg, var(--paper-2) 0 40%, var(--surface-2) 50%, var(--paper-2) 60% 100%); background-size: 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ----------------------------------------------------------------- pie */
.foot { margin-top: clamp(32px, 6vw, 64px); border-top: 1px solid var(--line); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--g) calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: .8rem; justify-items: center; text-align: center; color: var(--ink-2); font-size: .98rem; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.foot__nav a:hover { color: var(--pen); text-decoration-color: currentColor; }
.foot__by { font-size: .9rem; }
.foot__by a { color: var(--ink); }

/* ========================================================= RESPONSIVE */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  :root { --bar-h: 62px; }
  body { font-size: 17.5px; }
  .bar__in { gap: 8px; }
  .bar__wa { min-height: 46px; padding: 0 .9rem; font-size: .92rem; }
  .bar__wa-l { display: none; }
  .brand__txt { font-size: 1.08rem; }
  .intro { gap: 14px; }
  .intro .avatar--xl { width: 60px; height: 60px; border-radius: 18px; font-size: 1.2rem; }
  .card { border-radius: 22px; padding: 18px 14px; }
  .wizard { gap: 16px; }
  .progreso__t { font-size: .78rem; }
  .eleccion { padding: 4px 12px; }
  .eleccion__i { grid-template-columns: minmax(0, 1fr) auto; }
  .eleccion__k { grid-column: 1 / -1; margin-bottom: -4px; font-size: .82rem; }
  .opcion { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 12px 14px 14px; min-height: 72px; }
  .opcion__ir { display: none; }
  .opcion--dia { grid-template-columns: auto minmax(0, 1fr) auto; }
  .opcion--dia .opcion__libres { grid-column: 2; font-size: .92rem; margin-top: -4px; }
  .opcion--dia .opcion__ir { display: grid; grid-row: 1 / span 2; grid-column: 3; }
  .opcion--dia .opcion__cal { grid-row: 1 / span 2; }
  .opcion__precio { font-size: 1.25rem; }
  .horas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hora { min-height: 68px; }
  .hora b { font-size: 1.3rem; }
  .mes__grid, .mes__dow { gap: 4px; }
  .mdc { min-height: 56px; border-radius: 12px; }
  .mdc b { font-size: 1.12rem; }
  .mdc span { font-size: .66rem; }
  .mes__nav .btn span { display: none; }
  .sum__when b { font-size: 2.2rem; }
  .sum__rows div { grid-template-columns: 5rem minmax(0, 1fr); }
  .lateral { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .horas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar__wa { padding: 0 .7rem; }
  .bar__name { font-size: 1rem; }
}
