:root {
    /* Paleta de Colores - Premium Dark Mode Murdok */
    --bg-color: #121214;       /* Fondo oscuro pizarra (Ambient Glow) */
    --surface-color: rgba(26, 26, 30, 0.65);  /* Tarjetas translúcidas (Glassmorphism) */
    --surface-hover: rgba(36, 36, 40, 0.85);  /* Hover translúcido más claro */
    --text-primary: #ffffff;   /* Texto principal blanco brillante */
    --text-secondary: #a0a0a5; /* Texto secundario gris azulado */
    --logo-yellow: #ffde59;    /* Amarillo exacto del logo Murdok */
    --accent-color: #FFC800;   /* Amarillo vibrante Murdok clásico */
    --price-color: var(--logo-yellow);    /* Amarillo sólido */
    --border-color: rgba(255, 255, 255, 0.08); /* Bordes semi-transparentes */
    --border-highlight: rgba(255, 200, 0, 0.3); /* Resalte de borde activo */
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
    
    /* Espaciados */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Bordes y Sombras - Glassmorphism sutil */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* Background Image Custom */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../assets/img/bg-custom.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 1; /* Intensidad máxima de imagen */
    z-index: -2;
    pointer-events: none;
}

/* Oscurecimiento general sutil para legibilidad de textos */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15); /* Oscurecimiento mínimo para no matar la imagen */
    z-index: -1;
    pointer-events: none;
}

/* Header Flotante Premium */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 8px;
    z-index: 100;
    background: rgba(15, 15, 15, 0.75); /* Negro casi total con transparencia */
    backdrop-filter: blur(20px) saturate(150%); /* Mucho más blur (estilo iOS) */
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde claro súper sutil */
    border-radius: 50px;
    margin: 8px 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); /* Sombra difusa elegante */
}

.logo-container {
    margin-bottom: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.logo {
    max-height: 38px; /* Un poco más grande para darle presencia */
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-subtitle {
    font-size: 0.6rem; /* Aún más pequeña para equilibrar con el logo */
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas en pantallas chicas */
}

.menu-icon {
    color: var(--text-primary);
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding-bottom: var(--spacing-sm);
}

/* Banner Promocional */
.promo-banner {
    margin: 8px 12px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    aspect-ratio: 16/9;
    transform: translateZ(0); /* Forzar aceleración de hardware */
}

.promo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,0,0,0.8) 0%, transparent 60%);
    pointer-events: none;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%; /* Producto más centrado */
    display: block;
}

.promo-content-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 3px;
    max-width: 85%;
    z-index: 2;
}

.promo-badge {
    color: var(--logo-yellow);
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.7);
}

.promo-product-name {
    color: #ffffff;
    font-size: 1.1rem; /* Más grande y llamativo */
    font-weight: 900;
    margin: 2px 0 0 0;
    line-height: 1.1;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}



/* Buscador Inteligente */
.search-container {
    padding: 0 16px;
    margin: 0px auto 4px;
    width: 75%;
    max-width: 350px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Cristal oscuro más fuerte para contraste */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde más visible */
    border-radius: 20px; /* Pill shape */
    padding: 3px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombra más fuerte */
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-color); /* Glow amarillo */
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.2);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    margin-right: 8px;
}

#searchInput {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Botón de limpiar búsqueda (X) */
.clear-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clear-search-btn svg {
    width: 14px;
    height: 14px;
}

.category-hint {
    color: var(--accent-color);
    font-size: 0.75rem;
    text-align: center;
    margin: 8px 0;
    animation: pulse-hint 2.5s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 800;
}

@keyframes pulse-hint {
    0% { transform: translateY(0); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

/* Navegación por Categorías */
.categories-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px var(--spacing-sm) 8px;
    gap: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: sticky;
    top: 75px; /* Ajustado al header flotante */
    /* Glassmorphism en lugar de negro sólido */
    background: rgba(10, 10, 10, 0.4); 
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Línea divisoria muy sutil */
    z-index: 90;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

/* Chips Premium con efecto táctil (Realce Glassmorphism Fuerte) */
.category-chip {
    -webkit-appearance: none; 
    appearance: none;
    outline: none;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.45); /* Fondo oscuro translúcido moderado (bajó de 0.7) */
    border: 1px solid rgba(255, 255, 255, 0.35); /* Borde blanco mucho más notorio */
    backdrop-filter: blur(8px); /* Mayor difuminado */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    color: #ffffff; /* Blanco puro */
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Sombra más intensa para darles relieve */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    touch-action: manipulation;
}

.category-chip:active {
    transform: scale(0.95); /* Efecto de hundimiento rápido */
    background: rgba(255, 255, 255, 0.15); /* Tint ligeramente más claro para feedback de que fue tocado */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4); /* Sombra interior para sensación de profundidad */
}

