/* ==========================================
   VIAJES EN CHANCLETAS
   CSS UNIFICADO - TEMA TORTUGA
   ========================================== */


/* ==========================================
   1. COLORES GENERALES
   ========================================== */

.site-header,
.header-main {
    background-color: #f2ede3 !important;
}

.main-navigation,
#main-navigation,
.primary-navigation {
    background-color: #292929 !important;
}

.main-navigation a,
#main-navigation a {
    color: #ffffff !important;
}


/* ==========================================
   2. CABECERA GENERAL
   ========================================== */

.site-header {
    padding: 0 !important;
}

.site-header .site-title,
.site-header .site-description {
    display: none !important;
}

.site-header .site-logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-branding img {
    display: block !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ==========================================
   3. CABECERA ESCRITORIO
   LOGO ALINEADO CON INICIO
   ========================================== */

@media screen and (min-width: 1025px) {

    .site-header .header-main {
        width: 1170px !important;
        max-width: 100% !important;
        min-height: 130px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 10px 20px 10px 10px !important; !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        text-align: left !important;
    }

    .site-header .site-branding,
   .site-header .site-logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-branding img {
    display: block !important;
    width: 680px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}


/* ==========================================
   4. CABECERA TABLETAS
   ========================================== */

@media screen and (min-width: 768px)
and (max-width: 1024px) {

    .site-header {
        padding: 8px 12px !important;
    }

    .site-header .header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .site-header .site-branding,
    .site-header .site-logo {
        margin: 0 auto !important;
    }

    .site-header .site-logo img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header .site-branding img {
        width: 540px !important;
        max-width: 90vw !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }
}


/* ==========================================
   5. CABECERA MÓVILES
   ========================================== */

@media screen and (max-width: 767px) {

    .site-header {
        padding: 8px 12px !important;
    }

    .site-header .header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .site-header .site-branding,
    .site-header .site-logo {
        margin: 0 auto !important;
    }

    .site-header .site-logo img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header .site-branding img {
        width: 320px !important;
        max-width: 95% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }
}


/* ==========================================
   6. MÓVILES PEQUEÑOS
   ========================================== */

@media screen and (max-width: 400px) {

    .site-header .site-logo img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header .site-branding img {
        width: 290px !important;
        max-width: 95% !important;
        height: auto !important;
    }
}


/* ==========================================
   7. CARRUSEL DE PORTADA
   CUATRO FOTOS - 5 SEGUNDOS CADA UNA
   ========================================== */

.vec-hero-slider {
    position: relative;
    overflow: hidden;
}

.vec-hero-slider > .wp-block-cover__image-background,
.vec-hero-slider .vec-hero-photos img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    opacity: 0;
    animation: vecHeroFade 20s infinite;
}

/* Cancún */

.vec-hero-slider > .wp-block-cover__image-background {
    animation-delay: 0s;
}

/* Machu Picchu */

.vec-hero-slider .vec-hero-photos img:nth-child(1) {
    animation-delay: 5s;
}

/* China */

.vec-hero-slider .vec-hero-photos img:nth-child(2) {
    animation-delay: 10s;
}

/* Egipto */

.vec-hero-slider .vec-hero-photos img:nth-child(3) {
    animation-delay: 15s;
}

/* Capas del carrusel */

.vec-hero-slider > .wp-block-cover__background {
    z-index: 1;
}

.vec-hero-slider > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.vec-hero-slider .vec-hero-photos {
    position: static;
}


/* ==========================================
   8. ANIMACIÓN DEL CARRUSEL
   ========================================== */

@keyframes vecHeroFade {

    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    22% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* ==========================================
   9. ACCESIBILIDAD
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .vec-hero-slider > .wp-block-cover__image-background {
        animation: none !important;
        opacity: 1 !important;
    }

    .vec-hero-slider .vec-hero-photos img {
        animation: none !important;
        opacity: 0 !important;
    }
}


/* ==========================================
   10. CARRUSEL MÓVIL
   ========================================== */

@media screen and (max-width: 767px) {

    .vec-hero-slideshow,
    .vec-hero-slideshow .wp-block-jetpack-slideshow_container,
    .vec-hero-slideshow .swiper-wrapper,
    .vec-hero-slideshow .swiper-slide,
    .vec-hero-slideshow .wp-block-jetpack-slideshow_slide,
    .vec-hero-slideshow figure {
        height: 230px !important;
        max-height: 230px !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .vec-hero-slideshow img {
        width: 100% !important;
        height: 230px !important;
        max-height: 230px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .vec-hero-slideshow {
        position: relative !important;
        width: 100% !important;
    }

    .vec-hero-slideshow .swiper-button-prev,
    .vec-hero-slideshow .swiper-button-next,
    .vec-hero-slideshow .wp-block-jetpack-slideshow_button-prev,
    .vec-hero-slideshow .wp-block-jetpack-slideshow_button-next {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 20 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .vec-hero-slideshow .swiper-button-prev {
        left: 6px !important;
    }

    .vec-hero-slideshow .swiper-button-next {
        right: 6px !important;
    }
}


/* ==========================================
   11. RESULTADOS DE BÚSQUEDA
   ========================================== */

.search .post,
.search .page {
    overflow: hidden;
}

.search .post img,
.search .page img {
    max-width: 100%;
    height: auto;
}

.search .entry-summary {
    line-height: 1.65;
}

/* ==========================================
   FIN DEL CSS - VIAJES EN CHANCLETAS
   ========================================== */