/* ==========================================================================
   AREA UNITED · Parte 2 · 4.4 Horarios (bloque claro)
   Selector de día + lista del día agrupada en Mañana / Tarde / Noche.
   ========================================================================== */

.p2-sched-tabs { align-self: end; }
.p2-sched-tabs .p2-chip { height: 44px; padding-inline: 18px; font-size: 17px; }

/* --- Selector de día: 6 botones grandes, uno por día --- */
.p2-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--black-pure);
}
.p2-day {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px;
  background: transparent;
  color: var(--black-pure);
  border-right: 1px solid var(--black-pure);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.p2-day:last-child { border-right: 0; }
.p2-day:hover { background: rgba(0,0,0,.06); }
.p2-day[aria-selected="true"] { background: var(--black-pure); color: var(--white); }
.p2-day-abbr { font-size: clamp(20px, 5vw, 32px); line-height: 1; }
.p2-day-today { font-size: 10px; color: var(--black-pure); background: var(--yellow); padding: 2px 5px; line-height: 1.2; }

/* --- Vista del día --- */
.p2-day-view { padding-top: clamp(28px, 4vw, 48px); }
.p2-day-title { font-size: clamp(40px, 7vw, 72px); line-height: .9; margin-bottom: clamp(16px, 3vw, 32px); }
.p2-group + .p2-group { margin-top: clamp(24px, 3vw, 40px); }
.p2-group-name { color: var(--gray-text-light); padding-bottom: 10px; border-bottom: 1px solid var(--black-pure); }

.p2-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, 120px) 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: clamp(14px, 2vw, 20px) 0;
  border-bottom: var(--line);
}
.p2-row-time { display: flex; align-items: baseline; gap: 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1; }
.p2-row-time small { font-family: var(--font-text); font-size: 12px; color: var(--gray-text-light); }
.p2-row-classes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.p2-cname {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}
.p2-cname .dot { width: 10px; height: 10px; }
.p2-or { font-size: 14px; color: var(--gray-text-light); text-transform: uppercase; }
.p2-row-note { font-size: 13px; color: var(--gray-text-light); font-style: normal; }

/* Open Box: más discreto, es entrenar por libre */
.p2-row.is-free .p2-cname { color: var(--gray-text-light); font-size: clamp(18px, 2.6vw, 24px); }
.p2-row.is-free .p2-row-time { color: var(--gray-text-light); }

/* Clase en curso (solo si estás viendo hoy) */
.p2-row.is-now { background: var(--yellow); margin-inline: calc(var(--gutter) * -0.5); padding-inline: calc(var(--gutter) * 0.5); }
.p2-row-now { background: var(--black-pure); color: var(--yellow); padding: 4px 8px; }

@media (max-width: 767px) {
  .p2-row { grid-template-columns: 72px 1fr; gap: 6px 14px; }
  /* hora de inicio arriba y la de fin debajo: antes se pegaba al punto de color */
  .p2-row-time { flex-direction: column; align-items: flex-start; gap: 3px; }
  .p2-row-time small { font-size: 11px; }
  .p2-cname { font-size: 22px; }
  .p2-row.is-free .p2-cname { font-size: 18px; }
  .p2-row-note { flex-basis: 100%; }
  .p2-row-now { grid-column: 2; justify-self: start; }
}

/* --- Sala 2 · Open Box --- */
.p2-openbox { border-top: var(--line); }
.p2-openbox li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: var(--line);
}
.p2-openbox-day { font-size: clamp(28px, 4vw, 40px); line-height: 1; }
.p2-openbox-time { font-size: clamp(28px, 4vw, 40px); line-height: 1; color: var(--gray-text-light); }
.p2-openbox-note { margin-top: 20px; color: var(--gray-text-light); max-width: 54ch; }

.p2-sched-foot { margin-top: 32px; justify-content: space-between; }

/* --- Tablet --- */
@media (min-width: 768px) {
  .p2-openbox li { grid-template-columns: 1fr 1fr; align-items: baseline; }
  .p2-openbox-time { text-align: right; }
}
