@import url('config.css');
:root{
    --fondo: #bbfaf8;
    --fondo_caja: #bbfaf8;
    --bordeCaja: #a38121;
    --fondoTitulo: #a38121;
    --hoverText: #0b7324;


    --amarillo: #bbfaf8;
    --negro: #000000;
    --gris: #9A999E;
    --gris_click: #434246;
    --blanco: #fff;

    --radioBorde: 20px;
    --dimCirculos: 150px;
    --ancho_pagina: 85%;
}

.caja{
    width: 300px;
    height: 250px;
    margin: auto;
    background-color: var(--fondo_caja);
    border: 1px solid var(--bordeCaja);
}
.cTitulo{
    width: 100%;
    height: 30px;
    background: var(--fondoTitulo);
    margin: auto;
    margin-top: 0px;
    text-align: center;
    line-height: 30px;
}
.caja, .cTitulo{
    border-radius: 15px 15px 0px 0px;
}
.caja img{
    width: 100%;
    height: 182px;
    object-fit:scale-down;
}
.caja:hover{
    transform: scale(1.07);
    transition: all 1.5ms ease;
}
.fondo_blanco{
    background: #fff !important;
}
/* PARTE QUE CORRESPONDE A LA CAJA DE LA PAGINA PRINCIPAL */
.contenido{
    width: var(--ancho_pagina);
    height: 100%;
    /*background: var(--blanco);*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    margin:auto;
    margin-top: 5px;
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 30px;
    border-radius: 35px; 
} 
.anim-entrada{
    animation: slideIn 1s ease-out forwards;
}
.anim-caida{
    animation: fall 1s ease-out forwards;
}
.temblar{
    animation: shake 1s ease-out forwards;
}
.contenido a{
    text-decoration: none;
}
.area_caja{
    width: 100%;
    height: 100%;
    margin: auto;
    background: var(--fondoCslider);
    border-radius: 50px 50px 0px 0px;
    text-align: center;
    padding: 40px 20px 20px 20px;
    margin-top: -15px;
    margin-bottom: 30px;
}
.area_caja:hover{
    transform: scale(1.2);
    transition: all 0.5 ease-in-out;

    .caja_img, .caja_img img{
        box-shadow: 0 5px 6px #aaa7a7;
    }
}
/* Estilo inicial del subrayado */
.area_caja::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Posicionado debajo del texto */
    left: 0;
    width: 0; /* Comienza invisible */
    height: 4px; /* Grosor del subrayado */
    background-color: var(--amarillo);
    transition: width 0.3s ease-in-out; /* Animación */
}

/* Subrayado al hacer hover */
.area_caja:hover::after {
    width: 100%; /* Crece a todo el ancho del enlace */
}
.espacio_extra{
    gap: 50px;
}
.caja_img, .caja_img img{
    width: var(--dimCirculos);
    height: var(--dimCirculos);
    border-radius: 50%;
    margin: auto;
}
.caja_img img{
    border: solid 2px var(--gris);    
}
.caja_texto{
    color: var(--negro);
    margin-top: 10px;
}
.cont-extra{
    width: var(--ancho_pagina);
    background: white;
    border-radius: 35px;
    height: 100%;
    margin: auto;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-left: 30px;
    padding-bottom: 20px;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}
.cont-extra img{
    width: 300px;
    height: 400px;
    border-radius: 35px 0px 0px 35px;
}
.cont-extra img:hover{
    animation: shake 1s ease-out forwards;
}
.cont-extra-texto{
    width: 80%;
    height: 400px;
    padding-left: 30px;
    border-radius: 0px 35px 35px 0px;
    align-items: flex-start;
}
.cont-extra-area{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.cont-extra-area-caja{
    width: 90%;
    height: calc(100% - 51px);
    border-radius: 15px;
    padding: 10px;
    margin-top: 20px;
}
.ajustar_3{
    width: 90%;   
}
.cont-extra-area-caja:hover{
    transform: scale(1.01);
    transition: all 0.3s ease;
    background: #ffe727;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
 
    .titulo_n2{
        border-bottom: 3px solid #fff;
    } 
}
.cont-leermas{
    width: 100%;
    height: 100%;
    text-align: left;
    margin-left: 15px;
    margin-top: 20px;
    text-align: left;
}
.boton_1{
    text-decoration: none;
    cursor: pointer;
    color: var(--gris_click);
    background-color: var(--blanco);
    border: 1px solid var(--amarillo);
    border-radius: 10px;
    padding: 5px 20px;
}
.boton_1:hover{
    text-decoration: none;
    cursor: pointer;
    color: var(--negro);
    background-color: var(--blanco);
    border: 1px solid var(--fondoTitulo);
}  
.contenedor{
    width: 80%;
}
@media (max-width: 720px){
    .caja{
        width: 90%;
        height: 250px;
        margin: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    
    /* PARTE QUE CORRESPONDE A LA CAJA DE LA PAGINA PRINCIPAL */
    .contenido{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 50px;
        border-radius: 0px;
        margin: auto;
        margin-top: 5px;
    }
    .area_caja{
        width: 100%;
        height: 100%;
        margin: auto;
        border-radius: var(--radioBorde);
        text-align: center;
        padding-top: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .caja_img, .caja_img img{
        width: 250px;
        height: 250px;
    }

    /*
        .cont-extra-area{
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: auto;
        }
    */

}


@media (max-width: 1280px){

    .cont-extra{
        width: 100%;
        height: 100%;
        margin: auto;
        margin-top: 20px;
        background: white;
        border-radius: 0px;
        padding: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .cont-extra img{
        width: 300px;
        height: 400px;
        border-radius: 10px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .cont-extra-area{
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: auto;
    }
    .cont-extra-texto{
        height:100%;
        margin: auto;
    }
    .cont-extra-texto{
        width: 100%;   
        margin: auto;
    }
    .cont-extra-area-caja{
        width: 95%;
        padding: 30px 20px;
        margin: auto;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    .cont-leermas{
        width: 100%;
        height: 100%;
        text-align: center;
        margin-left: 0px;
        margin-top: 15px;
    }
    .boton_1{
        text-decoration: none;
        cursor: pointer;
        font-size: 18px;
        font-weight: 600;
        color: var(--gris_click);
        background-color: var(--blanco);
        border: 1px solid var(--amarillo);
        border-radius: 10px;
        padding: 15px 40px;
    }

}