/* css/style.css */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #4A4A4A; /* Gris oscuro para texto principal */
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    background: #2E3192; /* Azul Oscuro/Índigo del logo */
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #F37021 4px solid; /* Naranja del logo */
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    transition: color 0.3s ease;
}

header a:hover, header li.current a {
    color: #8DC63F; /* Verde Lima para hover/current */
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header li {
    padding: 0 15px;
}

header #branding {
    float: left;
    margin: 0;
}

header #branding h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

header #branding h1 a {
    font-weight: bold;
}
/* El color del SPAN "SOMOS" se controlará directamente en el HTML */

header nav {
    margin-top: 5px;
}

/* --- HERO SECTION (SHOWCASE) --- */
#showcase {
    min-height: 450px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}

#showcase .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 49, 146, 0.6); /* Azul Oscuro/Índigo semitransparente */
    z-index: -50;
}

#showcase h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    font-weight: bold;
}

#showcase p {
    font-size: 20px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 700px;
}

/* --- BUTTONS --- */
.button, .cta-button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button { /* Botón de Acción Principal */
    background: #00A9E0; /* Azul Primario del logo */
    color: #fff;
}
.cta-button:hover {
    background: #008CBA; /* Azul Primario más oscuro */
    transform: translateY(-2px);
}

.button { /* Botón Secundario */
    background: #F37021; /* Naranja del logo */
    color: #fff; /* Texto blanco para buen contraste en naranja */
}
.button:hover {
    background: #D45F1C; /* Naranja más oscuro */
    transform: translateY(-2px);
}


/* --- SECCIONES GENERALES --- */
section {
    padding: 30px 0;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

section h2 { /* Títulos de sección generales */
    text-align: center;
    margin-bottom: 30px;
    color: #2E3192; /* Azul Oscuro/Índigo del logo */
    font-size: 28px;
}

.section-dark { /* Secciones con fondo oscuro */
    background: #2E3192; /* Azul Oscuro/Índigo del logo */
    color: #f4f7f6; /* Texto claro */
}
.section-dark h2 {
    color: #00A9E0; /* Títulos en Azul Primario del logo */
}
.section-dark .cta-button { /* Para que el botón se vea bien en fondo oscuro */
    background: #F37021; /* Naranja */
    color: #fff;
}
.section-dark .cta-button:hover{
    background: #D45F1C;
}


.section-highlight { /* Secciones destacadas */
    background: #E6F6FB; /* Un tinte muy claro del Azul Primario */
    padding: 30px;
    border-left: 6px solid #00A9E0; /* Azul Primario del logo */
    margin-top: 20px;
    margin-bottom: 20px;
}
.section-highlight h2{
    text-align: left;
    color: #007BAA; /* Un tono más oscuro del Azul Primario */
}

/* --- CONTENT CARDS --- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.content-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.content-card img {
    max-width: 100%;
    height: 150px; /* Aumentado un poco para las fotos */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.content-card h3 {
    color: #2E3192; /* Azul Oscuro/Índigo para títulos de tarjeta */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}
.content-card p {
    font-size: 15px;
    color: #58595B; /* Gris del texto del logo */
    margin-bottom: 15px;
}


/* --- NEWS & ANNOUNCEMENTS ITEMS --- */
.news-item, .announcement-item {
    background: #fdfdfd;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #F37021; /* Naranja del logo */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

.news-item h3, .announcement-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2E3192; /* Azul Oscuro/Índigo */
    font-size: 20px;
}
.news-item p, .announcement-item p {
    margin-bottom: 10px;
    color: #58595B; /* Gris del texto del logo */
}
.news-item a, .announcement-item a {
    color: #00A9E0; /* Enlaces en Azul Primario */
    text-decoration: none;
    font-weight: bold;
}
.news-item a:hover, .announcement-item a:hover {
    text-decoration: underline;
    color: #F37021; /* Naranja al pasar el mouse */
}

/* --- FOOTER --- */
footer {
    padding: 25px;
    margin-top: 30px;
    color: #e0e0e0;
    background-color: #2E3192; /* Azul Oscuro/Índigo del logo */
    text-align: center;
}
footer p {
    margin: 5px 0;
    font-size: 14px;
}
footer a {
    color: #00A9E0; /* Azul Primario del logo */
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
    color: #8DC63F; /* Verde Lima al pasar el mouse */
}

/* --- AJUSTES ESPECÍFICOS PÁGINA INICIO --- */
#main-content.container > h2 {
    text-align: center;
    color: #2E3192; /* Azul Oscuro/Índigo */
    font-size: 32px;
    margin-bottom: 20px;
}
#main-content.container > p {
    text-align: center;
    font-size: 17px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: #58595B; /* Gris del texto del logo */
}

/* --- RESPONSIVE --- */
@media(max-width: 768px){
    header {
        padding-bottom: 10px;
    }
    header #branding {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }
    header nav,
    header nav ul {
        float: none;
        text-align: center;
        width: 100%;
        flex-direction: column;
    }
    header nav li {
        padding: 10px 0;
    }

    #showcase {
        min-height: 350px;
    }
    #showcase h1{
        font-size: 32px;
    }
    #showcase p {
        font-size: 16px;
    }
    .container {
        width: 95%;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    section h2 {
        font-size: 24px;
    }
    #main-content.container > h2 {
        font-size: 26px;
    }
}