
/* Contenedor principal */
.container-elegirnos {
    width: 100%;
    height: auto; /* Ajustable para adaptarse al contenido */
    background-color: #FAA501;
    color: white;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    margin-bottom: 75px;
    margin-top: 75px;
    box-sizing: border-box;
}

/* Imagen de fondo */
.background-image-elergirnos img {
    width: 100%;
    max-width: 1000px;
    height: 650px;
    position: absolute;
    right: 0;
    mask-image: linear-gradient(110deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%);
}

/* Contenido */
.content-elegirnos {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    z-index: 1;
    margin-left: 10%;
}
/* Ajuste del subtítulo */
.subtitulo-elegirnos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.subtitulo-icon-elegirnos {
    background-color: #007F38;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subtitulo-icon-elegirnos i {
    color: white;
    font-size: 2rem;
}

/* Estilo de títulos y párrafos */
.h1-elegirnos {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0; /* Ajusta el margen superior e inferior */
}

/* Imagen secundaria */
.image-container-elegirnos img {
    height: 450px;
    width: 450px;
    position: absolute;
    top: 11px;
    right: -100px;
}

/* Botón */
.button-elegirnos {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.button-elegirnos a {
    background-color: #007F38;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.button-elegirnos a:hover {
    background-color: #005f2b;
}

/* Media Queries */

/* Pantallas grandes (desktop) */
@media (min-width: 1025px) {
    .container-elegirnos {
        height: 530px;
    }

    h1-elegirnos {
        font-size: 2.5rem;
    }

    h3-elegirnos {
        font-size: 1.5rem;
    }

    p-elegirnos {
        font-size: 1.1rem;
    }
    
}

/* Pantallas medianas (tablet) */
@media (min-width: 768px) and (max-width: 1300px) {
    .container-elegirnos {
        height: auto;
        text-align: center;
    }

    .image-container-elegirnos {
        display: none;
    }


    .content-elegirnos {
        max-width: 90%;
        margin: 0 auto;
    }

    h1-elegirnos {
        font-size: 2rem;
    }

    h3-elegirnos {
        font-size: 1.25rem;
    }

    p-elegirnos {
        font-size: 1rem;
    }

    .button-elegirnos {
        position: relative;
        margin-top: 20px;
        transform: none;
        margin-bottom: 20px;
    }

    .button-elegirnos a {
        font-size: 0.9rem;
        padding: 8px 16px;
        left: 50%;
        transform: translateX(-50%);
    }

}

/* Pantallas pequeñas (móvil) */
@media (max-width: 767px) {
    .container-elegirnos {
        height: auto;
        text-align: center;
    }

    .image-container-elegirnos {
        display: none;
    }

    .content-elegirnos {
        align-items: center;
        max-width: 90%;
        margin: 0 auto;
        text-align: center; /* Centrar texto dentro del contenedor */
        
    }

    .background-image-elergirnos img {
        width: auto;
        height: 100%;
        right: -250px;
    }

    h1-elegirnos {
        font-size: 1.8rem;

    }

    h3-elegirnos {
        font-size: 1.2rem;

    }

    p-elegirnos {
        font-size: 0.95rem;

    }

    .button-elegirnos {
        position: relative;
        margin-top: 20px;
        transform: none;
        margin-bottom: 20px;
    }

    .button-elegirnos a {
        font-size: 0.9rem;
        padding: 8px 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hacer que los íconos estén arriba de los párrafos solo en pantallas pequeñas */
    .subtitulo-elegirnos {
        flex-direction: column;
        align-items: center;
        text-align: center; /* Centrar texto dentro del contenedor */
    }

}
