/* ====================== FUENTES ====================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Poppins:wght@400;500;600&family=Roboto:wght@400;500&display=swap');

:root {
    --verde-principal: #008000;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

.lead, .fw-bold {
    font-family: 'Poppins', sans-serif;
}

/* ====================== NAVBAR ====================== */
.custom-navbar {
    background-color: var(--verde-principal) !important;
}

.custom-navbar .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
    position: relative;
}

.custom-navbar .nav-link:hover {
    color: #ffffff !important;
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}

/* Línea blanca debajo de la página activa (solo PC) */
@media (min-width: 992px) {
    .custom-navbar .nav-link.active::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: #ffffff;
        bottom: 10px;
        left: 0;
        border-radius: 2px;
    }
}

/* ====================== HERO ====================== */
.hero-banner {
    margin-top: 75px;
}

.hero-banner img {
    width: 100%;
    object-fit: cover;
    min-height: 200px;
    max-height: 820px;
    display: block;
}

/* ====================== TÍTULOS VERDES — ANCHO COMPLETO ====================== */
/*
  La clave: el header es hijo DIRECTO de la <section> (fuera del .container),
  por lo que hereda el 100% del viewport sin necesidad de márgenes negativos.
  Se elimina overflow:hidden de las secciones para no recortar nada.
*/
.green-full-header {
    background-color: var(--verde-principal);
    padding: 15px 20px;
    width: 100%;               /* ocupa todo el ancho de la sección padre */
}

.green-full-header h2 {
    margin: 0;
    font-size: calc(1.1rem + 1vw);
    letter-spacing: 1.2px;
}

/* ====================== SECCIONES ====================== */
.seccion-claro {
    background-color: #f8f9fa;
    /* sin overflow:hidden para que el header verde no se corte */
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: #000;
}

.texto-principal {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ====================== MISIÓN Y VISIÓN ====================== */
.card-mision {
    background-color: white;
    border: 2px solid var(--verde-principal);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* ====================== EQUIPO ====================== */
.team-card {
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-radius: 16px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.team-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--verde-principal);
    margin-bottom: 15px;
}

/* ====================== FOOTER ====================== */
footer {
    background-color: #008000;
}

footer a {
    text-decoration: none;
}

/* ====================== TABLET (768px - 991px) ====================== */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background-color: var(--verde-principal);
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .custom-navbar .nav-link {
        margin: 4px 0;
        padding: 8px 12px;
    }

    .custom-navbar .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        padding-left: 10px;
    }

    .custom-navbar .nav-link.active::after {
        display: none;
    }

    .hero-banner {
        margin-top: 70px;
    }

    .green-full-header h2 {
        font-size: calc(1rem + 1vw);
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .texto-principal {
        font-size: 0.97rem;
    }
}

/* ====================== CELULAR (menos de 576px) ====================== */
@media (max-width: 575.98px) {
    .hero-banner {
        margin-top: 65px;
    }

    .hero-banner img {
        min-height: 150px;
    }

    .green-full-header {
        padding: 12px 10px;
    }

    .green-full-header h2 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .team-photo {
        width: 110px;
        height: 110px;
    }

    .texto-principal {
        font-size: 0.93rem;
        text-align: center;
    }

    .card-mision {
        padding: 16px !important;
    }

    .card-mision h4 {
        font-size: 1rem;
    }

    .card-mision p {
        font-size: 0.88rem;
    }

    footer .row > div {
        text-align: center !important;
    }

    footer img {
        height: 50px !important;
    }

    .team-card {
        padding: 16px 10px;
    }

    .team-card h5 {
        font-size: 1rem;
    }

    .team-card .small {
        font-size: 0.82rem;
    }
}
            
