/* Variables para temas */
:root {
    --primary-color: #4a148c;
    --primary-hover: #6a1b9a;
    --primary-dark: #7b1fa2;
    --secondary-color: #7b1fa2;
    --background-light: #f5f5f5;
    --background-dark: #121212;
    --surface-light: #ffffff;
    --surface-dark: #1e1e1e;
    --text-light: #333333;
    --text-dark: #ffffff;
    --text-secondary-light: #666666;
    --text-secondary-dark: #b0b0b0;
    --border-light: #dddddd;
    --border-dark: #444444;
    --success-light: #d4edda;
    --success-dark: #1b5e20;
    --warning-light: #fff3cd;
    --warning-dark: #e65100;
    --danger-light: #f8d7da;
    --danger-dark: #b71c1c;
    --quantity-btn-light: #4a148c;
    --quantity-btn-dark: #bb86fc;
    --quantity-btn-bg-light: #f0f0f0;
    --quantity-btn-bg-dark: #2d2d2d;
    --cart-item-bg-light: #fafafa;
    --cart-item-bg-dark: #2a2a2a;
    --toast-bg-light: #ffffff;
    --toast-bg-dark: #333333;
}

/* Tema claro (por defecto) */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-light);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

/* Tema oscuro */
body.dark-theme {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.dark-theme .surface {
    background-color: var(--surface-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

body.dark-theme .text-secondary {
    color: var(--text-secondary-dark);
}

body.dark-theme .product-stock.in-stock {
    background: var(--success-dark);
    color: white;
}

body.dark-theme .product-stock.coming-soon {
    background: var(--warning-dark);
    color: white;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.logo-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.logo-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

/* Filtros */
.filters {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

body.dark-theme .filters {
    background: var(--surface-dark);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.95rem;
}

body.dark-theme .filter-group label {
    color: var(--text-dark);
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select,
.checkbox-label {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--surface-light);
    color: var(--text-light);
    box-sizing: border-box;
    height: 48px;
    display: flex;
    align-items: center;
}

body.dark-theme .filter-group input[type="text"],
body.dark-theme .filter-group input[type="number"],
body.dark-theme .filter-group select,
body.dark-theme .checkbox-label {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.checkbox-label {
    cursor: pointer;
    padding: 0 0.8rem;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 99, 72, 0.05));
    border: 2px solid rgba(255, 71, 87, 0.2);
    height: 48px;
    line-height: 1;
}

body.dark-theme .checkbox-label {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 99, 72, 0.1));
    border-color: rgba(255, 71, 87, 0.3);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    padding: 0;
    cursor: pointer;
    accent-color: #ff4757;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: normal;
}

/* Botones generales */
button {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.3);
}

.reset-btn {
    background: #6c757d;
}

.reset-btn:hover {
    background: #5a6268;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Tarjeta de producto */
.product-card {
    background: var(--surface-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

body.dark-theme .product-card {
    background: var(--surface-dark);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.dark-theme .product-card:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f8f8;
    padding: 15px;
}

body.dark-theme .product-image {
    background-color: #2a2a2a;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

body.dark-theme .product-name {
    color: var(--text-dark);
}

.product-price {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #95a5a6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.dark-theme .product-price {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #ecf0f1;
    border-color: #7f8c8d;
}

/* Badges y etiquetas */
.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 5;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Expansión badge */
.expansion-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    border: 2px solid;
}

/* Stock */
.product-stock {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.in-stock {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.on-order {
    background: linear-gradient(135deg, #fff9c4, #ffe082);
    color: #e65100;
    border: 1px solid #ffb74d;
}

.agotado {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef5350;
}

.coming-soon {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.encargo-description {
    color: #e65100;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 500;
    display: block;
}

/* Botón añadir al carrito */
.btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.3);
}

.btn-add-cart:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.dark-theme .btn-add-cart:disabled {
    background: #444444;
}

/* =====================================================
   TOAST (NOTIFICACIONES MEJORADAS)
   ===================================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--toast-bg-light);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 400px;
    border-left: 4px solid;
}

body.dark-theme .toast-notification {
    background: var(--toast-bg-dark);
    color: var(--text-dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.toast-notification.success {
    border-left-color: #28a745;
}

.toast-notification.error {
    border-left-color: #dc3545;
}

.toast-notification.warning {
    border-left-color: #ffc107;
}

.toast-notification.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0;
    margin: 0;
    width: auto;
}

.toast-close:hover {
    opacity: 1;
    transform: none;
    box-shadow: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* =====================================================
   CARRITO DE COMPRAS MEJORADO
   ===================================================== */
.cart-toggle {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
}

.cart-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Botón de carrito flotante */
.floating-cart-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 999;
    border: 2px solid white;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.floating-cart-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-cart-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Panel del carrito */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--surface-light);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-theme .cart-panel {
    background: var(--surface-dark);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-theme .cart-header {
    border-color: var(--border-dark);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: auto;
    padding: 0;
    margin: 0;
}

body.dark-theme .cart-close {
    color: var(--text-dark);
}

.cart-close:hover {
    background: none;
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Item del carrito mejorado */
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--cart-item-bg-light);
    transition: all 0.3s;
}

body.dark-theme .cart-item {
    background: var(--cart-item-bg-dark);
}

.cart-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
}

body.dark-theme .cart-item-image {
    background: #333;
    border-color: var(--border-dark);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Controles de cantidad con + y - mejorados */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--quantity-btn-bg-light);
    border-radius: 25px;
    padding: 0.2rem;
}

body.dark-theme .quantity-controls {
    background: var(--quantity-btn-bg-dark);
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--quantity-btn-light);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
}

body.dark-theme .quantity-btn {
    color: var(--quantity-btn-dark);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    width: auto;
    padding: 0.3rem;
    margin: 0;
    margin-left: 0.5rem;
}

.remove-item:hover {
    color: #ff0000;
    transform: scale(1.1);
    background: none;
    box-shadow: none;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface-light);
}

body.dark-theme .cart-footer {
    border-color: var(--border-dark);
    background: var(--surface-dark);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Botón de WhatsApp mejorado */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Botón flotante WhatsApp existente */
.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-btn {
    background: #25D366;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Mensaje carrito vacío */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary-light);
    font-size: 1.1rem;
}

body.dark-theme .empty-cart {
    color: var(--text-secondary-dark);
}

/* =====================================================
   BANNER DE PREVENTA (TUS ESTILOS EXISTENTES)
   ===================================================== */
.preorder-banner-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.preorder-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.preorder-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.preorder-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.preorder-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.2); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.4), 0 0 30px rgba(255,255,255,0.2); }
}

