/*
 Theme Name:   Bark Child Theme
 Theme URI:    https://generatepress.com
 Description:  Bark theme is a child theme of generatepress
 Author:       Broobe Development Team
 Author URI:   https://broobe.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  bark
*/


/******************************************************/
/* PAGINA 404 ESTILOS
/*****************************************************/
.error404 .site-content {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/******************************************************/
/* ESTILOS DEL HEADER
/*****************************************************/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-bar .site-header {
    top: 32px;
}

/* El wrapper interno tiene el blend mode */
.header-content {
    mix-blend-mode: difference;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.site-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}
#primary-menu .parent-item {
    position: relative;
}

#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.25);;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 16px;
    margin-top: 0.5rem;
    transform: translateY(30px);
    transition: all 200ms ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* HEADER MOBILE */
@media (max-width: 768px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .header-content #site-navigation{
        display: none;
    }
    .header-content .site-logo {
        flex: 1 1 auto;
    }
    #generate-slideout-menu {
        width: 100%;
        padding: 24px;
    }

    #generate-slideout-menu .main-nav {
        padding-block: 24px;
    }

    #generate-slideout-menu .inside-navigation button {
        padding: 0;
    }

    #generate-slideout-menu .slideout-exit {
        width: auto !important;
    }
    #mobile-header .site-logo,
    #generate-slideout-menu .site-logo {
        width: 100%;
        max-width: 110px;
        height: 100%;
        max-height: 24px;
        min-height: 0;
    }

    #generate-slideout-menu .site-logo img {
        padding: 0;
        min-height: 0;
    }

    #generate-slideout-menu .slideout-exit,
    #generate-slideout-menu .site-logo {
        padding-bottom: 24px;
    }

    #generate-slideout-menu .parent-item.menu-item:not(:last-child) {
        border-bottom: 1px solid var(--gray-900);
    }

    .menu-item .dropdown-menu-toggle {
        padding: 0;
    }

    .menu-item .dropdown-menu-toggle .gp-icon svg {
        width: 24px;
        height: 24px;
    }

}


/******************************************************/
/* ESTILOS DEL FOOTER
/*****************************************************/

.site-footer .footer-widgets-container .inner-padding {
    padding: 0 0 0 24px;
}

.site-footer .footer-widgets-container .inside-footer-widgets {
    margin-left: -24px;
}

#footer-widgets .footer-widgets-container .inside-footer-widgets {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
}

#footer-widgets .footer-widgets-container .inside-footer-widgets [class^="footer-widget-"] {
    flex: 1;
    width: 100%;
    margin-bottom: 0;
}

#footer-widgets .site-info .inside-site-info {
    padding-right: 0;
    padding-left: 0;
    margin: 0 16px;
}
.copyright-bar {
    display: none;
}

@media (min-width: 768px) {
    #footer-widgets .site-info .inside-site-info {
        margin: 0 24px;
    }

}
@media(max-width: 768px) {
    #footer-widgets .footer-widgets-container .inside-footer-widgets [class^="footer-widget-"]:last-child {
        flex: 1 0 100%
    }
}

@media(max-width: 480px) {
    #footer-widgets .footer-widgets-container .inside-footer-widgets {
        flex-direction: column;
    }
}

/***********************************************
 * Swiper: Controles globales (nav + paginacion)
 **********************************************/
/** Ocultar paginación del swiper si su instancia .swiper se encuentra oculta (solo mobile o desktop) */
body .swiper-pagination,
body .swiper-button-prev,
body .swiper-button-next {
    display: none;
}

/* Botones de navegacion*/
/* Contenedor del Swiper */
body .swiper {
    width: 100%;
    height: 100%;
}

/* Wrapper del Swiper */
body .swiper  .swiper-wrapper {
    height: 100%;
}

/* Botones de navegación */
body .swiper .swiper-button-prev,
body .swiper .swiper-button-next {
    color: var(--white);
    width: 44px;
    height: 44px;
    background: rgba(29, 32, 30, 0.50);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    backdrop-filter: blur(4px);
}

body .swiper .swiper-button-prev:hover,
body .swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.50);
    color: var(--black);
    transform: scale(1.1);
}

body .swiper .swiper-button-prev:after,
body .swiper .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

/* Paginación */
body .swiper .swiper-pagination {
    position: relative;
    margin-top: 40px;
    bottom: 0!important;
    display: block;
}

body .swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    opacity: 1;
    transition: all 0.3s ease;
}

body .swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    transform: scale(1.333);
}

/* Responsive */
@media (max-width: 1023px) {
    body .swiper .swiper-pagination {
        position: relative;
        margin-top: 24px;
        bottom: 0!important;
    }
}

/**
 * YOAST ESTILOS DE BREADCRUMBS
 */
.yoast-breadcrumbs span {
    display: inline-flex;
    gap: 24px;
}

.hover-overlay {
    position: relative;
    overflow: hidden;
    display: block;
}

.hover-overlay img {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1; /* Nivel base */
}

.container-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hover-overlay:hover .container-overlay {
    opacity: 1;
}

.hover-overlay .container-overlay div {
    transform: translateY(20px);
    transition: transform 200ms ease-in-out;
}
.hover-overlay:hover .container-overlay div {
    transform: translateY(0);
}