/* ==========================================================================
   ESTILOS GENERALES PÁGINA NOSOTROS
   ========================================================================== */

.nosotros-main {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.nosotros-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.text-center {
    text-align: center;
}

.nosotros-title-red {
    font-family: 'Montserrat', sans-serif;
    color: #8C1527;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.nosotros-sub-gray {
    font-family: 'Montserrat', sans-serif;
    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: 50vh !important;
    min-height: 600px !important;
    max-height: none !important;
    background-size: cover !important;
    background-position: center 35% !important;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    box-sizing: border-box;
}

.nosotros-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.1) 100%);
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.nosotros-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 4px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.nosotros-breadcrumbs {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.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;
}

/* RESPONSIVE MÓVIL HERO */
@media screen and (max-width: 768px) {
    .section-nosotros-hero {
        height: 60vh !important;
        min-height: 420px !important;
        padding-top: 60px;
        background-position: center 25% !important;
    }
    
    .nosotros-hero-title {
        font-size: 2.2rem;
    }
}


/* ==========================================================================
   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-family: 'Montserrat', sans-serif;
    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-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. ESTADÍSTICAS EN NOSOTROS
   ========================================================================== */

.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: 'Montserrat', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: #8C1527;
    line-height: 1;
    margin-bottom: 10px;
}

.section-stats-nosotros .stat-label {
    font-family: 'Montserrat', 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
   ========================================================================== */

.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-family: 'Montserrat', sans-serif;
    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-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
}

.section-mision-vision-nosotros .mv-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   7. SECCIÓN NUESTRA HISTORIA (MARGEN LATERAL DE 90PX EN FULL WIDTH)
   ========================================================================== */

.section-nuestra-historia {
    padding: 60px 0 40px 0;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Configuración de Ancho Completo con 90px de padding lateral */
.nuestra-historia-wrapper.is-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0 90px;
    margin: 30px auto 0 auto;
    box-sizing: border-box;
}

.nuestra-historia-wrapper.is-contained {
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

/* Contenedor Pan & Zoom Interno */
.nuestra-historia-pan-zoom-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nuestra-historia-pan-zoom-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transform-origin: 0 0;
    transition: transform 0.05s linear;
    will-change: transform;
}

/* Controles Flotantes (+) (-) y Reset */
.pan-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    background-color: #8C1527;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zoom-btn:hover {
    background-color: #2C2825;
    transform: translateY(-2px);
}

