/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    background-color: #0a192f;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
}

.search-container {
    display: flex;
    width: 40%;
    min-width: 200px;
}

.search-container input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-container button {
    padding: 10px 15px;
    background-color: #ff6b35;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.login-btn {
    background-color: transparent;
    border: 2px solid #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #ff6b35;
}

/* =========================================
   SECCIÓN HERO
========================================= */
.hero {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

.hero-updates {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
    background-color: rgba(255,107,53,0.2);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
}

/* =========================================
   ESTRUCTURA PRINCIPAL Y AVISO
========================================= */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.construction-banner {
    background-color: #f8f9fa;
    border-left: 5px solid #e67e22;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.construction-banner h2 {
    color: #0a192f;
    margin-bottom: 10px;
}

.construction-banner p {
    color: #4a5568;
    font-size: 1.1em;
}

/* =========================================
   MATERIAS PRINCIPALES (3 COLUMNAS)
========================================= */
.materias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.subject-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #2b6cb0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-top: 5px solid #e67e22;
}

.card-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.subject-card h3 {
    color: #0a192f;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.subject-card p {
    color: #718096;
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-ver-temas {
    background-color: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-ver-temas:hover {
    background-color: #e67e22;
    color: white;
}

.btn-enter {
    background-color: #e67e22;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enter:hover {
    background-color: #cf711f;
}

/* =========================================
   BLOQUES DE TEMAS DESPLEGABLES
========================================= */
.temas-materia {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.subseccion-titulo {
    text-align: left;
    color: #0a192f;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 5px solid #e67e22;
    padding-left: 15px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .materias-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-container {
        width: 100%;
        order: 3;
    }
    .nav-links {
        justify-content: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .subjects-grid {
        gap: 20px;
    }
}