:root {
    --primary-color: #005f73;
    --secondary-color: #94d2bd;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --sidebar-bg: #111111; /* Color oscuro del menú lateral */
    --sidebar-width: 260px;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- ESTRUCTURA PRINCIPAL (LAYOUT) --- */
.app-layout {
    display: flex; /* Esto pone el menú al lado del contenido */
    min-height: 100vh;
}

/* --- BARRA LATERAL (SIDEBAR) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    flex-shrink: 0; /* Evita que la barra se encoja */
    display: flex;
    flex-direction: column;
    position: sticky; /* Opcional: mantiene el menú visible al bajar */
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.sidebar-header h3 {
    margin: 10px 0 0;
    font-size: 1.2rem;
    font-weight: 400;
}

.sidebar-logo {
    width: 40px; /* Ajusta según tu logo pequeño */
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-nav li a {
    display: block;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav li a:hover, 
.sidebar-nav li a.active {
    background-color: #222;
    color: white;
    border-left-color: var(--primary-color); /* Borde de color al pasar el mouse */
}

.sidebar-nav li a i {
    font-size: 0.8rem; /* Flechas pequeñas */
}

/* --- CONTENIDO PRINCIPAL --- */
.main-content {
    flex-grow: 1; /* Ocupa todo el espacio restante */
    overflow-x: hidden;
    background-color: var(--bg-color);
}

/* --- TUS ESTILOS ORIGINALES (Header, Contacto, etc.) --- */

header {
    background-color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Sección Facebook y Contacto */
.facebook-section, .contact-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Facebook Fix */
.fb-page-container {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}
.fb-page, .fb-page span, .fb-page iframe {
    width: 100%; 
    max-width: 500px; 
    margin: 0 auto; 
}

/* Grilla de Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.email-list p { margin: 0.5rem 0; }
.email-list a {
    color: var(--text-color);
    text-decoration: none;
}
.email-list a:hover { text-decoration: underline; }

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    background-color: white;
    border-top: 1px solid #eee;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column; /* En celular, el menú se va arriba */
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
}