/* ========== VARIABLES Y TIPOGRAFÍA ========== */
:root {
    --primary-blue: #1d277c;
    --primary-cyan: #009fe3;
    --primary-red: #e30713;
    --white: #ffffff;
    --bg-light-gray: #f8f9fb;
    --text-secondary: #6b7280;
    --bg-info-blue: #e6f4fb;
    --success: #10b981;
    --warning: #f59e0b;
    --primary-blue-dark: #151d5c;
    --primary-cyan-dark: #007bb5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 50px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== PROMO BAR ========== */
.promo-bar {
    background: var(--white);
    color: var(--white);
    text-align: center;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 50px;
    overflow: hidden;
}

.promo-bar.hide {
    transform: translateY(-100%);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.promo-bar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========== HEADER ========== */
.header {
    background: var(--primary-blue);
    position: sticky;
    top: 50px;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(29, 39, 124, 0.2);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.sticky-top {
    top: 0;
}

.header-top {
    padding: 12px 0;
    /* Restaurado para dar más aire al logo dominante */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-image {
    height: 52px;
    /* Logo dominante, claramente más grande que el menú */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    /* Efecto sutil de marca */
}

/* ========== SEARCH BAR EN HEADER ========== */
.header-search {
    flex: 1;
    max-width: 450px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: var(--primary-cyan);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: white;
    color: var(--primary-blue);
    transform: rotate(15deg) scale(1.1);
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
}


/* Estilos para Redes Sociales en el Header */
.header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    /* Mantener en la misma línea */
}

.social-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-right: -5px;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
}

.header-socials a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    opacity: 0.9;
}

.header-socials a:hover {
    color: var(--primary-accent, #fabf2c);
    transform: translateY(-2px);
    opacity: 1;
}

/* Updated Header Buttons */
.btn-header-contact,
.btn-header-unete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    color: white !important;
    /* Ensure white text */
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-header-contact {
    background-color: #01acf0;
    box-shadow: 0 4px 10px rgba(1, 172, 240, 0.3);
}

.btn-header-contact:hover {
    background-color: #0192cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 172, 240, 0.4);
}

.btn-header-unete {
    background-color: #db1f2b;
    box-shadow: 0 4px 10px rgba(219, 31, 43, 0.3);
}

.btn-header-unete:hover {
    background-color: #b91a24;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(219, 31, 43, 0.4);
}

.header-nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.header-nav-link i {
    font-size: 0.9rem;
    color: white;
}

.header-nav-link span {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
    margin-top: 0;
}

.header-nav-link:hover {
    opacity: 1;
    color: var(--primary-cyan);
}

.header-nav-link:hover i {
    color: var(--primary-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    transition: 0.3s;
    position: relative;
    text-decoration: none;
    /* Sin subrayado */
}

.header-btn i {
    font-size: 1.4rem;
}

.header-btn:hover {
    color: var(--primary-cyan);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--white);
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: relative;
    z-index: 10000;
}

.nav-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    /* Permite que los elementos bajen si no caben */
}

.nav-item {
    position: relative;
    white-space: nowrap;
    /* Evita que el texto de un ítem se rompa */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    /* Reducido un poco para acomodar más ítems */
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    /* Ajuste sutil de tamaño */
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    /* Toque más suave */
}

.nav-link i:not(.dropdown-icon) {
    font-size: 1.3rem;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-link:hover {
    background: var(--bg-info-blue);
    border-bottom-color: var(--primary-cyan);
}

.nav-link:hover i:not(.dropdown-icon) {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* ========== DROPDOWNS ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100000;
    border: 1px solid #e5e7eb;
    margin-top: 5px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-info-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-cyan);
    padding-left: 25px;
}

.dropdown-menu.mega {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 25px;
    min-width: 600px;
}

.mega-column h4 {
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-cyan);
    padding-bottom: 6px;
}

.mega-column a {
    display: block;
    font-size: 0.85rem;
    padding: 6px 0 6px 10px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.mega-column a:hover {
    color: var(--primary-cyan);
    padding-left: 16px;
    border-left-color: var(--primary-cyan);
}

/* ========== HERO SLIDER ========== */
.hero {
    position: relative;
    height: auto;
    aspect-ratio: 1920/500;
    overflow: hidden;
    z-index: 1;
}

.hero-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Evitar bloquear clics en slides inactivos */
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    /* Solo el slide activo recibe clics */
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 60px 40px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: 0 20px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
}

.btn-primary:hover {
    background: var(--primary-cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-prev {
    left: 20px;
    border-radius: 0 30px 30px 0;
}

.hero-next {
    right: 20px;
    border-radius: 30px 0 0 30px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #019ce1;
    width: 30px;
    border-radius: 6px;
}

/* ========== HERO SPLIT (MOBILE) ========== */
.hero-split {
    display: none;
    /* Hidden by default, shown on mobile via media query if needed or usually distinct */
}

@media (max-width: 768px) {
    .hero-split {
        display: block;
    }

    .hero-split-item {
        margin-bottom: -5px;
        /* Remove gaps */
    }

    .hero-split-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hero {
        display: none;
        /* Hide desktop slider on mobile */
    }
}

/* ========== HERO SLIDE SPLIT LAYOUT ========== */
.hero-slide-split {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-split .hero-container {
    width: 100%;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text-side {
    flex: 1;
    color: var(--white);
    max-width: 600px;
}

.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-image-container img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
}

.banner-image-container.square {
    aspect-ratio: 1/1;
    width: 420px;
}

.banner-image-container.vertical {
    aspect-ratio: 5315/8859;
    width: 300px;
}

.promo-badge-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffeb3b;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary.highlighted {
    background: #ffeb3b;
    color: #1d277c;
    box-shadow: 0 10px 20px rgba(255, 235, 59, 0.3);
}

.btn-primary.highlighted:hover {
    background: #fdd835;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 235, 59, 0.4);
}

/* ========== BANNERS PROMOCIONALES ROTATIVOS ========== */
.promo-banners-slider {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #e6f4fb 100%);
    overflow: hidden;
}

.promo-slider-wrapper {
    position: relative;
}

.promo-slides {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: slidePromo 20s infinite;
}

.promo-slide-item {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.promo-banner-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.promo-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 159, 227, 0.15);
}

.promo-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.promo-banner-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.promo-banner-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes slidePromo {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-75%);
    }
}

/* ========== SECCIONES DE CATEGORÍAS ========== */

.category-section {
    padding: 60px 0;
    background: var(--white);
}

