/*
 * El formulario de reserva con ticket (agendate-reserva). Diseño aprobado el 07-10-2026 sobre el prototipo.
 * Una sola escena: arriba la boca por la que sale el ticket, que se imprime con cada elección; abajo, la
 * pregunta del momento con opciones grandes para el dedo. Los valores viven en :root (ver MARCA.md).
 *
 * 360:  todo el ancho, sin caja; el ticket arriba y el paso debajo; el botón principal pegado abajo.
 * 768:  igual que en el teléfono, centrado en una columna de 560.
 * 1280: una tarjeta de 1000: el ticket a la izquierda y el paso a la derecha.
 */
:root {
  --tinta: #12233D;        /* el ticket y los títulos */
  --azul: #2283CF;         /* la acción */
  --azul-tinta: #1a6fb3;
  --suelo: #EDF2FA;        /* el fondo de la escena */
  --papel: #ffffff;        /* las opciones */
  --gris: #4a5a70;
  --linea: #d6deeb;
  --nube: #b9c4d4;         /* texto secundario sobre el ticket */
  --ok: #177a4d;
  --sombra: 0 1px 2px rgba(18, 35, 61, .06), 0 10px 26px rgba(18, 35, 61, .07);
  --titulo: 'Poppins', 'Avenir Next', 'Segoe UI', sans-serif;
  --texto: 'Roboto', -apple-system, 'Segoe UI', sans-serif;
  --sale: cubic-bezier(0.23, 1, 0.32, 1);
  --cajon: cubic-bezier(0.32, 0.72, 0, 1);
}
html { height: 100%; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { height: 100%; margin: 0; background: var(--suelo); color: var(--tinta); font-family: var(--texto); font-size: 15px; line-height: 1.45; }
*, *::before, *::after { box-sizing: border-box; }
button, a { touch-action: manipulation; -webkit-user-select: none; user-select: none; font-family: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
input { font-family: inherit; font-size: 17px; color: var(--tinta); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.escena { height: 100%; display: flex; align-items: center; justify-content: center; gap: 48px; padding-inline: 0; }
.telefono { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--suelo); overflow: hidden; }

/* Barra */
.barra { flex: none; display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px 16px; background: var(--suelo); position: relative; z-index: 3; }
.barra .volver, .barra .cuenta { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--papel); box-shadow: var(--sombra); transition: transform 150ms var(--sale); }
.barra .volver:active, .barra .cuenta:active { transform: scale(.94); }
.barra .volver[hidden] { display: none !important; }
.barra img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--papel), var(--sombra); }
.barra .negocio { flex: 1; min-width: 0; padding-left: 4px; font-family: var(--titulo); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

/* La boca por la que sale el ticket */
.boca { flex: none; position: relative; height: 0; overflow: hidden; transition: height 460ms var(--cajon); z-index: 2; }
.boca::before { content: ''; position: absolute; inset: 0 16px auto; height: 10px; border-radius: 0 0 10px 10px; background: linear-gradient(rgba(18, 35, 61, .28), rgba(18, 35, 61, 0)); z-index: 2; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.boca.imprimiendo::before { opacity: 1; }
.ticket { position: absolute; left: 16px; right: 16px; bottom: 18px; padding-bottom: 16px; border-radius: 24px; background: var(--tinta); color: #fff; box-shadow: 0 10px 24px rgba(18, 35, 61, .22); }
.t-fecha { display: flex; align-items: center; gap: 18px; padding: 18px 18px 16px; }
.hoja { width: 88px; flex: none; padding: 9px 0 11px; border-radius: 18px; background: #fff; color: var(--tinta); display: flex; flex-direction: column; align-items: center; }
.hoja span { font-size: 13px; color: var(--gris); }
.hoja span:first-child { font-weight: 500; color: var(--azul-tinta); }
.hoja b { font-family: var(--titulo); font-size: 42px; font-weight: 700; line-height: 1.05; }
.t-hora { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.t-hora b { font-family: var(--titulo); font-size: 36px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.t-hora span { font-size: 14px; color: var(--nube); }
.sello { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; margin-top: 3px; border-radius: 14px; background: var(--ok); color: #fff !important; font-size: 13px !important; font-weight: 500; transform-origin: left center; }
.sello.entra { animation: sello 520ms var(--sale) both; }
@keyframes sello { from { opacity: 0; transform: scale(1.5) rotate(-8deg); } 60% { opacity: 1; transform: scale(.96) rotate(1deg); } to { opacity: 1; transform: none; } }
.t-corte { display: flex; align-items: center; margin: 0 -11px; }
.t-corte i { width: 22px; height: 22px; border-radius: 50%; background: var(--suelo); flex: none; }
.t-corte span { flex: 1; border-top: 2px dashed rgba(255, 255, 255, .28); }
.t-fila { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; }
/* El aire de abajo lo pone el ticket, no su último renglón: un negocio sin ubicación termina en el renglón del servicio. */
.t-fila img, .t-fila .ico { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; object-position: center 20%; }
.t-fila .ico { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .10); }
.t-fila div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t-fila b { font-size: 15px; font-weight: 500; }
.t-fila span { font-size: 13px; color: var(--nube); }
.t-fila em { font-family: var(--titulo); font-style: normal; font-size: 16px; font-weight: 600; white-space: nowrap; }
.t-fila b, .t-fila span, .t-fila em { transition: opacity 200ms ease; }
/* Los extras sumados, uno por renglón: sólo donde el ticket tiene su columna (escritorio). En el teléfono van contados. */
.t-extras { display: none; margin: 0; padding: 6px 18px 0 70px; list-style: none; }
.t-extras li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; line-height: 1.35; color: var(--nube); }
.t-extras li span { min-width: 0; overflow-wrap: anywhere; }
.t-extras li em { flex: none; font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.t-fila span.t-mas { font-size: inherit; }

/* El paso del momento */
.paso { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.paso > * { flex-shrink: 0; }
.paso h1 { margin: 0; padding: 0 4px; font-family: var(--titulo); font-size: 27px; font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; text-wrap: balance; }
.paso .bajada { margin: -8px 0 0; padding: 0 4px; color: var(--gris); font-size: 15px; }
.lista { display: flex; flex-direction: column; gap: 12px; }
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opcion { display: flex; flex-direction: column; width: 100%; text-align: left; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); overflow: hidden; transition: transform 150ms var(--sale), box-shadow 200ms ease; }
.opcion:active { transform: scale(.97); }
.opcion.elegida { box-shadow: 0 0 0 3px var(--azul), var(--sombra); }
.opcion > img { width: 100%; display: block; object-fit: cover; }
.opcion .pie-op { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px 16px; }
.opcion .pie-op div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.opcion b { font-family: var(--titulo); font-size: 16px; font-weight: 600; line-height: 1.25; }
.opcion .pie-op span { font-size: 14px; color: var(--gris); }
.flecha { width: 40px; height: 40px; border-radius: 50%; background: var(--tinta); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.servicio { gap: 12px; padding: 20px 20px 18px; border-radius: 24px; }
.servicio .s-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.servicio .s-cab b { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.servicio .s-cab em { font-family: var(--titulo); font-style: normal; font-size: 19px; font-weight: 600; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tinta); }
.servicio .s-datos { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.servicio .s-datos span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gris); }
.servicio .s-desc { padding-top: 12px; border-top: 1px solid #e8edf5; font-size: 14px; line-height: 1.5; color: var(--gris); }

/* Días y horarios */
.mes { display: flex; align-items: flex-end; justify-content: space-between; }
.mes button { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--azul-tinta); font-size: 15px; font-weight: 500; }
.dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dia { height: 68px; border-radius: 16px; background: var(--papel); box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform 150ms var(--sale), background-color 200ms ease, color 200ms ease; }
.dia:active { transform: scale(.94); }
.dia span { font-size: 12px; color: var(--gris); transition: color 200ms ease; }
.dia b { font-family: var(--titulo); font-size: 18px; font-weight: 600; }
.dia[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.dia[aria-pressed="true"] span { color: var(--nube); }
.dia:disabled { background: none; box-shadow: none; border: 1px dashed #c3ccda; color: #a3adbd; }
.dia:disabled span { color: #a3adbd; }
.franja { display: flex; flex-direction: column; gap: 10px; }
.franja p { margin: 0; padding: 0 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--gris); }
.horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hora { height: 52px; border-radius: 16px; background: var(--papel); box-shadow: var(--sombra); font-family: var(--titulo); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform 150ms var(--sale), background-color 180ms ease, color 180ms ease; }
.hora:active { transform: scale(.95); }
.hora.elegida { background: var(--azul); color: #fff; }
/* Los días del mes de una reserva que se repite por mes. */
.horas.dias-mes { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }   /* tantos por renglón como entren de 44: seis en el teléfono */
.horas.dias-mes .hora { height: 44px; border-radius: 14px; font-size: 15px; }

/* Datos */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { padding: 0 4px; font-size: 14px; font-weight: 500; color: var(--gris); }
.campo input, .tel { height: 56px; width: 100%; padding: 0 16px; border: 1.5px solid var(--linea); border-radius: 18px; background: var(--papel); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.campo input:focus, .tel:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(34, 131, 207, .16); }
.tel { display: flex; align-items: center; padding: 0; }
.tel span { padding: 0 12px 0 16px; font-size: 17px; border-right: 1px solid var(--linea); height: 24px; display: flex; align-items: center; }
.tel input { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 0 18px 18px 0; background: none; box-shadow: none !important; padding: 0 12px; }
.google { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; background: var(--papel); box-shadow: var(--sombra); font-size: 16px; font-weight: 500; transition: transform 150ms var(--sale); }
.google:active { transform: scale(.97); }
.resumen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--papel); box-shadow: var(--sombra); }
.resumen div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resumen b { font-weight: 500; }
.resumen span { font-size: 14px; color: var(--gris); }
.resumen button { min-height: 44px; padding: 0 4px; color: var(--azul-tinta); font-weight: 500; }

/* Final */
.acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.accion { height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; background: var(--papel); box-shadow: var(--sombra); font-size: 15px; font-weight: 500; transition: transform 150ms var(--sale); }
.accion:active { transform: scale(.97); }
.suelto { align-self: center; min-height: 44px; padding: 0 8px; color: var(--azul-tinta); font-weight: 500; }

/* Botón principal */
.pie { flex: none; padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--suelo); }
.principal { width: 100%; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 24px; border-radius: 30px; background: var(--azul); color: #fff; box-shadow: 0 10px 22px rgba(34, 131, 207, .32); transition: transform 150ms var(--sale); }
.principal:active { transform: scale(.97); }
.principal span { font-family: var(--titulo); font-size: 16px; font-weight: 600; }
.principal i { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--azul-tinta); display: flex; align-items: center; justify-content: center; }

/* Aviso de demostración */
.aviso { position: absolute; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 5; padding: 12px 16px; border-radius: 16px; background: var(--tinta); color: #fff; font-size: 14px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms var(--sale); pointer-events: none; }
.aviso.visible { opacity: 1; transform: none; }

/* Entrada escalonada de lo que aparece en cada paso */
.entra > * { animation: entra 320ms var(--sale) both; }
.entra > *:nth-child(2) { animation-delay: 40ms; }
.entra > *:nth-child(3) { animation-delay: 80ms; }
.entra > *:nth-child(4) { animation-delay: 120ms; }
.entra > *:nth-child(5) { animation-delay: 160ms; }
@keyframes entra { from { opacity: 0; transform: translateX(var(--desde, 18px)); } to { opacity: 1; transform: none; } }

@media (hover: hover) and (pointer: fine) {
  .opcion:hover, .dia:not(:disabled):hover, .hora:hover, .accion:hover, .google:hover { box-shadow: 0 1px 2px rgba(18, 35, 61, .08), 0 14px 30px rgba(18, 35, 61, .12); }
  .opcion.elegida:hover { box-shadow: 0 0 0 3px var(--azul), var(--sombra); }
}

@media (min-width: 600px) and (max-width: 899px) {
  .telefono { max-width: 560px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .entra > * { animation: aparece 200ms ease both; animation-delay: 0ms !important; }
  @keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
  .boca { transition-duration: 1ms; }
  .sello.entra { animation: aparece 200ms ease both; }
}

/* ---------- Casos, extras, serie mensual, cupo, cupón y pago ---------- */

.cats { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); font-size: 15px; font-weight: 500; transition: transform 150ms var(--sale), background-color 180ms ease, color 180ms ease; }
.cat:active { transform: scale(.95); }
.cat[aria-pressed="true"] { background: var(--tinta); color: #fff; }

.cualquiera { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; grid-column: 1 / -1; }
.cualquiera i { width: 48px; height: 48px; border-radius: 50%; background: var(--suelo); display: flex; align-items: center; justify-content: center; flex: none; }
.cualquiera span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cualquiera small { font-size: 14px; color: var(--gris); }

.extra { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 20px; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); transition: box-shadow 200ms ease; }
.extra.puesto { box-shadow: 0 0 0 2px var(--azul), var(--sombra); }
.extra > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.extra b { font-family: var(--titulo); font-size: 16px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.extra small { font-size: 14px; color: var(--gris); }
.interruptor { width: 56px; height: 44px; flex: none; display: flex; align-items: center; }
.interruptor i { position: relative; width: 56px; height: 32px; border-radius: 16px; background: #cfd8e6; transition: background-color 200ms ease; }
.interruptor i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(18, 35, 61, .3); transition: transform 220ms var(--sale); }
.interruptor[aria-checked="true"] i { background: var(--azul); }
.interruptor[aria-checked="true"] i::after { transform: translateX(24px); }
.contador { flex: none; display: flex; align-items: center; gap: 4px; }
.contador button { width: 44px; height: 44px; border-radius: 50%; background: var(--suelo); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; transition: transform 140ms var(--sale); }
.contador button:active { transform: scale(.9); }
.contador button:disabled { opacity: .35; }
.contador b { min-width: 28px; text-align: center; font-family: var(--titulo); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.renglon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 20px; background: var(--papel); box-shadow: var(--sombra); }
.renglon > span:not(.contador) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.renglon small { font-size: 14px; color: var(--gris); }
.renglon b { font-weight: 500; }

.paso h2 { margin: 6px 0 -6px; padding: 0 4px; font-family: var(--titulo); font-size: 17px; font-weight: 600; }
.semana { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.semana .dia { height: 52px; }
.semana .dia b { font-size: 15px; }
.fechas { display: flex; flex-direction: column; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); overflow: hidden; }
.fecha { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 18px; border-top: 1px solid #e8edf5; }
.fecha:first-child { border-top: 0; }
.fecha b { flex: 1; font-weight: 500; }
.fecha span { font-family: var(--titulo); font-weight: 500; font-variant-numeric: tabular-nums; }
.fecha.ocupada { background: #fdf3e7; }
.fecha.ocupada small { display: block; font-size: 13px; color: #8a4b08; }
.fecha.ocupada button { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--tinta); color: #fff; font-size: 14px; font-weight: 500; }
.fecha .bien { width: 24px; height: 24px; border-radius: 50%; background: #e7f6ee; color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }

.cupon { display: flex; gap: 8px; }
.cupon input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 1.5px solid var(--linea); border-radius: 18px; background: var(--papel); outline: none; text-transform: uppercase; }
.cupon input:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(34, 131, 207, .16); }
.cupon button { height: 56px; padding: 0 20px; border-radius: 18px; background: var(--tinta); color: #fff; font-weight: 500; }
.cupon-ok { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #e7f6ee; color: var(--ok); font-weight: 500; }
.pagos { display: flex; flex-direction: column; gap: 10px; }
.pago { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 18px; border-radius: 20px; background: var(--papel); box-shadow: var(--sombra); text-align: left; transition: transform 150ms var(--sale), box-shadow 200ms ease; }
.pago:active { transform: scale(.98); }
.pago[aria-checked="true"] { box-shadow: 0 0 0 2px var(--azul), var(--sombra); }
.pago > span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pago small { font-size: 14px; color: var(--gris); }
.pago b { font-weight: 500; }
.pago i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b9c4d4; flex: none; transition: border-color 180ms ease, border-width 180ms var(--sale); }
.pago[aria-checked="true"] i { border: 7px solid var(--azul); }
.cuentas { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 0; }
.cuentas p { margin: 0; display: flex; justify-content: space-between; gap: 12px; color: var(--gris); }
.cuentas p.fuerte { color: var(--tinta); font-family: var(--titulo); font-size: 17px; font-weight: 600; }
.t-fila .ico-serv { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .10); }
.barra img[hidden] { display: none !important; }

.sello span { color: #fff !important; font-size: 13px !important; }

/* ---------- Rango horario, mes completo, espera, errores, datos y escritorio ---------- */
.horas.rango { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hora small { margin-left: 6px; font-family: var(--texto); font-size: 14px; font-weight: 400; color: var(--gris); transition: color 180ms ease; }
.hora.elegida small { color: #d9ecfb; }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 18px; border-radius: 22px; border: 1px dashed #c3ccda; text-align: center; }
.vacio b { font-family: var(--titulo); font-size: 17px; font-weight: 600; }
.vacio span { color: var(--gris); }
.dia.hueco { visibility: hidden; }
.espera { display: flex; flex-direction: column; gap: 12px; }
.espera i { display: block; border-radius: 22px; background: linear-gradient(100deg, #e3eaf5 30%, #f2f6fc 50%, #e3eaf5 70%) 0 0 / 300% 100%; animation: espera 1.1s linear infinite; }
@keyframes espera { to { background-position: -150% 0; } }
.dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.campo select, .campo textarea { width: 100%; padding: 0 16px; border: 1.5px solid var(--linea); border-radius: 18px; background: var(--papel); color: var(--tinta); font-family: inherit; font-size: 17px; outline: none; }
.campo select { height: 56px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.campo textarea { min-height: 88px; padding: 14px 16px; resize: none; }
.campo select:focus, .campo textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(34, 131, 207, .16); }
.tilde-campo { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.tilde-campo input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--azul); }
.cuenta-ya { align-self: flex-start; min-height: 44px; margin: -10px 0 -6px; padding: 0 4px; color: var(--azul-tinta); font-weight: 500; }
.accion.ancha { grid-column: 1 / -1; }
.falla-ico { width: 64px; height: 64px; border-radius: 50%; background: #fdf3e7; color: #8a4b08; display: flex; align-items: center; justify-content: center; margin: 4px 4px 0; }

.velo { position: absolute; inset: 0; z-index: 6; background: rgba(18, 35, 61, .38); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.velo.abierto { opacity: 1; pointer-events: auto; }
.hoja-mes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0; background: var(--suelo); transform: translateY(105%); transition: transform 420ms var(--cajon); }
.hoja-mes.abierto { transform: none; }
.hoja-mes .asa { width: 40px; height: 5px; border-radius: 3px; margin: 0 auto 10px; background: #c3ccda; }
.hoja-mes header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.hoja-mes header b { font-family: var(--titulo); font-size: 20px; font-weight: 600; }
.hoja-mes header button { width: 44px; height: 44px; border-radius: 50%; background: var(--papel); box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center; }
.semana-nombres, .mes-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.semana-nombres { padding: 4px 0 6px; font-size: 12px; font-weight: 500; color: var(--gris); }
.mes-dias { row-gap: 4px; }
.mes-dias button { height: 46px; display: flex; align-items: center; justify-content: center; }
.mes-dias button span { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--titulo); font-size: 16px; font-weight: 500; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--sale); }
.mes-dias button:active span { transform: scale(.9); }
.mes-dias button:disabled span { color: #b3bccb; font-weight: 400; }
.mes-dias button[aria-pressed="true"] span { background: var(--tinta); color: #fff; }
.mes-dias button.lleno span { text-decoration: line-through; color: var(--gris); }

@media (min-width: 900px) {
  .telefono { width: min(1000px, 100%); height: min(680px, calc(100% - 80px)); border-radius: 28px; box-shadow: 0 30px 70px rgba(18, 35, 61, .18); display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; background: linear-gradient(90deg, #E2E9F5 400px, var(--suelo) 400px); }
  .t-extras:not([hidden]) { display: block; }
  .t-fila .t-mas.listados { display: none; }
  .barra { grid-column: 1; grid-row: 1; background: none; padding: 20px 20px 12px; }
  .boca { grid-column: 1; grid-row: 2; --suelo: #E2E9F5; }
  .paso { grid-column: 2; grid-row: 1 / span 3; padding: 30px 40px 24px; }
  .pie { grid-column: 2; grid-row: 4; padding: 10px 40px 26px; background: none; }
  .principal { max-width: 360px; margin-left: auto; }
  .hoja-mes { left: auto; right: 40px; bottom: 40px; width: 380px; border-radius: 28px; box-shadow: 0 20px 50px rgba(18, 35, 61, .25); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform 240ms var(--sale), opacity 200ms ease; }
  .hoja-mes.abierto { transform: none; opacity: 1; pointer-events: auto; }
  .hoja-mes .asa { display: none; }
}
@media (prefers-reduced-motion: reduce) { .espera i { animation: none; } .hoja-mes { transition-duration: 1ms; } }

/* ---------- Duración, carrito, ingreso, cuponera y tarjeta regalo ---------- */
.duracion { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.duracion b { font-size: 20px; }
.duracion em { font-family: var(--titulo); font-style: normal; font-size: 17px; font-weight: 600; }
.pedido { display: flex; align-items: center; gap: 12px; padding: 14px 8px 14px 18px; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); }
.pedido > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pedido b { font-family: var(--titulo); font-size: 16px; font-weight: 600; }
.pedido small { font-size: 14px; color: var(--gris); }
.pedido em { font-family: var(--titulo); font-style: normal; font-weight: 600; white-space: nowrap; }
.pedido button { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gris); }
.otra { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; border: 1.5px dashed #b3bfd2; color: var(--azul-tinta); font-size: 16px; font-weight: 500; transition: transform 150ms var(--sale); }
.otra:active { transform: scale(.97); }
.sesion-ok { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #e7f6ee; color: var(--ok); }
.sesion-ok b { display: block; font-weight: 500; }
.sesion-ok small { font-size: 14px; }
.barra .cuenta.con-sesion { background: var(--tinta); color: #fff; font-family: var(--titulo); font-size: 14px; font-weight: 600; }
.cats.sub .cat { height: 44px; background: none; box-shadow: none; border: 1.5px solid #c3ccda; }
.cats.sub .cat[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ---------- Sobre el sitio real (07-10-2026) ---------- */
#agdt-reserva [hidden] { display: none !important; }
.escena { height: 100dvh; }
.telefono { overflow: clip; }

/* En teléfono y tableta el ticket y el paso se desplazan juntos: con poco alto (o con el teclado abierto) nada queda fuera de alcance. */
.rollo { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.rollo > .paso { flex: 1 0 auto; overflow: visible; padding-bottom: 28px; }

/* Mientras se cargan los datos, el ticket queda en fecha y hora: el lugar es para el formulario. */
.ticket.chico .t-corte, .ticket.chico .t-fila, .ticket.chico .t-extras { display: none !important; }
.ticket.chico { padding-bottom: 0; }
.ticket.chico .t-fecha { gap: 14px; padding: 12px 14px; }
.ticket.chico .hoja { width: 64px; padding: 6px 0 7px; border-radius: 14px; }
.ticket.chico .hoja span { font-size: 11px; }
.ticket.chico .hoja b { font-size: 26px; }
.ticket.chico .t-hora b { font-size: 26px; }
.ticket.chico .t-hora span { font-size: 13px; }

/* La tira de días: todos los del mes, deslizable con el dedo; al final, el mes que sigue. */
.dias { display: flex; grid-template-columns: none; gap: 8px; margin: 0 -16px -12px; padding: 4px 16px 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dias .dia { flex: none; width: 54px; scroll-snap-align: start; }
.dias .dia.otro-mes { width: auto; padding: 0 12px 0 16px; flex-direction: row; gap: 4px; color: var(--azul-tinta); font-size: 15px; font-weight: 500; }

/* La marca de la plataforma (no se ve si el negocio la quitó). */
.marca { align-self: center; min-height: 44px; display: flex; align-items: center; padding: 0 12px; color: var(--gris); font-size: 13px; text-decoration: none; }
.marca b { margin-left: 4px; font-family: var(--titulo); font-weight: 600; color: var(--tinta); }

@media (min-width: 900px) {
  .rollo { display: contents; }
  .rollo > .paso { min-height: 0; overflow-y: auto; }
  /* Con ratón no se desliza cómodo: se ven todos los días del mes en renglones. */
  .dias { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}
.google, .accion { text-decoration: none; }

/* El final: las acciones y, encima, la tarjeta de la invitación a los avisos (la dibuja agendate-push), con la piel de este formulario. */
.final { display: flex; flex-direction: column; gap: 16px; }
#agdt-reserva .agpush { max-width: none; margin: 0; padding: 18px; border: 0; border-radius: 22px; background: var(--papel); box-shadow: var(--sombra); color: var(--tinta); }
#agdt-reserva .agpush-titulo { font-family: var(--titulo); font-size: 17px; }
#agdt-reserva .agpush-texto { font-size: 14px; color: var(--gris); }
#agdt-reserva .agpush button.agpush-boton { min-height: 50px; border-radius: 16px; border-color: var(--azul); background: var(--azul); font-family: var(--texto); font-size: 15px; font-weight: 500; }
#agdt-reserva .agpush button.agpush-boton.agpush-secundario { border-color: var(--linea); background: var(--papel); color: var(--tinta); }

/* Los campos propios de cada negocio en «tus datos». */
.campo .ayuda { padding: 0 4px; font-size: 13px; color: var(--gris); }
.campo input[type="file"] { height: auto; min-height: 56px; padding: 14px 16px; font-size: 15px; }
.campo input[type="date"], .campo input[type="time"] { -webkit-appearance: none; appearance: none; }
.tilde-campo span { flex: 1; min-width: 0; }
.nota-campo { margin: 0; padding: 0 4px; color: var(--gris); }

.cupon-ok button { min-height: 44px; padding: 0 4px; color: var(--ok); font-weight: 500; text-decoration: underline; }

/* Reservas que se repiten: los siete días de la semana en un renglón y, en la lista, el cambio de hora de una fecha ocupada. */
/* (3 de separación: en un teléfono de 360 los siete días tienen que medir 44 cada uno.) */
.dias.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; overflow: visible; }
.dias.semana .dia { width: auto; height: 52px; }
.fecha select { min-height: 44px; padding: 0 12px; border: 1.5px solid #e2c9a6; border-radius: 14px; background: var(--papel); color: var(--tinta); font-family: inherit; font-size: 16px; }
.fecha.ocupada b { flex: 1; min-width: 0; }

/* El pedido (carrito): cada reserva ya armada, con «Quitar» en las que no son la que se está armando. */
.opcion.servicio .quitar { align-self: flex-start; min-height: 44px; margin: -4px 0 -10px; padding: 0 4px; color: var(--azul-tinta); font-weight: 500; }
div.opcion { cursor: default; }

/* Tarjetas de a dos (ubicaciones y profesionales): la foto guarda proporción, sea cual sea el ancho de la tarjeta
   (con alto fijo, en tableta y a todo el ancho quedaba como una tira). Las caras, encuadradas desde arriba. */
.grilla .opcion img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.grilla .opcion img.retrato { object-position: center 20%; }
.grilla .opcion .pie-op { padding: 10px 14px 13px; }
.grilla .opcion .pie-op span { overflow-wrap: anywhere; }

/* ---------- La presentación del negocio (computadora, primer paso) ----------
 * Mientras no se eligió nada, la columna izquierda no queda vacía: el logo grande y redondo al centro, el nombre
 * debajo y los datos que el negocio cargó. Con la primera elección la clase «inicio» se va, todo vuelve al encabezado
 * de siempre (reserva.js anima el achique) y el ticket empieza a imprimirse. En teléfono y tableta no existe. */
.presenta { display: none; }
@media (min-width: 900px) {
  .telefono.inicio .barra { grid-row: 1 / -1; position: relative; flex-direction: column; justify-content: center; gap: 0; padding: 48px 36px; text-align: center; }
  .telefono.inicio .barra img { width: 136px; height: 136px; box-shadow: 0 0 0 6px var(--papel), 0 14px 34px rgba(18, 35, 61, .14); }
  .telefono.inicio .barra .negocio { flex: none; margin-top: 26px; padding: 0; font-size: 26px; line-height: 1.18; letter-spacing: -0.012em; }
  .telefono.inicio .barra .cuenta { position: absolute; top: 20px; right: 20px; }
  .telefono.inicio .presenta { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 12px; color: var(--gris); font-size: 15px; text-wrap: balance; }
  .telefono.inicio .presenta a { color: var(--azul-tinta); font-weight: 500; text-decoration: none; }
  .telefono.inicio .presenta a:hover { text-decoration: underline; }
}

/* Servicios en una sola lista con cada categoría como sección (lo normal; el filtro es sólo para quien colapsa categorías). */
.paso h2.seccion { margin: 10px 0 -6px; color: var(--gris); font-size: 15px; font-weight: 600; }
.paso h1 + h2.seccion { margin-top: 0; }

/* Ubicaciones: una por renglón en teléfono (de a dos, el texto quedaba en seis renglones) y de a dos desde tableta.
   La imagen se ve entera, nunca recortada: lo que sobra de la caja se rellena con la misma imagen difuminada. */
.ubicaciones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.opcion .foto { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--suelo); }
/* (Sin transparencia: con un logo sobre fondo liso, el relleno tiene que quedar del color de ese fondo, sin costura.) */
.opcion .foto::before { content: ''; position: absolute; inset: -28px; background: var(--f) center / cover no-repeat; filter: blur(20px); }
.opcion .foto img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.ubicaciones .opcion .pie-op span { overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .ubicaciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ubicaciones .foto { aspect-ratio: 4 / 3; }
  .ubicaciones .flecha { display: none; }
  .ubicaciones .opcion .pie-op { padding: 10px 14px 13px; }
}

/* Profesionales (y salas): de a dos mientras el contenido entre; si no entra, una por renglón en teléfono (lo decide
   reserva.js, acomodar(), midiendo). En tableta y computadora, siempre de a dos. Un nombre nunca se sale de su tarjeta. */
.grilla .opcion .pie-op b { min-width: 0; overflow-wrap: anywhere; }
.grilla .opcion .foto { aspect-ratio: 4 / 3; }
.grilla .opcion .foto::before { display: none; }
.grilla .opcion .foto img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 20%; }
@media (max-width: 599px) {
  .grilla.una { grid-template-columns: minmax(0, 1fr); }
  /* De a una, la foto sigue llenando su caja (personas o salas): una foto vertical mostrada entera quedaba angosta, con bandas. */
  .grilla.una .opcion .foto { aspect-ratio: 3 / 2; }
  .grilla.una .opcion .foto img { object-position: center 35%; }
  .grilla.una .opcion .pie-op { padding: 12px 16px 14px; }
}

/* Una foto apaisada llena su caja (reserva.js le pone «llena» al cargar); en tarjetas de a dos, los retratos también. */
.opcion .foto.llena::before { display: none; }
.opcion .foto.llena img { object-fit: cover; }

/* Mientras la foto carga (hay negocios con fotos de varios megas) la caja muestra la misma espera que los pasos;
   al llegar, la imagen entra suave. Nunca una tarjeta en blanco. */
.opcion .foto { background: linear-gradient(100deg, #e3eaf5 30%, #f2f6fc 50%, #e3eaf5 70%) 0 0 / 300% 100%; animation: espera 1.1s linear infinite; }
.opcion .foto img, .opcion .foto::before { opacity: 0; transition: opacity 260ms ease; }
.opcion .foto.lista { background: var(--suelo); animation: none; }
.opcion .foto.lista img, .opcion .foto.lista::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .opcion .foto { animation: none; } }

/* El logo y el nombre del negocio llevan a su perfil público mientras no se eligió nada (ver reserva.js, enlacePerfil). */
.barra .lleva { cursor: pointer; }
.barra .lleva:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 12px; }
.barra img.lleva:focus-visible { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .barra .negocio.lleva:hover { color: var(--azul-tinta); } }

