/* ==========================================
   1. ESTILOS GLOBALES Y RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

:root {
    --azul-oscuro: #0d1b33;
    --azul-nav: #1a2a44;
    --guinda: #8B2323;
    --dorado: #cd7f32;
}

body {
    background-color: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   2. BARRA DE NAVEGACIÓN
   ========================================== */
nav {
    width: 100%;
    background-color: var(--azul-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%; 
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--dorado);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
}

/* ==========================================
   3. SECCIÓN HERO (BANNER INICIAL)
   ========================================== */
.hero {
    position: relative; 
    overflow: hidden;    
    min-height: 600px;   
    background-image: url('../assets/img/instalaciones/JOSEOLAYABALANDRA2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(219, 211, 211);
    padding: 0 10%; 
    display: flex;
    gap: 40px;
    justify-content: flex-end;
    align-items: center;
}

/* ==========================================
   4. ENVOLTORIO CENTRAL
   ========================================== */
.page-wrapper {
    width: 100%;
    padding: 40px 10%; 
    display: flex;
    flex-direction: column;
    gap: 50px; 
}

/* ==========================================
   5. SECCIÓN HISTORIA
   ========================================== */
.history-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto; 
}

.section-title {
    font-size: 50px; 
    color: var(--guinda); 
    margin-bottom: 25px;
    font-weight: bold;
}

.history-text {
    font-size: 1.1rem; 
    line-height: 1.8;
    color: #444444;
    text-align: justify;
    margin-bottom: 20px;
}

/* ==========================================
   6. TARJETAS DE PERSONAL (DIRECTIVOS)
   ========================================== */
.profile-card-section {
    width: 100%;
}

.profile-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 50px;
    width: 100%;
}

.container-subdirectora {
    flex-direction: row-reverse;
}

.level-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-accent-dire {
    width: 350px;
    max-width: 450px; 
    height: 450px;
    border-radius: 20px; 
    border: 4px solid var(--dorado); 
    overflow: hidden;
    box-shadow: 0 15px 10px rgba(0,0,0,0.5);
}

.espacio{
    height: 40px !important;
}

.circle-accent-dire img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.circle-accent-dire img:hover {
    transform: scale(1.1); 
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--azul-oscuro); 
    margin-bottom: 5px;
}

.profile-role {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dorado); 
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555555;
    text-align: justify;
}

/* ==========================================
   7. PANCARTAS DE SECCIONES (PLANTELES)
   ========================================== */
.sub-banner-section {
    width: 100%;
}

.banner-tag {
    background-color: #9e8247;
    color: white;
    padding: 8px 22px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.circle-accent-primaria {
    width: auto;
    height: 450px;
    border-radius: 20px; 
    border: 4px solid var(--dorado); 
    overflow: hidden;
    box-shadow: 0 15px 10px rgba(0,0,0,0.5);
    margin-bottom: 50px;
}

.circle-accent-primaria img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.circle-accent-primaria img:hover {
    transform: scale(1.1); 
}

/* ==========================================
   8. PIE DE PÁGINA (FOOTER)
   ========================================== */
footer {
    background: var(--azul-oscuro);
    color: white;
    padding: 60px 10% 20px 10%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

.school-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dorado);
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--dorado);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--dorado);
    margin-top: 5px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.social-icons a {
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--dorado);
}

/* ==========================================
   9. RESPONSIVE / ADAPTACIÓN MÓVIL
   ========================================== */
@media (max-width: 768px) {
    nav {
        padding: 10px 5%;
    }

    .page-wrapper {
        padding: 30px 5%;
        gap: 35px;
    }

    .section-title {
        font-size: 35px;
    }

    .profile-container, 
    .container-subdirectora {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .profile-description {
        text-align: justify;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .circle-accent-dire {
        width: 100%;
        height: auto;
    }
}