.category-section.alt-bg {
    background: var(--bg-light-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-title i {
    color: var(--primary-cyan);
}

.view-all {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 10px;
}

.category-cover {
    height: 260px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.belleza-cover {
    background: linear-gradient(rgba(29, 39, 124, 0.65),
            rgba(0, 159, 227, 0.65)),
        url('https://images.unsplash.com/photo-1556228720-195a672e8a03?w=1600');
}

.category-cover-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.category-cover-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ========== PRODUCTOS CON IMÁGENES ========== */
.products-grid {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    scroll-snap-type: smooth;
    padding-bottom: 10px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 240px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 159, 227, 0.15);
}

.product-image {
    position: relative;
    height: 240px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: none;
}

.zoom-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .zoom-icon {
    opacity: 1;
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.price-old {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.add-to-cart {
    flex: 1;
    padding: 12px;
    background: var(--primary-cyan);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: var(--primary-cyan-dark);
    transform: translateY(-2px);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--bg-info-blue);
    border-radius: 4px;
    opacity: 0.85;
}

.qty-btn.minus {
    background: #e30713;
    color: #fff;
}

.qty-btn.plus {
    background: #009fe3;
    color: #fff;
}

.qty-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* ========== BANNER GRANDE ========== */
.promo-banner-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--white);
    padding: 60px;
    border-radius: 24px;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 12px 40px rgba(29, 39, 124, 0.2);
}

.promo-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.promo-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.promo-image i {
    font-size: 10rem;
    opacity: 0.2;
}

/* ========== SPECIAL PROMO BANNER (DIAS IMBATIBLES) ========== */
.special-promo-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.special-promo-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.special-promo-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ========== FINAL BLUE BAR TIMER DESIGN ========== */
.promo-timer-bar-final {
    display: flex;
    align-items: center;
    background: #00369a;
    /* Dark Blue */
    height: 75px;
    border-radius: 10px;
    padding-right: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    min-width: 650px;
    overflow: visible;
}

.timer-clock-circle {
    width: 100px;
    height: 100px;
    background: #00369a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #f8f9fa;
    margin-left: -10px;
    z-index: 5;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.timer-clock-icon-final {
    width: 85%;
    height: auto;
}

.timer-text-area-final {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: left;
}

.timer-phrase-top {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.timer-phrase-bottom {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.timer-now-skew-badge {
    position: absolute;
    bottom: -15px;
    left: 180px;
    background: #e30713;
    color: white;
    padding: 6px 25px;
    font-weight: 900;
    font-size: 1.3rem;
    transform: skew(-15deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.timer-countdown-box-final {
    background: white;
    padding: 10px 20px;
    border-radius: 5px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-countdown-box-final .timer-grid {
    gap: 12px;
}

.timer-countdown-box-final .timer-val {
    color: #00369a;
    font-size: 1.8rem;
    font-weight: 800;
}

.timer-countdown-box-final .timer-label {
    font-size: 0.65rem;
    color: #666;
    font-weight: 700;
}

.timer-countdown-box-final .timer-sep {
    color: #e30713;
    margin-top: -15px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .promo-timer-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: -5px;
        background: #fff;
        border-radius: 0 0 15px 15px;
        box-shadow: none;
        border: none;
        padding: 15px;
        align-items: center;
        justify-content: center;
    }

    .special-promo-container {
        border-radius: 10px;
    }

    .timer-val {
        font-size: 1.5rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f1f1;
    transform: scale(1.1);
}

/* Close button for Ads/Promos */
.ad-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e30713;
    color: white;
    border: 2px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transition: all 0.3s ease;
}

.ad-close:hover {
    background: #b90610;
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-cert {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.locales-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 450px;
}

.locales-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
    flex-grow: 1;
}

.locales-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.locales-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.locales-scroll-area::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
}

.locales-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan-dark);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-cyan);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-small {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-slide-split .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-text-side {
        max-width: 100%;
    }

    .hero-image-side {
        width: 100%;
    }

    .banner-image-container.square,
    .banner-image-container.vertical {
        width: 200px;
        max-height: 200px;
    }

    .banner-image-container img {
        max-height: 180px;
    }

    .promo-badge-text {
        font-size: 1.8rem;
    }

    .nav-categories {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .products-row {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .products-row::-webkit-scrollbar {
        height: 6px;
    }


    .promo-slides {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner-large {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .promo-image {
        display: none;
    }

    .dropdown-menu.mega {
        grid-template-columns: 1fr;
        min-width: 250px;
    }
}

.meds-promo-bar {
    background: var(--primary-cyan);
    color: var(--white);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #16a34a;
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transform: translateX(120%);
    opacity: 0;
    transition: all .3s ease;
    z-index: 99999;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: #16a34a;
}

.toast-warning {
    background: #f59e0b;
}

.toast-error {
    background: #dc2626;
}


.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100000;
}

.cart-overlay.show {
    display: block;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
}

.cart-header {
    padding: 20px;
    background: #1d277c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-info {
    font-size: 13px;
    color: #666;
}

.cart-remove {
    background: none;
    border: none;
    color: #e30713;
    font-size: 18px;
    cursor: pointer;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.cart-total {
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.account-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    z-index: 100000;
}

.account-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-modal {
    background: white;
    width: 360px;
    border-radius: 14px;
    padding: 24px;
    position: relative;
}

.account-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.account-modal h2 {
    margin-bottom: 6px;
}

.account-modal p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.account-modal input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.btn-primary {
    width: 100%;
    background: #1d277c;
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-outline {
    width: 100%;
    background: var(--primary-cyan);
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-google {
    width: 100%;
    background: #f1f1f1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: 600;
}

.link {
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    color: #1d277c;
}

.hidden {
    display: none;
}

/* ========== JANUARY SHOWCASE & ZOOM EFFECT ========== */
.january-showcase {
    padding: 80px 0;
    background: #fdfdfd;
}

.main-promo-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    max-width: 700px;
    margin: 0 auto 40px;
}



/* Zoom Container (Restored) */
.zoom-magnifier-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: #000;
    cursor: zoom-in;
}

.main-campaign-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, transform-origin;
}

.zoom-magnifier-container:hover .main-campaign-banner {
    transform: scale(1.8);
    /* Zoom más potente para ver detalles */
}

.lupa-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.zoom-magnifier-container:hover .lupa-overlay {
    opacity: 1;
}

/* ========== PROMO PRODUCTS GRID ========== */
.promo-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

.promo-grid-highlight {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.accent-card {
    max-width: 400px;
    background: white;
    border: 2px solid #ffeb3b;
    box-shadow: 0 20px 40px rgba(255, 235, 59, 0.15);
    transform: scale(1.05);
}

.product-badge.animated {
    background: #ffeb3b;
    color: #1d277c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 235, 59, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0);
    }
}

.promo-details-box {
    background: #fff9c4;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: left;
}

.promo-details-box p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.save-tag {
    color: #d32f2f;
    font-weight: 800;
    font-size: 1.1rem !important;
}

@media (max-width: 768px) {
    .main-promo-title {
        font-size: 2.2rem;
    }

    .accent-card {
        transform: scale(1);
    }
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.catalog-filters {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.hidden {
    display: none;
}

/* ================= LOCALES ================= */

.locales-hero {
    background: linear-gradient(rgba(29, 39, 124, .85),
            rgba(0, 159, 227, .85)),
        url("https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?w=1600");
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.locales-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.locales-hero p {
    font-size: 1.2rem;
    opacity: .95;
}

/* ===== Layout ===== */
.locales-section {
    padding: 60px 0;
    background: var(--bg-light-gray);
}

.locales-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

/* ===== Mapa ===== */
.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ===== Lista ===== */
.locales-list {
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.locales-list h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.locales-search-wrapper {
    flex-shrink: 0;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.locales-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
    flex-grow: 1;
}

.locales-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.locales-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.locales-scroll-area::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
}

.locales-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan-dark);
}

.locales-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 15px;
    transition: 0.3s;
}

.locales-search-box:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.locales-search-box i {
    color: #64748b;
    margin-right: 10px;
    font-size: 1rem;
}

.locales-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--primary-blue);
    background: transparent;
}

.locales-counter {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.locales-counter span {
    color: var(--primary-cyan);
    font-weight: 700;
}

.local-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.local-card.hidden {
    display: none;
}

.local-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 159, 227, .2);
    border-color: rgba(0, 159, 227, .3);
}

.local-card.active {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 12px 30px rgba(29, 39, 124, .15);
}

.local-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.local-card p {
    font-size: .9rem;
    color: #555;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: .9rem;
    margin-top: 10px;
    display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .locales-layout {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 350px;
    }

    .locales-hero h1 {
        font-size: 2.2rem;
    }
}

/* OPTIMIZACIÓN MÓVIL (MENOS DE 768PX) */
@media (max-width: 768px) {

    /* Promo Bar & Body */
    .promo-bar {
        position: relative;
        height: auto;
        padding: 0;
        display: block;
    }

    .promo-banner-img {
        width: 100%;
        height: auto;
        display: block;
    }

    body {
        padding-top: 0;
    }

    /* Header */
    .header {
        top: 0 !important;
        position: sticky;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo-image {
        height: 40px;
    }

    .header-nav-link span,
    .header-nav-divider,
    .social-label {
        display: none;
        /* Ocultar texto y divisores en móviles para un look minimalista */
    }

    .header-nav-link i {
        font-size: 1.25rem;
        /* Iconos más grandes y claros para compensar la falta de texto */
    }

    .header-socials {
        justify-content: center;
    }
}

/* ==================== MOBILE NAVIGATION ==================== */
.mobile-drawer {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

/* Reverted to 900px based on user feedback "esta mal revierte" - likely user device is >768px or wants tablet included */
/* Reverted to 900px default responsive behavior */
@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
        /* Allow wrapping if needed, or row */
        padding-bottom: 10px;
        gap: 15px;
    }

    .logo-image {
        /* Restoring default visibility/order */
        display: block;
        height: 35px;
        margin: 0;
        order: unset;
    }

    .header-search {
        order: unset !important;
        margin: 0 !important;
        width: 100%;
        /* Often search takes full width on mobile or shared row */
    }

    .mobile-menu-btn {
        order: unset !important;
        margin-right: 0 !important;
    }

    /* Restore visibility of actions if they were hidden */
    .header-actions .header-nav-link,
    .header-actions .cart-icon,
    .user-icon {
        display: inline-block !important;
        /* Or flex/block depending on original */
    }

    .header-socials {
        /* Restore if hidden? User originally wanted simple header. */
        /* "como antes estaba de todo" implies standard. */
        /* I'll let them show up naturally or hide if they were hidden BEFORE my specific hacks. */
        /* Usually on mobile socials might be hidden or moved. */
        /* I will remove the explicit hide I added recently if any. */
    }

    /* Restore Mobile Styles */

    /* 1. Mobile Menu Button (Hamburger) - Visible */
    .mobile-menu-btn {
        display: none;
        /* Hidden on desktop */
    }

    /* Mobile Rules */
    @media (max-width: 768px) {

        .mobile-menu-btn {
            display: flex;
            /* Visible on mobile */
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            z-index: 10003;
        }

        .header-content {
            flex-wrap: nowrap;
            justify-content: space-between;
            /* Ham ... Search */
            padding-bottom: 5px;
        }

        /* 2. Hide User, Cart, AND LOGO ("solo pero solo poner el icono de categoria") */
        /* User asked for "solo icono de categoria", implying minimalist */
        /* Note: "buscador debe funcionar" -> Show search too */

        .logo-image {
            display: none !important;
            /* Hiding Logo per "solo pero solo" request */
        }

        .header-actions .header-nav-link,
        .header-actions .header-nav-divider,
        .social-label,
        .header-socials {
            display: none !important;
        }

        /* 3. Search Bar - Toggle Mode */
        .header-search {
            width: auto;
            /* Shrink to icon */
            flex: 0 0 auto;
            position: relative;
        }

        .header-search form {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            background: transparent;
            /* Transparent when inactive */
        }

        /* Input hidden by default on mobile */
        .header-search .search-input {
            width: 0;
            padding: 0;
            border: none;
            background: transparent;
            opacity: 0;
            transition: all 0.3s ease;
            position: absolute;
            right: 40px;
            /* Left of button */
            background: white;
            height: 35px;
            border-radius: 20px;
        }

        /* Active State - Expanded */
        .header-search form.active .search-input {
            width: 200px;
            /* Expand */
            padding: 0 15px;
            opacity: 1;
            border: 1px solid #ddd;
            z-index: 10002;
        }

        .header-search .search-btn {
            background: none;
            color: white;
            box-shadow: none;
            width: 40px;
            height: 40px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            z-index: 10003;
        }

        /* 4. Navbar - Side Drawer (White) */
        .navbar {
            display: block;
            flex-direction: column;
            width: 80%;
            max-width: 300px;
            height: 100vh;
            background: white;
            /* "lado de color blanco" */
            border-right: 1px solid #eee;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10002;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            transform: translateX(-100%);
            /* Hidden */
            transition: transform 0.3s ease;
            overflow-y: auto;
            padding-top: 60px;
        }

        .navbar.mobile-active {
            transform: translateX(0);
            /* Visible */
        }

        /* Ensure links in drawer are visible/styled */
        .nav-link {
            display: block;
            padding: 15px 20px;
            color: #333 !important;
            /* Dark text on white bg */
            border-bottom: 1px solid #f5f5f5;
        }

        .nav-item {
            display: block;
            width: 100%;
        }
    }

    /* Fixed mobile header layout based on Image: [Ham] [Search] [Logo] [User] [Cart] */
    @media (max-width: 768px) {
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            gap: 10px;
        }

        /* 1. Hamburger (Far Left) */
        .mobile-menu-btn {
            display: flex;
            /* Visible */
            order: 1;
            font-size: 1.5rem;
            margin: 0;
            padding: 0;
            z-index: 10003;
            color: var(--primary-color, #003366);
            /* Make sure it's visible color */
        }

        /* 2. Search Icon (Left, next to Ham) */
        .header-search {
            display: flex !important;
            order: 2;
            width: auto;
            margin: 0;
            flex: 0 0 auto;
            position: relative;
        }

        .header-search form {
            background: transparent;
            box-shadow: none;
            padding: 0;
            display: flex;
            align-items: center;
        }

        .header-search .search-btn {
            background: transparent;
            color: var(--primary-color, #003366);
            font-size: 1.5rem;
            padding: 5px;
            width: 40px;
            height: 40px;
            border: none;
        }

        .header-search .search-input {
            position: absolute;
            left: 0;
            /* Expand from left */
            top: 100%;
            /* Below */
            width: 200px;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            background: white;
            border: 1px solid #eee;
            z-index: 10002;
        }

        .header-search form.active .search-input {
            opacity: 1;
            pointer-events: auto;
        }

        /* 3. Logo (Center / Middle) */
        .logo-image {
            display: block !important;
            /* Visible */
            height: 35px;
            /* Adjust size to fit */
            order: 3;
            margin: 0 auto;
            /* Center it pushing others */
            flex-grow: 0;
            /* Don't stretch */
        }

        /* 4. Actions Group (User + Cart) */
        /* We need to target the containers or the links themselves */
        /* The structure is: .header-actions > a.header-nav-link (Cart) and .user-icon (User)? */
        /* Or .header-socials? Index snippet showed User Icon isn't in .header-content directly? */
        /* Wait, index.html line 180ish usually has .header-actions */
        /* Let's verify selectors. If they are direct children of header-content or wrapped. */

        /* Assuming .header-actions wrapper exists and contains cart */
        .header-actions {
            display: flex !important;
            order: 5;
            /* Cart area */
            align-items: center;
            gap: 10px;
        }

        /* User Icon - Assuming absolute or separate? */
        /* If user icon is .user-icon and cart is .header-actions .cart-icon */
        /* I'll generalize visibility */

        /* ==================== MOBILE HEADER LAYOUT (New Requirement) ==================== */
        /* Order: [Hamburger] [Logo] [Search Bar] [Locales] */
        .header-content {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            gap: 5px;
        }

        /* 1. Hamburger Button (Simple White Icon) */
        .mobile-menu-btn {
            display: flex !important;
            order: 1;
            align-items: center;
            justify-content: center;
            background: transparent;
            /* No pill bg */
            border: 1px solid transparent;
            /* Prepare for border */
            border-radius: 5px;
            /* Slight rounded */
            /* No border */
            padding: 5px;
            margin: 0;
            z-index: 10003;
            height: 35px;
            width: 35px;
            cursor: pointer;
            transition: border-color 0.3s ease;
            flex-shrink: 0;
            /* Prevent shrinking */
        }

        .mobile-menu-btn.active {
            border-color: white !important;
            /* White border when active */
        }

        .mobile-menu-btn i {
            color: white !important;
            font-size: 1.5rem;
            /* Larger icon */
        }

        .mobile-menu-btn span {
            display: none !important;
        }

        /* 2. Logo (Small Icon) */
        .logo-image {
            display: block !important;
            content: url('img/icono-con-fondo.png');
            height: 35px;
            /* Small "icono con fondo" */
            width: auto;
            order: 2;
            margin: 0 5px;
            flex-grow: 0;
            flex-shrink: 0;
            /* Prevent shrinking */
        }

        /* 3. Search Bar (Grande/Visible + Flex) */
        .header-search {
            display: flex !important;
            order: 3;
            flex-grow: 1;
            /* Take remaining space */
            flex-shrink: 1;
            /* Allow shrinking if needed */
            margin: 0 5px;
            position: static;
            /* No absolute */
            width: auto;
            min-width: 0;
            /* Allow shrinking if needed, but flex-grow handles expansion */
        }

        .header-search form {
            display: flex;
            align-items: center;
            width: 100%;
            background: white;
            border: 1px solid #ccc;
            border-radius: 20px;
            /* Rounded pill style usually looks good */
            padding: 2px 10px;
            height: 35px;
        }

        .header-search .search-input {
            width: 100%;
            border: none;
            outline: none;
            background: transparent;
            padding: 0;
            position: static;
            /* Visible */
            opacity: 1;
            pointer-events: auto;
            font-size: 0.9rem;
        }

        .header-search .search-btn {
            background: transparent;
            border: none;
            color: #666;
            padding: 0;
            margin-right: 5px;
            order: -1;
            /* Icon on left? Or right? Usually right for action, left for indicator. Let's keep right or default. */
            font-size: 1rem;
        }

        /* ==================== MOBILE SEARCH OVERLAY ==================== */
        @media (max-width: 768px) {
            .header-search.active-mobile {
                position: fixed !important;
                top: 0;
                left: 0;
                width: 100% !important;
                height: 100vh;
                background: white;
                z-index: 20010;
                padding: 15px;
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
            }

            .header-search.active-mobile form {
                height: 50px;
                border: 1px solid #ddd;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            }

            .header-search.active-mobile .search-input {
                font-size: 1.1rem;
            }

            /* Suggestion container adjustments for mobile */
            .header-search.active-mobile .search-preview-dropdown {
                position: static;
                /* Flow naturally below form */
                width: 100%;
                border: none;
                box-shadow: none;
                max-height: calc(100vh - 80px);
                /* Fill rest of screen */
                overflow-y: auto;
                margin-top: 20px;
            }

            /* Back Button (Injected via JS) */
            .mobile-search-back {
                display: none;
                font-size: 1.2rem;
                color: #333;
                background: none;
                border: none;
                margin-bottom: 15px;
                cursor: pointer;
                width: fit-content;
            }

            .header-search.active-mobile .mobile-search-back {
                display: flex;
                align-items: center;
                gap: 5px;
            }
        }

        /* 4. Locales Icon */
        .header-socials {
            display: contents !important;
        }

        .header-socials .header-nav-link[href*="locales"] {
            display: flex !important;
            order: 4;
            font-size: 1.1rem;
            /* Smaller icon size */
            color: white !important;
            /* Ensure visibility on blue header */
            padding: 5px;
            margin-left: 0;
            flex-shrink: 0;
            /* Prevent shrinking */
            z-index: 10005;
            /* Ensure on top */
        }

        /* Hidden Elements */
        .header-socials .social-label,
        .header-socials a:not([href*="locales"]),
        .header-nav-divider,
        .header-actions,
        .categories-btn,
        /* Explicitly hide Desktop Category Button */
        .categories-dropdown {
            display: none !important;
        }


        /* ==================== MOBILE DRAWER (Dr Simi Style) ==================== */
        .mobile-drawer {
            position: fixed;
            top: 0;
            left: 0;
            width: 300px;
            max-width: 85%;
            height: 100vh;
            background: white;
            z-index: 20000;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }

        .mobile-drawer.active {
            transform: translateX(0);
        }

        .drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            /* X left, Logo center? Reference: X usually right or left. Code implemented X left. */
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
        }

        /* Align X and Logo properly */
        .drawer-close {
            background: none;
            border: none;
            font-size: 2rem;
            /* Larger icon */
            cursor: pointer;
            color: #333;
            padding: 10px;
            /* Larger hit area */
            z-index: 20005;
            /* Ensure on top of everything */
            position: relative;
            /* Ensure z-index works */
        }

        .drawer-logo-container {
            flex: 1;
            display: flex;
            justify-content: center;
            /* Compensate for X to center rigorously if needed, or just flex center */
            margin-left: -20px;
            /* Pull back a bit since X is left */
        }

        .drawer-logo {
            height: 40px;
            width: auto;
        }

        .drawer-content {
            flex: 1;
            overflow-y: auto;
            padding: 10px 0;
        }

        .drawer-item {
            display: block;
            padding: 15px 25px;
            font-size: 1rem;
            font-weight: 700;
            /* Bold */
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #f9f9f9;
        }

        .drawer-footer {
            padding: 20px;
            background: #f8f8f8;
        }

        .drawer-link {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
            color: #444;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
        }

        .drawer-link i {
            width: 24px;
            text-align: center;
            color: var(--primary-blue);
            /* Visual consistency */
            font-size: 1.1rem;
        }
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== MOBILE GENERIC ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Typography scaling */
    html {
        font-size: 15px;
        /* Slightly smaller base than 16px to fit more */
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* Adjust Promo Bar */
    .promo-bar {
        font-size: 0.7rem;
        height: auto;
        padding: 5px 10px;
    }

    /* Hero Split Carousel - Mobile */
    .hero-split {
        display: flex;
        /* Override column default from previous if any, or set logic */
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* iOS momentum */
        scrollbar-width: none;
        /* Firefox */
    }

    .hero-split::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .hero-split-item {
        min-width: 100vw;
        /* Take full width */
        scroll-snap-align: center;
    }
}

/* ================= ANUNCIO EMERGENTE (POP-UP) ================= */
.ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    backdrop-filter: blur(5px);
    transition: 0.4s ease;
}

.ad-overlay.show {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.ad-modal {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-overlay.show .ad-modal {
    transform: scale(1);
    opacity: 1;
}

/* .ad-close styles moved to line 1372 for global consistency */

/* .ad-close:hover styles moved to line 1393 */

.ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-image {
    background: linear-gradient(135deg, #009fe3, #1d277c);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ad-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    display: block;
}

.ad-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-accent);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.ad-details {
    padding: 40px;
    background: white;
}

.ad-category {
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 10px 0;
}

.ad-prices {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ad-price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e63946;
}

.ad-price-old {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #94a3b8;
}

.ad-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ad-actions {
    display: flex;
    gap: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .ad-content {
        grid-template-columns: 1fr;
    }

    .ad-image {
        padding: 20px;
        min-height: 250px;
        /* Asegurar espacio para la imagen */
    }

    .ad-image img {
        max-width: 180px;
        transform: scale(1.1);
        /* Reducir escala un poco para móvil */
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    }

    .ad-details {
        padding: 30px;
        text-align: center;
    }

    .ad-prices {
        justify-content: center;
    }

    .ad-actions {
        flex-direction: column;
    }
}

/* ========== TARJETAS PEQUE�AS (CATEGORIAS) ========== */
.product-card-small {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    width: 200px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 159, 227, 0.1);
    border-color: var(--primary-cyan);
}

.product-card-small .product-image {
    height: 180px;
    /* Mas chico */
    padding: 10px;
}

.product-card-small .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-small .product-info {
    padding: 12px;
}

.product-details-small {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-details-small strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.product-card-small .product-name {
    font-size: 0.95rem;
    height: 40px;
    /* Limitar altura */
    margin-bottom: 8px;
}

/* Ocultar precios y botones en estas tarjetas */
.product-card-small .product-price,
.product-card-small .product-actions {
    display: none;
}

/* Subcategory Titles */
.subcategory-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-cyan);
    font-weight: 700;
}


/* Added for promo banner sizing */
.promo-banner-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Added Accessibility Overrides for Mobile */
@media (max-width: 768px) {

    /* Larger Base Text */
    html {
        font-size: 18px;
        /* Slight bump from default 16px */
    }

    /* Product Cards */
    .product-name {
        font-size: 1.1rem !important;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .product-price .price-current {
        font-size: 1.3rem !important;
    }

    /* Product Small Cards (Categories) */
    .product-card-small {
        width: 180px !important;
        /* Slightly wider if needed, or keeping it but larger text */
        min-width: 180px !important;
    }

    .product-card-small .product-name {
        font-size: 1rem !important;
        height: auto !important;
        /* Let text expand */
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    /* Header Icons */
    .header-nav-link i {
        font-size: 1.8rem !important;
        /* Bigger tap targets */
        padding: 10px;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    /* General Readable Text */
    p,
    span,
    li,
    a {
        line-height: 1.6;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px !important;
        font-size: 1.1rem !important;
    }
}

/* ==================== TWEAKS: MOBILE PROMO & SPLIT HERO ==================== */

/* Split Hero Section - Base (Desktop) */
.hero-split {
    display: flex;
    width: 100%;
    background-color: #f5f5f5;
}

.hero-split-item {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-split-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile Overrides */
@media (max-width: 768px) {

    /* Hide Promo Bar on Mobile */
    .promo-bar {
        display: none !important;
    }

    /* Stack Hero Images on Mobile - REMOVED for Carousel */
}


/* ==================== FIX: RESPONSIVE VISIBILITY ==================== */
/* Force hide split hero on desktop - MUST BE NONE */
.hero-split {
    display: none !important;
}

/* Mobile: Show split hero as carousel, hide slider */
@media (max-width: 768px) {

    /* Ensure split hero is visible on mobile as CAROUSEL */
    .hero-split {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        height: auto;
        width: 100vw;
        margin-left: -15px;
        /* Offset potential padding */
        width: calc(100% + 30px);
    }

    .hero-split::-webkit-scrollbar {
        display: none;
    }

    .hero-split-item {
        min-width: 100vw;
        width: 100vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .hero-split-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Hide original hero slider on mobile */
    #heroSlider {
        display: none !important;
    }
}


/* ==================== FIX: TALLER CARDS ==================== */
.product-card-small {
    min-height: 380px !important;
    /* Hazlo m�s alto */
    height: auto !important;
}

.product-card-small .product-name {
    height: auto !important;
    /* Permitir que el texto crezca */
    max-height: none !important;
    white-space: normal !important;
    /* Permitir wrapping */
    margin-bottom: 10px !important;
}


/* ==================== CATEGORIAS CON BACKGROUND ==================== */
.category-section {
    padding: 60px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay sutil para mejorar lectura */
.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.category-section .container {
    position: relative;
    z-index: 2;
}

/* Backgrounds espec�ficos */
#panales {
    background-image: url('Imagenes 5-01/BANNER/1920X500PX - WEB (1).svg');
}

#perfumeria {
    background-image: url('Imagenes 5-01/BANNER/BAHIA 1920X500PX.svg');
}

#leches {
    background-image: url('img/Categoria/Leches/banner-de-leches.jpg');
}


/* ==================== RESET PREVIOUS BACKGROUNDS ==================== */
.category-section {
    background-image: none !important;
    padding: 40px 0;
}

.category-section::before {
    display: none !important;
    /* Remove overlay */
}

#panales,
#perfumeria,
#leches {
    background-image: none !important;
}

/* ==================== SHOWCASE LAYOUT (Horizontal Banner for All) ==================== */
.category-showcase-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-banner-card {
    width: 100%;
    height: 300px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.5s ease;
    object-position: center 25%;
}

.category-banner-card:hover .category-banner-img {
    transform: scale(1.05);
}

.category-banner-content {
    position: relative;
    z-index: 2;
    padding: 30px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 30%, transparent 100%);
    color: white;
    text-align: left;
}

.category-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.category-banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 20px;
    font-weight: 500;
}

.category-banner-btn {
    background: var(--white);
    color: var(--primary-cyan);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.category-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-products-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Titles insde content area */
.subcategory-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .category-banner-card {
        height: 200px;
    }

    .category-banner-content {
        padding: 20px;
        align-items: center;
        text-align: center;
        height: 200px !important;
    }

    .category-banner-content {
        padding-left: 20px;
    }
}


/* ==================== FIX: HERO WIDTH & BUTTON COLOR ==================== */

/* 1. Hero menos ancho (Less wide/contained) */
.hero {
    max-width: 95%;
    /* Reduce width from 100% */
    margin: 0 auto;
    /* Center it */
    border-radius: 12px;
    /* Smooth corners since it's now boxed */
    overflow: hidden;
    margin-top: 20px;
    /* Separaci�n del top */
}

/* 2. Botones de categor�a color #1d277c */
.category-banner-btn {
    background-color: #009fe3 !important;
    color: white !important;
}

.category-banner-btn:hover {
    background-color: #4c96b6 !important;
    /* Darker shade for hover */
    transform: translateY(-2px);
}


/* ==================== FIX: HERO FULL WIDTH FOR NAV ==================== */
.hero {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
}

/* ==================== NAV CATEGORY DROPDOWN ==================== */
/* Style specifically for the 'All Categories' trigger if I add it */
.nav-category-trigger {
    background-color: var(--primary-cyan);
    color: white !important;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-category-trigger:hover {
    background-color: var(--primary-cyan-dark);
}

.mega-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}

.nav-item:hover .mega-menu-container {
    display: block;
}

.mega-menu-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mega-menu-item:last-child {
    border-bottom: none;
}

.mega-menu-item:hover {
    background: #f5f5f5;
    color: var(--primary-blue);
    padding-left: 25px;
    /* Indent effect */
}


/* ==================== SMART SCROLL BEHAVIOR ==================== */
/* Hide Promo Bar is already defined (.promo-bar.hide) */

/* Hide Navbar (Categories) on Scroll Down */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.navbar.hide {
    transform: scaleY(0);
    height: 0 !important;
    padding: 0 !important;
    opacity: 0;
    overflow: hidden;
    border-bottom: none;
}

/* Ensure Header adjusts when Navbar hides */
/* Header transition is already defined */



/* New Search Category Trigger */
.search-category-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
}

.search-category-trigger i {
    font-size: 1.2rem;
}




/* ========== NEW CATEGORIES DROPDOWN ========== */
.categories-wrapper {
    position: relative;
    margin-right: 15px;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.categories-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.categories-btn i {
    font-size: 1.2rem;
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 5px;
}

.categories-wrapper:hover .categories-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cat-item:hover {
    background: #f0f4f8;
    color: var(--primary-blue);
}

.cat-item i {
    width: 20px;
    text-align: center;
    color: #1d277c;
}

.cat-item:hover i {
    color: var(--primary-blue);
}



/* ========== NESTED DROPDOWN STYLES ========== */
.cat-group {
    position: relative;
    width: 100%;
}

/* Main Item Layout */
.cat-item {
    display: flex;
    justify-content: space-between;
    /* Space icon/text vs arrow */
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.cat-item span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-item .arrow {
    font-size: 0.8rem;
    color: #ccc;
}

.cat-group:hover>.cat-item {
    background-color: #f0f4f8;
    color: var(--primary-blue);
}

.cat-group:hover>.cat-item span i {
    color: var(--primary-blue);
}

/* Submenu Flyout */
.cat-submenu {
    display: none;
    position: absolute;
    left: 100%;
    /* To the right */
    top: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 8px;
    padding: 10px 0;
    z-index: 1001;
    border-left: 2px solid #f0f4f8;
    /* Handle height if submenu is very long */
    max-height: 500px;
    overflow-y: auto;
}

/* Show on hover */
.cat-group:hover .cat-submenu {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Submenu Links */
.cat-submenu a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cat-submenu a:hover {
    color: var(--primary-blue);
    background: #f9f9f9;
    padding-left: 25px;
}



/* Fix Dropdown Hover Gap */
.categories-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 1002;
}

/* ========== LECHES ADULTOS CAROUSEL ========== */


#lechesAdultosGrid .product-info>div:last-child {
    /* Description */
    order: 2;
    font-size: 0.8rem;
    color: #777;
}

/* Responsive adjustment */
@media (max-width: 992px) {
    #lechesAdultosGrid .product-card-small {
        min-width: calc(33.333% - 15px) !important;
    }
}

@media (max-width: 600px) {
    #lechesAdultosGrid .product-card-small {
        min-width: calc(50% - 15px) !important;
    }
}

/* Navigation Button Style */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.scroll-btn.next {
    right: -25px;
}


.scroll-btn.prev {
    left: -25px;
}

/* ==================== HORIZONTAL MODE MODIFIER ==================== */
/* Used for Perfumería to keep the Banner+Text look but Top-Aligned */
.category-showcase-layout.horizontal-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    grid-template-columns: none !important;
}

.category-showcase-layout.horizontal-mode .category-banner-card {
    width: 100% !important;
    height: 300px !important;
    min-height: auto !important;
    position: relative !important;
    top: 0 !important;
}

.category-showcase-layout.horizontal-mode .category-banner-content {
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 30%, transparent 100%) !important;
    text-align: left;
    padding-left: 50px;
}

