/* theme-layouts.css - Estilos para Layouts DinÃƒÂ¡micos */

/* =========================================
   1. LAYOUTS DE NAVBAR
   ========================================= */

/* Layout: Default */
.navbar-layout-default .uk-navbar-left {
    margin-right: auto;
}

.navbar-layout-default .uk-navbar-right {
    margin-left: auto;
}

/* Layout: Logo Centrado (Desktop) */
@media (min-width: 960px) {
    .navbar-layout-center-logo {
        position: relative;
        justify-content: space-between;
    }

    .navbar-layout-center-logo .uk-navbar-center {
        position: absolute;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        /* Force strict width to avoid layout shifts */
        width: auto !important;
        max-width: 200px;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1020;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        /* Passes clicks through empty space */
        height: 100%;
        /* Ensure vertical centering alignment */
    }

    .navbar-layout-center-logo .uk-navbar-center>.uk-logo {
        pointer-events: auto;
        /* Re-enable clicks on the logo image */
        display: block;
        line-height: 0;
        /* Remove font-related spacing */
    }

    .navbar-layout-center-logo .uk-navbar-left,
    .navbar-layout-center-logo .uk-navbar-right {
        flex: 1;
        z-index: 1010;
        align-items: center;
        /* Ensure items are vertically centered */
        display: flex;
    }

    .navbar-layout-center-logo .uk-navbar-left {
        justify-content: flex-start;
        padding-right: 0;
    }

    .navbar-layout-center-logo .uk-navbar-right {
        justify-content: flex-end;
        padding-left: 0;
    }
}

/* Fix para mÃƒÂ³vil (Logo Centrado) */
@media (max-width: 959px) {
    .navbar-layout-center-logo .uk-navbar-center {
        /* Centrado absoluto tambiÃƒÂ©n en mÃƒÂ³vil para evitar conflictos con toggle */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1010;
        margin: 0;
    }

    .navbar-layout-center-logo .uk-navbar-left {
        z-index: 1020;
        /* Toggle encima del logo si se solapan */
    }

    .navbar-layout-center-logo .uk-navbar-right {
        margin-left: auto;
        z-index: 1020;
    }

    .navbar-layout-centered .centered-menu-nav {
        display: none !important;
    }

    .navbar-layout-centered .centered-menu-row {
        justify-content: flex-end;
    }

    .navbar-layout-centered .centered-menu-tools {
        margin-left: 0;
    }
}


/* Layout: Todo Centrado (Stacked) */
.navbar-layout-centered .uk-navbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 8px;
}

.navbar-layout-centered .uk-navbar-center,
.navbar-layout-centered .centered-stack-shell {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.navbar-layout-centered [uk-navbar] {
    position: relative;
    min-height: 120px;
}

.navbar-layout-centered .centered-logo-row {
    padding: 4px 0 2px;
    margin-bottom: 8px;
}

.navbar-layout-centered .centered-logo-row img {
    max-width: min(280px, 62vw);
}

.navbar-layout-centered .centered-menu-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.navbar-layout-centered .centered-menu-nav {
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-layout-centered .centered-menu-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.navbar-layout-centered .brand-logo img {
    max-width: min(280px, 62vw);
}

/* Layout: Hamburger Only */
.navbar-layout-hamburger-only .uk-navbar-nav {
    display: none !important;
}

.navbar-layout-hamburger-only .uk-navbar-toggle {
    display: flex !important;
}

/* =========================================
   2. MODOS DE BANNER (SLIDESHOW)
   ========================================= */

/* Default Banner Height (Fallback) */
.uk-slideshow-items {
    min-height: 600px;
}

/* Mobile Banner Height Optimization */
@media (max-width: 640px) {
    .uk-slideshow-items {
        min-height: 400px !important;
        height: 60vh !important;
    }
}

/* Mode: Fullscreen Banner */
.banner-mode-fullscreen .uk-slideshow-items {
    min-height: 100vh !important;
    height: 100vh !important;
}

/* Mode: Tall Banner */
.banner-height-tall .uk-slideshow-items {
    min-height: 85vh !important;
    height: 85vh !important;
}

/* Mode: Short Banner */
.banner-height-short .uk-slideshow-items {
    min-height: 400px !important;
    height: 50vh !important;
}

/* =========================================
   3. BANNER COVER + TRANSPARENT NAV
   ========================================= */

/* El slide debe ocupar todo el espacio */
.banner-mode-cover-with-overlay-nav .uk-slideshow-items {
    /* Opcional: si quieren que sea full screen tambiÃƒÂ©n, descomentar: */
    /* min-height: 100vh; height: 100vh; */
}

/* En este modo, el navbar se posiciona sobre el banner (absolute) */
.banner-mode-cover-with-overlay-nav,
.banner-mode-fullscreen {
    position: relative;
    /* Contexto */
}

/* Forzamos transparencia usando selectores de alta especificidad */
body .banner-context-home.banner-mode-cover-with-overlay-nav .navbar-layout-default,
body .banner-context-home.banner-mode-fullscreen .navbar-layout-default,
body .banner-context-home.banner-mode-cover-with-overlay-nav .navbar-layout-center-logo,
body .banner-context-home.banner-mode-fullscreen .navbar-layout-center-logo,
body .banner-context-home.banner-mode-cover-with-overlay-nav .navbar-layout-centered,
body .banner-context-home.banner-mode-fullscreen .navbar-layout-centered,
body .banner-context-home.banner-mode-cover-with-overlay-nav nav.nav-glass,
body .banner-context-home.banner-mode-fullscreen nav.nav-glass,
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky),
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    /* CRITICAL: Remove blur to make it truly invisible */
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

body .banner-context-home.banner-mode-cover-with-overlay-nav nav.nav-glass,
body .banner-context-home.banner-mode-fullscreen nav.nav-glass,
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky),
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) [uk-navbar],
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) [uk-navbar] {
    min-height: 88px;
}

