/* ============================================================
   ELEVÉ BARBERÍA — Reservas Web
   Rediseño del paso 3 (fecha y hora) y de la confirmación.
   Pisa reglas de styles.css y cuenta.css; mismos colores.
   ============================================================ */

/* ---------------------------------------------------------------
   PASO 3: tira de días
--------------------------------------------------------------- */
.fechas-mes {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fechas-grid {
  display: grid;
  grid-template-columns: repeat(var(--dias-por-fila, 7), minmax(0, 1fr));
  gap: 0.35rem;
}

.fechas-grid .tarjeta.dia {
  min-width: 0;
  height: 4rem;
  padding: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.dia__semana { font-size: 0.62rem; letter-spacing: 0.06em; opacity: 0.75; }
.dia__num { font-size: 1.1rem; font-weight: 700; line-height: 1; }

.fechas-grid .tarjeta.dia:hover { border-color: var(--border2); }
.fechas-grid .tarjeta.dia:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fechas-grid .tarjeta.dia.tarjeta--seleccionada {
  background: var(--text);
  border-color: var(--text);
  color: #000;
}
.fechas-grid .tarjeta.dia.tarjeta--vacia { opacity: 0.35; }

/* ---------------------------------------------------------------
   PASO 3: horarios en pastillas
--------------------------------------------------------------- */
.horarios-subtitulo { display: none; }

.horarios-grupo + .horarios-grupo { margin-top: 1rem; }
.horarios-grupo__titulo {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #d4d4d4;
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr));
  gap: 0.45rem;
}

.slot {
  min-height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.slot:hover:not(:disabled) { border-color: var(--border2); background: var(--surface2); }
.slot:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.slot--activo,
.slot--activo:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: #000; }
.slot--ocupado {
  color: #5c5c5c;
  border-color: rgba(255,255,255,0.05);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
   PASO 3: resumen fijo con "Continuar"
--------------------------------------------------------------- */
.resumen-turno {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 -12px 24px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fd 0.25s ease;
}
.resumen-turno[hidden] { display: none; }

.resumen-turno__info { display: flex; align-items: center; gap: 0.7rem; }
.resumen-turno__icono {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.resumen-turno__textos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resumen-turno__textos strong { font-size: 0.85rem; font-weight: 600; }
.resumen-turno__textos span { font-size: 0.74rem; color: var(--muted); }
.resumen-turno__precio { font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
/* Todos los botones principales del flujo, en pastilla como el de Fecha. */
.btn-confirmar { border-radius: 999px; min-height: 2.9rem; }
.resumen-turno__boton { margin-top: 0; }

/* ---------------------------------------------------------------
   CONFIRMACIÓN: mismo tema oscuro del flujo, turno como ticket
--------------------------------------------------------------- */
.confirmacion__icono { background: var(--text); }
.confirmacion__icono svg { stroke: #000; }
.confirmacion__titulo { color: var(--text); font-size: 1.4rem; }
.confirmacion__sub { color: var(--muted); }
.confirmacion__email-aviso { color: var(--muted); }
.confirmacion__email-spam { color: #6b6b6b; }

.confirmacion__detalle {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
}

.ticket {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  text-align: left;
  overflow: hidden;
}
.ticket__cab { display: flex; align-items: center; gap: 0.9rem; padding: 1rem; }
.ticket__fecha {
  width: 3.4rem;
  height: 3.8rem;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--text);
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ticket__fecha span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; }
.ticket__fecha strong { font-size: 1.4rem; font-weight: 800; margin: 0.15rem 0; }
.ticket__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ticket__servicio { font-size: 0.95rem; font-weight: 600; }
.ticket__detalle { font-size: 0.76rem; color: var(--muted); }
.ticket__sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ticket__corte { margin: 0 1rem; border-top: 1.5px dashed rgba(255,255,255,0.14); }
.ticket__filas { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.ticket__fila { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.ticket__fila span:first-child { color: var(--muted); }
.ticket__fila span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
#resumen-ticket { margin-bottom: 1rem; }
.ticket__fila--total { align-items: baseline; margin-top: 0.2rem; }
.ticket__fila--total strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }

.confirmacion-club {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.btn-nueva-reserva {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  min-height: 2.9rem;
}
.btn-nueva-reserva:hover { opacity: 1; background: var(--surface2); }

@media (prefers-reduced-motion: reduce) {
  .resumen-turno { animation: none; }
  .slot { transition: none; }
}
.confirmacion-club__accion { border-radius: 999px; padding: 0 1.1rem; }

/* ---------------------------------------------------------------
   CONFIRMACIÓN: con el ticket y el Club no entra en el alto del panel
   en desktop; se scrollea igual que el cuerpo de los pasos.
--------------------------------------------------------------- */
.confirmacion-screen {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: flex-start;
  padding-bottom: 1rem;
}
.confirmacion-screen > * { flex-shrink: 0; }

/* PASOS 4 y 5: el botón principal queda fijo abajo mientras se scrollea
   el formulario, la tarjeta del Club o el ticket. */
#btn-continuar,
#btn-continuar-cuenta,
#btn-confirmar-reserva {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -0.75rem 1.25rem 0.5rem var(--surface);
}

/* ---------------------------------------------------------------
   MOBILE: el panel crece con el contenido del paso (sin alto fijo) y
   scrollea la página. Con overflow: clip (y no hidden) ningún contenedor
   pasa a ser de scroll, así el resumen del paso 3 y "Confirmar reserva"
   quedan sticky contra el borde inferior de la pantalla, sin salir del panel.
--------------------------------------------------------------- */
@media (max-width: 767px) {
  .reserva-card,
  .reserva-panel { overflow: clip; }
  .reserva-panel { scroll-margin-top: calc(57px + 0.5rem); }
  .paso__cuerpo { overflow: visible; }
  .resumen-turno,
  #btn-continuar,
  #btn-continuar-cuenta,
  #btn-confirmar-reserva { bottom: 0.75rem; }
}

/* PASO 5 (invitado): aviso para crear la cuenta y sumarse al Club */
.aviso-cuenta--club {
  margin-bottom: 1rem;
  border-radius: 20px;
  padding: 0.9rem 1rem;
}
.aviso-cuenta--club[hidden] { display: none; }

/* Scroll interno sin barra visible (se scrollea igual con rueda, trackpad,
   touch o teclado). El botón sticky con su sombra ya indica que hay más. */
.paso__cuerpo,
.confirmacion-screen { scrollbar-width: none; }
.paso__cuerpo::-webkit-scrollbar,
.confirmacion-screen::-webkit-scrollbar { display: none; }
