:root {
    --verde-maná: #37883A;
    --verde-accatividad: #7FC142;
    --rojo-oferta: #B62329;
    --fondo-light: #f4f7f5;
    --blanco-puro: #ffffff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--fondo-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #333;
}

/* Navbar Futurista Glassmorphism */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-weight: 800;
    color: var(--verde-maná);
    letter-spacing: -1px;
    font-size: 1.5rem;
}

/* Menú de Categorías Scroll */
.cat-nav {
    display: flex;
    overflow-x: auto;
    padding: 15px 5%;
    background: var(--blanco-puro);
    gap: 10px;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: none;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.cat-btn:hover {
    background: var(--verde-maná);
    color: white;
}

/* Grid Responsivo Avanzado */
.grid-productos {
    display: grid;
    padding: 20px 5%;
    gap: 15px;
    /* Escritorio: Comportamiento fluido de acuerdo a la pantalla */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Móvil: Forzar exactamente 3 productos por línea */
@media (max-width: 600px) {
    .grid-productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; /* Espacio reducido para que quepan 3 columnas cómodamente */
        padding: 10px 5%; /* Ajustado al 5% para despegar del margen izquierdo */
    }
}

.card {
    background: var(--blanco-puro);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover { transform: translateY(-5px); }

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.badge-oferta {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--rojo-oferta);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Carrito Lateral Luxury */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; }

/* Controles de Cantidad */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f2f0;
    border-radius: 12px;
    margin-top: 10px;
    padding: 4px 8px;
}
.btn-qty {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--verde-maná);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.2s, transform 0.1s;
}
.btn-qty:hover {
    background: var(--verde-maná);
    color: white;
}
.qty-val { 
    font-size: 1rem; 
    font-weight: bold; 
    padding: 0 10px;
}

/* Header mejorado */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Reducido para ahorrar espacio */
    flex-shrink: 0;
    max-width: 60%; /* Evita que ocupe demasiado ancho */
}
.search-bar input { border: none; background: none; outline: none; font-size: 0.8rem; padding-left: 10px; }

/* Menú Lateral de Categorías (Drawer) */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 2050;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.cat-item-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 5px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    color: #444;
}

.cat-item-btn:hover {
    background: var(--fondo-light);
    color: var(--verde-maná);
    padding-left: 20px;
}

/* Botón Hamburguesa Luxury */
.menu-trigger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.menu-trigger span {
    width: 20px;
    height: 2px;
    background: var(--verde-maná);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- SECCIÓN DE ANIMACIONES CRÍTICAS --- */

.bounce-cart {
    animation: bounceCart 0.5s ease-in-out;
}

@keyframes bounceCart {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3) translateY(-5px); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
}

#cart-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}
/* --- Variables y Reset --- */
:root {
    --verde-maná: #2e7d32;
    --rojo-oferta: #d32f2f;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* --- Navegación (Navbar) --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    gap: 12px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #f1f3f4;
    padding: 8px 12px;
    border-radius: 25px;
    max-width: 50%;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    margin-left: 8px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-session-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    line-height: 1.2;
}

/* --- Menús Laterales (Categorías y Carrito) --- */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: 0.3s ease-in-out;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

#side-cart {
    left: auto;
    right: -100%;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

/* --- Contenedor de Carrito --- */
#cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

.cart-footer {
    padding: 20px 20px 60px 20px; /* Ajuste para evitar el menú inferior de celulares */
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

/* Ajuste de altura para el banner principal */
.banner-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    height: 380px; /* <--- CAMBIA ESTE VALOR: Ajusta aquí la altura deseada (ej. 350px, 400px, etc.) */
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* <--- IMPORTANTE: Esto evita que la imagen se estire feo, la recorta para llenar el espacio */
    border-radius: 15px;   /* Opcional: añade 15px si quieres bordes redondeados como los otros elementos */
}

/* --- Tarjetas de Producto --- */
.card { 
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer; 
    transition: transform 0.2s; 
    position: relative; 
}

.card:hover { 
    transform: translateY(-5px); 
}

.precio-normal { 
    color: var(--verde-maná); 
    font-weight: bold; 
    font-size: 0.9rem; 
}

.precio-antes { 
    text-decoration: line-through; 
    color: #999; 
    font-size: 0.75rem; 
    margin-right: 5px; 
}

.precio-ahora { 
    color: var(--rojo-oferta); 
    font-weight: bold; 
    font-size: 0.9rem; 
}

/* --- Modales --- */
.modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* --- Animaciones y Media Queries --- */
.bounce-cart { 
    transform: scale(1.3); 
}