.category-showcase-layout.horizontal-mode .category-banner-img {
    object-position: center 25%;
    /* Better crop for horizontal */
}

/* Mobile Adjustments for Horizontal Mode */
@media (max-width: 768px) {
    .category-showcase-layout.horizontal-mode .category-banner-card {
        height: 200px !important;
    }

    .category-showcase-layout.horizontal-mode .category-banner-content {
        padding-left: 20px;
        align-items: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.4) !important;
    }
}

/* ==================== GLOBAL LOADER ==================== */
#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #e2e8f0;
    /* Plomito/Light Gray as requested */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#globalLoader.visible {
    opacity: 1;
    pointer-events: all;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 100px;
    animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ==================== GLOBAL SEARCH PREVIEW ==================== */
.header-search {
    position: relative !important;
}

.search-preview-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    /* Smoother rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Softer shadow */
    z-index: 9000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    /* Aesthetic padding */
    padding: 8px 0;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item:hover {
    background: #f1f5f9;
    padding-left: 25px;
    /* Slight movement effect */
}

.preview-img {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Softer corners */
    padding: 2px;
}

.preview-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-info {
    flex-grow: 1;
}

.preview-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 2px;
    line-height: 1.2;
}

.preview-details {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* ==================== FIX MOBILE SEARCH OVERLAY ==================== */
@media (max-width: 768px) {
    .header-search.active-mobile {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        background: white;
        z-index: 11000;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin: 0 !important;
        animation: fadeIn 0.2s ease;
    }

    /* Form Layout container */
    /* Form Layout container */
    .header-search.active-mobile .search-form {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        /* Space between elements */
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 5px 0;
        box-sizing: border-box;
        flex-wrap: nowrap;
        /* Prevent wrapping */
    }

    /* Back Button - Hidden by default, shown only in active state */
    .mobile-search-back {
        display: none;
        /* Hidden by default */
        background: transparent !important;
        box-shadow: none !important;
        -webkit-appearance: none;
        appearance: none;
        border: none;
        font-size: 1.1rem;
        color: #333;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 45px;
        /* Match input height */
        flex-shrink: 0;
    }

    /* Show back button when active */
    .header-search.active-mobile .mobile-search-back {
        display: flex;
    }

    /* Input Field Wrapper */
    .header-search.active-mobile .search-input {
        background: #f3f4f6;
        color: #333 !important;
        font-size: 1rem;
        border-radius: 8px;
        padding: 0 12px;
        height: 45px;
        /* Consistent height */
        border: 1px solid transparent;
        flex-grow: 1;
        min-width: 0;
        /* Allow shrinking */
        outline: none;
    }

    .header-search.active-mobile .search-input::placeholder {
        color: #9ca3af;
    }

    /* Search Icon Button (Green Block) */
    .header-search.active-mobile .search-btn {
        background: var(--primary-blue);
        color: white;
        box-shadow: none;
        width: 45px;
        height: 45px;
        margin-left: 0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        border: none;
        flex-shrink: 0;
    }

    /* Results Dropdown */
    .header-search.active-mobile .search-preview-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        max-height: calc(100vh - 80px);
        /* Fill rest of screen */
        overflow-y: auto;
        margin-top: 10px;
        padding-bottom: 50px;
        /* Space for scroll */
    }
}