/* Indicador Informativo Flotante */
.zoom-help-tag {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(44, 40, 37, 0.75);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================================
   8. SECCIÓN ALIANZAS Y CONVENIOS
   ========================================================================== */

.section-alianzas-modern {
    padding: 60px 20px 80px 20px;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.alianzas-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #8C1527;
    margin: 0 0 12px 0;
}

.alianzas-main-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #555555;
    max-width: 750px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* Contenedor blanco con bordes y sombra */
.alianzas-card-container {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

/* Grilla en 2 Columnas */
.alianzas-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: relative;
}

.alianza-box-item {
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Línea divisora vertical entre tarjetas */
.alianza-box-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #E2E2E2;
}

.alianza-box-icon {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.alianza-box-icon img {
    max-height: 100px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.alianza-box-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2825;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.alianza-box-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

/* Responsive para dispositivos móviles */
@media screen and (max-width: 768px) {
    .alianzas-dual-grid {
        grid-template-columns: 1fr;
    }

    .alianza-box-item {
        padding: 35px 20px;
    }

    .alianza-box-item:not(:last-child)::after {
        top: auto;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
    }

    .alianza-box-icon {
        height: 90px;
        margin-bottom: 15px;
    }

    .alianza-box-icon img {
        max-height: 80px;
    }
}

/* ==========================================================================
   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%;
}

/* BOTONES AUTOGESTIONABLES EN ALIANZAS */
.alianza-btn-wrapper {
    margin-top: 20px;
}

.alianza-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: #8C1527;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(140, 21, 39, 0.25);
}

.alianza-action-btn:hover {
    background-color: #2C2825;
    transform: translateY(-2px);
}

.alianza-action-btn.btn-pdf {
    background-color: #2C2825;
}

.alianza-action-btn.btn-pdf:hover {
    background-color: #8C1527;
}

/* ==========================================================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================================================== */

@media screen and (max-width: 992px) {
    .section-stats-nosotros .stats-grid {
        gap: 20px;
    }
    .section-stats-nosotros .stat-number {
        font-size: 3.2rem;
    }
    .section-mision-vision-nosotros .mission-vision-fluid-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .section-nosotros-hero {
        padding-top: 90px;
        min-height: 320px;
        height: 45vh;
    }
    
    .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;
    }

    /* Regla para ocultar Historia en Móvil cuando se selecciona en el admin */
    .section-nuestra-historia.hide-on-mobile {
        display: none !important;
    }

    .pan-zoom-controls {
        bottom: 10px;
        right: 12px;
    }

    .zoom-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .zoom-help-tag {
        display: none;
    }
}



/* ==========================================================================
   SECCIÓN PRESENTACIÓN INSTITUCIONAL (CON ANIMACIONES Y TEXTO ALINEADO A LA IZQUIERDA)
   ========================================================================== */

.section-nosotros-intro {
    width: 100%;
    background-color: #ffffff;
    padding: 90px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.nosotros-intro-container {
    max-width: 1140px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    align-items: center;
    gap: 50px;
}

/* --- Columna 1: Isotipo y Texto --- */
.intro-col-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-logo {
    margin-bottom: 30px;
}

.intro-logo img {
    height: 55px;
    width: auto;
    display: block;
}

.intro-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #4A4A4A;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    text-align: left; /* Cambiado a alineación izquierda */
}

/* --- Columna 2: Imagen Central --- */
.intro-col-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.intro-image-wrapper {
    width: 100%;
    max-width: 380px;
    border-radius: 6px;
    overflow: hidden;
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Columna 3: Insignia 22 Años (Imagen) --- */
.intro-col-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-badge-wrapper {
    width: 100%;
    max-width: 220px;
    display: flex;
    justify-content: center;
}

.intro-badge-wrapper img {
    width: 100%;
    height: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.intro-badge-wrapper img:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   ANIMACIONES DE APARICIÓN SUAVE (REVEAL ON SCROLL)
   ========================================================================== */

.section-nosotros-intro .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.section-nosotros-intro .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .nosotros-intro-container {
        gap: 30px;
        grid-template-columns: 1fr 1fr 0.7fr;
    }

    .intro-badge-wrapper img {
        max-width: 180px;
    }
}

@media screen and (max-width: 900px) {
    .section-nosotros-intro {
        padding: 60px 20px;
    }

    .nosotros-intro-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .intro-col-text {
        align-items: center;
    }

    .intro-description {
        text-align: center; /* Centrado en móvil para mejor legibilidad */
        max-width: 600px;
    }

    .intro-image-wrapper {
        max-width: 450px;
    }

    .intro-badge-wrapper img {
        max-width: 180px;
    }
}

@media screen and (max-width: 480px) {
    .intro-logo img {
        height: 45px;
    }

    .intro-description {
        font-size: 0.95rem;
    }

    .intro-badge-wrapper img {
        max-width: 150px;
    }
}

/* ==========================================================================
   SECCIÓN CREANDO HOGARES FELICES (DESKTOP + MÓVIL PERFECTO + ANIMACIONES)
   ========================================================================== */

.section-creando-hogares {
    width: 100%;
    background-color: #ffffff;
    padding: 50px 20px 70px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.creando-hogares-container {
    max-width: 1140px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Título con Líneas Guinda --- */
.creando-title-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.creando-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #8C1527;
    margin: 0;
    letter-spacing: 1.5px;
    text-align: center;
    white-space: nowrap;
}

.title-line {
    flex-grow: 1;
    height: 1.5px;
    background-color: #8C1527;
}

/* --- Grilla de 2 Columnas --- */
.creando-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    column-gap: 40px;
    margin-bottom: 40px;
    align-items: center; /* Centra cada texto respecto al eje vertical de su foto */
}

.creando-text-block p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #4A4A4A;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    text-align: justify;
    text-align-last: left;
}

.creando-text-block p strong {
    color: #8C1527;
    font-weight: 700;
}

/* --- Tarjeta de Video --- */
.creando-video-block {
    width: 100%;
}

.creando-video-card {
    width: 100%;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
}

.creando-video-cover {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creando-play-btn {
    background: none;
    border: none;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
}

.creando-play-btn:hover {
    transform: scale(1.08);
}

.play-svg-icon {
    width: 100%;
    height: 100%;
}

/* --- Imagen del Edificio --- */
.creando-image-block {
    width: 100%;
}

.creando-image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0px;
}

/* --- Párrafo Inferior Completo --- */
.creando-bottom-text {
    width: 100%;
    margin-top: 40px;
}

.creando-bottom-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #4A4A4A;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    text-align: left;
}

/* ==========================================================================
   ANIMACIONES DE APARICIÓN SUAVE (REVEAL ON SCROLL)
   ========================================================================== */

.section-creando-hogares .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.section-creando-hogares .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================================================== */

@media screen and (max-width: 850px) {
    .section-creando-hogares {
        padding: 40px 15px;
    }

    .creando-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .creando-grid {
        grid-template-columns: 1fr;
        row-gap: 25px;
        margin-bottom: 20px;
    }

    .creando-grid > * {
        align-self: stretch !important;
    }

    .creando-image-block {
        transform: none !important;
        margin-bottom: 0 !important;
    }

    .creando-image-block.reveal-on-scroll {
        transform: translateY(30px) !important;
    }

    .creando-image-block.reveal-on-scroll.active {
        transform: translateY(0) !important;
    }

    .creando-bottom-text {
        margin-top: 0px !important;
    }

    .creando-video-cover {
        height: 220px;
    }
}

