/* =========================================
   RESET Y ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-bottom: 1rem;
}

/* =========================================
   BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
    background-color: #0f2e54;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a:hover {
    color: #a0c4ff;
    border-bottom: 2px solid #a0c4ff;
}

/* =========================================
   HERO SECTION (ENCABEZADO)
   ========================================= */
.hero {
    /* Asegúrate de tener la imagen 'image_6.png' en tu carpeta */
    background: linear-gradient(rgba(15, 46, 84, 0.85), rgba(15, 46, 84, 0.7)), url('image_6.png'); 
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: #d1e3ff;
    text-align: center;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    text-align: justify;
    text-align-last: center;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #0f2e54;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: #d1e3ff;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
section {
    padding: 60px 0;
}

.section-light {
    background-color: #fff;
}

.section-dark {
    background-color: #f0f2f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0f2e54;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   PERFIL GRID (MODIFICADO PARA 3 COLUMNAS)
   ========================================= */
.profile-grid {
    display: grid;
    /* 3 Columnas: Texto ancho | Foto | Stats */
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.profile-text p {
    font-size: 1.05rem;
    color: #444;
}

/* Estilos de la Foto Histórica (NUEVO) */
.award-photo {
    margin: 0;
    text-align: left;
}

.award-photo img {
    /* El ancho se controla aquí para ser responsivo */
    width: 100%;    
    height: auto;
    border-radius: 4px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.award-photo img:hover {
    transform: scale(1.02); /* Efecto zoom suave */
}

.award-photo figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.3;
    border-left: 3px solid #0f2e54;
    padding-left: 10px;
}

/* Estilos de las Estadísticas */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #0f2e54;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-box h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #0f2e54;
    text-align: left;
}

.stat-box p {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.95rem;
    hyphens: manual;
}

/* =========================================
   AREAS DE INTERÉS (CARDS)
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #0f2e54;
}

.card h3 {
    margin-bottom: 15px;
    color: #0f2e54;
    text-align: center;
}

.card p {
    font-size: 0.95rem;
    text-align: justify; 
}

/* =========================================
   BLOG
   ========================================= */
.blog-post {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.blog-post h3 {
    text-align: left;
    margin-bottom: 10px;
}

.blog-post h3 a {
    color: #0f2e54;
    text-decoration: none;
}

.blog-post .meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: left;
    font-style: italic;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #666;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #0f2e54;
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

footer h2 {
    color: #fff;
    margin-bottom: 20px;
}

.email-link {
    font-size: 1.3rem;
    color: #a0c4ff;
    font-weight: bold;
    display: block;
    margin: 15px 0;
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .nav-links li {
        margin: 10px 0;
    }
    
    /* Ajuste del Grid del Perfil en Móvil */
    .profile-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 30px;
    }

    /* ORDEN VISUAL EN MÓVIL */
    /* 1. Primero el texto */
    .profile-text  { order: 1; }
    /* 2. Luego la foto para validar lo que dice el texto */
    .award-photo   { order: 2; margin-bottom: 20px; }
    /* 3. Al final las credenciales */
    .profile-stats { order: 3; }

    .hero h1 {
        font-size: 2rem;
    }
    
    .intro-text {
        text-align: justify;
    }
    
    .card {
        padding: 20px;
    }
}

/* =========================================
   ESTILOS PARA REDES SOCIALES (FOOTER)
   ========================================= */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: transparent;
}

/* Colores de marca al pasar el mouse */
.social-link.fb:hover { background-color: #1877F2; }
.social-link.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border: none; }
.social-link.wa:hover { background-color: #25D366; }
.social-link.li:hover { background-color: #0077b5; }