html {
    scroll-behavior: smooth;
}


/*-----------------------SECTION_1-------------------------*/

.contenedor_principal_sec1 {
    padding: 30px 0 0 0;
    margin: 0% auto;
    width: 1220px;
}

.titulo_blog_sec1 {
    color: #000000;
    font-family: "Pier_Sans_Black";
    font-size: 60px;
    line-height: 1.15;
    width: 70%;
}

/* ---------- Pantallas grandes y medianas --------- */
@media only screen and (max-width: 1600px){
    .contenedor_principal_sec1{
        max-width: 975px;
    }

}

@media only screen and (max-width: 991px){

    .contenedor_principal_sec1{
        max-width: 80%;
    }

    .titulo_blog_sec1 {
        width: 95%;
    }

}

@media only screen and (max-width: 600px) {
    .titulo_blog_sec1 {
        font-size: 40px;
        width: 100%;
    }
}

/*---------------------END_SECTION_1-----------------------*/


/*-----------------------SECTION_2-------------------------*/

.contenedor_sec2 {
    padding: 80px 0%;
    margin: 0% auto;
    max-width: 1220px;
}

.contenedor_sec2 .row {
    display: flex;
    gap: 64px;
}

.contenedor_sec2 .row > div {
    flex: 1;
}

.cuerpo_card_principal_sec2 {
    width: 100%;
    margin: 0%;
}

.card_Izq_Sec2,
.card_Der_Sec2 {
    border-radius: 25px;
    height: 100%;
}

/* Card izquierda - imagen */
.card_Izq_Sec2 {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img_Card_Izq_Sec2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: opacity 0.2s ease;
}

.img_Card_Izq_Sec2:hover {
    opacity: 0.4;

}

/* Card derecha - textos*/
.card_Der_Sec2 {
    padding: 0%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-body{
    border: 0px !important;
    padding: 0%;
}

.titulo_blog_reciente_sec2 {
    font-size: 20px;
    font-family: "OpenSans-Bold";
    color: #444444;
    line-height: 1.25;
    padding: 0 0 16px 0;
    margin: 0%;
    transition: color 0.2s ease;
}

.titulo_blog_reciente_sec2:hover {
    color: #FF4444;
}

.descripcion_blog_reciente_sec2 {
    font-size: 16px;
    font-family: "OpenSans-Regular";
    color: #444444;
    /* text-align: justify; */
    line-height: 1.25;
    padding: 0 0 16px 0;
    margin: 0%;
}

.etiqueta_blog {
    display: inline-block;
    background-color: #FFCA00;
    color: #FFFFFF;
    font-family: "Pier_Sans_Bold";
    font-size: 14px;
    padding: 4px 10px;
    margin-bottom: 16px;
}

.autor_blog {
    display: flex;
    align-items: center;
    gap: 10px;
}

.img_autor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.nombre_autor {
    font-size: 12px;
    font-family: "OpenSans-Regular";
    color: #808080;
}

/* ---------- Pantallas grandes --------- */
@media only screen and (max-width: 1600px){
    .contenedor_sec2{
        max-width: 975px;
    }
}

/* ---------- Pantallas medianas ---------- */
@media only screen and (max-width: 991px){

    .contenedor_sec2{
        max-width: 80%;
    }

    .contenedor_sec2 .row {
        flex-direction: column;
        gap: 48px;
    }

    .nombre_autor {
        font-size: 14px;
        font-family: "OpenSans-Regular";
        color: #808080;
    }

    .contenedor_sec2 .row {
        align-items: flex-start; /* evita que ambas columnas se estiren igual */
    }

    .card_Izq_Sec2 {
        max-height: 426px;
    }

    .img_Card_Izq_Sec2 {
        max-height: 426px;
    }

}

/* ------------ Pantallas chicas ------------ */
@media only screen and (max-width: 991px){

    .contenedor_sec2{
        max-width: 80%;
    }

    .contenedor_sec2 .row {
        flex-direction: column;
        gap: 48px;
    }

    .autor_blog {
        padding: 0 0 16px 0;
    }

}

/*---------------------END_SECTION_2-----------------------*/

/*-----------------------SECTION_3-------------------------*/

.contenedor_sec3 {
    background-color: #EFEFEF;
}

.contenedor_titulo_sec3{
    padding: 56px 0%;
    margin: 0% auto;
    max-width: 1220px;
}

.tituloSec3{
    font-size: 40px;
    width: 100%;
    font-family: "Pier_Sans_Black";
    line-height: 1.1;
    color: #444444;
    padding: 0%;
    margin: 0%;
}

/* Carrusel */

.carrusel_wrapper_sec3 {
    width: 100%;
    position: relative;
    padding-bottom: 56px;
}

.modo-carrusel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
}