/* ========== ANUNCIO EMERGENTE (PULSING) ========== */
/* Animation removed per user request */

/* Ensure image is well centered and contained */
.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* Force transparent as per plan */
    box-shadow: none !important;
}

.ad-content a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.ad-content img {
    max-height: 85vh;
    /* Prevent overflowing screen height */
    max-width: 100%;
    width: auto !important;
    /* Override inline style if necessary for aspect ratio */
    height: auto !important;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Add nice shadow for "listing" feel */
}

/* ========== PRODUCT ZOOM (HOVER) ========== */
/* Ensure the container clips the zoomed image */
.modal-product-image {
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 12px;
    /* Maintain radius during overflow */
}

.modal-product-image img {
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.modal-product-image:hover img {
    transform: scale(1.6);
    /* Significant zoom */
}

/* ========== PROMO CAROUSEL ========== */
.promo-carousel-section {
    padding: 30px 0;
    margin-bottom: 20px;
    background: #fff;
}

.promo-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
}

.promo-carousel-track-container {
    background: transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.promo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-prev,
.promo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.promo-prev {
    left: -20px;
}

.promo-next {
    right: -20px;
}

.promo-prev:hover,
.promo-next:hover {
    background: #fff;
}

.promo-nav-dots {
    display: flex;
    justify-content: center;
    padding: 15px 0 0 0;
}

.promo-dot {
    border: none;
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.promo-dot.active-dot {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* ========== PROMO GRID SECTION (3x2 Layout) ========== */
.promo-grid-section {
    padding: 30px 0;
    background: #fdfdfd;
}

.promo-grid-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers the last row of 2 items */
    gap: 20px;
}

.promo-grid-card {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 items per row accounting for gap */
    /* Removed card styling for cleaner look */
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
}

/* Adjust carousel wrapper inside the card */
.promo-grid-card .promo-carousel-wrapper {
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    /* Keep radius on image wrapper */
}

.promo-grid-card .promo-carousel-track-container {
    height: 100%;
    background: transparent;
}

.promo-grid-card .promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: inherit;
    transition: transform 0.4s ease;
    /* Smooth zoom transition */
    cursor: zoom-in;
}

.promo-grid-card .promo-slide img:hover {
    transform: scale(1.15);
    /* Zoom effect on hover */
}

/* Dots and Arrows - Hidden by default, show on hover */
.promo-grid-card .promo-prev,
.promo-grid-card .promo-next {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s;
}

.promo-grid-card:hover .promo-prev,
.promo-grid-card:hover .promo-next {
    opacity: 1;
}

.promo-grid-card .promo-prev {
    left: 5px;
}

.promo-grid-card .promo-next {
    right: 5px;
}

.promo-grid-card .promo-nav-dots {
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-grid-card:hover .promo-nav-dots {
    opacity: 1;
}

.promo-grid-card .promo-dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.5);
}

