/* =========================================================
   Página de horarios — reserva real de clases de prueba
   integrada con Google Calendar (disponibilidad en vivo y
   creación de eventos con Meet vía Apps Script). Reutiliza
   los tokens del Design System (colores, radius, shadow,
   tipografía) — solo se definen aquí los componentes
   exclusivos de esta página (grilla de horarios, modal de
   reserva).
   ========================================================= */

.schedule-hero {
  padding: calc(var(--header-h) + 56px) 0 24px;
  text-align: center;
}

.schedule-hero .eyebrow { margin: 0 auto 18px; }

.schedule-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 14px;
}

.schedule-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(10, 27, 51, 0.72);
}

.schedule-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 22px 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-ink);
}
.schedule-legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.free { background: var(--navy); }
.dot.busy { background: rgba(10, 27, 51, 0.2); }

.schedule-board {
  margin: 24px auto 20px;
  max-width: 980px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  overflow-x: auto;
}

.schedule-timezone-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: rgba(11, 72, 136, 0.07);
  color: rgba(10, 27, 51, 0.75);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 90px repeat(5, 1fr);
  gap: 10px;
  min-width: 720px;
}

.schedule-grid .head-cell {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  padding: 8px 0;
  font-size: 0.95rem;
}

.schedule-grid .time-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(10, 27, 51, 0.55);
  padding-right: 8px;
}

.slot {
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-body);
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.slot.free {
  background: rgba(11, 72, 136, 0.08);
  color: var(--navy);
  cursor: pointer;
}
.slot.free:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -8px rgba(11, 72, 136, 0.45);
}

.slot.busy {
  background: rgba(10, 27, 51, 0.05);
  color: rgba(10, 27, 51, 0.35);
  cursor: not-allowed;
}

.schedule-cta {
  text-align: center;
  padding-bottom: 80px;
}
.schedule-cta p {
  color: rgba(10, 27, 51, 0.7);
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 28px 0 0;
}
.back-link svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .schedule-board { padding: 18px; }
}

.schedule-week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 8px;
}
.week-nav-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 72, 136, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.week-nav-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.week-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.week-nav-btn svg { width: 18px; height: 18px; }
.week-nav-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-ink);
  min-width: 160px;
  text-align: center;
}

.schedule-grid { grid-auto-rows: minmax(48px, auto); }

.head-cell .head-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(10, 27, 51, 0.5);
}

.slot.not-offered {
  background: transparent;
  color: rgba(10, 27, 51, 0.2);
  cursor: default;
}

.slot.no-class {
  background: rgba(10, 27, 51, 0.03);
  color: rgba(10, 27, 51, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Modal de reserva */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-modal.is-open { display: flex; }
.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 51, 0.55);
}
.booking-modal-card {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.booking-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.booking-summary {
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 18px;
}
