/* Catálogo · Tema Navidad */
:root {
    --rojo-navidad: #C41E3A;
    --rojo-oscuro: #8B0000;
    --rojo-brillante: #E63946;
    --verde-navidad: #0B6B3A;
    --verde-oscuro: #064E2A;
    --verde-pino: #1A7A45;
    --verde-claro: #2D9B5A;
    --oro: #D4AF37;
    --oro-claro: #F0D77B;
    --crema: #FFF8F0;
    --crema-suave: #FFF1E0;
    --nieve: #F5F7FA;
    --texto-oscuro: #1A1A1A;
    --texto-claro: #5C5C5C;
    --borde-suave: rgba(196, 30, 58, 0.22);
    --sombra-roja: rgba(196, 30, 58, 0.35);
    --sombra-verde: rgba(11, 107, 58, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(ellipse at top, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(11, 107, 58, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #FFF8F0 0%, #F5E6D3 40%, #E8F5E9 100%);
    color: var(--texto-oscuro);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== Nieve ===== */
.nieve-capa {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
}

.nieve-capa span {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: caerNieve linear infinite;
    opacity: 0.85;
}

.nieve-capa span:nth-child(1)  { left: 4%;  animation-duration: 9s;  animation-delay: 0s; }
.nieve-capa span:nth-child(2)  { left: 12%; animation-duration: 11s; animation-delay: 1.2s; width: 6px; height: 6px; }
.nieve-capa span:nth-child(3)  { left: 20%; animation-duration: 8s;  animation-delay: 0.5s; }
.nieve-capa span:nth-child(4)  { left: 28%; animation-duration: 13s; animation-delay: 2s; width: 5px; height: 5px; }
.nieve-capa span:nth-child(5)  { left: 36%; animation-duration: 10s; animation-delay: 0.8s; }
.nieve-capa span:nth-child(6)  { left: 44%; animation-duration: 12s; animation-delay: 1.5s; width: 7px; height: 7px; }
.nieve-capa span:nth-child(7)  { left: 52%; animation-duration: 9.5s; animation-delay: 0.3s; }
.nieve-capa span:nth-child(8)  { left: 60%; animation-duration: 14s; animation-delay: 2.4s; width: 5px; height: 5px; }
.nieve-capa span:nth-child(9)  { left: 68%; animation-duration: 10.5s; animation-delay: 1s; }
.nieve-capa span:nth-child(10) { left: 76%; animation-duration: 8.5s; animation-delay: 0.6s; }
.nieve-capa span:nth-child(11) { left: 84%; animation-duration: 11.5s; animation-delay: 1.8s; width: 6px; height: 6px; }
.nieve-capa span:nth-child(12) { left: 92%; animation-duration: 9s;  animation-delay: 0.2s; }
.nieve-capa span:nth-child(13) { left: 8%;  animation-duration: 15s; animation-delay: 3s; width: 4px; height: 4px; }
.nieve-capa span:nth-child(14) { left: 48%; animation-duration: 12.5s; animation-delay: 2.2s; }
.nieve-capa span:nth-child(15) { left: 55%; animation-duration: 10s; animation-delay: 4s; width: 5px; height: 5px; }
.nieve-capa span:nth-child(16) { left: 72%; animation-duration: 13.5s; animation-delay: 1.1s; }
.nieve-capa span:nth-child(17) { left: 16%; animation-duration: 11s; animation-delay: 3.5s; }
.nieve-capa span:nth-child(18) { left: 33%; animation-duration: 9s;  animation-delay: 2.8s; width: 6px; height: 6px; }
.nieve-capa span:nth-child(19) { left: 88%; animation-duration: 14s; animation-delay: 0.9s; }
.nieve-capa span:nth-child(20) { left: 96%; animation-duration: 10s; animation-delay: 1.7s; width: 5px; height: 5px; }

@keyframes caerNieve {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.9; }
    50%  { transform: translateY(50vh) translateX(20px) rotate(180deg); opacity: 0.7; }
    100% { transform: translateY(105vh) translateX(-15px) rotate(360deg); opacity: 0.2; }
}

/* ===== Banner ===== */
.banner-superior {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    background: linear-gradient(135deg, #064E2A 0%, #0B6B3A 35%, #8B0000 70%, #C41E3A 100%);
    background-size: 200% 200%;
    animation: bannerNavidad 12s ease infinite;
    padding: 1rem 2rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 24px rgba(8, 40, 20, 0.45);
}

@keyframes bannerNavidad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner-lights {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background:
        repeating-linear-gradient(
            90deg,
            #C41E3A 0 14px,
            #D4AF37 14px 28px,
            #2D9B5A 28px 42px,
            #F0D77B 42px 56px
        );
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
    animation: lucesBrillo 1.8s ease-in-out infinite alternate;
}

@keyframes lucesBrillo {
    from { filter: brightness(0.85); opacity: 0.85; }
    to   { filter: brightness(1.25); opacity: 1; }
}

.banner-tree {
    position: absolute;
    bottom: 8px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 36px solid rgba(45, 155, 90, 0.55);
    z-index: 0;
    pointer-events: none;
}

.banner-tree::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 22px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid rgba(212, 175, 55, 0.45);
}

.banner-tree-1 { left: 22%; }
.banner-tree-2 { right: 28%; transform: scale(0.85); }

.banner-star {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--oro-claro);
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(240, 215, 123, 0.9);
    animation: estrellaParpadeo 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes estrellaParpadeo {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(0.9); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.banner-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.banner-logo img {
    height: 60px;
    max-width: 200px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.banner-saludo {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.55rem;
    font-weight: 700;
    color: #FFF8F0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 12px rgba(212, 175, 55, 0.45);
    white-space: nowrap;
}

.banner-carrito {
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: rgba(255, 248, 240, 0.18);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #FFF8F0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 2px solid rgba(212, 175, 55, 0.65);
    font-weight: 800;
}

.banner-carrito:hover {
    background: rgba(212, 175, 55, 0.28);
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
}

.banner-carrito .badge {
    background: var(--rojo-navidad);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* ===== Filtros superiores ===== */
.filtros-superiores {
    background: linear-gradient(90deg, rgba(255, 248, 240, 0.95), rgba(232, 245, 233, 0.95));
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 2px 10px rgba(11, 107, 58, 0.12);
    flex-wrap: wrap;
    border-bottom: 3px solid var(--oro);
}

.buscador-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.buscador-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.buscador-container input,
.buscador-row input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 1rem;
    border: 2px solid rgba(11, 107, 58, 0.35);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: #fff;
    font-family: inherit;
}

.buscador-container input:focus,
.buscador-row input:focus {
    border-color: var(--rojo-navidad);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.btn-buscar {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, var(--rojo-oscuro) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-buscar:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px var(--sombra-roja);
}

.btn-buscar:active {
    transform: scale(0.98);
}

.filtros-activos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.filtro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    background: #fff8e1;
    border: 1px solid #fbc02d;
    color: #5d4037;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-chip-x {
    border: none;
    background: #f57f17;
    color: #fff;
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filtro-chip-x:hover {
    background: #e65100;
}

.filtro-tipos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-tipo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.filtro-tipo-item input {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.filtro-tipo-item span {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.texto-muted-filtro {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* ===== Contenedor ===== */
.contenedor-principal {
    width: 100%;
    padding: 1.25rem 1rem 2.5rem;
    margin: 0;
}

.catalogo-encabezado {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem 1rem;
}

.catalogo-titulo {
    font-family: 'Mountains of Christmas', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--rojo-navidad);
    text-shadow: 0 2px 0 var(--oro-claro), 0 4px 16px rgba(196, 30, 58, 0.2);
    letter-spacing: 0.02em;
}

.catalogo-subtitulo {
    margin-top: 0.35rem;
    color: var(--verde-oscuro);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ===== Botón filtro flotante ===== */
.filtro-flotante-btn {
    position: fixed;
    top: 175px;
    left: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    color: white;
    border: 3px solid var(--oro);
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--sombra-verde);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filtro-flotante-btn:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 6px 22px var(--sombra-verde);
}

.filtro-flotante-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 40, 20, 0.55);
    z-index: 1500;
    transition: opacity 0.3s;
}

.filtro-flotante-overlay.activo {
    display: block;
}

.filtro-lateral-flotante {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 100%);
    box-shadow: -4px 0 20px rgba(8, 40, 20, 0.25);
    z-index: 1600;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 4px solid var(--oro);
    box-sizing: border-box;
}

.filtro-lateral-flotante.abierto {
    right: 0;
}

.filtro-lateral-header {
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-lateral-header h3 {
    margin: 0;
    color: white;
    border: none;
    padding: 0;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.6rem;
    min-width: 0;
    flex: 1;
}

.filtro-cerrar-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.filtro-cerrar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filtro-lateral-body {
    padding: 1.5rem;
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.filtro-lateral {
    display: none;
}

.filtro-grupo {
    margin-bottom: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-grupo label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--texto-oscuro);
    font-weight: 700;
}

.filtro-grupo input[type="range"] {
    width: 100%;
    max-width: 100%;
    accent-color: var(--rojo-navidad);
    box-sizing: border-box;
}

.filtro-grupo .rango-precio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-grupo .rango-precio input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(11, 107, 58, 0.35);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

.filtro-grupo .checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(196, 30, 58, 0.25);
    border-radius: 8px;
    padding: 0.5rem;
    background: #fff;
}

.filtro-grupo .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.filtro-grupo .checkbox-item:hover {
    background: rgba(212, 175, 55, 0.18);
}

.filtro-grupo .checkbox-item input[type="checkbox"] {
    accent-color: var(--rojo-navidad);
}

/* ===== Catálogo ===== */
.catalogo-productos {
    width: 100%;
    max-width: 100%;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.producto-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(8, 40, 20, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.producto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    pointer-events: none;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px var(--sombra-roja);
    border-color: var(--oro);
}

.producto-imagen-wrap {
    position: relative;
    display: block;
}

.producto-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(180deg, #E8F5E9, #FFF1E0);
}

.etiqueta-pack-catalogo {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--sombra-verde);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid var(--oro);
}

.etiqueta-dscto-xmayor {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #5d4037;
    background: #ffeb3b;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(251, 192, 45, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid #fbc02d;
}

.producto-imagen-wrap .etiqueta-pack-catalogo + .etiqueta-dscto-xmayor,
.producto-imagen-wrap .etiqueta-dscto-xmayor + .etiqueta-pack-catalogo {
    top: 2.35rem;
}

.etiqueta-ultimas-unidades {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, var(--rojo-oscuro) 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--sombra-roja);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.producto-info {
    padding: 1rem;
    border-top: 3px solid var(--oro);
}

.producto-nombre {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    margin-bottom: 0.5rem;
    min-height: 40px;
    font-weight: 600;
}

.producto-precio {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rojo-navidad);
    margin-bottom: 0.75rem;
}

.btn-agregar {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-agregar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px var(--sombra-verde);
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, var(--rojo-oscuro) 100%);
}

/* ===== Modal carrito ===== */
.modal-carrito {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #FFF8F0;
    box-shadow: -4px 0 20px rgba(8, 40, 20, 0.3);
    transition: right 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--oro);
}

.modal-carrito.abierto {
    right: 0;
}

.modal-carrito-header {
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, var(--rojo-oscuro) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.modal-carrito-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-family: 'Mountains of Christmas', cursive;
}

.btn-cerrar-carrito {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    font-size: 1.75rem !important;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0;
    line-height: 1;
    font-weight: bold;
}

.btn-cerrar-carrito:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-cerrar-carrito:active {
    transform: scale(0.95);
}

.modal-carrito-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.item-carrito {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.15);
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.item-carrito-imagen {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--oro-claro);
}

.item-carrito-info {
    flex: 1;
}

.item-carrito-nombre {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.item-carrito-precio {
    color: var(--rojo-navidad);
    font-weight: bold;
}

.item-carrito-cantidad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.item-carrito-cantidad button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(11, 107, 58, 0.4);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: var(--verde-navidad);
    font-weight: 700;
}

.item-carrito-cantidad input {
    width: 50px;
    text-align: center;
    border: 1px solid rgba(11, 107, 58, 0.4);
    border-radius: 4px;
    padding: 0.25rem;
    font-family: inherit;
}

.modal-carrito-footer {
    padding: 1.5rem;
    background: linear-gradient(180deg, #E8F5E9, #FFF1E0);
    border-top: 3px solid var(--oro);
}

.total-carrito {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rojo-navidad);
    margin-bottom: 1rem;
    text-align: center;
}

.btn-finalizar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-finalizar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px var(--sombra-verde);
}