.promo-grid-card .promo-dot.active-dot {
    background: var(--primary-blue);
}

/* Responsive */
@media (max-width: 992px) {
    .promo-grid-card {
        flex: 0 1 calc(50% - 20px);
        /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .promo-grid-card {
        flex: 0 1 100%;
        /* 1 per row on mobile */
    }

    .promo-grid-card .promo-carousel-wrapper {
        height: 250px;
    }
}

/* ==================== FIX: MOBILE SEARCH IMAGES ==================== */
/* Ensure the preview image container is visible */
.preview-img {
    display: block !important;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #eee;
}

/* Ensure the image tag itself is visible and sized */
.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block !important;
    opacity: 1 !important;
    max-height: none !important;
}

/* Ensure the item layout is flexible */
.preview-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-info {
    flex: 1;
}


/* ==================== MOBILE SEARCH PANEL STYLES ==================== */
.mobile-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 20050;
    /* Above everything */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: none;
    flex-direction: column;
}

.mobile-search-panel.active {
    display: flex;
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    padding: 8px;
    cursor: pointer;
}

.mobile-search-input-container {
    flex: 1;
    position: relative;
}

.mobile-search-input-container input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-input-container input:focus {
    background: #fff;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* Full bleed */
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.mobile-search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

/* --- Mobile Search Card Styles --- */
.mobile-search-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.mobile-search-card:active {
    background: #f9f9f9;
}

.mobile-card-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin-right: 15px;
    background: #fff;
    flex-shrink: 0;
}

