/* ==========================================================================
   ESTILOS GENERALES PÁGINA NOSOTROS
   ========================================================================== */

.nosotros-main {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    font-family: 'Exo', sans-serif;
}

.nosotros-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.text-center {
    text-align: center;
}

.nosotros-title-red {
    color: #8C1527;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.nosotros-sub-gray {
    color: #666666;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* ==========================================================================
   1. PORTADA HERO
   ========================================================================== */

.section-nosotros-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 420px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.nosotros-hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.nosotros-breadcrumbs {
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 2px;
    font-weight: 600;
}

.nosotros-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nosotros-breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ffffff;
}

.breadcrumb-current {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   2. HISTORIA Y VIDEO INSTITUCIONAL
   ========================================================================== */

.section-nosotros-historia {
    padding: 70px 0 50px 0;
    background-color: #ffffff;
}

.historia-isotipo {
    text-align: center;
    margin-bottom: 35px;
}

.historia-isotipo img {
    width: 50px;
    height: auto;
}

.historia-paragraphs {
    max-width: 820px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.historia-paragraphs p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.historia-video-wrapper {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 52%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    width: 85px;
    height: 85px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-svg-icon {
    width: 100%;
    height: 100%;
}

.video-label-tag {
    position: absolute;
    bottom: 20px;
    left: 25px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. ESTADÍSTICAS EN NOSOTROS (ESTILOS CORREGIDOS)
   ========================================================================== */

.section-stats-nosotros {
    padding: 30px 0 60px 0;
    background-color: #ffffff;
}

.section-stats-nosotros .stats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-stats-nosotros .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    align-items: flex-end;
}

.section-stats-nosotros .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-stats-nosotros .stat-icon {
    margin-bottom: 15px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-stats-nosotros .stat-icon img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

.section-stats-nosotros .stat-number {
    font-family: 'Exo', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: #8C1527;
    line-height: 1;
    margin-bottom: 10px;
}

.section-stats-nosotros .stat-label {
    font-family: 'Exo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444444;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* ==========================================================================
   4. SOMOS PARTE DE (ASOCIADOS CON DIVISOR RECTANGLE CORREGIDO)
   ========================================================================== */

.section-somos-parte {
    padding: 40px 0 70px 0;
    background-color: #ffffff;
}

.carousel-text-divider-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.carousel-arrow-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.somos-parte-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #555555;
    letter-spacing: 3px;
    margin: 30px 0 45px 0;
    text-transform: uppercase;
}

.somos-parte-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.parte-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.parte-logo-item img {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
}

.parte-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   5. MISIÓN Y VISIÓN
   ========================================================================== */

.section-mision-vision-nosotros {
    width: 100%;
}

.section-mision-vision-nosotros .mission-vision-fluid-container {
    display: flex;
    width: 100%;
}

.section-mision-vision-nosotros .mv-block {
    flex: 1;
    padding: 65px 40px;
    text-align: center;
    color: #ffffff;
}

.section-mision-vision-nosotros .mv-mision {
    background-color: #8C1527;
}

.section-mision-vision-nosotros .mv-vision {
    background-color: #2b2827;
}

.section-mision-vision-nosotros .mv-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
}

.section-mision-vision-nosotros .mv-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   7. CERTIFICACIONES
   ========================================================================== */

.section-certificaciones {
    padding: 70px 0;
    background-color: #f9f9f9;
}

.certificaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.cert-card img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.cert-card-info h4 {
    color: #8C1527;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cert-card-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   8. ALIANZAS Y CONVENIOS
   ========================================================================== */

.section-alianzas {
    padding: 70px 0;
    background-color: #ffffff;
}

.alianzas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.alianza-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.alianza-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.alianza-icon img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.alianza-card h3 {
    color: #8C1527;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.alianza-card p {
    color: #666666;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   MODAL DE VIDEO INSTITUCIONAL
   ========================================================================== */

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay.active {
    display: flex;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: #000;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.video-responsive-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 992px) {
    .section-stats-nosotros .stats-grid {
        gap: 20px;
    }
    .section-stats-nosotros .stat-number {
        font-size: 3.2rem;
    }
    .alianzas-grid {
        grid-template-columns: 1fr;
    }
    .section-mision-vision-nosotros .mission-vision-fluid-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nosotros-hero-title {
        font-size: 2.2rem;
    }
    .section-stats-nosotros .stats-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .nosotros-title-red {
        font-size: 1.8rem;
    }
    .somos-parte-logos-grid {
        gap: 30px;
    }
}