        /* ========================================
           ARQUITECTURA VISUAL (V5.0 - Final)
           ======================================== */
        :root {
            --bg-base: #030409;
            --bg-glass: rgba(15, 17, 26, 0.6);
            --bg-glass-hover: rgba(25, 28, 41, 0.8);
            
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            
            --accent-primary: #3b82f6; 
            --accent-success: #10b981;
            --accent-warning: #f59e0b;
            --accent-danger: #ef4444;
            --accent-purple: #8b5cf6; 
            --accent-gold: #fbbf24; 
            
            --border-glass: 1px solid rgba(255, 255, 255, 0.08);
            --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            
            --font-main: 'Outfit', sans-serif;
            --font-display: 'Plus Jakarta Sans', sans-serif;
            --radius-std: 1rem;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            background-color: var(--bg-base);
            background-image: 
                radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
            background-attachment: fixed;
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 16px;
            line-height: 1.6;
            padding-bottom: 120px;
            overflow-x: hidden;
        }

        .layout-container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 1.5rem;
            position: relative;
            z-index: 1;
        }

        header {
            text-align: center;
            padding-bottom: 2rem;
            margin-bottom: 3rem;
            position: relative;
        }

        header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 50%; transform: translateX(-50%);
            width: 150px; height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-purple), transparent);
        }

        h1 {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
            text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
        }

        /* --- MONEDA --- */
        .currency-control {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 2rem;
            background: rgba(0,0,0,0.4);
            padding: 0.35rem;
            border-radius: 50px;
            border: var(--border-glass);
            backdrop-filter: blur(10px);
        }

        /* --- PUBLICIDAD SUPERIOR (TOP) --- */
        .ad-banner-top {
            margin: 1.5rem auto 3rem auto;
            max-width: 728px; /* Ancho estándar IAB */
            display: flex; justify-content: center;
        }

        .currency-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            font-family: var(--font-main);
            transition: all 0.3s;
            display: flex; align-items: center; gap: 0.5rem;
        }

        .currency-btn:hover:not(.active) { color: white; background: rgba(255,255,255,0.05); }
        
        .currency-btn.active {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        /* --- GRID --- */
        .section-title {
            color: white;
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            margin-top: 3rem; margin-bottom: 1.5rem;
            display: flex; align-items: center; gap: 1rem;
        }
        .section-title::after {
            content: ''; flex-grow: 1; height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
        }

        .grid-matrix {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .card-product {
            background: var(--bg-glass);
            backdrop-filter: blur(16px);
            border: var(--border-glass);
            border-radius: var(--radius-std);
            padding: 1.5rem;
            display: flex; flex-direction: column;
            position: relative;
            transition: all 0.4s ease;
            box-shadow: var(--shadow-glass);
            overflow: hidden;
        }

        .card-product:hover {
            transform: translateY(-8px);
            border-color: rgba(59, 130, 246, 0.4);
            box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.15);
        }

        .card-product.iptv-card:hover { border-color: rgba(139, 92, 246, 0.5); }
        
        .card-product.featured-card {
            background: linear-gradient(145deg, rgba(30, 25, 10, 0.6), rgba(15, 17, 26, 0.8));
            border: 1px solid rgba(245, 158, 11, 0.3);
        }
        .card-product.featured-card:hover { border-color: var(--accent-gold); }

        .product-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color:white; }
        .product-subtitle { font-size: 0.85em; color: var(--text-secondary); margin-top: 0.3rem; }
        
        .product-specs {
            font-size: 0.75em;
            color: #93c5fd;
            margin-top: 0.5rem;
            background: rgba(59, 130, 246, 0.1);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            width: fit-content;
            font-weight: 600;
        }

        .product-price {
            font-family: var(--font-display);
            color: var(--accent-success);
            font-weight: 800;
            font-size: 1.8rem;
            margin-top: 0.5rem;
        }
        .featured-card .product-price { color: var(--accent-gold); }

        .badge {
            font-size: 0.7rem; padding: 0.25em 0.6em; border-radius: 6px;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            color: var(--text-secondary); text-transform: uppercase; font-weight: 600;
            margin-left: 0.5em; vertical-align: middle;
        }
        .badge-iptv { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); color: #c4b5fd; }
        .badge-star { background: linear-gradient(to right, #f59e0b, #fbbf24); color: #000; border: none; margin-bottom: 0.75rem; display: inline-block; margin-left: 0; }

        .product-note {
            font-size: 0.8rem; color: #cbd5e1; margin-top: 1rem;
            display: flex; gap: 0.5rem;
            background: rgba(0,0,0,0.2); padding: 0.75rem;
            border-radius: 8px; border-left: 3px solid var(--accent-warning);
        }
        .product-note.promo { border-left-color: var(--accent-success); }

        .btn-add-cart {
            margin-top: 1.5rem; width: 100%; padding: 0.85rem;
            background: rgba(255,255,255,0.03); border: var(--border-glass);
            color: white; border-radius: 8px; cursor: pointer;
            font-family: var(--font-main); font-weight: 600;
            transition: all 0.3s;
            display: flex; align-items: center; justify-content: center; gap: 0.5rem;
        }
        .btn-add-cart:hover { background: var(--accent-primary); border-color: var(--accent-primary); }
        .iptv-card .btn-add-cart:hover { background: var(--accent-purple); border-color: var(--accent-purple); }

        /* --- COMBO BUILDER --- */
        .combo-builder {
            grid-column: 1 / -1;
            background: rgba(15, 17, 26, 0.4);
            backdrop-filter: blur(20px);
            border: var(--border-glass);
            border-radius: 1.5rem;
            overflow: hidden;
        }
        .combo-controls { padding: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
        .combo-step-label { display: block; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.85em; text-transform: uppercase; font-weight: 600; letter-spacing: 0.1em; }
        
        .combo-base-selector { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: none; }
        .selector-btn {
            background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
            color: var(--text-secondary); padding: 1rem 1.5rem; border-radius: 12px;
            cursor: pointer; white-space: nowrap; font-weight: 600; transition: all 0.3s;
        }
        .selector-btn.active { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.5); }

        .input-hidden { position: absolute; opacity: 0; width: 0; height: 0; }
        .tier-list { display: flex; flex-direction: column; gap: 0.75rem; }
        .tier-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.05);
            border-radius: 12px; background: rgba(0,0,0,0.2); cursor: pointer; transition: all 0.2s;
        }
        .input-hidden:checked + .tier-row {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
            border-color: var(--accent-success); color: white;
        }

        .platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
        .check-btn {
            display: flex; align-items: center; justify-content: center;
            padding: 0.85rem 1rem; background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.05); border-radius: 10px;
            cursor: pointer; font-size: 0.9em; text-align: center; height: 100%; transition: all 0.2s;
            color: var(--text-secondary);
        }
        .input-hidden:checked + .check-btn {
            background: var(--accent-primary); border-color: var(--accent-primary); color: white;
        }
        .input-hidden:disabled + .check-btn { opacity: 0.3; cursor: not-allowed; }

        .result-bar {
            background: rgba(0,0,0,0.6); padding: 1.5rem 2.5rem;
            border-top: var(--border-glass); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
        }
        .btn-combo-add {
            background: linear-gradient(135deg, var(--accent-success), #059669);
            color: #000; border: none; padding: 1rem 2rem; border-radius: 8px;
            font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
            cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
            transition: transform 0.3s;
        }
        .btn-combo-add:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5); }

        /* --- CARRITO (UI) --- */
        .cart-float-btn {
            position: fixed; bottom: 2rem; right: 2rem; width: 65px; height: 65px;
            border-radius: 50%; background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
            color: white; border: none; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; cursor: pointer; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
            z-index: 1000; transition: transform 0.3s;
        }
        .cart-float-btn:hover { transform: scale(1.1) rotate(-5deg); }
        
        .cart-badge {
            position: absolute; top: -2px; right: -2px; background: var(--accent-danger);
            color: white; font-family: var(--font-display); font-size: 0.8rem; font-weight: 800;
            width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            border: 2px solid var(--bg-void);
        }

        .cart-sidebar {
            position: fixed; top: 0; right: -450px; width: 100%; max-width: 450px; height: 100vh;
            background: rgba(10, 11, 16, 0.95); backdrop-filter: blur(25px);
            border-left: 1px solid rgba(255,255,255,0.05); z-index: 1001;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex; flex-direction: column; box-shadow: -15px 0 40px rgba(0,0,0,0.5);
        }
        .cart-sidebar.open { right: 0; }
        
        .cart-header { padding: 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
        .cart-header h3 { font-family: var(--font-display); margin: 0; }
        .cart-close { background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
        
        .cart-items { flex-grow: 1; overflow-y: auto; padding: 1.5rem; }
        .cart-item {
            background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem;
            display: flex; justify-content: space-between; margin-bottom: 1rem;
        }
        .item-name { font-weight: 700; display: block; }
        .item-meta { font-size: 0.8em; color: var(--text-secondary); }
        .item-price { color: var(--accent-success); font-weight: 800; font-family: var(--font-display); }
        .btn-remove { background: none; border: none; color: var(--accent-danger); cursor: pointer; }

        .cart-footer { padding: 1.5rem 2rem; background: rgba(0,0,0,0.5); }
        .cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2em; }
        .btn-checkout {
            width: 100%; padding: 1rem; background: #25D366; color: white; border: none; border-radius: 12px;
            font-weight: 800; cursor: pointer; display: flex; justify-content: center; gap: 0.5rem; align-items: center;
            font-family: var(--font-display); font-size: 1.1rem;
        }

        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
            z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s;
        }
        .overlay.open { opacity: 1; pointer-events: all; }

        /* TOAST */
        .toast-container { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; }
        .toast {
            background: rgba(20, 20, 30, 0.95); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 1rem 1.5rem;
            border-radius: 50px; display: flex; align-items: center; gap: 0.75rem; min-width: 300px; font-weight: 600;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
            animation: toastUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .toast.success { border-left: 4px solid var(--accent-success); } .toast.success i { color: var(--accent-success); }
        .toast.error { border-left: 4px solid var(--accent-danger); } .toast.error i { color: var(--accent-danger); }
        .toast.info { border-left: 4px solid var(--accent-primary); } .toast.info i { color: var(--accent-primary); }
        @keyframes toastUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        /* ============================
           CHATBOT NEXUS (V5.0)
           ============================ */
        .chat-widget-btn {
            position: fixed; bottom: 2rem; left: 2rem;
            width: 60px; height: 60px; border-radius: 50%;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white; border: none; cursor: pointer;
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
            z-index: 1500; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
            transition: transform 0.3s;
        }
        .chat-widget-btn:hover { transform: scale(1.1); }
        .chat-widget-btn::after {
            content: ''; position: absolute; top: 0; right: 0; width: 15px; height: 15px;
            background: #22c55e; border-radius: 50%; border: 2px solid var(--bg-base);
        }

        .chat-window {
            position: fixed; bottom: 6rem; left: 2rem;
            width: 350px; height: 500px;
            background: rgba(15, 17, 26, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            z-index: 1500;
            display: flex; flex-direction: column;
            transform: translateY(20px); opacity: 0; pointer-events: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .chat-window.active { transform: translateY(0); opacity: 1; pointer-events: all; }

        .chat-header {
            padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex; justify-content: space-between; align-items: center;
            background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
        }
        .chat-header h4 { margin: 0; font-family: var(--font-display); display: flex; align-items: center; gap: 0.5rem; }
        .status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

        .chat-messages {
            flex-grow: 1; padding: 1rem; overflow-y: auto;
            display: flex; flex-direction: column; gap: 1rem;
        }
        
        .msg {
            max-width: 80%; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.4;
        }
        .msg.bot {
            background: rgba(255,255,255,0.05); color: #e2e8f0;
            align-self: flex-start; border-bottom-left-radius: 2px;
        }
        .msg.user {
            background: var(--accent-primary); color: white;
            align-self: flex-end; border-bottom-right-radius: 2px;
        }

        .chat-input-area {
            padding: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
            display: flex; gap: 0.5rem;
        }
        .chat-input {
            flex-grow: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px; padding: 0.6rem 1rem; color: white; outline: none;
        }
        .chat-send {
            background: var(--accent-primary); border: none; width: 40px; height: 40px;
            border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
        }

        .typing-indicator {
            font-size: 0.7rem; color: var(--text-secondary); margin-left: 1rem; margin-bottom: 0.5rem; display: none;
        }

        /* --- PUBLICIDAD (No Invasiva) --- */
        .ad-banner {
            width: 100%;
            margin: 2rem 0;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px dashed rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-std);
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            /* Límite de altura para móviles: Evita scroll infinito de anuncios */
            max-height: 280px; 
            overflow: hidden; 
        }
        .ad-label {
            font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; opacity: 0.5;
        }

        /* --- CONTROL DE DISPOSITIVOS ADS --- */
        .ad-desktop-only { display: none !important; }
        .ad-mobile-only { display: flex !important; width: 100%; justify-content: center; }
        
        /* Responsivo para ads */
        @media (min-width: 768px) {
            .ad-desktop-only { display: block !important; }
            .ad-mobile-only { display: none !important; }
            
            .ad-banner { max-height: none; } /* En PC se quita el límite */
            .ad-banner.horizontal { min-height: 90px; flex-direction: row; justify-content: space-around; }
        }

        /* FOOTER */
        .site-footer {
            margin-top: 4rem;
            padding: 2rem 1rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        .disclaimer {
            max-width: 800px;
            margin: 0 auto 1.5rem auto;
            line-height: 1.5;
            opacity: 0.7;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        .footer-links a {
            color: var(--accent-purple);
            text-decoration: none;
        }