.contenedor_carrusel_sec3 {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;

    padding-left: calc((100vw - 1088px) / 2);
    padding-right: calc((100vw - 1088px) / 2);

    scroll-padding-left: calc((100vw - 1088px) / 2);
    scroll-padding-right: calc((100vw - 1088px) / 2);
}


/* ---------- Cards del carrusel ------------ */
.cuerpo_card_recomendado_sec3 {
    flex: 1 1 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column; 
    gap: 16px;
}

.card_Izq_Sec3,
.card_Der_Sec3 {
    border-radius: 25px;
    height: 100%;
}

/* Card superior - recomendados - imagen */
.card_Izq_Sec3 {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img_Card_Izq_Sec3 {
    width: 100%;
    height: 100%;
    min-height: 143px;
    min-width: 200px;
    object-fit: cover;
    border-radius: 25px;
    transition: opacity 0.2s ease;
}

.img_Card_Izq_Sec3:hover {
    opacity: 0.4;
}

/* Card inferior - recomendados - textos */
.card_Der_Sec3 {
    padding: 0%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-body-sec3{
    border: 0px !important;
    padding: 16px;
    min-width: 200px;
}

.titulo_blog_recomendado_sec3 {
    font-size: 16px;
    font-family: "OpenSans-Bold";
    color: #444444;
    line-height: 1.25;
    padding: 0 0 8px 0;
    margin: 0%;
    transition: color 0.2s ease;
}

.titulo_blog_recomendado_sec3:hover {
    color: #FF4444;
}

.descripcion_blog_recomendado_sec3 {
    font-size: 14px;
    font-family: "OpenSans-Regular";
    color: #444444;
    /* text-align: justify; */
    line-height: 1.25;
    padding: 0 0 24px 0;
    margin: 0%;
}

.autor_recomendado_blog {
    display: flex;
    align-items: center;
    gap: 10px;
}

.img_recomendado_autor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.img_recomendado_autor:hover {
    opacity: 0.4;
}

.nombre_recomendado_autor {
    font-size: 12px;
    font-family: "OpenSans-Regular";
    color: #808080;
}

/* ------ Estilos para las flechas personalizadas -------- */
.contenedor_custom_arrows {
    margin: 0% auto;
    max-width: 1088px;
    padding: 40px 0 0 0;
}

/* Contenedor de flechas */
.custom-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding-left: calc((100vw - 1088px) / 2);
    padding-right: calc((100vw - 1088px) / 2);
    scroll-padding-left: calc((100vw - 1088px) / 2);
    scroll-padding-right: calc((100vw - 1088px) / 2);
}

.custom-prev,
.custom-next {
    cursor: pointer;
    background-color: #FFFFFF;
    border-radius: 50%;
    height: 43px;
    width: 43px;
    border: none;
    display: flex;              /* centra el SVG */
    align-items: center;        /* centra vertical */
    justify-content: center;    /* centra horizontal */
}

.custom-prev img {
    transform: rotate(180deg);
}

.custom-prev img,
.custom-next img {
    width: 16px;
    height: 16px;
}

.carousel-disabled {
    opacity: 0.4;
    pointer-events: none; /* desactiva click */
}

@media (min-width: 1112px) {

    .contenedor_carrusel_sec3 {
        overflow: hidden;   /* desactiva scroll */
        scroll-snap-type: none;
        justify-content: space-between;
    }

    .contenedor_carrusel_sec3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
        overflow: hidden;
    }

    .contenedor_custom_arrows {
        display: none;    /* oculta flechas */
    }
}

/* ---------- Pantallas grandes --------- */
@media only screen and (max-width: 1600px){
    .contenedor_titulo_sec3, 
    .contenedor_custom_arrows {
        max-width: 975px;
    }
    
}

@media only screen and (max-width: 1100px){

    .contenedor_carrusel_sec3 {
        padding-left: calc((100vw - 975px) / 2);
        padding-right: calc((100vw - 975px) / 2);

        scroll-padding-left: calc((100vw - 975px) / 2);
        scroll-padding-right: calc((100vw - 975px) / 2);
    }
    
}

/* ------------ Pantallas medianas ------------ */
@media only screen and (max-width: 991px){

    .contenedor_titulo_sec3,
    .contenedor_custom_arrows {
        max-width: 80%;
    }

    .contenedor_custom_arrows {
        display: block;
    }

    .contenedor_carrusel_sec3 {
        padding-left: 10%;
        padding-right: 10%;

        scroll-padding-left: 10%;
        scroll-padding-right: 10%;
    }

}