@media (max-width: 600px) {
    .navbar { 
        padding: 10px; 
    }
    .search-bar { 
        max-width: 40%; 
    }
    .banner-slide img { 
        height: 140px; 
    }
    .side-menu { 
        width: 85%; 
    }
}


        :root {
            --verde-maná: #2e7d32;
            --verde-pastel: #e8f5e9;
            --azul-claro: #e3f2fd;
            --rojo-oferta: #d32f2f;
            --whatsapp-color: #25D366;
            --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        }

        /* Iconos Sociales */
        .fa-whatsapp { color: var(--whatsapp-color); }
        .fa-instagram { 
            background: var(--instagram-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        /* Barra Superior Azul */
        .top-banner-marquee {
            background-color: var(--azul-claro);
            color: #1565c0;
            padding: 8px 0;
            font-size: 14px;
            font-weight: 700;
            overflow: hidden;
            white-space: nowrap;
            border-bottom: 1px solid #bbdefb;
        }

        .marquee-content {
            display: inline-block;
            padding-left: 100%;
            animation: marquee 20s linear infinite;
        }

        @keyframes marquee {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-100%, 0); }
        }

        /* Navbar */
        .navbar {
            background-color: var(--verde-pastel) !important;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* Breadcrumb Minimalista */
        .breadcrumb-nav {
            padding: 10px 20px;
            font-size: 0.8rem;
            color: #888;
            background: transparent; 
            border: none; 
        }
        .breadcrumb-nav a {
            text-decoration: none;
            color: #888;
            transition: color 0.2s;
        }
        .breadcrumb-nav a:hover { color: var(--verde-maná); }
        .breadcrumb-nav b { color: var(--verde-maná); text-transform: uppercase; }

        /* Carrito */
        #cart-icon {
            font-size: 2.2rem !important; 
            transition: transform 0.2s;
            display: flex;
            align-items: center;
        }

        #cart-count {
            position: absolute;
            top: -2px;
            right: -10px;
            background: var(--rojo-oferta);
            color: white;
            border-radius: 50%;
            padding: 3px 8px; 
            font-size: 13px; 
            font-weight: 800;
            border: 2px solid white;
        }

        /* Footer */
        .footer-container {
            background-color: #fff;
            padding: 40px 20px;
            border-top: 4px solid var(--verde-maná);
            margin-top: 40px;
        }

        .footer-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto 30px;
        }

        .footer-links a {
            display: block;
            color: #333;
            text-decoration: none;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .footer-links a:hover { color: var(--verde-maná); }

        .domicilios-table-img {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            background: #f9f9f9;
            padding: 20px;
            border-radius: 15px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .dom-category {
            background: white;
            padding: 10px;
            border-radius: 8px;
            border-left: 4px solid var(--verde-maná);
            font-size: 0.8rem;
        }

        .dom-price {
            display: block;
            color: var(--verde-maná);
            font-weight: 800;
            font-size: 1rem;
            margin-bottom: 5px;
        }

        /* ESTILOS NUEVOS: BANNERS DE CATEGORÍAS AGRANDADOS */
        .section-title {
            padding: 0 20px;
            font-size: 1rem;
            font-weight: 800;
            color: var(--verde-maná);
            margin: 25px 0 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .grid-categorias-banner {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            padding: 0 20px;
            margin-bottom: 20px;
        }

        .cat-card-banner {
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .cat-card-banner:hover { transform: scale(1.05); }
        
        .cat-icon-circle {
            width: 80px; /* Tamaño agrandado */
            height: 80px; /* Tamaño agrandado */
            border-radius: 50%;
            background: var(--verde-pastel);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
            border: 3px solid white;
        }
        
        .cat-icon-circle i {
            font-size: 2rem;
            color: var(--verde-maná);
        }

        .cat-card-banner span {
            display: block;
            font-size: 11px;
            font-weight: 800;
            margin-top: 10px;
            text-transform: uppercase;
            color: #333;
            line-height: 1.1;
        }

        /* BANNERS PROMOCIONALES DINÁMICOS */
        .admin-banner-row {
            margin: 15px 20px;
            border-radius: 15px;
            height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 800;
            font-size: 1.2rem;
            text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
            background-size: cover;
            background-position: center;
            cursor: pointer;
            transition: filter 0.3s;
            position: relative;
            overflow: hidden;
        }
        .admin-banner-row:hover { filter: brightness(1.1); }

        @media (max-width: 600px) {
    .banner-container {
        height: 250px; /* Una altura más cómoda para pantallas pequeñas */
    }
}



    
