/* Contenedor principal del diseño */
.post-40-section p{
    font-size: 20px;
    font-weight: 400;
    color: #4D4D4D;
    margin-bottom: 2em;
    margin-top: 2em;
}
.post-47-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00A2F0;
    border-radius: 26.06px;
    padding: 10px 0px 10px 20px;
    width: 100%;
    max-width: 1270px;
    margin: auto;
}
.images-right img:last-child{
        margin-left: 30px;
}
/* Contenedor del texto */
.post-47-text {
    font-size: 28px;
    color: white;
    font-weight: 400;
    text-align: center;
}
.post-47-text p{
    margin-bottom: 0px;
}

.post-47-text p strong {
    font-weight: 600;
}

/* Contenedor de imágenes */
.post-47-images {
    display: flex;
    align-items: center;
    gap: 20px;
}

.images-left img,
.images-right img {
    object-fit: contain;
    max-height: 158px;
}
.images-left img:nth-child(1) {
    width: 255px;
    height: 118px;
}
.images-left img:nth-child(2) {
    width: 39px;
    height: 158px;
}
.images-right img:nth-child(1) {
    width: 39px;
    height: 158px;
}
.images-right img:nth-child(2) {
    width: 96px;
    height: 68px;
}
.images-right img:nth-child(3) {
    width: 47px;
    height: 47px;
}
/* Contenedor de la sección de formularios */
.forms-container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 30px;
    width: 100%;
    /* max-width: 1310px; */
    max-width: 1270px;
    /* padding: 0 20px; */
    margin: 31.5px auto 36.8px;
}

/* Estilo para cada formulario */
.form-item {
    background-color: #2D5E82;
    border-radius: 26.06px;
    padding: 20px;
    color: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
}

.form-item a {
    color: unset !important;
    text-decoration: none;
}

.form-icon {
    display: flex;
}
/* Íconos de los formularios */
.form-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}
.form-item:first-of-type .form-icon img:first-of-type {
    width: 49px;
    height: 51px;
}

/* Contenido del formulario */
/* .form-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0px;
} */

.form-content p {
    /* font-size: 21px; */
    font-size: 25px;
    margin: 0px;
    line-height: 1.2;
}
.form-content p strong{
    font-weight: 600;
}

/* Botón del formulario */
.form-button a img {
    width: 47px;
    height: 47px;
    object-fit: contain;
}





/* Contenedor principal */
.areas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Cuatro áreas en una fila */
    gap: 0;
    width: 100%;
    max-width: 1270px;
    margin: auto;
}

/* Cada área */
.area-item {
    display: flex;
    flex-direction: row;
    
    overflow: hidden;
}
.area-item:nth-child(1){
    border-radius: 26px 0 0 26px;
}

/* Parte izquierda (imagen y overlay) */
.area-left {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.area-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00A2F0; /* Color predeterminado */
    mix-blend-mode: multiply;
    z-index: 1;
}

/* Imagen extra */
.area-left .extra-image:nth-child(1) {
    width: 96px;
}
.area-left .extra-image:nth-child(2) {
    width: 79px;
}

.area-left .extra-image {
    position: absolute;
    z-index: 2;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

/* Título */
.area-left h3 {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 24px;
    /* font-weight: bold; */
    text-align: center;
    z-index: 2;
    margin: 0;
}
.area-arrow {
  position: absolute;
  top: 50%;
  right: -10px; /* la mitad del ancho para que se encaje bien */
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid var(--arrow-color);
  z-index: 2;
}
.area-item:nth-of-type(2) .area-arrow {
  transform: translateY(-50%) rotate(0deg);
  left: -10px;
  right: auto;
}
/* Parte derecha (contenido) */
.area-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: left;
    background-color: #2E5E82; /* Color predeterminado */
}

.area-right p {
    font-size: 21px;
    margin: 0;
}

/* Alternar orientación */
.area-item:nth-child(even) {
    flex-direction: row-reverse;
    border-radius: 0 26px 26px 0;
}
.area-item:nth-child(1) .area-right {
    background-color: #00A2F0 !important;

}
/* Noticias Destacadas */
.noticias-destacadas-container {
    margin-top: 50px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    background-color: #00A2F0;
    padding: 20px;
}

.noticias-destacadas-title {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.noticia-destacada-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.noticia-destacada-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}


.noticia-destacada-content {
    color: #fff;
}

.noticia-destacada-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2E5E82;
}

.noticia-destacada-date {
    font-size: 14px;
    color: #ffc137;
    margin-bottom: 10px;
}

.noticia-destacada-excerpt {
    font-size: 16px;
    color: #fff;
}

.noticia-destacada-separator {
    border: 0;
    height: 1px;
    background-color: #fff;
    margin: 20px 0;
}

.ver-todas-noticias {
    text-align: center;
    margin-top: 20px;
}