/* ===== Modal producto ===== */
.modal-producto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 40, 20, 0.72);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal-producto.abierto {
    display: flex;
}

.modal-producto-contenido {
    background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 100%);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    border: 3px solid var(--oro);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.modal-cerrar-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--rojo-navidad);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-cerrar-btn:hover {
    background: var(--rojo-oscuro);
    transform: scale(1.1);
}

.modal-producto-imagen {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.modal-producto-imagen img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    display: block;
    transition: transform 0.1s ease-out;
    border: 2px solid var(--oro-claro);
}

.modal-producto-info {
    flex: 1;
}

.modal-producto-nombre {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
}

.badge-pack-modal {
    background: linear-gradient(135deg, var(--verde-navidad), var(--verde-oscuro));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid var(--oro);
}

.precio-pack-modal {
    color: var(--rojo-navidad);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.precios-opciones {
    margin: 1.5rem 0;
}

.precio-opcion {
    padding: 1rem;
    border: 2px solid rgba(11, 107, 58, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.precio-opcion:hover,
.precio-opcion.seleccionado {
    border-color: var(--rojo-navidad);
    background: rgba(196, 30, 58, 0.06);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.precio-opcion-label {
    font-weight: 700;
    color: var(--texto-oscuro);
}

.precio-opcion-valor {
    font-size: 1.25rem;
    color: var(--rojo-navidad);
    font-weight: 800;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cantidad-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(11, 107, 58, 0.4);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--verde-navidad);
    font-weight: 700;
}

.cantidad-selector input {
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid rgba(11, 107, 58, 0.4);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: inherit;
}

.total-modal-producto {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rojo-navidad);
    margin: 1rem 0;
}

/* ===== Modal pedido ===== */
.modal-pedido {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 40, 20, 0.72);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.modal-pedido.abierto {
    display: flex;
}

.modal-pedido-contenido {
    background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 100%);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border: 3px solid var(--oro);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.modal-pedido-titulo {
    font-family: 'Mountains of Christmas', cursive;
    color: var(--rojo-navidad);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--texto-oscuro);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(11, 107, 58, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--rojo-navidad);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.form-row-inline {
    display: flex;
    gap: 0.5rem;
}

.btn-buscar-persona {
    background: linear-gradient(135deg, var(--verde-navidad), var(--verde-oscuro));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
}

.btn-buscar-persona:hover {
    box-shadow: 0 3px 10px var(--sombra-verde);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: var(--rojo-navidad);
    width: auto;
}

.nota-whatsapp {
    background: rgba(212, 175, 55, 0.18);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--rojo-navidad);
    font-size: 0.9rem;
    color: var(--texto-oscuro);
}

.resumen-pedido {
    background: linear-gradient(180deg, #E8F5E9, #FFF1E0);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(11, 107, 58, 0.2);
}

.resumen-pedido h3 {
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.5rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(196, 30, 58, 0.18);
}

.resumen-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rojo-navidad);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--oro);
    display: flex;
    justify-content: space-between;
}

