﻿.content {
    background: #f5f5f5;
}

.imagen-contenedor {
    position: relative;
}

.capa-roja {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c4122f;
    opacity: 0.9;
}

.imagen-titulo {
    position: absolute;
    top: 30%;
    left: 20%;
    height: 100%;
    color: white;
    font-weight: bold;
}

.imagen-subtitulo {
    position: absolute;
    top: 60%;
    left: 20%;
    height: 100%;
    color: white;
    font-weight: bold;
}

.div-centrado-grande {
    display: flex;
    align-items: center;
    justify-content: center;
}

.div-centrado-mediano {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin-top: -4em;
}

.card-mediano {
    padding: 25px;
    width: 50%;
    background: white;
    border-radius: 10px;
    font-weight: bold;
}

.card-grande {
    padding: 25px;
    width: 70%;
    background: white;
    border: 1px solid white;
    margin: 2em 1em 2em 1em;
    border-radius: 10px;
    text-align: center;
}

.card-grande-azul {
    padding: 25px;
    width: 70%;
    background: white;
    border: 1px solid white;
    margin: 7em 1em 2em 1em;
    border-radius: 10px;
    text-align: center;
    background-color: #07354f;
    color: white;
    z-index: 101;
}

.titulo-grande {
    color: #07354f;
    margin-top: 1em;
}

.seccion {
    text-align: left;
}

.finalidad-titulo {
    color: #07354f;
    font-weight: bold;
    margin-top: 1em;
}

.finalidad-ul {
    margin-top: 1em;
    font-size: 0.9em;
}

.metodologia-titulo {
    color: #07354f;
    font-weight: bold;
    margin-top: 1em;
}

.metodologia-texto {
    width: 80%;
    line-height: 1.5em;
    margin-top: 1em;
}

.inversion-titulo {
    font-weight: bold;
}

.inversion-texto {
    width: 80%;
    line-height: 1.5em;
    margin-top: 1em;
}

.seccion-finalidad {
    display: flex;
    width: 100%;
    position: relative;
}

.card-finalidad {
    padding: 2%;
    width: 35%;
    background: white;
    border: 1px solid white;
    border-radius: 10px;
    left: 15%;
    position: relative;
    margin: 12em 0em 3em 0em;
    z-index: 101;
}

.imagen-finalidad {
    width: 50%;
    border-radius: 10px;
    left: 35%;
    position: absolute;
    margin: 9em 0em 6em 0em;
    z-index: 100;
}

.boton-movil {
    display: none;
}

.boton-desktop {
    display: block;
}

.boton-whatsapp {
    position: fixed;
    /*z-index: 100;*/
    margin-top: 21%;
    margin-bottom: auto;
    right: 0;
    background-color: #26d366;
    text-align: left;
    color: white;
    width: auto;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    z-index: 9999; /* Asegura que esté encima de otros elementos */
}

.a-whatsapp {
    text-decoration: none;
    color: white;
}


@media (max-width: 600px) {
    .imagen-contenedor {
        height: 250px;
    }

     /*   .imagen-contenedor img {
            width: 100%;
            height: 100%;
        }*/

    .imagen-titulo {
        top: 15%;
        left: 10%;
        height: auto;
    }

    .imagen-subtitulo {
        top: 45%;
        left: 10%;
    }

    .div-centrado-mediano {
        width: 100%;
    }

    .card-mediano{
        width: 90%;
    }

    .imagen-finalidad {
        width: 100%;
        left: 0%;
        top: 10%;
        border-radius: 0px !important;
        height: 350px;
    }

        .imagen-finalidad img {
            width: 100%;
            height: 100%;
            border-radius: 0px !important;
        }

    .card-finalidad {
        width: 95%;
        left: 2.5%;
        height: auto;
        margin-top: 30em;
    }

    .card-grande-azul {
        width: 100%;
        border-radius: 0px;
        margin: 0;
    }

    .card-grande {
        width: 95%;
        text-align: center;
    }

    .seccion {
        text-align: center;
    }

    .inversion-texto {
        width: 100%;
    }

    .metodologia-texto {
        width: 100%;
    }

    .boton-movil {
        display: block;
    }

    .boton-desktop {
        display: none;
    }

    .boton-whatsapp {
        margin-top: 70%;
    }

}

@media (min-width: 600px) and (max-width: 800px) {
    .boton-whatsapp {
        margin-top: 50%;
    }


    .card-mediano{
        width: 80%;
        font-size: 0.8em;
    }

    .imagen-titulo{
        top: 20%;
        left: 10%;
    }

    .imagen-subtitulo {
        top: 50%;
        left: 10%;
    }

    .div-centrado-mediano{
        margin-top: -2em;
    }

    .imagen-finalidad{
        width: 60%;
    }

    .card-finalidad {
        width: 70%;
        left: 5%;
        margin: 16em 0em 3em 0em;
    }

    .finalidad-titulo{
        margin-top: 0;
    }

    .finalidad-titulo h3,h4{
        font-size: 1.2em;
    }

    .finalidad-ul{
        margin-top: 0;
        font-size: 0.8em;
    }

    .card-grande-azul{
        padding: 1.5%;
        width: 90%;
        margin: 0;
        flex-wrap: nowrap;
    }

    .seccion{
        width: 25%;
        align-content: center;
        text-align: center;
    }

    .inversion-texto{
        font-size: 0.7em;
        width: 100%;
    }

    .div-centrado-grande {
        margin-top: 3.5%;
        margin-bottom: 3.5%;
    }

    .card-grande{
        width: 90%;
        margin: 0;
    }

    .card-grande div{
        align-content: normal;
    }

    .metodologia-texto{
        width: 100%;
        font-size: 0.9em;
    }
}


@media (min-width: 800px) and (max-width: 1250px) {
    .boton-whatsapp {
        margin-top: 35%;
    }



    .imagen-titulo{
        top: 25%;
        left: 15%;
    }

    .imagen-subtitulo {
        top: 55%;
        left: 15%;
    }

    .div-centrado-mediano{
        margin-top: -3em;
    }
    
    .card-mediano{
        width: 70%;
    }

    .imagen-finalidad {
        width: 55%;
    }

    .card-finalidad {
        width: 60%;
        left: 10%;
        margin: 18em 0em 3em 0em;
    }

    .card-grande-azul{
        width: 80%;
    }

    .seccion{
        text-align:center;
    }

    .inversion-texto{
        width: 100%;
    }

    .card-grande{
        width: 80%;
    }

    .metodologia-texto{
        width: 100%;
    }
}


@media (min-width: 800px) and (max-width: 1450px) {
    .card-grande-azul {
        padding: 25px;
        width: 70%;
        background: white;
        border: 1px solid white;
        margin: 2em 1em 2em 1em;
        border-radius: 10px;
        text-align: center;
        background-color: #07354f;
        color: white;
        z-index: 101;
    }
}