body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-item,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-item,
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle {
    min-height: 88px;
}

/* Force White Text & Icons on Transparent Header */
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .nav-link,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .nav-link,
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle,
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .uk-icon,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .uk-icon {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Fix SVG icons (like toggle) fill/stroke */
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle-icon svg,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) .uk-navbar-toggle-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

/* ExcepciÃƒÂ³n: Al hacer scroll (Sticky), SÃƒÂ debe tener fondo y color normal */
body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-sticky,
body .banner-context-home.banner-mode-fullscreen .uk-navbar-sticky {
    position: fixed !important;
    background: var(--sticky-nav-bg, rgba(255, 255, 255, 0.95)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
    animation: uk-slide-top-small 0.3s ease-out;
}

/* =========================================
   4. ANIMACIONES UIKIT AVANZADAS
   ========================================= */

/* Scroll Spy Animations */
.uk-animation-slide-bottom-small {
    animation-name: uk-fade, uk-slide-bottom-small;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Parallax Wrapper */
.parallax-wrap {
    overflow: hidden;
    position: relative;
}

/* Masonry Grid Fixes */
.uk-grid-masonry {
    align-items: flex-start;
}
/* ======================================================
   PHASE 2026 - RESPONSIVE NORMALIZATION (UIkit breakpoints)
   ====================================================== */

@media (max-width: 959px) {
    .uk-slideshow-items {
        min-height: 420px !important;
        height: clamp(420px, 62vh, 640px) !important;
    }

    .banner-mode-fullscreen .uk-slideshow-items {
        height: 100svh !important;
        min-height: 100svh !important;
    }

    .nav-glass.uk-navbar-container {
        min-height: 56px;
    }

    .nav-glass .uk-navbar-item,
    .nav-glass .uk-navbar-toggle {
        min-height: 56px;
    }

    .categories-section .uk-grid-medium,
    .featured-products-side-scroll .uk-grid {
        --uk-grid-gutter-horizontal: 10px;
        --uk-grid-gutter-vertical: 10px;
    }
}

body .banner-context-home.banner-mode-cover-with-overlay-nav .uk-navbar-container:not(.uk-navbar-sticky),
body .banner-context-home.banner-mode-fullscreen .uk-navbar-container:not(.uk-navbar-sticky) {
    border-bottom: var(--nav-border, 1px solid rgba(255, 255, 255, 0.15)) !important;
}

/* =========================================
   5. INTERNAL PAGE BANNERS (NON-HERO)
   ========================================= */

.internal-page-banner-shell {
    padding: 18px 0 10px;
}

.internal-page-banner {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background-image: var(--internal-banner-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.internal-page-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, var(--inner-banner-overlay, 0.36));
    pointer-events: none;
}

.internal-page-banner__content {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: clamp(18px, 4.2vw, 36px);
}

.internal-page-banner__title {
    margin: 0;
    color: var(--inner-banner-text, #ffffff);
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.3rem, 3.6vw, 2rem);
    line-height: 1.1;
}

.internal-page-banner__subtitle {
    margin: 0;
    color: var(--inner-banner-subtext, #f8fafc);
    font-family: var(--font-body, inherit);
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    max-width: 62ch;
}

@media (max-width: 959px) {
    .internal-page-banner {
        min-height: 190px;
        border-radius: 14px;
    }
}

@media (max-width: 639px) {
    .internal-page-banner-shell {
        padding-top: 12px;
    }

    .internal-page-banner {
        min-height: 156px;
        border-radius: 12px;
    }
}


