/* ============================================
   VARIABLES DE TEMA (Claro por defecto)
   ============================================ */
:root {
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #222222;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --accent-color: #006699;
    --accent-hover: #3399ff;
}

/* ============================================
   MODO OSCURO AUTOMÁTICO (del sistema)
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0a0a0a;
        --bg-card: #1a1a1a;
        --text-primary: #f1f1f1;
        --text-secondary: #cccccc;
        --border-color: rgba(255, 255, 255, 0.1);
        --shadow-color: rgba(0, 0, 0, 0.6);
        --accent-color: #3399ff;
        --accent-hover: #66b3ff;
    }
}

/* ============================================
   MODO OSCURO MANUAL (por clase .dark)
   ============================================ */
.dark,
.dark-mode {
    --bg-body: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #f1f1f1;
    --text-secondary: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --accent-color: #3399ff;
    --accent-hover: #66b3ff;
}

/* ============================================
   ESTILOS BASE
   ============================================ */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   TÍTULO DE HORARIOS (H2)
   ============================================ */
.horario-content {
    padding: 130px 20px 70px;
    width: 100%;              /* ocupa todo el ancho */
    max-width: 100%;          /* elimina límite */
    margin: 0;                /* quita centrado */
}

.horario-section h2 {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.horario-section h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
    transition: background 0.3s ease;
}

/* Contenedor de horarios */
.horario-box {
    display: flex;
    justify-content: space-evenly; /* distribuye en toda la pantalla */
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

/* ============================================
   CADA TARJETA DE DÍA
   ============================================ */
.horario-dia {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 35px 40px;
    min-width: 250px;
    flex: 1;                  /* se expande proporcionalmente */
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin: 20px;
}

/* Etiquetas (ej: "Hora de Inicio") */
.horario-dia span,
.horario-dia .label {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Valores (ej: la hora) */
.horario-dia p,
.horario-dia small,
.horario-dia .hora {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Hover en la tarjeta */
.horario-dia:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--accent-color);
}

/* Título del día dentro de la tarjeta */
.horario-dia h3 {
    color: var(--text-primary);
    transition: color 0.3s ease;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .horario-box {
        gap: 30px;
    }
    
    .horario-dia {
        min-width: 200px;
        padding: 25px 30px;
        margin: 10px;
        flex: 1 1 100%; /* en móviles ocupa todo el ancho */
    }
}