.ver-todas-noticias-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2E5E82;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.ver-todas-noticias-button img {
    width: 20px;
    height: 20px;
}

.sections-container {
    padding: 0 15px;
}

/* BANNER AZUL DE HERASA EN LA HOME */

.post-47-container img:nth-of-type(2),
.post-47-container img:nth-of-type(3) {
    max-height: 158px;
}

.post-47-container img:first-of-type {
    max-width: 254px;
}

.post-47-container img:nth-of-type(4) {
    max-width: 94px;
}

.form-button img, .post-47-container img:last-of-type {
    max-width: 46px !important;
    max-height: 46px !important;
    width: 100% !important;
    height: 100% !important;
}

.form-button {
    width: 46px;
}

.post-47-container {
    display: flex;
    flex-flow: row;
    gap: 2em;
    justify-content: space-evenly;
    padding: 20px;
}

.post-forms-section {
    margin-top: 29px;
}

.post-47-section {
    max-width: 1310px;
    padding: 0 !important;
}

.post-47-section a{
    text-decoration: none;
}

@media (max-width: 1280px){
    .post-47-container {
        gap: 1em;
    }
}

@media (max-width: 1270px){
    .post-40-section, .post-47-section, .noticias-destacadas-inner{
        max-width: 95%;
        margin: auto;
    }
    .images-right img:last-child{
        margin-left: 0px;
    }
}

@media (max-width: 1220px) {
    .post-47-container img:nth-of-type(2),
    .post-47-container img:nth-of-type(3) {
        display: none;
    }

    .post-47-text {
        max-width: 350px;
        text-wrap: balance;
    }

    .post-47-text p {
        font-size: 20px;
    }
    .post-40-section p{
        font-size: 17.5px;
        text-wrap: balance;
    }
}


@media (max-width: 980px) {

    .post-47-container img:first-of-type {
        width: 220px;
        height: auto;
        object-fit: cover;
    }

    .post-47-container img:nth-of-type(2) {
        display: block;
    }

    .post-47-container .post-47-text{
        display: none;
    } 

    .area-right p{
        font-size: 18px;
    }
    .form-button a img, .post-47-container img:last-of-type{
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .form-item a{
        justify-content: center;
    }
}


@media (max-width: 890px) {

    .form-item{
        height: 120px;
    }

    .form-content p {
        font-size: 28px;
    }

    .forms-container {
        grid-template-columns: 1fr;
    }

}
/* Diseño responsivo */
@media (max-width: 768px) {

    .forms-container {
        margin: 31.5px auto 30px;
    }

    section.areas-container {
        grid-template-columns: 1fr;
        gap: 1em;
        padding: 0;
    }

    .noticia-item{
        flex-direction: column;
    }

    .post-47-container {
        
        align-items: center;
        max-height: none;
        padding: 20px;
    }

    .post-47-images {
        gap: 10px;
        margin-bottom: 10px;
    }

    .post-47-text {
        padding: 10px 0;
    }
    .post-47-container{
        gap: .5em;
    }
    .form-icon img{
        width: 37.37px !important;
        /* height: 29px !important; */
    }
    .post-47-container img:nth-of-type(4){

    }
    .form-item a {
        display: flex;
        flex-flow: row;
    }
}
@media (max-width: 650px){
    .post-forms-section{
        margin-top: 0px;
    }
    .forms-container{
        margin: 23px auto;
        gap: 12px;
    }
    .post-47-container img:first-of-type {
        width: 146px;
        height: 68px;
    }

    .forms-container, .footer-kit-images{
        display: flex;
        flex-direction: column;
    }

    .footer-kit-images{
        align-items: center;
    }

    .footer-kit-program p{
        max-width: 95%;
        margin: auto;
    }

    .footer-info-item {
        max-width: 95%;
        margin: auto auto auto 0px;
        padding-left: 10px;
    }

    .footer-info-item:nth-child(1){
        gap: 5px;
    }

    .footer-info-item p {
        margin-bottom: 0px;
        font-size: 15px;
        text-align: left;
    }
    
    .post-47-container{
        flex-direction: row nowrap;
    }

    .images-right img:nth-child(1),.images-left img:nth-child(2){
        display: none;
    }
    
    .post-47-images{
        margin:20px auto 10px auto
    }
}

@media (max-width: 600px) {
    .form-content p {
        font-size: 20px;
    }
}

@media (max-width:440px){
    
    /* .post-47-container {
        flex-flow: row;
    } */

    /* .post-47-container img:nth-of-type(2) {
        display: none;
    } */

}

@media (max-width:425px) {
    /* .area-item:nth-child(1),.area-item:nth-child(even){
        max-width: 95%;
        margin: auto;
    } */
    .footer-info-item::before{
        left:10px;
    }
}

@media (max-width:400px){
    .forms-container .form-icon {
        /* display: none !important; */
    }
}
