        /* --- ESTILOS OPTIMIZADOS PARA FLUIDEZ --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* V5.13 PERF: Aceleracion global de scroll y renderizado */
        html {
            scroll-behavior: auto; /* smooth scroll consume CPU en scroll rapido */
        }
        body {
            font-family: 'Orbitron', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
            color: #e0d9ff;
            min-height: 100vh;
            overflow-x: hidden;
            text-rendering: optimizeSpeed; /* optimizeLegibility es lento en listas largas */
            -webkit-font-smoothing: antialiased;
            -webkit-overflow-scrolling: touch; /* momentum scroll en iOS */
        }
        /* V5.14 PERF: overscroll y touch-action para scroll 60fps en todos los contenedores */
        * {
            overscroll-behavior: none;
        }
        .modal-content, .section, #app-container {
            overscroll-behavior: contain;
        }

        body::before {
            content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at 20% 50%, rgba(204, 102, 255, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(128, 0, 255, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 40% 80%, rgba(155, 0, 255, 0.1) 0%, transparent 50%);
            pointer-events: none; 
            /* V5.13 PERF: rotate() en fixed forzaba repaint de pantalla completa cada frame.
               Solo translateY = operacion de compositor puro, 0 repaint, 60fps. */
            animation: bgFloat 20s ease-in-out infinite; 
            z-index: -1;
            will-change: transform;
            transform: translateZ(0);
            contain: strict;
            isolation: isolate;
        }

        @keyframes bgFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        /* Auth Styles */
        #auth-container {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            display: flex; justify-content: center; align-items: center; z-index: 2000;
            /* V5.16 PERF: blur eliminado del auth también. Fondo sólido es suficiente. */
            background: rgba(6, 6, 16, 0.97);
            will-change: opacity;
        }
        .auth-card {
            background: linear-gradient(135deg, rgba(42, 0, 63, 0.9), rgba(26, 26, 26, 0.9));
            padding: 40px; border-radius: 20px; text-align: center;
            border: 1px solid rgba(204, 102, 255, 0.3); box-shadow: 0 0 50px rgba(204, 102, 255, 0.2);
            /* V5.14 PERF: animacion reducida de 0.5s a 0.22s */
            width: 90%; max-width: 400px; animation: modalSlideIn 0.22s ease-out;
            transform: translateZ(0);
            will-change: transform, opacity;
        }
        .auth-logo {
            font-size: 2rem; color: #cc66ff; margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(204, 102, 255, 0.8);
        }
        .auth-btn-group { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
        #app-container { display: none; }

        .dashboard-header {
            background: linear-gradient(135deg, #1c002b 0%, #2a003f 100%);
            padding: 20px; text-align: center; box-shadow: 0 4px 20px rgba(204, 102, 255, 0.3);
            position: relative; overflow: hidden; margin-bottom: 20px; border-radius: 0 0 20px 20px;
            transform: translateZ(0);
        }

        .logo-container { position: relative; z-index: 1; }
        .logo-container h1 {
            color: #cc66ff; font-size: 2.5rem; font-weight: 900;
            text-shadow: 0 0 20px rgba(204, 102, 255, 0.8); margin-top: 10px;
            background: linear-gradient(45deg, #cc66ff, #8000ff, #cc66ff);
            background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            /* V5.13 PERF: background-position animation forzaba repaint continuo.
               Reemplazado por opacity en compositor — costo GPU = 0. */
            animation: gradientText 3s ease-in-out infinite; text-transform: uppercase;
            will-change: opacity;
        }
        @keyframes gradientText { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

        .container { max-width: 1400px; margin: 0 auto; padding: 20px; }
        .nav-controls {
            display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
            padding: 20px; background: rgba(26, 26, 26, 0.8); border-radius: 15px;
            /* V5.17 ESTÉTICA: glass restaurado en nav-controls — siempre visible al top, no genera lag de scroll */
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 32px rgba(204, 102, 255, 0.12);
            border: 1px solid rgba(204, 102, 255, 0.2);
            transform: translateZ(0);
        }
        .nav-controls button {
            background: linear-gradient(135deg, #8000ff, #cc66ff); color: white; border: none;
            padding: 12px 24px; border-radius: 25px; cursor: pointer; 
            font-family: 'Orbitron', sans-serif; font-weight: 500; box-shadow: 0 4px 15px rgba(128, 0, 255, 0.3);
            /* V5.13 PERF: 'background' removido de transition — animar linear-gradient es repaint puro, no GPU. */
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
            transform: translateZ(0);
        }
        .nav-controls button:hover {
            transform: translateY(-2px) translateZ(0); 
            box-shadow: 0 6px 20px rgba(128, 0, 255, 0.5);
            background: linear-gradient(135deg, #9b00ff, #e066ff);
        }
        .month-title {
            font-size: 1.8rem; font-weight: 700; text-align: center; color: #cc66ff;
            text-shadow: 0 0 10px rgba(204, 102, 255, 0.5); flex: 1;
        }
        .summary {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px;
        }
        .summary-card {
            background: linear-gradient(135deg, rgba(42, 0, 63, 0.75), rgba(26, 26, 26, 0.75));
            padding: 25px; border-radius: 20px; text-align: center;
            /* V5.17 ESTÉTICA: glass restaurado solo en summary-cards — están al top, fuera del scroll crítico.
               blur(6px) en 7 cards estáticas no afecta fps de scroll. */
            backdrop-filter: blur(6px);
            border: 1px solid rgba(204, 102, 255, 0.3); box-shadow: 0 8px 32px rgba(204, 102, 255, 0.1);
            position: relative; overflow: hidden;
            transform: translateZ(0);
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
        }
        .summary-card:hover { 
            transform: translateY(-5px) translateZ(0); 
            box-shadow: 0 15px 40px rgba(204, 102, 255, 0.3); 
        }
        .summary-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #cc66ff; }
        .summary-card .value {
            font-size: 2.2rem; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }
        .neto-positivo { color: #00ff88 !important; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important; }
        .neto-negativo { color: #ff4444 !important; text-shadow: 0 0 10px rgba(255, 68, 68, 0.5) !important; }

        .section {
            /* V5.17 ESTÉTICA: glass simulado sin backdrop-filter.
               El box-shadow interno púrpura + gradiente de borde reproducen la profundidad del glass
               sin ningún costo GPU de blur. El scroll sigue a 60fps. */
            background: linear-gradient(145deg, rgba(32, 8, 52, 0.96) 0%, rgba(20, 20, 35, 0.98) 100%);
            padding: 25px; margin: 25px 0; border-radius: 20px;
            border: 1px solid rgba(204, 102, 255, 0.22);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
                        inset 0 1px 0 rgba(204, 102, 255, 0.15),
                        inset 0 -1px 0 rgba(128, 0, 255, 0.08);
            transition: transform 0.2s ease-out;
            transform: translateZ(0);
            contain: layout style;
        }
        .section h3 {
            color: #cc66ff; font-size: 1.4rem; margin-bottom: 20px; text-shadow: 0 0 10px rgba(204, 102, 255, 0.5);
            position: relative; padding-bottom: 10px;
        }
        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; color: #cc66ff; font-weight: 500; }

        input, textarea {
            width: 100%; padding: 12px 15px; 
            background: rgba(42, 42, 42, 0.9); 
            border: 1px solid rgba(85, 85, 85, 0.5); color: white; border-radius: 10px;
            font-family: 'Orbitron', sans-serif; 
            /* V5.15 PERF: solo border-color — box-shadow en focus es suficiente, background-color innecesario */
            transition: border-color 0.15s;
            transform: translateZ(0);
        }
        select {
            /* V5.15 PERF: select nativo NO acepta transform ni transition bien — causa el lag de desincronizacion
               visible al abrir el dropdown. Sin transform, el elemento usa el compositor nativo del OS. */
            width: 100%; padding: 12px 15px;
            background: rgba(42, 42, 42, 0.9);
            border: 1px solid rgba(85, 85, 85, 0.5); color: white; border-radius: 10px;
            font-family: 'Orbitron', sans-serif;
        }
        input:focus, textarea:focus {
            outline: none; border-color: #cc66ff; box-shadow: 0 0 15px rgba(204, 102, 255, 0.25);
        }
        select:focus {
            outline: none; border-color: #cc66ff;
        }
        .search-container { position: relative; margin-bottom: 20px; }
        .search-input { padding-left: 45px; background: rgba(42, 42, 42, 0.9); border: 2px solid rgba(204, 102, 255, 0.3); }
        .search-icon {
            position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #cc66ff; font-size: 1.2rem;
        }
        button {
            background: linear-gradient(135deg, #8000ff, #cc66ff); color: white; padding: 12px 24px;
            border: none; margin: 10px 5px; border-radius: 25px; cursor: pointer;
            font-family: 'Orbitron', sans-serif; font-weight: 500; 
            box-shadow: 0 4px 15px rgba(128, 0, 255, 0.3);
            /* V5.13 PERF: 'background' removido de transition — linear-gradient no es animable por GPU */
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
            transform: translateZ(0);
            backface-visibility: hidden; 
        }
        button:hover {
            transform: translateY(-2px) translateZ(0); 
            box-shadow: 0 6px 20px rgba(128, 0, 255, 0.5);
            background: linear-gradient(135deg, #9b00ff, #e066ff);
        }
        .btn-small {
            background: linear-gradient(135deg, #6600cc, #8000ff); padding: 8px 16px; font-size: 0.8rem; margin: 2px;
        }
        .btn-pdf { background: linear-gradient(135deg, #ff6600, #ff8533); }
        /* V5.13 PERF: .pulse usa scale+opacity en compositor, sin repaint */
        .pulse { animation: pulse-red 2s infinite; will-change: transform, opacity; }
        .btn-config { background: linear-gradient(135deg, #00b3cc, #00d4ff); min-width: 150px; color: white !important; }
        .btn-msg { background: linear-gradient(135deg, #ff00cc, #ff3399); }
        .btn-account {
            background: linear-gradient(135deg, #007acc, #005fa3);
        }

        .entry {
            background: linear-gradient(145deg, rgba(48, 4, 72, 0.38) 0%, rgba(30, 0, 50, 0.28) 100%);
            border: 1px solid rgba(204, 102, 255, 0.18);
            border-radius: 15px; padding: 20px; margin: 15px 0; display: flex;
            justify-content: space-between; align-items: center; flex-wrap: wrap;
            /* V5.17 ESTÉTICA: inset highlight superior simula brillo glass sin blur */
            box-shadow: inset 0 1px 0 rgba(204, 102, 255, 0.12);
            transform: translateZ(0);
            contain: layout style;
            transition: border-color 0.12s;
            will-change: transform;
        }
        .entry:hover {
            border-color: rgba(204, 102, 255, 0.5);
            background: linear-gradient(145deg, rgba(55, 5, 82, 0.55) 0%, rgba(36, 0, 58, 0.42) 100%);
        }
        .entry-info { flex: 1; min-width: 250px; color: #e0d9ff; }
        .entry-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        .panel-quicknav {
            display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
            padding: 12px 16px; background: rgba(15, 15, 28, 0.98);
            border-radius: 14px; border: 1px solid rgba(204,102,255,0.18);
            position: sticky; top: 62px; z-index: 90;
            transform: translateZ(0);
        }
        .panel-quicknav-label {
            font-size: 0.65rem; color: #666; text-transform: uppercase; letter-spacing: 1.5px;
            align-self: center; white-space: nowrap; margin-right: 4px;
        }
        .qnav-btn {
            background: rgba(204,102,255,0.08); border: 1px solid rgba(204,102,255,0.22);
            color: #cc66ff; padding: 5px 13px; border-radius: 12px; cursor: pointer;
            font-family: 'Orbitron', sans-serif; font-size: 0.65rem; letter-spacing: 0.5px;
            transition: background-color 0.12s;
            transform: translateZ(0); margin: 0;
            box-shadow: none;
        }
        .qnav-btn:hover { background: rgba(204,102,255,0.18); }

        /* V5.16: Toggle colapso de sección */
        .section-toggle-btn {
            float: right; background: rgba(204,102,255,0.1); border: 1px solid rgba(204,102,255,0.25);
            color: #cc66ff; padding: 3px 10px; border-radius: 8px; cursor: pointer;
            font-family: 'Orbitron', sans-serif; font-size: 0.6rem; margin: 0 0 0 8px;
            transition: background-color 0.12s; box-shadow: none; transform: translateZ(0);
            vertical-align: middle;
        }
        .section-toggle-btn:hover { background: rgba(204,102,255,0.22); }
        .section-body { overflow: hidden; }
        .section-body.collapsed { display: none; }

        .modal {
            display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
            /* V5.14 PERF: backdrop-filter en overlay modal eliminado.
               Era el causa del spike de GPU al abrir — display:none→block + blur simultáneos
               congelaban el compositor y desfasaban el cursor. El fondo negro ya es suficiente. */
            background-color: rgba(0, 0, 0, 0.85);
        }
        .modal-content {
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(42, 0, 63, 0.98));
            margin: 5% auto; padding: 30px; border: 1px solid rgba(204, 102, 255, 0.3);
            border-radius: 20px; width: 90%; max-width: 500px;
            /* V5.14 PERF: blur eliminado del content — no hay nada debajo del modal que valga la pena desenfocar.
               El fondo más opaco (0.98) compensa visualmente. */
            box-shadow: 0 20px 60px rgba(204, 102, 255, 0.3);
            animation: modalSlideIn 0.22s ease-out;
            max-height: 90vh; overflow-y: auto;
            transform: translateZ(0);
            will-change: transform, opacity;
        }
        .modal-content.wide { max-width: 800px; }
        
        /* V5.14 PERF: translateY reducido de -50px a -12px. Menos desplazamiento = menos recálculo de layout.
           ease-out en lugar de ease para que la sensación de respuesta sea inmediata. */
        @keyframes modalSlideIn {
            from { opacity: 0; transform: translateY(-12px) translateZ(0); }
            to   { opacity: 1; transform: translateY(0)    translateZ(0); }
        }
        .close { color: #cc66ff; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
        .no-results { text-align: center; color: #888; font-style: italic; padding: 20px; }
        .logo-mini { width: 40px; height: 40px; opacity: 0.1; position: absolute; pointer-events: none; }
        .floating-logo-1 { top: 20%; right: 5%; animation: float 6s ease-in-out infinite; transform: translateZ(0); }
        .floating-logo-2 { bottom: 20%; left: 5%; animation: float 8s ease-in-out infinite reverse; transform: translateZ(0); }
        /* V5.13 PERF: rotate() en animacion continua = repaint cada frame. Solo translateY en compositor. */
        @keyframes float { 0%, 100% { transform: translateY(0px) translateZ(0); } 50% { transform: translateY(-20px) translateZ(0); } }

        /* === ESTILOS ACCESO (V4.4) === */
        .main-nav {
            background: rgba(10, 10, 10, 0.97); 
            /* V5.13 PERF: blur 10px → 4px en sticky nav. Background mas opaco elimina necesidad de blur alto. */
            backdrop-filter: blur(4px); padding: 15px 30px;
            display: flex; justify-content: space-between; align-items: center;
            border-bottom: 1px solid rgba(204, 102, 255, 0.2); position: sticky; top: 0; z-index: 100;
            transform: translateZ(0);
        }
        .main-nav-logo { font-size: 1.2rem; font-weight: 900; color: #cc66ff; text-transform: uppercase; letter-spacing: 2px; }
        .main-nav-menu { display: flex; gap: 15px; }
        .nav-btn {
            background: transparent; border: 1px solid rgba(204, 102, 255, 0.3); color: #ccc;
            padding: 8px 18px; font-size: 0.9rem; border-radius: 20px;
            /* V5.15 PERF: transition:all animaba ~20 propiedades. Solo las que cambian visualmente. */
            transition: color 0.15s ease-out, border-color 0.15s ease-out;
            transform: translateZ(0);
        }
        .nav-btn.active {
            background: linear-gradient(135deg, #8000ff, #cc66ff); color: white;
            border-color: transparent; box-shadow: 0 0 15px rgba(204, 102, 255, 0.5);
        }
        #view-access {
            display: none; min-height: 80vh; flex-direction: column; justify-content: flex-start; align-items: center; padding: 20px;
            /* V5.15 PERF: 0.5s → 0.3s ease-out */
            animation: fadeIn 0.3s ease-out; will-change: opacity;
        }
        /* V5.14 PERF: opacity en GPU layer con translateZ(0) */
        @keyframes fadeIn { from { opacity: 0; transform: translateZ(0); } to { opacity: 1; transform: translateZ(0); } }
        .access-search-box { width: 100%; max-width: 600px; position: relative; margin: 0 auto; }
        .access-input {
            width: 100%; padding: 25px 30px; font-size: 1.5rem; background: rgba(20, 20, 20, 0.8);
            border: 2px solid #cc66ff; border-radius: 50px; color: white; text-align: center;
            /* V5.15 PERF: transition:all + scale en focus causaba reflow completo del layout.
               Solo box-shadow en compositor. */
            box-shadow: 0 0 30px rgba(204, 102, 255, 0.2);
            transition: box-shadow 0.2s ease;
            transform: translateZ(0);
        }
        .access-input:focus { box-shadow: 0 0 50px rgba(204, 102, 255, 0.5); outline: none; }
        .status-card {
            margin: 40px auto; padding: 40px; border-radius: 30px; text-align: center; width: 100%;
            max-width: 700px; background: rgba(20, 20, 20, 0.95); border: 2px solid transparent;
            /* V5.15 PERF: 0.4s → 0.2s para respuesta inmediata al escanear */
            box-shadow: 0 10px 40px rgba(0,0,0,0.5); display: none; animation: slideUp 0.2s ease-out;
            transform: translateZ(0); will-change: transform, opacity;
        }
        /* V5.14 PERF: translateY reducido de 30px a 10px */
        @keyframes slideUp { from { transform: translateY(10px) translateZ(0); opacity: 0; } to { transform: translateY(0) translateZ(0); opacity: 1; } }
        .status-green { border-color: #00ff88; box-shadow: 0 0 50px rgba(0, 255, 136, 0.2) inset; }
        .status-green h2 { color: #00ff88; text-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
        .status-red { border-color: #ff4444; box-shadow: 0 0 50px rgba(255, 68, 68, 0.2) inset; }
        .status-red h2 { color: #ff4444; text-shadow: 0 0 20px rgba(255, 68, 68, 0.8); }
        .status-orange { border-color: #ff9900; box-shadow: 0 0 50px rgba(255, 153, 0, 0.2) inset; } 
        .status-orange h2 { color: #ff9900; text-shadow: 0 0 20px rgba(255, 153, 0, 0.8); } 

        .status-avatar { font-size: 4rem; margin-bottom: 20px; display: block; }
        .status-name { font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 10px; }
        .status-plan { font-size: 1.5rem; color: #ccc; margin-bottom: 20px; }
        .status-message { font-size: 1.2rem; margin-bottom: 20px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.05); }
        .btn-quick-pay {
            background: linear-gradient(135deg, #ff4444, #cc0000); font-size: 1.2rem;
            padding: 15px 40px; margin-top: 15px;
            /* V5.13 PERF: pulse con box-shadow = repaint cada frame. opacity+scale = compositor puro. */
            animation: pulse-red 2s infinite;
            will-change: transform, opacity;
        }
        @keyframes pulse-red {
            0%, 100% { transform: scale(1) translateZ(0); opacity: 1; }
            50% { transform: scale(1.04) translateZ(0); opacity: 0.88; }
        }

        /* QR Styles */
        #qr-reader-container {
            width: 100%; max-width: 400px; margin: 20px auto;
            border: 2px solid #cc66ff; border-radius: 20px; overflow: hidden;
            display: none; background: #000;
        }
        #qr-reader video { object-fit: cover; width: 100% !important; border-radius: 15px; }
        #modalQRContainer {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9); display: none;
            flex-direction: column; align-items: center; justify-content: center; z-index: 10000;
            /* V5.14 PERF: GPU layer pre-promocionada */
            transform: translateZ(0);
        }
        #modalQRCard {
            background: #1a0033; padding: 30px; border: 2px solid #00f2ff;
            border-radius: 20px; text-align: center; max-width: 90%;
            box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
            transform: translateZ(0);
        }
        #qrcode-display { background: white; padding: 15px; border-radius: 10px; display: inline-block; margin: 20px 0; }

        /* V5.15 PERF: will-change:opacity en todas las vistas para pre-promocionar GPU layer antes del fadeIn */
        #view-kiosco { display: none; animation: fadeIn 0.3s ease-out; will-change: opacity; }

        .product-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 20px;
        }
        .product-card {
            background: rgba(42, 0, 63, 0.6); border: 1px solid rgba(204, 102, 255, 0.2);
            border-radius: 15px; padding: 15px; text-align: center; cursor: pointer;
            position: relative; overflow: hidden; user-select: none;
            /* V5.13 PERF: background removido de transition */
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
            transform: translateZ(0);
        }
        .product-card:hover {
            transform: scale(1.05) translateZ(0); 
            border-color: #00d4ff; background: rgba(42, 0, 63, 0.9);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }
        .product-card h4 { font-size: 0.9rem; margin-bottom: 5px; color: #fff; }
        .product-card .price { font-size: 1.2rem; font-weight: bold; color: #00ff88; }
        .product-card .stock-badge {
            position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.7);
            padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; color: #ccc;
        }
        .cart-container {
            background: rgba(20, 20, 20, 0.95); border-radius: 20px; padding: 20px;
            border: 1px solid rgba(0, 212, 255, 0.3); margin-top: 20px;
            transform: translateZ(0);
        }
        .cart-item {
            display: flex; justify-content: space-between; padding: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.1); align-items: center;
        }
        .cart-total {
            font-size: 1.5rem; text-align: right; margin-top: 20px; color: #00d4ff; font-weight: bold;
        }
        .selected-client-box {
            background: linear-gradient(90deg, #2a003f, #1c002b); padding: 15px;
            border-radius: 10px; border-left: 5px solid #cc66ff; margin-bottom: 15px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .kiosco-actions { display: flex; gap: 10px; margin-top: 20px; }
        .btn-pay { flex: 1; background: linear-gradient(135deg, #00ff88, #00cc6a); color: #000; font-weight: 800; }
        .btn-debt { flex: 1; background: linear-gradient(135deg, #ff9900, #cc7a00); color: #000; font-weight: 800; }

        /* === ESTILOS BLOQUE 1 (NUEVOS) === */
        .notification-bell {
            position: relative; cursor: pointer; font-size: 1.3rem; margin-right: 15px; color: #ccc;
        }
        .notification-bell:hover { color: #fff; }
        .badge {
            position: absolute; top: -5px; right: -5px; background: #ff4444; color: white;
            border-radius: 50%; width: 18px; height: 18px; font-size: 10px;
            display: flex; justify-content: center; align-items: center; font-weight: bold;
        }
        .notification-modal {
            display: none; position: absolute; top: 60px; right: 20px; width: 300px;
            background: #1a1a1a; border: 1px solid #cc66ff; border-radius: 10px;
            z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        }
        .notif-item {
            padding: 10px 15px; border-bottom: 1px solid #333; font-size: 0.9rem;
        }
        .notif-item:last-child { border-bottom: none; }
        .notif-alert { color: #ff6666; }

        .category-filters { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px; }
        .cat-btn {
            background: rgba(255,255,255,0.1); border: 1px solid #555; color: #ccc;
            padding: 5px 15px; border-radius: 15px; cursor: pointer; white-space: nowrap;
            /* V5.15 PERF: GPU layer para cat-btn, son clicados frecuentemente */
            transform: translateZ(0);
        }
        .cat-btn.active { background: #cc66ff; color: white; border-color: #cc66ff; }

        .btn-excel {
            background: linear-gradient(135deg, #217346, #1e6b40); padding: 5px 12px; font-size: 0.8rem;
            border-radius: 5px; border: none; color: white; cursor: pointer; margin-left: 10px;
        }

        /* === ESTILOS BLOQUE 2: ROLES, ANALYTICS & AFORO === */
        .admin-only { display: none !important; }
        .admin-visible { display: block !important; }
        .admin-visible-flex { display: flex !important; }
        .blur-sensitive { filter: blur(5px); user-select: none; opacity: 0.5; }

        .btn-admin-toggle {
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
            font-size: 0.8rem; margin-left: 10px; color: #aaa;
        }
        .btn-admin-toggle.active {
            background: linear-gradient(135deg, #ffcc00, #ff9900); color: #000; font-weight: bold; border: none;
        }

        #view-analytics { display: none; animation: fadeIn 0.3s ease-out; will-change: opacity; }
        .chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .chart-box {
            background: rgba(26, 26, 26, 0.9); padding: 20px; border-radius: 20px;
            border: 1px solid rgba(204, 102, 255, 0.2); height: 350px; position: relative;
            transform: translateZ(0);
        }

        #view-classes { display: none; animation: fadeIn 0.3s ease-out; will-change: opacity; }
        .aforo-circle {
            width: 200px; height: 200px; border-radius: 50%; border: 10px solid #cc66ff;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            margin: 0 auto; box-shadow: 0 0 50px rgba(204, 102, 255, 0.3);
            background: rgba(0,0,0,0.5); transform: translateZ(0);
        }
        .aforo-number { font-size: 4rem; font-weight: 900; color: white; }
        .aforo-label { font-size: 1rem; color: #cc66ff; text-transform: uppercase; }

        .pin-display {
            font-size: 3rem; letter-spacing: 15px; text-align: center; margin: 20px 0;
            background: rgba(0,0,0,0.3); padding: 10px; border-radius: 10px; border: 1px solid #555;
            min-height: 80px; color: white;
        }
        .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
        .key-btn {
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
            font-size: 1.5rem; padding: 15px; border-radius: 10px; color: white; cursor: pointer;
            /* V5.13 PERF: background-color (rgba) SI es animable por GPU a diferencia de linear-gradient */
            transition: background-color 0.1s; transform: translateZ(0);
        }
        .key-btn:hover { background-color: rgba(255,255,255,0.2); }

        @media (max-width: 768px) {
            .summary { grid-template-columns: 1fr; }
            .nav-controls { flex-direction: column; gap: 10px; }
            .month-title { font-size: 1.3rem; }
            button { min-height: 44px; }
            .main-nav { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
            .main-nav-logo { font-size: 0.85rem; letter-spacing: 1px; }
            .main-nav-menu { display: flex; overflow-x: auto; width: 100%; padding-bottom: 5px; gap: 6px; }
            .nav-btn { font-size: 0.72rem; padding: 5px 9px; white-space: nowrap; min-height: 34px; }
            /* Mobile: panel de acceso rápido más compacto */
            .panel-quicknav { top: 52px; padding: 8px 10px; gap: 5px; }
            .qnav-btn { font-size: 0.6rem; padding: 4px 9px; }
            /* Mobile: pase socio más compacto */
            #modalPaseSocio > div { padding: 18px 14px; }
        }
        @media (max-width: 480px) {
            .main-nav-logo { font-size: 0.78rem; }
            .nav-btn { font-size: 0.65rem; padding: 4px 7px; min-height: 30px; }
            /* Mobile chico: inputs de serie kg más grandes para touch */
            .serie-kg-input { padding: 10px 12px; font-size: 0.85rem; min-height: 42px; }
            .serie-input-row label { font-size: 0.7rem; min-width: 52px; }
        }

        #toast-container {
            position: fixed; bottom: 20px; right: 20px; z-index: 9999;
            display: flex; flex-direction: column; gap: 10px;
        }
        .toast {
            background: rgba(20, 20, 20, 0.98); border-left: 5px solid #cc66ff;
            color: white; padding: 15px 25px; border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5); min-width: 250px;
            animation: slideInRight 0.3s ease-out; display: flex; align-items: center; justify-content: space-between;
            /* V5.15 PERF: backdrop-filter en elemento animado = compositor bloqueado. Fondo más opaco compensa. */
            border: 1px solid rgba(255,255,255,0.08);
            transform: translateZ(0); will-change: transform, opacity;
        }
        .toast.success { border-left-color: #00ff88; }
        .toast.error { border-left-color: #ff4444; }
        .toast.info { border-left-color: #00d4ff; }
        /* V5.14 PERF: translateZ(0) fuerza GPU layer para las animaciones de toast */
        @keyframes slideInRight { from { transform: translateX(100%) translateZ(0); opacity: 0; } to { transform: translateX(0) translateZ(0); opacity: 1; } }
        @keyframes fadeOutRight { from { transform: translateX(0) translateZ(0); opacity: 1; } to { transform: translateX(100%) translateZ(0); opacity: 0; } }

        /* === V5.3 NEW STYLES: IMPORT & WA SEMAPHORE === */
        .wa-indicator {
            display: flex; align-items: center; gap: 8px; margin-right: 15px;
            cursor: pointer; padding: 5px 10px; border-radius: 20px;
            /* V5.13 PERF: background-color (rgba) es animable por GPU */
            transition: background-color 0.3s;
        }
        .wa-indicator:hover { background-color: rgba(255,255,255,0.1); }
        .wa-dot {
            width: 10px; height: 10px; border-radius: 50%;
            background: #ff4444; box-shadow: 0 0 10px #ff4444;
            /* V5.15 PERF: transition:all con box-shadow = repaint. Solo opacity en compositor. */
            transition: opacity 0.2s;
        }
        .wa-dot.active { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
        
        .drop-zone {
            border: 2px dashed #cc66ff; border-radius: 10px; padding: 30px;
            text-align: center; color: #aaa; margin-bottom: 20px;
            /* V5.15 PERF: transition:all → solo border-color */
            cursor: pointer; transition: border-color 0.15s;
        }
        .drop-zone:hover { background: rgba(204, 102, 255, 0.1); border-color: #e0d9ff; }
        .template-link { color: #00d4ff; text-decoration: none; font-size: 0.9rem; margin-bottom: 15px; display: inline-block; }
        .template-link:hover { text-decoration: underline; }

        /* Estilos vista previa importacion */
        .preview-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.85rem; }
        .preview-table th, .preview-table td { padding: 8px; border: 1px solid rgba(255,255,255,0.1); text-align: left; }
        .preview-table th { background: rgba(204,102,255,0.2); color: #cc66ff; }

        /* === V5.10: SISTEMA DE RUTINAS Y EJERCICIOS === */
        .rutina-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
        .rutina-tab {
            background: rgba(255,255,255,0.07); border: 1px solid rgba(204,102,255,0.3);
            color: #aaa; padding: 9px 18px; border-radius: 20px; cursor: pointer;
            font-family: 'Orbitron', sans-serif; font-size: 0.78rem;
            /* V5.15 PERF: transition:all → solo color y opacity en compositor */
            transition: color 0.15s, opacity 0.15s;
            transform: translateZ(0);
        }
        .rutina-tab.active {
            background: linear-gradient(135deg, #8000ff, #cc66ff); color: white;
            border-color: transparent; box-shadow: 0 0 12px rgba(204,102,255,0.4);
        }
        .rutina-tab-content { display: none; }
        .rutina-tab-content.active { display: block; }

        .dia-tab-btn {
            background: rgba(255,255,255,0.07); border: 1px solid rgba(204,102,255,0.25);
            color: #bbb; padding: 7px 16px; border-radius: 15px; cursor: pointer;
            font-family: 'Orbitron', sans-serif; font-size: 0.75rem;
            /* V5.15 PERF: transition:all → solo color */
            transition: color 0.15s;
            transform: translateZ(0);
            margin: 3px;
        }
        .dia-tab-btn.active {
            background: linear-gradient(135deg, #7b2fff, #cc66ff); color: white;
            border-color: transparent; box-shadow: 0 0 10px rgba(123,47,255,0.4);
        }

        /* V5.17: Selector de ejercicios custom — búsqueda + tabs músculo + preview GIF */
        .ej-picker-wrap {
            position: relative; flex: 2; min-width: 160px;
        }
        .ej-picker-display {
            width: 100%; padding: 10px 14px; background: rgba(42,42,42,0.9);
            border: 1px solid rgba(204,102,255,0.4); border-radius: 10px;
            color: white; cursor: pointer; display: flex; justify-content: space-between;
            align-items: center; font-family: 'Orbitron', sans-serif; font-size: 0.78rem;
            user-select: none; transform: translateZ(0);
        }
        .ej-picker-display:hover { border-color: #cc66ff; }
        /* V5.18 FIX: Panel se teleporta al body al abrirse — sin interferencia del stacking context del modal.
           position:fixed funciona correctamente solo cuando el containing block es el viewport (body level). */
        #ejPickerPanel {
            display: none; position: fixed; z-index: 20000;
            background: linear-gradient(145deg, rgba(28,6,45,0.99), rgba(18,18,32,0.99));
            border: 1px solid rgba(204,102,255,0.35); border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 0 1px rgba(204,102,255,0.1);
            width: 640px; max-width: 96vw;
            transform: translateZ(0);
            flex-direction: column;
        }
        #ejPickerPanel.open { display: flex; }
        .ej-picker-header {
            padding: 14px 16px 10px; border-bottom: 1px solid rgba(204,102,255,0.15);
        }
        .ej-picker-search {
            width: 100%; padding: 9px 14px; background: rgba(42,42,42,0.9);
            border: 1px solid rgba(204,102,255,0.3); border-radius: 8px;
            color: white; font-family: 'Orbitron', sans-serif; font-size: 0.8rem;
            margin-bottom: 10px;
        }
        .ej-picker-search:focus { outline: none; border-color: #cc66ff; }
        .ej-muscle-tabs {
            display: flex; gap: 6px; flex-wrap: wrap;
        }
        .ej-muscle-tab {
            padding: 4px 11px; border-radius: 10px; font-size: 0.62rem;
            background: rgba(204,102,255,0.08); border: 1px solid rgba(204,102,255,0.2);
            color: #bb99ff; cursor: pointer; font-family: 'Orbitron', sans-serif;
            transition: background-color 0.1s; transform: translateZ(0); margin: 0;
            box-shadow: none;
        }
        .ej-muscle-tab:hover { background: rgba(204,102,255,0.2); }
        .ej-muscle-tab.active { background: linear-gradient(135deg,#8000ff,#cc66ff); color: white; border-color: transparent; }
        .ej-picker-body {
            display: flex; flex: 1; overflow: hidden; max-height: 360px;
        }
        .ej-list {
            flex: 1; overflow-y: auto; padding: 8px;
            scrollbar-width: thin; scrollbar-color: rgba(204,102,255,0.3) transparent;
        }
        .ej-list-item {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 10px; border-radius: 10px; cursor: pointer;
            border: 1px solid transparent; margin-bottom: 4px;
            transition: background-color 0.1s; transform: translateZ(0);
        }
        .ej-list-item:hover { background: rgba(204,102,255,0.12); border-color: rgba(204,102,255,0.25); }
        .ej-list-item.selected { background: rgba(204,102,255,0.2); border-color: rgba(204,102,255,0.5); }
        .ej-list-thumb {
            width: 42px; height: 42px; border-radius: 7px; object-fit: cover;
            background: rgba(0,0,0,0.4); flex-shrink: 0;
        }
        .ej-list-thumb-placeholder {
            width: 42px; height: 42px; border-radius: 7px;
            background: rgba(42,0,63,0.5); flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
        }
        .ej-list-name { font-size: 0.75rem; color: #e0d9ff; line-height: 1.3; }
        .ej-list-muscle { font-size: 0.62rem; color: #9966cc; margin-top: 2px; }
        .ej-preview {
            width: 200px; flex-shrink: 0; padding: 12px;
            border-left: 1px solid rgba(204,102,255,0.15);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
        }
        .ej-preview-gif {
            width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px;
            background: rgba(0,0,0,0.5);
        }
        .ej-preview-name { font-size: 0.72rem; color: #e0d9ff; text-align: center; margin-top: 8px; line-height: 1.4; }
        .ej-preview-muscle { font-size: 0.62rem; color: #cc66ff; text-align: center; margin-top: 4px; }
        .ej-preview-empty { color: #555; font-size: 0.75rem; text-align: center; }
        .ej-picker-footer {
            padding: 10px 14px; border-top: 1px solid rgba(204,102,255,0.15);
            display: flex; justify-content: flex-end; gap: 8px;
        }
        /* V5.19 FIX: selector .ejercicio-card-pase faltaba — CSS estaba flotando sin clase */
        .ejercicio-card-pase {
            background: rgba(42,0,63,0.45); border: 1px solid rgba(204,102,255,0.2);
            border-radius: 16px; padding: 18px; margin-bottom: 14px;
            text-align: left;
        }
        /* V5.19: layout interno de la card — GIF al costado izquierdo, datos a la derecha */
        .ejercicio-card-inner {
            display: flex; gap: 14px; align-items: flex-start;
        }
        .ejercicio-gif-pase {
            /* V5.19: GIF compacto al costado — 110px fijo, no ocupa todo el ancho */
            width: 110px; height: 110px; object-fit: cover; flex-shrink: 0;
            border-radius: 10px; background: rgba(0,0,0,0.3);
        }
        .ejercicio-card-data {
            flex: 1; min-width: 0;
        }
        /* Mobile: GIF un poco más chico para que quepan los inputs cómodos */
        @media (max-width: 480px) {
            .ejercicio-gif-pase { width: 80px; height: 80px; }
        }

        /* V5.28: Miniatura de video propio — mismo tamaño que el GIF, con ícono de play encima */
        .ejercicio-video-thumb {
            width: 110px; height: 110px; flex-shrink: 0; border-radius: 10px;
            background: #000; position: relative; cursor: pointer; overflow: hidden;
        }
        .ejercicio-video-thumb video {
            width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; pointer-events: none;
        }
        .ejercicio-video-play {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 26px; height: 26px; border-radius: 50%;
            background: rgba(255,255,255,0.88); color: #1a0026;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.62rem; padding-left: 2px; /* centra visualmente el triángulo ▶ */
            box-shadow: 0 1px 5px rgba(0,0,0,0.5);
        }
        @media (max-width: 480px) {
            .ejercicio-video-thumb { width: 80px; height: 80px; }
            .ejercicio-video-play { width: 22px; height: 22px; font-size: 0.55rem; }
        }

        /* V5.28: Modal de reproducción de video del ejercicio (como Diana) */
        .video-modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.88);
            z-index: 21000; align-items: center; justify-content: center; padding: 16px;
        }
        .video-modal-content {
            background: #0d0016; border: 1px solid rgba(204,102,255,0.3);
            border-radius: 14px; max-width: 520px; width: 100%; overflow: hidden;
        }
        .video-modal-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .video-modal-title { color: #cc66ff; font-weight: bold; font-size: 0.95rem; }
        .video-modal-close { color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
        .video-modal-player { width: 100%; max-height: 70vh; display: block; background: #000; }
        .serie-input-row {
            display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
        }
        .serie-input-row label { color: #cc66ff; font-size: 0.75rem; min-width: 60px; margin: 0; }
        .serie-kg-input {
            flex: 1; padding: 8px 12px; background: rgba(42,42,42,0.9);
            border: 1px solid rgba(204,102,255,0.4); color: white; border-radius: 8px;
            font-family: 'Orbitron', sans-serif; font-size: 0.8rem;
        }
        .serie-kg-input:focus { outline: none; border-color: #cc66ff; box-shadow: 0 0 10px rgba(204,102,255,0.3); }

        .biblioteca-card {
            background: rgba(42,0,63,0.4); border: 1px solid rgba(204,102,255,0.2);
            border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px;
            margin-bottom: 10px;
        }
        .biblioteca-gif-preview {
            width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
            background: rgba(0,0,0,0.4); flex-shrink: 0;
        }
        .prog-mini {
            background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.2);
            border-radius: 8px; padding: 6px 10px; margin-top: 8px;
            font-size: 0.75rem; color: #00ff88;
        }
        .ejercicio-asignado-row {
            display: flex; justify-content: space-between; align-items: center;
            background: rgba(42,0,63,0.3); border: 1px solid rgba(204,102,255,0.15);
            border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
        }

        /* ============================================================
           V5.23: PASE DIGITAL PÚBLICO — Idéntico al modal 5.19
           Card centrada, fondo oscuro, borde púrpura, scroll vertical
           ============================================================ */
        #pasePublicoContainer {
            display: none;
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.92);
            justify-content: center;
            align-items: center;
            flex-direction: column;
            z-index: 10001;
        }
        #pasePublicoInnerCard {
            background: linear-gradient(135deg, #1a0033, #0a0a1a);
            border: 2px solid #cc66ff;
            border-radius: 25px;
            padding: 30px;
            max-width: 480px; width: 90%;
            max-height: 92vh; overflow-y: auto;
            box-shadow: 0 0 60px rgba(204,102,255,0.3);
            text-align: center;
        }
        /* Upload PDF admin */
        .pdf-upload-zone {
            border: 2px dashed rgba(255,153,0,0.4); border-radius: 10px;
            padding: 20px; text-align: center; color: #aaa; margin-top: 10px;
            cursor: pointer; transition: border-color 0.15s;
            background: rgba(255,153,0,0.03);
        }
        .pdf-upload-zone:hover { border-color: #ff9900; background: rgba(255,153,0,0.06); }
        /* Progreso cards */
        .progreso-ejercicio-card {
            background: rgba(42,0,63,0.35); border: 1px solid rgba(204,102,255,0.2);
            border-radius: 12px; padding: 14px; margin-bottom: 12px;
        }
        .progreso-sesion-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
            font-size: 0.78rem;
        }
        .progreso-sesion-row:last-child { border-bottom: none; }
        /* Botón papelera progreso */
        .btn-limpiar-progreso {
            background: linear-gradient(135deg, #ff4444, #cc0000);
            font-size: 0.72rem; padding: 7px 12px; margin: 0;
        }
        /* PDF iframe */
        .pase-pdf-embed {
            width: 100%; height: 60vh; border-radius: 12px;
            border: 1px solid rgba(204,102,255,0.25); background: #111;
        }


/* ============================================================
   V5.27: Cronómetro de descanso flotante — pase público
   ============================================================ */
.rt-preset {
    background: rgba(204,102,255,0.13);
    border: 1px solid rgba(204,102,255,0.38);
    border-radius: 8px;
    color: #fff;
    font-family: Orbitron, sans-serif;
    font-size: 0.68rem;
    padding: 7px 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.rt-preset:hover {
    background: rgba(204,102,255,0.38);
}
#restTimerFace.rt-running {
    border-color: #00ff88 !important;
    box-shadow: 0 0 22px rgba(0,255,136,0.6) !important;
}
#restTimerFace.rt-done {
    border-color: #ff4444 !important;
    animation: rtPulse 0.55s infinite alternate;
}
@keyframes rtPulse {
    from { box-shadow: 0 0 10px rgba(255,68,68,0.35); }
    to   { box-shadow: 0 0 32px rgba(255,68,68,1); }
}

/* ─── V5.27 PAGINACIÓN SOCIOS ─── */
.pagination-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 18px 12px 6px;
}
.pagination-btn {
    background: rgba(204,102,255,0.08); border: 1px solid rgba(204,102,255,0.28);
    color: #cc66ff; width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer; font-size: 0.85rem; display: flex; align-items: center;
    justify-content: center; transition: background 0.15s, transform 0.1s;
    flex-shrink: 0; margin: 0; padding: 0; box-shadow: none; font-family: inherit;
}
.pagination-btn:hover:not(:disabled) { background: rgba(204,102,255,0.22); border-color: rgba(204,102,255,0.6); transform: scale(1.1); }
.pagination-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.pagination-dots { display: flex; align-items: center; gap: 6px; }
.pagination-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(204,102,255,0.18); border: 1px solid rgba(204,102,255,0.32);
    cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.pagination-dot.active { background: #cc66ff; border-color: #cc66ff; transform: scale(1.4); box-shadow: 0 0 8px rgba(204,102,255,0.6); }
.pagination-dot:hover:not(.active) { background: rgba(204,102,255,0.45); transform: scale(1.15); }
.pagination-ellipsis { color: rgba(204,102,255,0.35); font-size: 0.75rem; letter-spacing: 1px; user-select: none; }
.pagination-counter {
    font-family: 'Orbitron', sans-serif; font-size: 0.62rem; letter-spacing: 0.5px;
    color: rgba(204,102,255,0.5); text-align: center; padding-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   🤖 EUPHORIA IA MODULE — Estilos (no sobrescriben nada existente)
   ═══════════════════════════════════════════════════════════════ */

.ia-panel {
    animation: fadeIn 0.25s ease;
}

/* Burbujas del chat */
.ia-msg {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 82%;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

.ia-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(204,102,255,0.35), rgba(100,50,200,0.3));
    border: 1px solid rgba(204,102,255,0.4);
    color: #fff;
    margin-left: auto;
}

.ia-msg-bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0d9ff;
}

.ia-typing {
    color: #cc66ff;
    letter-spacing: 3px;
    animation: iaPulse 1.2s infinite;
}

@keyframes iaPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Botón copiar / asignar dentro del output IA */
#ia-rutina-text-nuevo,
#ia-rutina-text-update {
    scrollbar-width: thin;
    scrollbar-color: rgba(204,102,255,0.4) transparent;
}

#ia-rutina-text-nuevo::-webkit-scrollbar,
#ia-rutina-text-update::-webkit-scrollbar {
    width: 5px;
}

#ia-rutina-text-nuevo::-webkit-scrollbar-thumb,
#ia-rutina-text-update::-webkit-scrollbar-thumb {
    background: rgba(204,102,255,0.4);
    border-radius: 3px;
}

/* Chat messages container scroll */
#ia-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(204,102,255,0.3) transparent;
}

#ia-chat-messages::-webkit-scrollbar { width: 4px; }
#ia-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(204,102,255,0.3);
    border-radius: 3px;
}

/* ── Objetivo chips multi-select ── */
.ia-obj-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(204,102,255,0.25);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.ia-obj-chip:hover {
    background: rgba(204,102,255,0.12);
    border-color: rgba(204,102,255,0.5);
    color: #fff;
}
.ia-obj-chip input[type="checkbox"] {
    accent-color: #cc66ff;
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.ia-obj-chip:has(input:checked) {
    background: rgba(204,102,255,0.2);
    border-color: #cc66ff;
    color: #fff;
}