.mobile-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-card-brand {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.mobile-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-card-presentation {
    font-size: 0.85rem;
    color: #666;
}

/* Ensure no other overlay interferes */
body.mobile-search-open {
    overflow: hidden;
}

/* ========== SPECIAL PROMO BANNER (COLLAGE + TIMER) ========== */
.special-promo-banner {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    height: auto;
    min-height: 324px;
}

.promo-content-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 20px;
    flex-wrap: wrap;
    /* Ensure responsiveness */
}

.collage-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    /* Fit within 324px approx */
    min-width: 300px;
    /* Prevent too much shrinking */
}

.collage-top {
    display: flex;
    gap: 10px;
    height: 150px;
    /* Fixed height for top row */
}

.collage-bottom {
    height: 150px;
    /* Fixed height for bottom row */
}

.collage-img-v,
.collage-img-h {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain to avoid cropping important text in banners */
    border-radius: 4px;
    background-color: #f0f0f0;
    /* Fallback */
}

.timer-section {
    width: 350px;
    /* Fixed width for timer area */
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-right: 20px;
    flex-shrink: 0;
    /* Don't shrink timer */
}

.timer-title {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

.timer-separator {
    color: var(--primary-red);
    margin-top: -15px;
    /* Visual alignment */
}

.time-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 60px;
}

