:root {
    /* Paleta de Colores */
    --color-primary: #e63946;
    --color-primary-light: #ff6b6b;
    --color-primary-dark: #b81d24;
    --color-secondary: #2c3e50;
    --color-secondary-dark: #1a252f;
    --color-success: #27ae60;
    --color-warning: #f1c40f;
    --color-danger: #e74c3c;
    --color-info: #3498db;
    
    /* Neutrales */
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --color-text-main: #2c3e50;
    --color-text-muted: #7f8c8d;
    --border-color: #eaeded;
    
    /* Escala de Espaciado */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Escala Tipográfica */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    
    /* Bordes y Sombras */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #f5f5f5;
        }

        /* ===== BARRA ROJA SUPERIOR ===== */
        .barra-superior {
            background: linear-gradient(90deg, #e63946, #ff6b6b, #e63946);
            padding: 8px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            font-size: 13px;
            color: white;
        }
        .barra-superior a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
        }
        .barra-superior a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
        .barra-izquierda {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
        }
        .barra-derecha {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .contacto-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ===== BARRA DE NOTIFICACIÓN ===== */
        #notificacionBarra {
            background: #1a1a2e;
            padding: 8px 0;
            overflow: hidden;
            border-bottom: 2px solid #e63946;
            display: none;
        }
        #notificacionTexto {
            white-space: nowrap;
            animation: scroll-notificacion 25s linear infinite;
            color: #ffd700;
            font-weight: bold;
            font-size: 16px;
            padding: 0 20px;
        }
        @keyframes scroll-notificacion {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* ===== HEADER ===== */
        .header {
            background: white;
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .logo-area {
            display: flex;
            align-items: center;
            gap: 25px;
            flex-wrap: wrap;
        }
        .logo-img {
            max-height: 60px;
            max-width: 200px;
            object-fit: contain;
        }
        .logo-texto {
            color: #2c3e50;
            font-size: 24px;
            font-weight: bold;
        }

        .social-links {
            display: flex;
            gap: 15px;
            align-items: center;
            border-left: 2px solid #e0e0e0;
            padding-left: 25px;
        }
        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            transition: all 0.3s;
            text-decoration: none;
        }
        .social-link.instagram {
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        }
        .social-link.facebook {
            background: #1877f2;
        }
        .social-link:hover {
            transform: scale(1.1);
        }
        .social-icon-img {
            width: 22px;
            height: 22px;
            filter: brightness(0) invert(1);
        }

        .header-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        .login-link {
            background: #2c3e50;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .login-link:hover {
            background: #e63946;
        }
        .login-link.cliente {
            background: #27ae60;
        }
        .login-link.cliente:hover {
            background: #219a52;
        }
        .mayorista-link {
            background: #f39c12;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            display: none;
            align-items: center;
            gap: 8px;
            font-weight: bold;
        }
        .mayorista-link:hover {
            background: #e67e22;
        }
        .cart-link {
            background: #2c3e50;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cart-link:hover {
            background: #e63946;
        }

        /* ===== BUSCADOR ===== */
        .buscador-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px 20px 0 20px;
        }
        .buscador-container {
            background: white;
            border-radius: 50px;
            padding: 5px 20px;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .buscador-container input {
            flex: 1;
            padding: 15px;
            border: none;
            font-size: 16px;
            outline: none;
            background: transparent;
        }
        .buscador-container button {
            background: #2c3e50;
            border: none;
            padding: 10px 25px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
            font-weight: bold;
        }
        .buscador-container button:hover {
            background: #e63946;
        }

        .resultados-busqueda {
            background: white;
            border-radius: 10px;
            margin-top: 10px;
            padding: 10px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .resultado-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .resultado-item:hover {
            background: #f5f5f5;
        }
        .resultado-item img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 8px;
        }

        /* ===== MAIN LAYOUT ===== */
        .main-layout {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px 20px;
            display: flex;
            gap: 30px;
        }
        .sidebar {
            width: 280px;
            flex-shrink: 0;
        }

        .ofertas-laterales {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        .ofertas-laterales h3 {
            color: #e63946;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e63946;
            font-size: 18px;
        }

        .productos-aleatorios {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        .productos-aleatorios h3 {
            color: #e63946;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e63946;
            font-size: 18px;
        }

        /* ===== OFERTAS LATERALES ===== */
        .oferta-destacada {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid #f0f0f0;
            cursor: pointer;
        }
        .oferta-destacada:hover {
            transform: translateX(-5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }
        .oferta-imagen-container {
            position: relative;
            overflow: hidden;
            background: #f8f9fa;
        }
        .oferta-imagen-container img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            transition: transform 0.3s;
        }
        .oferta-destacada:hover .oferta-imagen-container img {
            transform: scale(1.05);
        }
        .oferta-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(135deg, #e63946, #ff6b6b);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
            animation: pulse-badge 2s infinite;
        }
        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .oferta-temporizador {
            background: rgba(0, 0, 0, 0.75);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            display: inline-block;
            margin-top: 8px;
            width: 100%;
            text-align: center;
        }
        .oferta-temporizador span {
            background: #e63946;
            padding: 2px 6px;
            border-radius: 4px;
            margin: 0 2px;
            font-size: 14px;
        }

        .oferta-info {
            padding: 12px 15px;
        }
        .oferta-titulo {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        .oferta-precios {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .oferta-precio {
            font-size: 24px;
            font-weight: 800;
            color: #e63946;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .oferta-precio::before {
            content: "🔥";
            font-size: 18px;
            animation: fire-emoji 1.5s infinite;
        }
        @keyframes fire-emoji {
            0%, 100% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.2) rotate(-10deg); }
            75% { transform: scale(1.1) rotate(10deg); }
        }
        .oferta-precio-original {
            font-size: 14px;
            color: #999;
            text-decoration: line-through;
        }
        .oferta-ahorro {
            font-size: 12px;
            color: #27ae60;
            font-weight: 600;
            background: #e8f5e9;
            padding: 2px 10px;
            border-radius: 10px;
            display: inline-block;
            margin-top: 5px;
        }

        .sin-ofertas {
            text-align: center;
            color: #666;
            padding: 20px;
            font-size: 14px;
        }

        .oferta-item,
        .producto-aleatorio-item {
            margin-bottom: 15px;
            border-radius: 10px;
            overflow: hidden;
        }
        .oferta-item a,
        .producto-aleatorio-item a {
            display: block;
            text-decoration: none;
        }
        .oferta-item img,
        .producto-aleatorio-item img {
            width: 100%;
            border-radius: 10px;
        }
        .oferta-titulo,
        .producto-aleatorio-titulo {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-top: 8px;
            text-align: center;
        }
        .producto-aleatorio-precio {
            font-size: 13px;
            color: #e63946;
            text-align: center;
            font-weight: bold;
            margin-top: 4px;
        }

        .content {
            flex: 1;
        }
        .banner-section {
            margin-bottom: 30px;
        }
        .banner {
            display: block;
            width: 100%;
            border-radius: 15px;
            overflow: hidden;
        }
        .banner img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* ===== CATEGORÍAS ===== */
        .filtros {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .filtros h3 {
            margin-bottom: 15px;
            color: #2c3e50;
            cursor: pointer;
        }
        .categorias-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .cat-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #ecf0f1;
            border: none;
            padding: 10px 20px;
            border-radius: 40px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .cat-icono-img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .cat-icono-emoji {
            font-size: 20px;
        }
        .cat-nombre {
            font-size: 14px;
        }
        .cat-btn:hover {
            background: #bdc3c7;
            transform: translateY(-2px);
        }
        .cat-btn.active {
            background: #2c3e50;
            color: white;
        }

        /* ===== PRODUCTOS COMPACTOS ===== */
        .productos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .producto-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        .producto-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }
        .producto-imagen-container {
            position: relative;
            overflow: hidden;
            background: #f8f9fa;
        }
        .producto-imagen {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s;
        }
        .producto-card:hover .producto-imagen {
            transform: scale(1.03);
        }
        .producto-info-compacto {
            padding: 12px 15px 15px;
        }
        .producto-categoria-compacto {
            font-size: 11px;
            color: #3498db;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .producto-titulo-compacto {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.3;
        }
        .producto-precio-compacto {
            font-size: 18px;
            font-weight: 700;
            color: #e63946;
        }
        .producto-stock-compacto {
            font-size: 11px;
            color: #27ae60;
            margin-top: 4px;
        }
        .producto-stock-compacto.agotado {
            color: #e63946;
        }

        .producto-agotado-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 5;
            padding: 15px;
            text-align: center;
        }
        .producto-agotado-overlay .agotado-icono {
            font-size: 28px;
            margin-bottom: 2px;
        }
        .producto-agotado-overlay .agotado-titulo {
            font-size: 18px;
            font-weight: 800;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            background: rgba(230, 57, 70, 0.85);
            padding: 3px 14px;
            border-radius: 5px;
        }
        .producto-agotado-overlay .agotado-mensaje {
            font-size: 11px;
            color: #ffd700;
            text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
            margin-top: 3px;
            background: rgba(0, 0, 0, 0.4);
            padding: 2px 10px;
            border-radius: 4px;
        }

        /* ===== MODAL DE PRODUCTO ===== */
        .producto-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(4px);
            animation: modalOverlayIn 0.4s ease;
        }
        .producto-modal.active {
            display: flex;
        }
        @keyframes modalOverlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .producto-modal-content {
            background: white;
            max-width: 1000px;
            width: 100%;
            max-height: 92vh;
            border-radius: 20px;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalContentIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes modalContentIn {
            from { opacity: 0; transform: scale(0.9) translateY(30px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-close {
            position: sticky;
            top: 15px;
            right: 20px;
            float: right;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-close:hover {
            background: #e63946;
            transform: rotate(90deg);
        }
        .modal-body {
            padding: 30px;
        }
        .modal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        .modal-gallery {
            position: relative;
        }
        .modal-gallery .modal-main-img {
            width: 100%;
            height: 350px;
            object-fit: cover;
            border-radius: 12px;
            background: #f8f9fa;
            transition: opacity 0.3s;
        }
        .modal-thumbnails {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }
        .modal-thumbnail {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s;
        }
        .modal-thumbnail:hover {
            border-color: #667eea;
        }
        .modal-thumbnail.active {
            border-color: #e63946;
        }
        .modal-info {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .modal-info .modal-categoria {
            font-size: 13px;
            color: #3498db;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .modal-info .modal-titulo {
            font-size: 26px;
            font-weight: 700;
            color: #333;
        }
        .modal-info .modal-descripcion {
            font-size: 15px;
            color: #555;
            line-height: 1.6;
        }
        .modal-info .modal-precio {
            font-size: 28px;
            font-weight: 700;
            color: #e63946;
        }
        .modal-info .modal-stock {
            font-size: 14px;
            color: #27ae60;
        }
        .modal-info .modal-stock.agotado {
            color: #e63946;
        }
        .modal-cantidad {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 10px 0;
        }
        .modal-cantidad label {
            font-weight: 600;
            color: #333;
        }
        .modal-cantidad input {
            width: 70px;
            padding: 8px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            text-align: center;
        }
        .modal-cantidad input:focus {
            outline: none;
            border-color: #667eea;
        }
        .btn-modal-comprar {
            background: #2c3e50;
            color: white;
            border: none;
            padding: 14px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 5px;
        }
        .btn-modal-comprar:hover {
            background: #e63946;
            transform: translateY(-2px);
        }
        .btn-modal-comprar:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        .modal-relacionados {
            margin-top: 30px;
            border-top: 1px solid #eee;
            padding-top: 25px;
        }
        .modal-relacionados h4 {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        .modal-relacionados-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
        }
        .modal-relacionado-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #e0e0e0;
        }
        .modal-relacionado-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: #e63946;
        }
        .modal-relacionado-item img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 8px;
        }
        .modal-relacionado-item .rel-nombre {
            font-size: 13px;
            font-weight: 600;
            color: #333;
        }
        .modal-relacionado-item .rel-precio {
            font-size: 14px;
            font-weight: 700;
            color: #e63946;
            margin-top: 4px;
        }

        /* ===== FOOTER ===== */
        .footer-pagos {
            background: white;
            padding: 15px 20px;
            margin-top: 20px;
            border-radius: 10px;
            text-align: center;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }
        .footer-pagos h4 {
            font-size: 16px;
            margin-bottom: 12px;
            color: #2c3e50;
        }
        .pagos-icons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        .pago-logo {
            height: 20px;
            width: auto;
            object-fit: contain;
            transition: all 0.3s;
        }
        .pago-logo:hover {
            transform: scale(1.05);
        }
        .pago-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 5px 12px;
            border-radius: 6px;
            transition: all 0.3s;
            background: #f8f9fa;
            min-width: 60px;
        }
        .pago-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        .pago-nombre {
            font-size: 9px;
            color: #666;
        }

        /* ===== PRODUCTOS RELACIONADOS ===== */
        .producto-relacionado {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #e0e0e0;
        }
        .producto-relacionado:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-color: #e63946 !important;
        }
        .producto-relacionado img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        .producto-relacionado button {
            background: #2c3e50;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 5px;
            margin-top: 8px;
            cursor: pointer;
            width: 100%;
        }
        .producto-relacionado button:hover {
            background: #e63946;
        }
        #productos-relacionados-section {
            margin-top: 40px;
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ===== BOTÓN FLOTANTE WHATSAPP ===== */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #25d366;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            z-index: 1000;
            transition: all 0.3s;
            text-decoration: none;
            animation: pulse-whatsapp 2s infinite;
        }
        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
        }
        @keyframes pulse-whatsapp {
            0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
            50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
            100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateX(-50%) translateY(20px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        @media (max-width: 900px) {
            .main-layout { flex-direction: column; }
            .sidebar { width: 100%; }
            .productos-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 15px; }
            .producto-imagen { height: 150px; }
            .modal-grid { grid-template-columns: 1fr; gap: 20px; }
            .modal-gallery .modal-main-img { height: 250px; }
            .pagos-icons { gap: 8px; }
            .pago-item { padding: 4px 10px; min-width: 50px; }
        }

        @media (max-width: 768px) {
            .barra-superior {
                padding: 6px 15px;
                font-size: 11px;
                flex-direction: column;
                gap: 6px;
                text-align: center;
            }
            .barra-izquierda, .barra-derecha {
                justify-content: center;
                width: 100%;
                gap: 12px;
            }
            #notificacionBarra {
                padding: 6px 0;
            }
            #notificacionTexto {
                font-size: 13px;
                padding: 0 10px;
            }
            .header {
                padding: 12px 15px;
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            .logo-area {
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid var(--border-color, #eaeded);
                padding-bottom: 10px;
                width: 100%;
            }
            .social-links {
                border-left: none !important;
                padding-left: 0 !important;
            }
            .header-actions {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                justify-content: center;
                align-items: center;
                width: 100%;
            }
            .header-actions > span {
                width: 100%;
                text-align: center;
                margin-bottom: 4px;
                display: block;
                font-size: 13px;
            }
            .login-link, .cart-link, .mayorista-link {
                flex: 1;
                min-width: 120px;
                min-height: 48px;
                padding: 10px 16px !important;
                font-size: 13px !important;
                border-radius: var(--radius-md, 10px);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                gap: 6px;
            }
            .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
            .whatsapp-float svg { width: 26px; height: 26px; }
            .productos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
            .producto-imagen { height: 130px; }
            .producto-titulo-compacto { font-size: 13px; }
            .producto-precio-compacto { font-size: 16px; }
            .modal-body { padding: 20px; }
            .modal-info .modal-titulo { font-size: 22px; }
            .producto-agotado-overlay .agotado-titulo { font-size: 15px; }
            .producto-agotado-overlay .agotado-icono { font-size: 22px; }
            .modal-relacionados-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
        }

/* ===== NOTIFICACIONES (TOASTS & MODALES) ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
}
.toast {
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-main, #2c3e50);
    border-left: 5px solid var(--color-info, #3498db);
    animation: toast-slide-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
}
.toast-success {
    border-left-color: var(--color-success, #27ae60);
}
.toast-error {
    border-left-color: var(--color-danger, #e74c3c);
}
.toast-warning {
    border-left-color: var(--color-warning, #f1c40f);
}
.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-muted, #7f8c8d);
    margin-left: auto;
    font-weight: bold;
    padding-left: 10px;
}
.toast-close:hover {
    color: var(--color-text-main, #2c3e50);
}
@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-fade-out {
    animation: toast-slide-out 0.3s ease-in forwards;
}
@keyframes toast-slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* Modal de Confirmación */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade-in 0.25s ease-out forwards;
}
.confirm-modal-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
    max-width: 450px;
    width: 100%;
    animation: modal-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.confirm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.confirm-modal-header h3 {
    margin: 0;
    color: var(--color-text-main, #2c3e50);
    font-size: var(--font-size-lg, 20px);
}
.confirm-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--color-text-muted, #7f8c8d);
    cursor: pointer;
    font-weight: bold;
}
.confirm-modal-close-btn:hover {
    color: var(--color-text-main, #2c3e50);
}
.confirm-modal-body {
    margin-bottom: 24px;
    color: var(--color-text-muted, #7f8c8d);
    font-size: var(--font-size-sm, 14px);
    line-height: 1.5;
}
.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.confirm-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm, 6px);
    font-size: var(--font-size-sm, 14px);
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.confirm-btn-cancel {
    background: var(--border-color, #eaeded);
    color: var(--color-text-main, #2c3e50);
}
.confirm-btn-cancel:hover {
    background: #d5dbdb;
}
.confirm-btn-ok {
    background: var(--color-primary, #e63946);
    color: white;
}
.confirm-btn-ok:hover {
    background: var(--color-primary-dark, #b81d24);
}
@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.confirm-modal-fade-out {
    animation: modal-fade-out 0.2s ease-in forwards;
}
@keyframes modal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes modal-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}