@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat',sans-serif;
}

html {
    scroll-behavior: smooth;
}




.hero{
    min-height: 100vh;
    background: #ffffff;
    padding: 40px 8% 0;



}

/* =========================
   HERO
========================= */
.hero-box{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding-top:clamp(120px, 12vw, 180px);

    gap:0;
}

/* =========================
   TEXTO
========================= */
.texto{
    flex:1.4;
}

.texto h1{
    font-size:60px;
    font-weight:900;
    line-height:1.05;
    margin:0;
    color:#111;

    display:flex;
    flex-direction:column;
    gap:10px; /* 👈 separación real entre h1 y span */
}
.texto h1 span{
    display:block;
    font-size:60px;
    font-weight:900;
    margin-top:10px;
    position:relative;
    z-index:1;
    padding:10px 0px;
}

/* =========================
   FRANJA AMARILLA FULL WIDTH
   (PEGADA AL BORDE IZQUIERDO)
========================= */
.texto h1 span::before{
    content:"";
    position:absolute;

    top:0;
    left:-100vw;

    width:calc(100% + 104vw);
    height:100%;

    background:#F2EE00;
    z-index:-1;
}
/* =========================
   DESCRIPCIÓN
========================= */
.descripcion{
    margin-top:20px;
    font-size:16px;        /* un poco más grande */
    line-height:1.7;
    text-align:justify;
    color:#444;
    max-width:520px;
}

/* contenedor del bloque */
.bloque-texto{
    max-width:520px; /* mismo ancho que la descripción */
}

/* descripción */
.descripcion{
    margin-top:20px;
    font-size:18px;
    line-height:1.0;
    text-align:justify;
    color:#444;
}

/* =========================
   IMAGEN
========================= */
.imagen{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.imagen img{
    max-width:100%;
    max-height:520px;
    object-fit:contain;
}

.texto h1,
.texto h1 span{
    font-family:'Montserrat',sans-serif;
    font-weight:900;
}


.descripcion{
    margin-top:50px;
    margin-bottom:50px;
}





/* =========================
   CONTENEDOR IMAGEN
========================= */
.imagen{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    overflow:visible;
}

/* =========================
   IMAGEN GRANDE (SIN AFECTAR TEXTO)
========================= */
.imagen{
    position:relative;
    z-index:3;
}

.imagen img{
   transform: scale(1.10) translateX(80px) translateY(15px);
    transform-origin: bottom center;

    height: auto;
    width: auto;

    transition: opacity 0.6s ease;
}

/* =========================
   HERO
========================= */
.hero{
    position:relative;
    overflow:hidden;
}

/* =========================
   HERO BOX (contenido encima)
========================= */
.hero-box{
    position:relative;
    z-index:2; /* 👈 encima de la franja */
}

/* =========================
   FRANJA AMARILLA ABAJO
========================= */



.hero-bar{
    position:absolute;

    right:-25%;     /* 👈 menos salida */
    bottom:0;

    width:45%;      /* 👈 MÁS ANGOSTA */
    height:40px;    /* puedes ajustar grosor */

    background:#F2EE00;

    z-index:1;

    pointer-events:none;
}









/*==========================
    NUESTRA HISTORIA
==========================*/

.nuestra-historia{
    background:#E8EFEE;
    padding:80px 8%;
}

.nuestra-info{
    text-align:center;
    margin-bottom:30px;
}

/* =========================
   TITULO
========================= */
.nuestra-info h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    position: relative;
}

/* SPAN (NUESTROS) */
.nuestra-info h2 span {
    position: relative;
    color: #000000;
    z-index: 2;
    padding: 18px 20px;
}

/* =========================
   FRANJA AMARILLA
   (SALE DESDE EL BORDE IZQUIERDO)
========================= */
.nuestra-info h2 span {
    position: relative;
    display: inline-block;
}

.nuestra-info h2 span::before {
    content: "";
    position: absolute;

    top: 50%;
    left: -180%;
    transform: translateY(-50%);

    width: 279.5%;
    height: 65px;

    background: #F2EE00;
    z-index: -1;

    transform-origin: left;
    transform: translateY(-50%) scaleX(0);
}

.nuestra-info.animar h2 span::before {
    animation: entrarFranjaTitulo 0.7s ease forwards;
}