.time-block span {
    color: var(--primary-blue);
}

.time-block small {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .promo-content-grid {
        justify-content: center;
    }

    .collage-container {
        width: 100%;
        max-height: none;
    }

    .timer-section {
        width: 100%;
        margin-right: 0;
        margin-top: 15px;
    }
}



/*==========PROMO ZOOM MODAL==========*/
#promoZoomModal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: visibility 0s, opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

#promoZoomModal.show {
    visibility: visible;
    opacity: 1;
}


#promoZoomImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    cursor: default;
    transform: scale(0.9);
    animation: zoomIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Hint (Optional) */
#promoZoomModal::after {
    content: "Haz clic afuera para cerrar";
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 0.9rem;
    font-family: sans-serif;
}

/* ========== GENERIC MODAL OVERLAY (Restored) ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.show,
.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ========== DESKTOP CATEGORY DROPDOWN FIX ========== */
.categories-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.categories-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10002;
    border: 1px solid #eee;
    display: block !important;
    /* Force override explicit hidden */
}

@media (max-width: 768px) {
    .categories-dropdown {
        display: none !important;
    }
}

.categories-wrapper:hover .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown .cat-group {
    position: relative;
}

.categories-dropdown .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.categories-dropdown .cat-item span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-dropdown .cat-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-cyan);
}