.category-chip.active {
    background: var(--accent-color); /* Amarillo vibrante sólido */
    color: #000000; /* Texto totalmente negro para máximo contraste */
    border: 1px solid var(--accent-color);
    font-weight: 800; /* Tipografía gruesa e imponente */
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.25); /* Glow amarillo suavizado */
    transform: translateY(-2px);
}

/* Sección de Productos */
.products-section {
    padding: 0 var(--spacing-md);
    animation: slideUpFade 0.5s ease-out;
}

.category-header {
    margin: var(--spacing-sm) 0 var(--spacing-sm);
    text-align: center;
}

.category-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8); /* Sombra fuerte para despegar el título del fondo */
}

.category-desc {
    display: none !important; /* Ocultado a petición del usuario, !important evita que JS lo vuelva a mostrar */
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px; /* Reducido para juntar más las tarjetas */
}

/* Product Card - Rediseño Horizontal Premium */
.product-card {
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
    padding: 6px 10px; /* Reducido al máximo */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: center;
    text-align: left;
    gap: 8px; /* Reducido para compresión horizontal */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top right, rgba(255, 200, 0, 0.05), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px) scale(1.01);
    background-color: var(--surface-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 200, 0, 0.15);
    z-index: 10;
}

.product-card:hover::before {
    opacity: 1;
}

/* Animación de entrada en cascada */
.product-card.animate-in {
    animation: slideUpBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpBounce {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Contenedor de Imagen (Cuadrado redondeado moderno) */
.product-image-container {
    width: 64px; /* Tamaño un poco más compacto */
    height: 64px;
    border-radius: 12px; /* Esquinas acordes al nuevo tamaño */
    overflow: hidden;
    background-color: transparent; /* Fondo transparente para evitar franjas grises */
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton Loading Animación */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-box {
    background: #2a2a2a;
    background-image: linear-gradient(90deg, #2a2a2a 0px, #3a3a3a 40px, #2a2a2a 80px);
    background-size: 400px 100%; 
    animation: shimmer 1.5s infinite linear forwards;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: inherit;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Volvemos a cover para que llene el cuadro */
    object-position: center 80%; /* Sube físicamente la foto dentro del contenedor */
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease-in;
    position: relative;
    z-index: 2;
    opacity: 0; /* Oculto hasta que cargue para mostrar el skeleton */
}

.product-image.loaded {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.placeholder-letter {
    font-size: 2rem; /* Ajustado al nuevo contenedor */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
    overflow: hidden;
}

.product-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-xs);
    width: 100%;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    flex-grow: 1;
    margin-top: 2px;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--price-color);
    background: rgba(255, 222, 89, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    display: inline-block;
    flex-shrink: 0;
    margin-top: 0;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 0;
}

/* Footer Compacto Premium */
.footer {
    background-color: #2c2c2e; /* Tono gris oscuro premium */
    text-align: center;
    padding: 16px 15px 12px; /* Reducido para evitar scroll innecesario */
    margin-top: 5px; /* Mínima separación */
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
}

.footer-logo {
    max-height: 36px; /* Un poco más grande */
    width: auto;
    object-fit: contain;
    margin: 0 auto 6px auto; /* Más margen inferior */
    display: block;
}

.footer-text {
    font-size: 1.15rem; /* Letra más grande y notoria */
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px; /* Un poco más de espacio debajo */
}

.footer-social {
    margin: 4px 0 6px; /* Espacio mínimo alrededor del botón */
    display: flex;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Botón más pequeño */
    height: 32px; /* Botón más pequeño */
    border-radius: 50%;
    background-color: var(--surface-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    touch-action: manipulation;
}

.social-link:active {
    transform: scale(0.9);
}

/* Efecto tipo WhatsApp (Pulso) con color corporativo */
#ig-link {
    background-color: var(--surface-color);
    color: var(--accent-color); /* Amarillo vibrante */
    animation: pulse-ig 2s infinite;
    border: none;
}

#ig-link:hover {
    color: #E1306C; /* Gradiente o color de instagram al hacer hover */
}

@keyframes pulse-ig {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.35); /* Sombra inicial amarilla */
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(255, 200, 0, 0); /* Difuminación amarilla */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 200, 0, 0);
    }
}

.footer-legal {
    font-size: 0.75rem; /* Letra un poco más grande */
    color: var(--text-secondary);
    line-height: 1.4;
    padding-top: 6px; /* Separación reducida */
    margin-top: 8px; /* Margen reducido */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea separadora sutil */
}

.footer-legal p {
    margin: 0;
}

.metrics-credit {
    display: flex;
    align-items: center; /* Alineado al centro para equilibrar las bases */
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
    font-weight: 500;
}

.metrics-credit span {
    line-height: 1; /* Remueve altura extra de fuente */
}