@keyframes entrarFranjaTitulo {
    from {
        transform: translateY(-50%) scaleX(0);
    }
    to {
        transform: translateY(-50%) scaleX(1);
    }
}


.historia-contenido{
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.historia-img{
    flex: 0.8;
    height: 490px;
}

.historia-img img{
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.historia-texto{
    flex: 1.2;
    height: 490px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra horizontalmente */
    text-align: center;
}

.historia-texto h3,
.historia-texto p{
    width: 100%;
}

.historia-texto p{
    text-align: justify; /* Si prefieres el párrafo justificado */
}

.historia-texto h3{
    font-size: 28px;
    margin: 0;
}

.historia-texto p{
    flex: 1;
    margin: 0;
    text-align: justify;
    line-height: 1.8;
}


/* Responsive */

@media(max-width:900px){

    .historia-contenido{
        flex-direction:column;
    }

    .historia-texto{
        text-align:center;
    }

    .historia-texto p{
        text-align:justify;
    }

}



/*==========================
    MISIÓN Y VISIÓN
==========================*/

.mision-vision{
    display: flex;
    gap: 60px;
    padding: 80px 8%;
    background: #fff;
    overflow: hidden; /* Evita scroll horizontal */
}

.mv-columna{
    flex: 1;
    padding: 40px;
    position: relative;
}

.mv-columna h2{
    font-size: 42px;
    line-height: 1.1;
    color: #111;
    margin-bottom: 25px;
    font-weight: 800;
    text-align: center; /* Centra los títulos */
}

.mv-columna h2 span{
    display: inline-block;
    background: #F2EE00;
    padding: 10px 22px;
    position: relative;
    z-index: 2;
}

.mv-columna p{
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    color: #555;
}

/*==========================
    MISIÓN (IZQUIERDA)
==========================*/

.titulo-izq span::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100%;
    background: #F2EE00;
    z-index: -1;
}

/*==========================
    VISIÓN (DERECHA)
==========================*/

.titulo-der span::after{
    content: "";
    position: absolute;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100%;
    background: #F2EE00;
    z-index: -1;
}


/* =========================
   RESPONSIVE HERO
========================= */

@media (max-width:900px){

    :root{
        --margen-responsive:20px;
    }


    .hero{
        padding:30px var(--margen-responsive) 0;
        min-height:auto;
    }


    .hero-box{
        flex-direction:column;
        align-items:center;
        gap:40px;
        padding-top:clamp(120px, 12vw, 180px);
    }


    /* TEXTO */
    .texto{
        width:100%;
        text-align:center;
    }


    .texto h1{
        font-size:38px;
        line-height:1.1;
        text-align:center;
        gap:5px;
    }


    .texto h1 span{
        font-size:38px;
        padding:8px 0;
        margin-top:5px;
    }


    /* franja amarilla */
    .texto h1 span::before{

        left:-20px;
        width:calc(100% + 40px);

    }


    .bloque-texto{
        max-width:100%;
    }


    .descripcion{

        margin-top:30px;
        margin-bottom:20px;

        font-size:15px;
        line-height:1.6;

        text-align:justify;

    }


    /* IMAGEN */
    .imagen{

        width:100%;
        justify-content:center;
        align-items:center;

    }


    .imagen img{

        width:90%;
        max-width:350px;

        transform:none;

    }


    /* barra amarilla inferior */
    .hero-bar{

        width:100%;
        height:25px;

        right:-50%;

    }

}



/* =========================
   CELULARES PEQUEÑOS
========================= */

@media(max-width:480px){

    :root{
        --margen-responsive:15px;
    }


    .hero{

        padding:20px var(--margen-responsive) 0;

    }


    .texto h1,
    .texto h1 span{

        font-size:30px;

    }


    .descripcion{

        font-size:14px;
        line-height:1.5;

    }


    .imagen img{

        width:100%;
        max-width:300px;

    }


    .hero-bar{

        height:20px;

    }

}











/* =========================
   RESPONSIVE NUESTRA HISTORIA
========================= */

@media(max-width:900px){

    :root{
        --margen-responsive:20px;
    }


    .nuestra-historia{
        padding:60px var(--margen-responsive);
    }


   /* TITULO */

    .nuestra-info{

        margin-bottom:40px !important;

    }


    .nuestra-info h2{

        font-size:36px !important;

        line-height:1.2 !important;

    }


    .nuestra-info h2 span{

        padding:10px 15px !important;

        position:relative !important;

        display:inline-block !important;

    }



    /* FRANJA NORMAL */

    .nuestra-info h2 span::before{

        left:-60px !important;

        width:calc(100% + 120px) !important;

        height:55px !important;

        transition:none !important;

    }



    /* CUANDO HACE SALTO DE LÍNEA */

    .nuestra-info h2 span.doble-linea::before{

    left:50% !important;

    width:100vw !important;

    height:calc(100% + 20px) !important;

    top:50% !important;

    transform:translate(-50%,-50%) !important;

    animation:none !important;

    transition:none !important;

}

    
    /* DOBLE LÍNEA SIN ANIMACIÓN */

    .nuestra-info.animar h2 span.doble-linea::before{

        animation:none !important;

        transition:none !important;

    }

    

    /* CONTENIDO */
    .historia-contenido{

        flex-direction:column;
        gap:35px;
        align-items:center;

    }


    /* IMAGEN */
    .historia-img{

        width:100%;
        height:auto;
        flex:none;

        display:flex;
        justify-content:center;

    }


    .historia-img img{

        width:100%;
        max-width:450px;
        height:350px;

        object-fit:cover;
        border-radius:20px;

    }


    /* TEXTO */
    .historia-texto{

        width:100%;
        height:auto;

        display:flex;
        justify-content:center;
        align-items:center;

        text-align:center;

    }


    .historia-texto h3{

        font-size:25px;
        margin-bottom:20px;

    }


    .historia-texto p{

        flex:none;
        font-size:15px;
        line-height:1.7;

        text-align:justify;

    }


}





@media(max-width:900px){

    .nuestra-info h2 span::before{

        left:50% !important;

        width:100vw !important;

        height:55px !important;

        top:50% !important;

        transform:translate(-50%,-50%) !important;

        animation:none !important;

    }

}






/*==========================
    RESPONSIVE MISIÓN Y VISIÓN
==========================*/

@media(max-width:900px){

    :root{
        --margen-responsive:20px;
    }


    .mision-vision{

        flex-direction:column;

        gap:40px;

        /* permite que la franja llegue a los bordes */
        padding:60px 0;

        overflow:hidden;

    }


    .mv-columna{

        width:100%;

        padding:20px var(--margen-responsive);

        position:relative;

    }


    .mv-columna h2{

        font-size:34px;

        line-height:1.1;

        margin-bottom:25px;

        text-align:center;

        overflow:visible;

    }


    .mv-columna h2 span{

        display:inline-block;

        padding:8px 18px;

        position:relative;

        z-index:2;

    }


    .mv-columna p{

        font-size:15px;

        line-height:1.7;

        text-align:justify;

    }

    /*==========================
        FRANJA MISIÓN
    ==========================*/

    .titulo-izq span,
    .titulo-der span{
        position:relative !important;
        z-index:1 !important;
    }


    .titulo-izq span::before{

        content:"" !important;

        position:absolute !important;

        top:0 !important;

        left:50% !important;

        transform:translateX(-50%) !important;

        width:100vw !important;

        height:100% !important;

        background:#F2EE00 !important;

        z-index:-1 !important;

    }


    /*==========================
        FRANJA VISIÓN
    ==========================*/

    .titulo-der span::after{

        content:"" !important;

        position:absolute !important;

        top:0 !important;

        left:50% !important;

        transform:translateX(-50%) !important;

        width:100vw !important;

        height:100% !important;

        background:#F2EE00 !important;

        z-index:-1 !important;

    }


    /* evita scroll lateral */

    body{
        overflow-x:hidden !important;
    }

}



/*==========================
    CELULARES PEQUEÑOS
==========================*/

@media(max-width:480px){

    :root{
        --margen-responsive:15px;
    }


    .mision-vision{

        padding:45px 0;

        gap:30px;

    }


    .mv-columna{

        padding:10px var(--margen-responsive);

    }


    .mv-columna h2{

        font-size:30px;

    }


    .mv-columna h2 span{

        padding:7px 15px;

    }


    .mv-columna p{

        font-size:14px;

        line-height:1.6;

    }

}