/* =========================================
   1. Reset y Estilos Base
   ========================================= */
   :root {
    /* Paleta de colores profesional */
    --primary-color: #003366; /* Azul oscuro institucional */
    --secondary-color: #005b96; /* Azul medio para acentos */
    --text-dark: #333333;     /* Texto principal */
    --text-light: #666666;    /* Texto secundario */
    --bg-light: #f4f7f6;      /* Fondos claros */
    --bg-white: #ffffff;
    --footer-bg: #1a1a1a;     /* Fondo oscuro footer */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden; /* Evita scroll horizontal accidental */
}

/* Contenedor utilitario para centrar contenido */
.container {
    width: 90%;
    max-width: 1100px; /* Ancho máximo en PC */
    margin: 0 auto;
}

/* Tipografía */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

/* =========================================
   2. Header Principal
   ========================================= */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 3rem 0; /* Espaciado interno */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-direction: column; /* En celulares, uno debajo del otro */
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.official-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.official-title {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px; /* Evita que el título sea muy ancho en móviles */
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%; /* Hace la imagen circular */
    object-fit: cover; /* Asegura que la foto llene el círculo sin deformarse */
    border: 5px solid rgba(255, 255, 255, 0.3); /* Borde semitransparente */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* =========================================
   3. Secciones Principales (Main)
   ========================================= */
section {
    padding: 4rem 0; /* Espaciado vertical generoso entre secciones */
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

/* Línea decorativa debajo de los títulos */
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-intro {
    background-color: var(--bg-white);
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Estilos de la Misión (Función Principal) */
.section-mission {
    background-color: var(--primary-color); /* Fondo azul para destacar */
    color: var(--bg-white);
    text-align: center;
}

.mission-title {
    color: var(--bg-white); /* Título blanco en esta sección */
}
.mission-title::after {
    background-color: rgba(255,255,255,0.3); /* Línea decorativa más clara */
    left: 50%;
    transform: translateX(-50%); /* Centrar la línea decorativa */
}

.mission-statement {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    max-width: 800px;
    margin: 2rem auto 0;
    line-height: 1.8;
    position: relative;
}
/* Comillas decorativas grandes */
.mission-statement::before {
    content: '\201C'; /* Comilla de apertura gigante */
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -40px;
    opacity: 0.2;
    font-family: serif;
}


/* =========================================
   4. Sección de Facebook
   ========================================= */
.section-facebook {
    background-color: var(--bg-light);
    text-align: center;
}

.section-facebook .section-title::after {
     left: 50%;
    transform: translateX(-50%);
}

.facebook-embed-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    /* El ancho lo define el plugin de FB, pero aseguramos que no se desborde */
    max-width: 100%; 
    overflow: hidden;
}

/* =========================================
   5. Footer y Redes Sociales
   ========================================= */
.site-footer {
    background-color: var(--footer-bg);
    color: #aaaaaa;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-icon svg {
    fill: #aaaaaa; /* Color base de los íconos */
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* Efecto hover en los íconos */
.social-icon:hover svg {
    fill: var(--secondary-color); /* Cambia de color al pasar el mouse */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
}

.footer-copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

/* =========================================
   6. Media Queries (Responsive Design)
   ========================================= */

/* Pantallas de Tablet y Escritorio (mayores a 768px) */
@media (min-width: 768px) {
    
    /* Reorganización del Header para PC: Texto a la izquierda, Foto a la derecha */
    .header-content {
        flex-direction: row; /* Elementos en fila */
        justify-content: space-between; /* Separados a los extremos */
        text-align: left; /* Texto alineado a la izquierda */
        padding: 2rem 0;
    }

    /* Orden visual: aseguro que el texto quede primero (izquierda) y la imagen después (derecha) */
    .header-text {
        order: 1;
        flex: 1; /* Toma el espacio disponible */
    }

    .header-image {
        order: 2;
        margin-left: 3rem; /* Separación entre texto e imagen */
    }

    .official-name {
        font-size: 3.5rem; /* Nombre más grande en PC */
    }
    
    .official-title {
        font-size: 1.5rem;
    }

    .profile-photo {
        width: 280px; /* Foto más grande en PC */
        height: 280px;
    }

    /* Ajustes generales para pantallas grandes */
    .section-title {
        font-size: 2.5rem;
    }

    .lead-text {
        font-size: 1.25rem;
    }

    .mission-statement {
        font-size: 1.8rem;
    }
}