.categories-dropdown .cat-item:hover {
    background: #f0f9ff;
    color: var(--primary-cyan);
}

/* Submenu on Hover */
.cat-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 260px;
    background: white;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 12px 12px 12px;
    padding: 10px 0;
    display: none;
    z-index: 10003;
}

.cat-group:hover .cat-submenu {
    display: block;
}

.cat-submenu a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.cat-submenu a:hover {
    color: var(--primary-cyan);
    background: #f9f9f9;
    padding-left: 25px;
}

/* ========== MOBILE MENU BUTTON FIX ========== */
.mobile-menu-btn {
    display: none;
    /* Default hidden on desktop */
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10005;
    /* Ensure clickable */
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        order: 1;
        position: relative;
        z-index: 10005 !important;
    }

    /* CRITICAL FIX: Hide Categories Wrapper on Mobile to prevent overlap */
    .categories-wrapper {
        display: none !important;
    }
}

/* Unblock Header Search Bar */
.header-search {
    position: relative;
    z-index: 10005 !important;
}

.search-form {
    position: relative;
    z-index: 10006 !important;
}

.search-input {
    position: relative;
    z-index: 10006 !important;
}

/* Ensure Mobile Panels are Topmost */
.mobile-search-panel,
.mobile-drawer {
    z-index: 20000 !important;
}

/* Fix panel display */
.mobile-search-panel.active {
    display: flex !important;
}

/* ========== FLOATING LOCALES BUTTON ========== */
.floating-locales-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #e30713;
    color: white !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(227, 7, 19, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.floating-locales-btn:hover {
    background-color: #b90610;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 7, 19, 0.5);
}

@media (max-width: 768px) {
    .floating-locales-btn {
        bottom: 30px;
        right: 15px;
        left: auto;
        /* Removed centered positioning */
        width: auto;
        /* Return to content width */
        justify-content: flex-start;
        padding: 12px 20px;
        font-size: 0.9rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Final Mobile Ad UI */
    .ad-modal {
        width: 85% !important;
        max-width: 320px !important;
        background: white !important;
        border-radius: 16px !important;
        height: auto !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .ad-content {
        display: block !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .ad-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .ad-close {
        top: 8px !important;
        right: 8px !important;
        width: 34px !important;
        height: 34px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
        font-size: 18px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}