.acciones-pedido {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-retornar {
    background: #A7A7A7;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-retornar:hover {
    background: #888;
}

.btn-enviar {
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, var(--rojo-oscuro) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-enviar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px var(--sombra-roja);
}

.btn-eliminar-carrito {
    background: var(--rojo-navidad);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.texto-vacio,
.texto-carga {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--texto-claro);
    font-weight: 600;
}

.texto-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--rojo-navidad);
    font-weight: 700;
}

.monto-item-carrito {
    font-weight: 800;
    color: var(--rojo-navidad);
    margin-bottom: 0.5rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 40, 20, 0.55);
    z-index: 1999;
    display: none;
}

.overlay.activo {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-saludo {
        display: none;
    }

    .banner-superior {
        padding: 0.85rem 1rem 1.15rem;
    }

    .contenedor-principal {
        padding: 0.75rem 0.5rem 2rem;
    }

    .catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .filtros-superiores {
        padding: 0.75rem 0.85rem;
        align-items: stretch;
    }

    .buscador-container {
        flex-direction: column;
    }

    .buscador-row {
        width: 100%;
    }

    .filtros-activos {
        width: 100%;
        order: 2;
    }

    .filtro-chip {
        font-size: 0.72rem;
        max-width: calc(100vw - 2rem);
    }

    .filtro-lateral-flotante {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
        overflow-x: hidden;
    }

    .filtro-lateral-flotante.abierto {
        right: 0;
    }

    .filtro-flotante-btn {
        top: 165px;
        left: 12px;
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .modal-producto-contenido {
        flex-direction: column;
    }

    .modal-carrito {
        width: 100%;
        right: -100%;
    }

    .modal-carrito-header {
        padding: 1rem;
        flex-wrap: nowrap;
    }

    .modal-carrito-header h2 {
        font-size: 1.2rem;
        flex: 1;
        margin-right: 0.5rem;
    }

    .btn-cerrar-carrito {
        width: 45px !important;
        height: 45px !important;
        font-size: 2rem !important;
        min-width: 45px !important;
        min-height: 45px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border: 3px solid rgba(255, 255, 255, 0.5) !important;
    }

    .nieve-capa span:nth-child(n+12) {
        display: none;
    }
}
