/* ---- Variables y Estilos Globales ---- */
:root {
    --primary-blue: #21618c;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #ffffff;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ---- Barra de Navegación Lateral (Sidebar) ---- */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu li a:hover {
    background-color: rgba(33, 97, 140, 0.1);
    color: var(--primary-blue);
    border-right: 3px solid var(--primary-blue);
}

.nav-menu li a i {
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--primary-blue);
    width: 20px; /* Ancho fijo para alineación */
    text-align: center;
}

/* ---- Contenido Principal ---- */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease-in-out;
    width: calc(100% - var(--sidebar-width));
}

/* ---- Encabezado ---- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logos {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- ESTILOS DE LOGO MODIFICADOS --- */
.logo {
    object-fit: contain;
    height: 60px; /* Altura para computadoras por defecto */
}

header h1 {
    color: var(--primary-blue);
    font-weight: 700;
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ---- Contenido de la Página ---- */
.banner {
    width: 100%;
    background: var(--light-gray);
}

.content-area {
    padding: 2rem;
}

/* ---- Pie de Página ---- */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding-top: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 2rem 2rem 2rem;
    gap: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h4 {
    color: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p, .footer-section ul, .footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background-color: #222;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}


/* ---- Diseño Responsivo (Tablets y Móviles) ---- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Esta clase no es necesaria con el enfoque actual, pero se puede mantener por si se añaden otros efectos */
    .main-content.sidebar-active { }
    
    .menu-toggle {
        display: block; /* Muestra el botón hamburguesa */
        z-index: 1001;
    }
    
    /* --- ESTILO DE LOGO MODIFICADO PARA MÓVILES Y TABLETAS --- */
    .logo {
        height: 40px; /* Altura ajustada para tabletas y móviles */
    }

    header h1 {
        font-size: 1.5rem; /* Ajustar tamaño de título en móvil */
    }
}