.metrics-logo {
    height: 12px; /* Ligeramente más visible */
    object-fit: contain;
    opacity: 0.95; 
    transform: translateY(-1px); /* Ajuste fino óptico hacia arriba */
    filter: brightness(0) invert(1); /* Convierte el logo completamente a blanco */
}

/* --- Animaciones Keyframes --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modal de Imagen --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    touch-action: none; /* Bloquea el scroll táctil para permitir el swipe */
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none; /* Previene que el navegador intente "descargar" o arrastrar la foto */
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease; /* Transición rápida */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    -webkit-tap-highlight-color: transparent; /* Quitar borde azul de selección nativo */
    z-index: 1001;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- Botón Flotante (FAB) --- */
.fab-up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--logo-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.4);
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-decoration: none;
}

.fab-up.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: pulse-fab 2s infinite;
}

@keyframes pulse-fab {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(255, 222, 89, 0.4), 0 0 0 0 rgba(255, 222, 89, 0.5);
    }
    70% {
        transform: translateY(0) scale(1.02);
        box-shadow: 0 4px 10px rgba(255, 222, 89, 0.4), 0 0 0 5px rgba(255, 222, 89, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(255, 222, 89, 0.4), 0 0 0 0 rgba(255, 222, 89, 0);
    }
}

.fab-up:hover {
    transform: translateY(-4px) scale(1.1);
    animation: none; /* Pausar pulso al hacer hover para la transición limpia */
    box-shadow: 0 8px 20px rgba(255, 222, 89, 0.6);
}

.fab-up svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CARRITO DE VISUALIZACIÓN (SELECCIÓN)
   ========================================================================== */

/* Contenedor del precio y botón minimalista */
.price-and-add {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Botón Minimalista (+) al lado del precio */
.add-to-cart-btn.minimal {
    background: transparent;
    color: var(--accent-color);
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    animation: pulse-plus 2s infinite ease-in-out;
}

@keyframes pulse-plus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.add-to-cart-btn.minimal:hover {
    opacity: 0.8;
}

.add-to-cart-btn.minimal:active {
    transform: scale(0.9);
}

/* Botón Flotante del Carrito (FAB) */
.cart-fab-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-fab-wrapper:hover {
    transform: scale(1.05);
}

.cart-fab-circle {
    position: relative;
    background: var(--accent-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-fab-total-pill {
    background: #fff;
    color: #222;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.65rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Modal del Carrito */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: flex-end; /* Entra por abajo en móviles */
}

.cart-modal-content {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cart-modal-header {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1rem;
}

.close-cart {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-cart:hover {
    color: #fff;
}

.cart-items-container {
    padding: 8px 10px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin: 0 0 2px 0;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.item-qty {
    font-weight: 700;
    min-width: 15px;
    text-align: center;
}

.cart-modal-footer {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cart-total-row strong {
    color: var(--accent-color);
    font-size: 1.05rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.btn-close-cart {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}

.btn-clear-cart {
    background: var(--accent-color);
    color: #000000;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}

.cart-disclaimer {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0 0 0;
    font-style: italic;
}

/* Modal en pantallas más grandes */
@media (min-width: 768px) {
    .cart-modal {
        align-items: center;
    }
    .cart-modal-content {
        border-radius: 24px;
    }
}

/* Media Queries para Tablet/Desktop */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-banner {
        max-width: 700px;
        margin: var(--spacing-md) auto;
    }
    
    .categories-nav {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   BUZÓN PQR
   ========================================================================== */
.pqr-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    z-index: 98;
}

.pqr-btn.circular {
    background: rgba(30, 30, 30, 0.95);
    color: var(--accent-color);
    border: 1px solid rgba(255, 222, 89, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pqr-btn.circular:hover {
    transform: scale(1.05);
    background: rgba(40, 40, 40, 0.95);
}

.pqr-label {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.pqr-btn.circular:active {
    transform: scale(0.95);
}

@keyframes pulsePqr {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 222, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0);
    }
}

.pqr-btn.circular {
    animation: pulsePqr 2s infinite;
}

.pqr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pqr-modal.show {
    opacity: 1;
}

.pqr-modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255,255,255,0.05);
}

.pqr-modal.show .pqr-modal-content {
    transform: translateY(0);
}

.pqr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pqr-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.close-pqr {
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 300;
}

.pqr-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.pqr-input, .pqr-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.pqr-textarea {
    height: 100px;
    resize: none;
}

.pqr-input:focus, .pqr-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.pqr-submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.3);
}

.pqr-status {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
}

.pqr-status.success { color: #4ade80; }
.pqr-status.error { color: #f87171; }

/* --- TOASTS --- */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: #ffffff;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: max-content;
    max-width: 90vw;
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.4);
    animation: toastIn 0.3s ease-out forwards;
}
.toast.hide {
    animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

/* Animación del Carrito */
.cart-bump {
    animation: bump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
