/* =========================
   HERO COMPACTO
========================= */

/* quitar espacio arriba del slider */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* header más pequeño */
header.site-header {
    padding-top:0px !important;
    padding-bottom: 0px !important;
}

/* menú más compacto */
.wp-block-navigation {
    margin: 0 !important;
    padding: 0 !important;
}

/* slider sin espacio */
.wp-block-jetpack-slideshow {
    margin-top: 0px !important;
    margin-bottom: 50 !important;
    padding-bottom: 50 !important;
}


/* =========================
   BOTONES SOLO HERO
========================= */

.wp-block-jetpack-slideshow + .wp-block-group .wp-block-buttons {
    margin-top: 0px !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* botones normales sin mover */
.wp-block-buttons {
    margin-top: 0 !important;
}


/* =========================
   QUITAR PUNTITOS SLIDER
========================= */

.swiper-pagination {
    display: none !important;
}


/* =========================
   QUITAR ESPACIOS EXTRA WORDPRESS
========================= */

.wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-site-blocks {
    padding-top: 0 !important;
}

main.wp-block-group {
    padding-top: 0 !important;
}


/* =========================
   HACER TODO MÁS COMPACTO
========================= */

h1, h2, h3 {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.wp-block-columns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-block-image {
    margin-bottom: 0 !important;
}
/* =========================
   FAVORITOS LOOP REAL
========================= */

/* quitar padding del bloque favoritos */
.wp-block-heading + .wp-block-group,
.wp-block-heading + .wp-block-jetpack-slideshow {
    margin: 0 !important;
    padding: 0 !important;
}

/* contenedor slideshow favoritos */
.wp-block-jetpack-slideshow.aligncenter {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* wrapper interno */
.wp-block-jetpack-slideshow.aligncenter .swiper-wrapper {
    display: flex !important;
    width: max-content !important;
    animation: loopFav 35s linear infinite;
}

/* tamaño de cada slide */
.wp-block-jetpack-slideshow.aligncenter .swiper-slide {
    width: 480px !important;
    flex-shrink: 0 !important;
}

/* quitar flechas */
.wp-block-jetpack-slideshow.aligncenter .swiper-button-prev,
.wp-block-jetpack-slideshow.aligncenter .swiper-button-next,
.wp-block-jetpack-slideshow.aligncenter .swiper-pagination {
    display: none !important;
}


/* animacion LOOP real */
@keyframes loopFav {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   RESPONSIVE SLIDER FAVORITOS
========================= */

/* escritorio */
.wp-block-jetpack-slideshow.aligncenter .swiper-slide {
    width: 480px !important;
}

/* tablet */
@media (max-width: 1024px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-slide {
        width: 320px !important;
    }

}

/* celular */
@media (max-width: 768px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-slide {
        width: 280px !important;
    }

}

/* celular chico */
@media (max-width: 480px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-slide {
        width: 240px !important;
    }

}

/* =========================
   VELOCIDAD RESPONSIVE
========================= */

/* escritorio */
.wp-block-jetpack-slideshow.aligncenter .swiper-wrapper {
    animation: loopFav 50s linear infinite;
}

/* tablet */
@media (max-width: 1024px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-wrapper {
        animation: loopFav 40s linear infinite;
    }

}

/* celular */
@media (max-width: 768px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-wrapper {
        animation: loopFav 16s linear infinite;
    }

}

/* celular chico */
@media (max-width: 480px) {

    .wp-block-jetpack-slideshow.aligncenter .swiper-wrapper {
        animation: loopFav 16s linear infinite;
    }

}