/* =========================================================
   SIMPLE TIMETABLE – CSS COMPLETO
   Desktop: tabla semanal
   Mobile: agenda por días (cards)
   ========================================================= */

/* ---------- BASE ---------- */
.st-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  font-family: inherit;
}

.st-empty {
  padding: 14px 16px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 12px;
  color: #856404;
  font-weight: 600;
}

/* ---------- TABLA DESKTOP ---------- */
.st-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #ffffff;
}

.st-table th {
  background: #0b7a2f;
  color: #ffffff;
  padding: 14px 10px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.6px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.15);
}

.st-table th.st-today {
  background: #0f9a3c;
}

.st-time-col {
  width: 110px;
}

.st-table td {
  border: 1px solid #e6e6e6;
  vertical-align: top;
}

.st-time {
  background: #fafafa;
  font-weight: 700;
  padding: 10px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

/* Celdas */
.st-cell {
  height: 48px;
  padding: 6px;
  background: #ffffff;
}

.st-today-cell {
  background: #f6fff8;
}

/* Eventos */
.st-has-event {
  background: #f4f2ff;
}

.st-event {
  background: #ffffff;
  border: 1px solid #dcd6ff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.st-event:last-child {
  margin-bottom: 0;
}

.st-event-title {
  font-weight: 800;
  font-size: 14px;
  color: #1f1f1f;
}

.st-event-time {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* ---------- MOBILE AGENDA ---------- */
.st-mobile {
  display: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

  /* Oculta tabla */
  .st-table {
    display: none;
  }

  /* Muestra agenda */
  .st-mobile {
    display: block;
  }

  .st-day {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }

  .st-day.is-today {
    border-color: #0b7a2f;
    box-shadow: 0 3px 14px rgba(11,122,47,0.15);
  }

  .st-day-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #0b7a2f;
  }

  .st-day-empty {
    color: #777777;
    font-size: 13px;
    padding: 6px 0;
  }

  /* Cards */
  .st-card {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .st-card:last-child {
    margin-bottom: 0;
  }

  .st-card-title {
    font-weight: 800;
    font-size: 15px;
    color: #222222;
  }

  .st-card-time {
    font-size: 13px;
    color: #666666;
    margin-top: 4px;
  }
}

/* ---------- MICRO-OPTIMIZACIONES ---------- */
@media (hover: hover) {
  .st-event:hover,
  .st-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
  }
}