.preorder-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.preorder-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.preorder-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.preorder-banner:hover .preorder-cta {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.preorder-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preorder-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.preorder-banner:hover .preorder-image img {
    transform: scale(1.05) rotate(2deg);
}

.preorder-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background: #ff4757;
    color: white;
    padding: 0.5rem 3rem;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* =====================================================
   BADGE DE EXPANSIÓN EN PRODUCTOS (TUS ESTILOS)
   ===================================================== */
.expansion-badge.ascended-heroes {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff4757;
}

.expansion-badge.mega-evolucion {
    background: linear-gradient(135deg, #a55eea, #8854d0);
    color: white;
    border-color: #8854d0;
}

.expansion-badge.phantasmal-flames,
.expansion-badge.llamaradas-fantasmales {
    background: linear-gradient(135deg, #ff6348, #ff4757);
    color: white;
    border-color: #ff6348;
}

.expansion-badge.journey-together {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: white;
    border-color: #20bf6b;
}

.expansion-badge.shrouded-fable {
    background: linear-gradient(135deg, #4b6584, #2c3e50);
    color: white;
    border-color: #4b6584;
}

.expansion-badge.surging-sparks {
    background: linear-gradient(135deg, #fed330, #f7b731);
    color: #333;
    border-color: #f7b731;
}

.expansion-badge.destined-rivals,
.expansion-badge.otros {
    background: linear-gradient(135deg, #778ca3, #4b6584);
    color: white;
    border-color: #778ca3;
}

/* =====================================================
   CARRUSEL DE BANNERS - ESTILOS NUEVOS
   ===================================================== */
.banners-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.banners-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    flex: 0 0 100%;
    cursor: pointer;
    position: relative;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.7;
}

.banner-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.banner-nav.prev {
    left: 10px;
}

.banner-nav.next {
    right: 10px;
}

@media (max-width: 768px) {
    .banner-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        opacity: 0.5;
    }
    
    .banner-nav.prev {
        left: 5px;
    }
    
    .banner-nav.next {
        right: 5px;
    }
}

.banners-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.5);
}

.banner-indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.banner-indicator:hover {
    background: rgba(255,255,255,0.8);
}

.banner-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.banner-qr img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-qr span {
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-autoplay-status {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Estilos para banners con imagen de fondo */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Efecto completo para Instagram */
.banner-slide[data-banner-id="instagram-promo"] {
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite;
}

.banner-slide[data-banner-id="instagram-promo"] .preorder-image img {
    animation: float 3s ease-in-out infinite, instagramGlow 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes instagramGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.8)) drop-shadow(0 0 30px rgba(225,48,108,0.6));
        transform: scale(1.05);
    }
}

.preorder-banner[data-banner-id="instagram-promo"] {
    position: relative;
    overflow: hidden;
}

.preorder-banner[data-banner-id="instagram-promo"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: scan 4s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes scan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Responsive general */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
    }
    
    .filters {
        order: 1;
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .products-grid {
        order: 2;
    }
    
    .filter-group {
        margin-bottom: 0.8rem;
    }
    
    .filter-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .filter-group input,
    .filter-group select,
    .checkbox-label {
        height: 42px;
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .filters h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filters button {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    .cart-panel {
        width: 100%;
        right: -100%;
    }
    
    .floating-cart-btn {
        bottom: 90px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .preorder-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }
    
    .preorder-text h2 {
        font-size: 1.8rem;
    }
    
    .preorder-image {
        order: -1;
    }
    
    .preorder-image img {
        max-height: 150px;
    }
    
    .preorder-badge {
        top: 10px;
        right: -35px;
        font-size: 0.8rem;
        padding: 0.3rem 2.5rem;
    }
}


/* =====================================================
   RESTAURAR ESTILOS ORIGINALES DEL CARRUSEL DE PRODUCTOS
   ===================================================== */

/* Restaurar contenedor del carrusel de productos */
.products-grid .carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 15px 15px 0 0;
}

.products-grid .carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.products-grid .carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    flex-shrink: 0;
}

/* Botones del carrusel de productos */
.products-grid .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 20, 140, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.products-grid .carousel-btn:hover {
    background: rgba(74, 20, 140, 1);
    transform: translateY(-50%) scale(1.1);
}

.products-grid .carousel-btn.prev {
    left: 10px;
}

.products-grid .carousel-btn.next {
    right: 10px;
}

/* Indicadores del carrusel de productos */
.products-grid .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.products-grid .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.products-grid .indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Slides del carrusel de productos */
.products-grid .carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.products-grid .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =====================================================
   RESTAURAR ESTILOS DE BANNERS PRINCIPALES
   ===================================================== */

/* Asegurar que los banners usen sus estilos específicos */
.preorder-banner-container .banner-slide {
    flex: 0 0 100%;
    cursor: pointer;
    position: relative;
}

.preorder-banner-container .banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.7;
}

.preorder-banner-container .banner-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.logo-image {
    width: 120px;  /* Reducido de 120px a 60px */
    height: 120px; /* Reducido de 120px a 60px */
    object-fit: contain;
    padding: 1px;
}