/* ------------ Pantallas chicas ------------ */
@media only screen and (max-width: 600px){

    .contenedor_titulo_sec3 {
        padding: 48px 0%;
    }
    
    .card-body-sec3{
        padding: 16px 13px;
    }

    .contenedor_custom_arrows {
        padding: 48px 0 0 0;
    }

    .contenedor_carrusel_sec3 {
        display: flex;
        overflow-x: auto;
    }

    .cuerpo_card_recomendado_sec3 {
        flex: 0 0 40%;
        min-width: 200px;
    }

}

/*---------------------END_SECTION_3-----------------------*/

/*-----------------------SECTION_4-------------------------*/

.contenedor_sec4 {
    background-color: #FFFFFF;
}

.contenedor_titulo_sec4{
    padding: 56px 0%;
    margin: 0% auto;
    max-width: 1220px;
}

.tituloSec4{
    font-size: 40px;
    width: 100%;
    font-family: "Pier_Sans_Black";
    line-height: 1.1;
    color: #444444;
    padding: 0%;
    margin: 0%;
}

/* ---------- Cards paginas ------------ */
.paginacion_wrapper_sec4 {
    width: 100%;
    margin: 0% auto;
    position: relative;
    padding-bottom: 72px;
}

.contenedor_paginacion_sec4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 72px 24px;
    max-width: 1088px;
    margin: 0 auto;
}

.cuerpo_card_paginacion_sec4 {
    flex: 1 1 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column; 
    gap: 24px;
}

.card_Izq_Sec4,
.card_Der_Sec4 {
    border-radius: 25px;
    height: auto;
}

/* Card superior - ultimos agregados - imagen */
.card_Izq_Sec4 {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img_Card_Izq_Sec4 {
    width: 100%;
    height: 100%;
    min-height: 143px;
    min-width: 200px;
    object-fit: cover;
    border-radius: 25px;
}

.img_Card_Izq_Sec4:hover {
    opacity: 0.4;
}

/* Card inferior - ultimos agregados - textos */
.card_Der_Sec4 {
    padding: 0%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-body-sec4{
    border: 0px !important;
    padding: 0%;
    min-width: 200px;
}

.titulo_blog_ultimos_agregados_sec4 {
    font-size: 16px;
    font-family: "OpenSans-Bold";
    color: #444444;
    line-height: 1.25;
    padding: 0 0 16px 0;
    margin: 0%;
    transition: color 0.2s ease;
}

.titulo_blog_ultimos_agregados_sec4:hover {
    color: #FF4444;
}

.autor_ultimos_agregados_blog {
    display: flex;
    align-items: center;
    gap: 10px;
}

.img_ultimos_agregados_autor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.nombre_ultimos_agregados_autor {
    font-size: 12px;
    font-family: "OpenSans-Regular";
    color: #808080;
}

/* ------ Estilos para los botones de ultimos agregados -------- */
.paginacion_sec4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 72px;
}

.numeros-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Botones navegaci¨Žn */
.btn-nav {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 0%;
    cursor: pointer;
    color: #444444;
}

/* Rotar solo el del anterior */
.icono-rotado {
    display: flex;
    transform: rotate(180deg);
}

/* Transicion suave opcional */
.icono-flecha {
    transition: transform 0.3s ease;
}

/* Inactivo */
.btn-nav.inactivo {
    color: #D6D6D6;
    cursor: default;
}

/* Numeros */
.btn-numero {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #444444;
    width: auto;
    height: 24px;
    padding: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Punto rojo activo */
.punto-activo {
    width: 6px;
    height: 6px;
    background: red;
    border-radius: 50%;
    display: block;
}

/* ---------- Pantallas grandes --------- */
@media only screen and (max-width: 1600px){
    .contenedor_titulo_sec4 {
        max-width: 975px;
    }
    
}

/* ------------ Pantallas medianas ------------ */
@media only screen and (max-width: 991px){

    .contenedor_titulo_sec4,
    .paginacion_wrapper_sec4 {
        max-width: 80%;
    }

    .paginacion_wrapper_sec4 {
        padding-bottom: 72px;
    }

    .contenedor_paginacion_sec4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 56px 32px;
        width: 100%;
        margin: 0;
    }

    .paginacion_sec4 {
        margin-top: 72px;
    }

}

/* ------------ Pantallas chicas ------------ */
@media only screen and (max-width: 600px){

    .contenedor_titulo_sec4 {
        padding: 56px 0 32px 0;
    }

    .contenedor_paginacion_sec4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        margin: 0%;
        gap: 0%;
    }

    .cuerpo_card_paginacion_sec4 {
        flex: 1 1 200px;
        min-width: 200px;
        display: flex;
        flex-direction: column; 
        gap: 24px;
        padding: 24px 0;
        border-bottom: 1px solid #D6D6D6;
    }

    .paginacion_wrapper_sec4 {
        padding-bottom: 56px;
    }
}

/*---------------------END_SECTION_4-----------------------*/
