/* ═══════════════════════════════════════════════
   horario.css — Barra tipo tabla "Horario de clases"
═══════════════════════════════════════════════ */

/* ── BARRA FIJA ───────────────────────────────── */
#hc-bar {
  position: fixed;
  top: 4.25rem;
  left: 1.5rem;             /* pegada a la izquierda con margen */
  z-index: 99;
  transition: top .35s ease;
  border-radius: 0 0 .6rem .6rem;
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}
#navbar.scrolled + #hc-bar { top: 3.25rem; }

/* ── INNER ───────────────────────────────────── */
.hc-inner {
  display: inline-flex;     /* tamaño según contenido */
  align-items: flex-end;
}

/* ── ETIQUETA ────────────────────────────────── */
.hc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-shrink: 0;
  width: 7.5rem;
  height: 3rem;
  background: linear-gradient(135deg, #f59e0b, #ea8c00);
  padding: 0 .85rem;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  border-right: 2px solid rgba(255,255,255,.2);
  border-radius: 0 0 0 .6rem;
}
.hc-label i { font-size: 1rem; opacity: .9; flex-shrink: 0; }

/* ── CELDAS ──────────────────────────────────── */
.hc-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  width: 7.5rem;            /* ancho fijo por celda */
  height: 3rem;
  padding: 0 .5rem;
  background: #1a3a6c;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
  flex-shrink: 0;
}
.hc-cell:last-child {
  border-right: none;
  border-radius: 0 0 .6rem 0;
}

/* Pasados */
.hc-cell--past { background: #132d54; opacity: .4; }

/* HOY — sube sobre la barra */
.hc-cell--today {
  height: 4.1rem;
  background: var(--green);
  border-right: none;
  border-left: none;
  border-radius: .5rem .5rem 0 0;
  box-shadow: 0 -4px 18px rgba(5,150,105,.45), 0 0 0 1px rgba(5,150,105,.5);
  justify-content: flex-end;
  padding-bottom: .5rem;
  z-index: 2;
}

/* Badge HOY */
.hc-today-badge {
  position: absolute;
  top: .4rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .1rem .5rem;
  border-radius: 99px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── TIPOGRAFÍA ──────────────────────────────── */
.hc-cell-head {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}
.hc-cell-meta {
  font-size: .6rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  line-height: 1;
}

.hc-cell--today .hc-cell-head {
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
}
.hc-cell--today .hc-cell-meta {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
}

/* ── COMPENSAR navbar + barra ────────────────── */
#inicio { padding-top: 7.25rem !important; }

/* ── RESPONSIVO ──────────────────────────────── */
@media (max-width: 599px) {
  #hc-bar { left: 0; border-radius: 0; }
  .hc-inner { width: 100%; }
  .hc-label { width: 5rem; font-size: .56rem; border-radius: 0; }
  .hc-label i { display: none; }
  .hc-cell { width: auto; flex: 1; }
  .hc-cell-meta { display: none; }
  .hc-cell--today .hc-cell-meta { display: block; font-size: .55rem; }
  .hc-cell:last-child { border-radius: 0; }
}


/* ── INNER: tabla flex ───────────────────────── */
.hc-inner {
  display: flex;
  align-items: flex-end;   /* celdas alineadas abajo para que "hoy" sobresalga arriba */
  max-width: 100%;
  overflow: visible;       /* permite que la celda de hoy asome hacia arriba */
}

/* ── ETIQUETA (columna izquierda naranja) ────── */
.hc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-shrink: 0;
  width: 9rem;
  height: 3rem;
  background: linear-gradient(135deg, #f59e0b, #ea8c00);
  padding: 0 .9rem;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  border-right: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.hc-label i {
  font-size: 1.1rem;
  opacity: .9;
  flex-shrink: 0;
}
.hc-label span { line-height: 1.3; }

/* ── CELDAS DE DÍA ────────────────────────────── */
.hc-cell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  height: 3rem;
  padding: 0 .5rem;
  background: #1a3a6c;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
  text-align: center;
}
.hc-cell:last-child { border-right: none; }

/* Días pasados */
.hc-cell--past {
  background: #132d54;
  opacity: .4;
}

/* ── HOY: sube sobre la barra ── */
.hc-cell--today {
  height: 4.25rem;              /* más alto que las demás */
  background: var(--green);
  border-right: none;
  border-left: none;
  border-radius: .5rem .5rem 0 0;   /* esquinas redondeadas arriba */
  box-shadow: 0 -4px 20px rgba(5,150,105,.5), 0 0 0 1px rgba(5,150,105,.6);
  justify-content: flex-end;
  padding-bottom: .55rem;
  z-index: 2;
}

/* Badge "HOY" */
.hc-today-badge {
  position: absolute;
  top: .45rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .12rem .55rem;
  border-radius: 99px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── TIPOGRAFÍA CELDAS ───────────────────────── */
.hc-cell-head {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1;
}
.hc-cell-meta {
  font-size: .63rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  line-height: 1;
}

/* HOY — textos más grandes y nítidos */
.hc-cell--today .hc-cell-head {
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.hc-cell--today .hc-cell-meta {
  font-size: .68rem;
  color: rgba(255,255,255,.88);
  font-weight: 600;
}

/* ── COMPENSAR ALTURA navbar + barra ─────────── */
#inicio { padding-top: 7.25rem !important; }

/* ── RESPONSIVO ──────────────────────────────── */
@media (max-width: 599px) {
  .hc-label { width: 5.5rem; font-size: .58rem; gap: .3rem; height: 3rem; }
  .hc-label i { display: none; }
  .hc-cell { height: 3rem; }
  .hc-cell-head { font-size: .62rem; }
  .hc-cell-meta { display: none; }
  .hc-cell--today { height: 4rem; }
  .hc-cell--today .hc-cell-head { font-size: .72rem; }
  .hc-cell--today .hc-cell-meta { display: block; font-size: .58rem; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hc-cell:not(.hc-cell--today) .hc-cell-meta { font-size: .58rem; }
}