@media screen and (max-width: 480px) {
    .title-line {
        display: none;
    }

    .creando-title {
        font-size: 1.15rem;
    }

    .creando-text-block p,
    .creando-bottom-text p {
        font-size: 0.92rem;
    }
}


/* ==========================================================================
   SECCIÓN ESTADÍSTICAS FULL WIDTH (ANCHO COMPLETO)
   ========================================================================== */

.section-stats-fullwidth {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    margin: 40px 0;
}

.stats-fullwidth-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 180px;
}

.stat-full-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 30px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Colores de Fondo de cada franja */
.stat-full-item.bg-guinda {
    background-color: #8C1527;
    color: #ffffff;
}

.stat-full-item.bg-gris-claro {
    background-color: #E6E6E6;
    color: #2C2825;
}

.stat-full-item.bg-gris-medio {
    background-color: #DDDCDC;
    color: #2C2825;
}

/* Disposición horizontal interna (Número alineado a la izquierda del texto) */
.stat-full-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Números Gigantes */
.stat-full-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
}

.stat-prefix {
    font-size: 3.5rem;
    font-weight: 700;
    margin-right: 2px;
}

/* Etiquetas al Costado */
.stat-full-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Color del texto específico para bloques claros */
.bg-gris-claro .stat-full-label,
.bg-gris-medio .stat-full-label {
    color: #333333;
}

.bg-gris-claro .stat-full-number,
.bg-gris-medio .stat-full-number {
    color: #1A1A1A;
}

/* ==========================================================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .stat-full-number {
        font-size: 3.2rem;
    }

    .stat-prefix {
        font-size: 2.6rem;
    }

    .stat-full-label {
        font-size: 0.75rem;
    }

    .stat-full-item {
        padding: 35px 20px;
    }
}

@media screen and (max-width: 768px) {
    .stats-fullwidth-grid {
        grid-template-columns: 1fr; /* Pasa a 3 filas en celulares */
    }

    .stat-full-item {
        padding: 35px 20px;
    }

    .stat-full-content {
        justify-content: center;
    }

    .stat-full-number {
        font-size: 3.8rem;
    }

    .stat-full-label {
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   SECCIÓN MISIÓN Y VISIÓN (EJE CENTRAL EN 50% EXACTO + EDIFICIO 600PX)
   ========================================================================== */

.section-mision-vision-grid {
    width: 100%;
    background-color: #ffffff;
    padding: 60px 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* El contenedor siempre mantendrá el eje vertical al 50% de la pantalla */
.mv-grid-container {
    max-width: 800px; /* 400px a la izquierda + 400px a la derecha */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ambas filas son simétricas de 2 columnas de 400px (1fr / 1fr) */
.mv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.row-mision {
    align-items: end; /* Une la esquina inferior de Misión en el centro */
}

.row-vision {
    align-items: start; /* Une la esquina superior de Visión en el centro */
}

/* --- BLOQUES DE COLOR (FRANJAS DELGADAS) --- */
.mv-card-color {
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 180px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

/* Sangrado a la izquierda en Misión */
.card-guinda {
    background-color: #8C1527;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 25px);
    justify-content: flex-end;
}

/* Sangrado a la derecha en Visión */
.card-oscuro {
    background-color: #2C2825;
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50% + 25px);
    justify-content: flex-start;
}

.mv-card-inner {
    max-width: 350px;
    width: 100%;
    text-align: center;
}

.mv-card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #ffffff;
}

.mv-card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.45;
    margin: 0;
    color: #ffffff;
}

/* --- BLOQUES DE IMAGEN (MISMO TAMAÑO Y RECORTE EN AMBAS FILAS) --- */
.mv-card-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    will-change: opacity, transform;
}

.mv-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   ANIMACIÓN SUAVE
   ========================================================================== */

@media screen and (min-width: 851px) {

    .card-guinda {
        transform: translateX(-100px);
        opacity: 0;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    }

    .card-oscuro {
        transform: translateX(100px);
        opacity: 0;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    }

    .mv-card-image {
        opacity: 0;
        transform: scale(0.96);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .section-mision-vision-grid.start-animation .card-guinda,
    .section-mision-vision-grid.start-animation .card-oscuro {
        opacity: 1;
        transform: translateX(0);
    }

    .section-mision-vision-grid.start-animation.step-2 .mv-card-image {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================================================== */

@media screen and (max-width: 850px) {
    .section-mision-vision-grid {
        padding: 40px 0;
    }

    .mv-grid-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .mv-row {
        grid-template-columns: 1fr;
    }

    .card-guinda,
    .card-oscuro {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 35px 20px !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 150px;
        transform: none !important;
        opacity: 1 !important;
    }

    .row-mision .mv-card-color { order: 1; }
    .row-mision .mv-card-image { order: 2; }

    .row-vision .mv-card-image { order: 3; }
    .row-vision .mv-card-color { order: 4; }

    .row-mision .mv-card-image,
    .row-vision .mv-card-image {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
        justify-content: center;
        opacity: 1 !important;
        transform: none !important;
    }

    .mv-card-text {
        font-size: 1rem;
    }
}