@import url('../../../assets/css/variables.css');
@import url('variables.css');

/* Bloqueo de scroll global cuando un panel está abierto */
body.panel-open {
    overflow: hidden !important;
    height: 100vh !important;


}

/* ==========================================================================
   NUEVO LOGIN PREMIUM: VELOCIDAD Y CRISTAL (GLASSMORPHISM)
   ========================================================================== */
/* Fondo animado inmersivo */
body.login-page {
    background: linear-gradient(-45deg, #0f172a, var(--primary-color), #2a5298, var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* El contenedor de cristal */
body.login-page .login-wrapper {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px;
    color: white;
}

/* Textos y Logo */
body.login-page .login-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.login-page .login-header img.logo {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    margin-bottom: 20px;
    max-height: 60px;
}

/* Ocultar el fondo blanco de las tarjetas viejas en el login */
body.login-page .card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Inputs Estilo Cyber */
body.login-page .input-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 8px;
}

body.login-page .input-group input,
body.login-page .input-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

/* Efecto foco en inputs */
body.login-page .input-group input:focus,
body.login-page .input-group select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4318FF;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.25);
    outline: none;
}

/* Placeholder claro */
body.login-page .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Botón de Ingreso Neón */
body.login-page #btn-consultar {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    color: white;
}

body.login-page #btn-consultar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.5);
}

/* Checkbox recordar */
body.login-page .checkbox-group label {
    color: rgba(255, 255, 255, 0.8);
}

/* Adaptar textos de selección de cuentas al modo oscuro */
body.login-page #seleccion-cuenta-section h2,
body.login-page #seleccion-cuenta-section p {
    color: white;
}

body.login-page .cuenta-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

body.login-page .cuenta-item h4 {
    color: white;
}

body.login-page .cuenta-detalle {
    color: rgba(255, 255, 255, 0.8);
}

body.login-page .cuenta-item .cuenta-info-principal span.badge-cliente {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   PASO 2: SPLIT SCREEN Y RESPONSIVIDAD INTELIGENTE
   ========================================================================== */
/* Por defecto (Móvil) ocultamos el marketing izquierdo */
.login-marketing {
    display: none;
}

.login-form-container {
    width: 100%;
}

/* --- VISTA DESKTOP (PC) --- */
@media (min-width: 769px) {

    /* Ocultar marketing cuando el portal está activo */
    body:not(.login-page) .login-marketing {
        display: none !important;
    }

    body:not(.login-page) .login-form-container {
        width: 100% !important;
        padding: 0 !important;
    }

    body.login-page .login-wrapper {
        display: flex;
        flex-direction: row;
        padding: 0 !important;
        max-width: 1000px !important;
        width: 100%;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.05);
    }

    .login-marketing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 50%;
        padding: 50px;
        background: rgba(0, 0, 0, 0.3);
        /* Fondo oscuro transparente */
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    .logo-marketing {
        max-height: 80px;
        width: auto;
        max-width: 90%;
        object-fit: contain;
        margin-bottom: 30px;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    .login-marketing h2 {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 15px;
        color: #fff;
    }

    .login-marketing p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }

    /* Animación de pulso óptico */
    .cyber-lines {
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(67, 24, 255, 0.4), transparent);
        transform: skewX(-20deg);
        animation: cyber-sweep 4s infinite linear;
    }

    @keyframes cyber-sweep {
        0% {
            left: -100%;
        }

        50%,
        100% {
            left: 200%;
        }
    }

    .login-form-container {
        width: 50%;
        padding: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Ocultar el logo superior del formulario porque ya está en el panel izquierdo */
    body.login-page .login-header img.logo {
        display: none;
    }

    body.login-page .login-header {
        text-align: left;
    }

    body.login-page .login-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
}

/* --- VISTA iOS (iPhone/iPad) --- */
body.is-ios.login-page {
    align-items: flex-end;
    /* Ancla el formulario abajo */
}

body.is-ios.login-page .login-wrapper {
    border-radius: 35px 35px 0 0 !important;
    margin: 0;
    width: 100%;
    border-bottom: none;
    padding-bottom: 50px !important;
    /* Espacio para la barra de inicio de iPhone */
    animation: slideUpLogin 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUpLogin {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

#modal-ayuda-box {
    max-width: 420px !important;
    width: 90% !important;
    margin: 10vh auto !important;
    padding: 25px !important;
    border-radius: 16px !important;


}

.wa-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
    cursor: pointer;


}

.wa-card:hover {
    background-color: #f8f9fa;
    border-color: #25D366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);


}

.wa-card-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: #4318ff;
    font-size: 1.1rem;
    margin-right: 15px;


}

.wa-card-center {
    display: flex;
    flex-direction: column;
    flex-grow: 1;


}

.wa-card-center strong {
    font-size: 1rem;
    color: #2b3674;
    margin-bottom: 3px;


}

.wa-card-center span {
    font-size: 0.8rem;
    color: #a3aed1;


}

.wa-card-right {
    color: #25D366;
    font-size: 1.6rem;
    margin-left: 15px;


    /* Modals General */
}

.modal-content-sm {
    max-width: 500px;
}

.modal-content-md {
    max-width: 600px;
}

.modal-content-lg {
    max-width: 800px;
}

/* Modal Ayuda */
.modal-ayuda-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-ayuda-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
}

.modal-ayuda-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modal Upgrade */
#planes-loader {
    text-align: center;
}

#upgrade-docs {
    margin-top: 20px;
}

.upgrade-docs-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.upgrade-docs-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input-group-flexible {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: max-content;
}

#btn-enviar-upgrade {
    margin-top: 20px;
}

/* Modal Hitcoins */
.hitcoins-header {
    text-align: center;
    margin-bottom: 20px;
}

.hitcoins-icon {
    font-size: 3em;
}

.hitcoins-title {
    color: #1e3c72;
    margin-top: 10px;
}

.hitcoins-subtitle {
    font-size: 1.1em;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

.hitcoins-disclaimer-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #1e3c72;
}

.hitcoins-disclaimer-text {
    margin: 0;
    font-size: 0.95em;
}

.hitcoins-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.hitcoins-link {
    text-align: center;
    color: #6c757d;
    text-decoration: underline;
    font-size: 0.9em;
}

/* Tarjetas de Upgrade */
.plan-card-upgrade {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    width: 280px;
    max-width: 100%;
    flex: 0 1 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;


}

.plan-card-upgrade:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 24, 255, 0.15);
    border-color: #4318FF;


}

.plan-image-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;


}

.plan-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s;


}

.plan-card-upgrade:hover .plan-image-container img {
    transform: scale(1.1);


}

.plan-content-box {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;


}

.plan-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.25em;
    line-height: 1.3;
    font-weight: 700;


}

.plan-beneficio {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin-top: 8px;
    min-height: 2.6em;


}

.plan-precio-box {
    margin-top: 15px;
    margin-bottom: 20px;


}

.plan-precio-box .precio-numero {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: #4318FF;
    letter-spacing: -1px;


}

.plan-precio-box .precio-detalle {
    font-size: 0.85em;
    color: #94a3b8;
    display: block;
    margin-top: 2px;


}

.btn-seleccionar-plan {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    background-color: #f1f5f9;
    color: #334155;
    border: none;
    transition: all 0.2s;


}

.plan-card-upgrade:hover .btn-seleccionar-plan {
    background-color: #4318FF;
    color: white;


    /* Boton Mejorar Plan */
}

@keyframes pulse-upgrade {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(67, 24, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(67, 24, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(67, 24, 255, 0);
    }

}

.btn-upgrade-pulse {
    background: linear-gradient(135deg, #4318FF, #009ee3);
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    animation: pulse-upgrade 2s infinite;
    transition: all 0.2s;

}

.btn-upgrade-pulse:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.3);


    /* Animación de Brillo (Shine) para botones premium */
}

@keyframes shine-effect {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }


}

.btn-rewards-gold {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 50%, #f6d365 100%);
    background-size: 200% auto;
    color: #8c3a00 !important;
    /* Texto oscuro para buen contraste con el dorado */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(253, 160, 133, 0.3);
    animation: shine-effect 3s linear infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.4);


}

.btn-rewards-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(253, 160, 133, 0.5);
    color: #5c2600 !important;


    /* 1. Ocultar el header externo viejo SOLO cuando el portal está activo */
}

body:not(.login-page) .login-header {
    display: none !important;


    /* --- HORUS IT COIN DASHBOARD --- */
}

.coins-dashboard-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;

}

.coins-info {
    display: flex;
    align-items: center;
    gap: 10px;

}

.coins-label {
    color: #b8860b;
    font-size: 0.9em;
    font-weight: 600;
    margin: 0;

}

.coins-value {
    font-size: 1.3em;
    font-weight: 800;
    color: #2b3674;
    margin: 0;


    /* --- SALDO CERO --- */
}

.sin-deuda-text {
    display: block;
    color: #10b981;
    /* Verde éxito */
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 10px;


}

.saldo-monto-cero {
    font-size: 2rem !important;
    opacity: 0.6;
    /* Un poco de opacidad para restarle peso visual */


    /* --- BOTON PAGAR FACTURAS --- */
}

#btn-abrir-modal-pago {
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;


    /* 2. Estilos del nuevo Header interior */
}

.dashboard-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    /* Aumentado para que respire mejor */
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;


    /* Branding (Izquierda) */
}

.dashboard-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

}

.logo-dashboard {
    max-width: 170px;
    /* Tamaño del logo interior */
    height: auto;

}

.portal-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;


    /* Usuario (Derecha) */
}

.dashboard-user-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Alinea textos y botones a la derecha */

}

.dashboard-user-area #bienvenida-cliente {
    margin: 0;
    font-size: 1.4rem;
    color: #2b3674;
    font-weight: 700;


    /* Responsivo para Celulares */
}

@media (max-width: 768px) {}

.dashboard-header-modern {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;

}

.dashboard-brand,
.dashboard-user-area {
    align-items: center;

}

.portal-subtitle {
    margin-left: 0;



    /* ==========================================================================
       SMART APP BANNER & GUÍA PWA HORIZON STYLE
       ========================================================================== */
    #ios-pwa-prompt {
        display: none !important;
    }
}

.pwa-smart-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 229, 242, 0.9);
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(67, 24, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 9990;
    padding: 12px 16px;
    box-sizing: border-box;
    animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideUp {
    from {
        transform: translate(-50%, 120%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.pwa-banner-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #f4f7fe;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(112, 144, 176, 0.15);
    flex-shrink: 0;
}

.pwa-banner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwa-banner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #2b3674;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.pwa-banner-desc {
    font-size: 11.5px;
    color: #707eae;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    line-height: 1.2;
}

.pwa-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pwa-action {
    background: linear-gradient(135deg, #4318FF 0%, #1e3c72 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pwa-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(67, 24, 255, 0.35);
}

.btn-pwa-action:active {
    transform: translateY(1px);
}

.btn-pwa-close {
    background: #f4f7fe;
    border: 1px solid rgba(224, 229, 242, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a3aed1;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-pwa-close:hover {
    background: #e2e8f0;
    color: #2b3674;
}

/* --- Modal Guía PWA iOS (Horizon Glassmorphic) --- */
.modal-pwa-guide .pwa-guide-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(224, 229, 242, 0.9);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(43, 54, 116, 0.2);
    padding: 24px;
    position: relative;
    max-width: 380px;
    margin: auto;
}

.pwa-guide-header {
    text-align: center;
    margin-bottom: 20px;
}

.pwa-guide-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #4318FF 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 12px auto;
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.25);
}

.pwa-guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b3674;
    margin: 0 0 6px 0;
}

.pwa-guide-subtitle {
    font-size: 0.88rem;
    color: #707eae;
    line-height: 1.4;
    margin: 0;
}

.pwa-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pwa-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
}

.pwa-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4318FF;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-step-text {
    font-size: 0.88rem;
    color: #2b3674;
    line-height: 1.35;
    flex: 1;
}

.pwa-step-text strong {
    color: #1e3c72;
}

.ios-icon-inline {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 2px;
    background: #eef2ff;
    border-radius: 6px;
    padding: 2px 4px;
}

.pwa-ios-indicator-arrow {
    text-align: center;
    margin-top: 15px;
    color: #4318FF;
    font-size: 20px;
    animation: pwaBounce 1.5s infinite ease-in-out;
}

@keyframes pwaBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.badge-app-instalada {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f9f0;
    color: #059669;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

.badge-tipo-cuenta {
    font-size: 0.65em;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-cliente {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-proveedor {
    background-color: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

/* =========================================
   APP WALLET HEADER (Estilo Billetera)
   ========================================= */
.app-wallet-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4318FF 100%);
    padding: 30px 20px 40px 20px;
    color: white;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    margin: -20px -20px 25px -20px;
    box-shadow: 0 10px 25px rgba(67, 24, 255, 0.25);

}

.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.greeting-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app-top-actions .btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    margin-left: 15px;
    cursor: pointer;
    position: relative;
}

/* Tarjeta de Saldo Glassmorphism */
.wallet-card-main {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

}

.wallet-label {
    font-size: 0.95rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.wallet-balance {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-actions {
    display: flex;
    gap: 15px;
}

.wallet-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 16px 10px;
    border-radius: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;

}

.wallet-action-btn i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.wallet-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.wallet-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border: none;
}

/* Banner de Puntos */
.points-banner {
    background: rgba(0, 0, 0, 0.25);
    margin-top: 15px;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;

}

.points-banner:active {
    transform: scale(0.98);
}

.points-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: 8px;
    color: #f6d365;
}

/* =========================================
   BOTTOM NAV (Estilo App)
   ========================================= */
.bottom-nav {
    display: none !important;
}

/* BASE GLOBAL PARA BURBUJAS DE NAVEGACIÓN */
.nav-badge {
    position: absolute;
    background-color: #ff3b30;
    color: white;
    font-size: 0.75rem !important;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bottom-nav .nav-item {
    position: relative;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
        z-index: 10005 !important;
        padding: 8px 4px 12px 4px;
        justify-content: space-around;
        align-items: center;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    #resultado-section {
        padding-bottom: 110px;
    }

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #9ca3af;
        font-weight: 600;
        gap: 4px;
        padding: 4px 1px;
        min-width: 40px;
    }

    .bottom-nav .nav-item span {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55px;
        text-align: center;
        display: block;
    }

    .bottom-nav .nav-item.active {
        color: #4318FF;
    }

    .bottom-nav .nav-item i {
        font-size: 1.7rem !important;
        margin-bottom: 4px !important;
    }

    .nav-badge {
        top: -6px;
        right: -2px;
    }

    .nav-item-center {
        position: relative;
        top: -25px;
    }

    .btn-qr-pay {
        background: linear-gradient(135deg, #2a5298, #4318FF);
        color: white;
        border: none;
        border-radius: 50%;
        width: 65px;
        height: 65px;
        font-size: 2rem;
        box-shadow: 0 6px 15px rgba(67, 24, 255, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
}

.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Oculto a la derecha por defecto */
    width: 100%;
    height: 100vh;
    background-color: #f4f7fe;
    z-index: 10000;
    /* Por encima de todo */
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding-bottom: 120px;

}

.slide-panel.open {
    right: 0;
    /* Desliza hacia adentro */

}

.slide-header {
    background: linear-gradient(135deg, #1e3c72, #4318FF);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}

.slide-header i {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;


    /* =========================================
   SLIDING PANELS (App Screens)
   ========================================= */
}

.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Oculto a la derecha por defecto */
    width: 100%;
    height: 100vh;
    background-color: #f4f7fe;
    z-index: 10000;
    /* Por encima de todo */
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding-bottom: 120px;

}

.slide-panel.open {
    right: 0;
    /* Desliza hacia adentro */

}

.slide-header {
    background: linear-gradient(135deg, #1e3c72, #4318FF);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}

.slide-header i {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;


}

.slide-content .apartado {
    display: block !important;
    opacity: 1 !important;
}

.slide-panel-left {
    left: -100% !important;
    right: auto !important;
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.slide-panel-left.open {
    left: 0 !important;


    /* Bloqueo estricto de Nav en Login */
}

body.login-page .bottom-nav {
    display: none !important;



    /* =========================================
   ACTION SHEET (Menú Desplegable Inferior)
   ========================================= */
}

.action-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10020;
    /* Máxima prioridad, por encima del nav */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;

}

.action-sheet-overlay.show {
    opacity: 1;
}

.action-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 25px 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);

}

.action-sheet-overlay.show .action-sheet {
    transform: translateY(0);
}

.action-sheet-header h3 {
    margin: 0 0 20px 0;
    color: #1e3c72;
    font-size: 1.2rem;
    text-align: center;
}

.action-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b3674;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;

}

.action-btn i {
    font-size: 1.3rem;
}

.action-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.action-btn.btn-danger {
    color: #dc3545;
    background: #fff0f0;
    border-color: #ffcdd2;
}

.action-btn.btn-danger:hover {
    background: #ffe0e0;
}

.action-btn.btn-cancel {
    background: transparent;
    border: none;
    color: #6c757d;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 500;
}

.action-btn.btn-cancel:hover {
    background: transparent;
    color: #495057;
    text-decoration: underline;
}

/* =========================================
   COMPACT VIEW FACTURAS (Móvil)
   ========================================= */
@media (max-width: 768px) {}

.factura-item {
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    min-height: auto !important;

}

.factura-item span[data-label] {
    font-size: 0.85rem !important;
    padding: 2px 0 !important;

}

.factura-item span[data-label]::before {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;

}

.nc-vinculada-item {
    padding-left: 25px !important;
    margin-top: -6px !important;

}

.wallet-balance {
    font-size: 2.2rem !important;



    /* =========================================
   MODAL QR FIX (Centrado y Responsivo)
   ========================================= */

}

#qr-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto !important;
    width: 100% !important;
    text-align: center !important;

    /* Esto asegura que el canvas o imagen que genera la librería se comporte como bloque centrado */
}

#qr-image canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 240px !important;
    height: auto !important;
    border: 8px solid white;
    border-radius: 10px;

}

#qr-image img {
    display: none !important;
    /* Mantiene oculto el clon generado por la librería */


    /* =========================================
   SERVICE STATUS BANNER (Grilla 3 Columnas)
   ========================================= */
}

.service-status-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 15px;
    margin-top: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Laterales fijos, centro dinámico expansivo */
    gap: 15px;
    align-items: start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);


}

.status-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-col:nth-child(1) {
    align-items: flex-start;
    text-align: left;
}

.status-col:nth-child(2) {
    align-items: flex-start;
    text-align: left;
    padding-left: 10px;
}

.status-col:nth-child(3) {
    align-items: flex-end;
    text-align: right;
}

.status-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    color: #e2e8f0;
    font-weight: 700;


}

.plan-name-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.header-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.header-status-badge.estado-servicio-con-falta-de-pago {
    background: #fee2e2;
    color: #b91c1c;
}

.header-status-badge.estado-servicio-activo {
    background: #dcfce7;
    color: #15803d;
}

/* --- LAYOUT MOBILE 2 COLUMNAS PARA BANNER DE ESTADO --- */
@media (max-width: 768px) {}

.service-status-banner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 15px;

    /* Fila 1 Izquierda: Estado */
}

.status-col:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;

    /* Fila 2 Izquierda: Plan Actual */
}

.status-col:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;

    /* Columna Derecha: Botón Upgrade */
}

.status-col:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    justify-content: center;
    align-items: center;
    /* Centrado perfecto */

    /* Restaurar el label para contexto */
}

.status-col:nth-child(3) .status-label {
    display: block;
    text-align: center;
    margin-bottom: 8px;

    /* Botón circular latiendo */
}

.status-col:nth-child(3) .btn-upgrade-pulse {
    width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.4);

    /* Ocultar la palabra en celular */
}

.status-col:nth-child(3) .btn-upgrade-pulse .upgrade-text {
    display: none;

    /* Agrandar el cohete y centrarlo */
}

.status-col:nth-child(3) .btn-upgrade-pulse i {
    margin: 0;
    font-size: 1.5rem;



}

.btn-upgrade-micro {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 82, 212, 0.3);
    transition: transform 0.2s;
    white-space: nowrap;

}

.btn-upgrade-micro:hover {
    transform: scale(1.05);
    color: white;
}

/* =========================================
   PREMIUM PROFILE CARD
   ========================================= */
.premium-profile-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);

}

.premium-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 15px;

}

.premium-profile-info {
    flex: 1;
    padding-right: 15px;
}

.premium-client-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;

}

.premium-name {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}

.premium-avatar-wrapper {
    position: relative;
    cursor: pointer;
}

.premium-avatar {
    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background-color: #e2e8f0;
    /* Fondo gris por si tarda en cargar */

}

.premium-avatar-wrapper:hover .premium-avatar {
    transform: scale(1.05);
}

.premium-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4318FF;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid #ffffff;

}

.premium-profile-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f8fafc;
    color: #4318FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;

}

.premium-detail-text {
    display: flex;
    flex-direction: column;
}

.premium-detail-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-detail-value {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}

/* Selector de Avatares (Scroll Horizontal) */
.premium-avatar-selector {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    animation: fadeIn 0.3s;

}

.premium-avatar-selector h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #475569;
}

.avatar-scroll-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    /* Permite que bajen a la siguiente línea */
    justify-content: center;
    max-height: 260px;
    /* Alto máximo antes de scrollear */
    overflow-y: auto;
    /* Scroll vertical */
    padding: 10px;
    scrollbar-width: thin;

}

.avatar-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.avatar-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.avatar-option {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #f1f5f9;

}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #4318FF;
}

.header-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- CORRECCIÓN PREMIUM HEADER MOBILE --- */
@media (max-width: 768px) {
    .app-top-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 15px;
        padding: 5px;
        background: transparent;
        border: none;
        height: auto;
        margin-top: -10px;
    }

    .btn-icon#btn-perfil-header {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        margin: 0;
        overflow: visible;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-avatar-img {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .notification-container {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }

    .notification-bell {
        font-size: 20px;
        color: #64748b;
    }

    .notification-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        background-color: #ef4444;
        color: white;
        padding: 0;
        z-index: 10;
        border: 1.5px solid white;
    }

    .app-logo {
        max-height: 30px;
    }

    .service-status-banner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px 15px;
    }

    .status-col:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }

    .status-col:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }

    .status-col:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        justify-content: center;
        align-items: center;
    }

    .status-col:nth-child(3) .status-label {
        display: block;
        text-align: center;
        margin-bottom: 8px;
    }

    .status-col:nth-child(3) .btn-upgrade-pulse {
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        box-shadow: 0 4px 15px rgba(67, 24, 255, 0.4);
    }

    .status-col:nth-child(3) .btn-upgrade-pulse .upgrade-text {
        display: none;
    }

    .status-col:nth-child(3) .btn-upgrade-pulse i {
        margin: 0;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   LAYOUT DE ESCRITORIO (PC / TABLETS GRANDES)
   ========================================================================== */
@media (min-width: 769px) {

    /* 1. Sidebar y Menú */
    .bottom-nav {
        display: flex !important;
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 40px;
        background: #ffffff;
        border-top: none;
        border-right: 1px solid #e2e8f0;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03);
        border-radius: 0;
        z-index: 1000;
    }

    .bottom-nav .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 30px;
        width: 100%;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    .bottom-nav .nav-item:hover {
        background-color: #f8fafc;
        border-left: 4px solid #4318FF;
    }

    .bottom-nav .nav-item i {
        margin-right: 15px;
        margin-bottom: 0 !important;
        font-size: 1.3rem !important;
        width: 25px;
        text-align: center;
    }

    .bottom-nav .nav-item span {
        font-size: 1.05rem;
        font-weight: 500;
    }

    .nav-badge {
        top: 10px;
        left: 35px;
        transform: none;
    }

    .bottom-nav .nav-item-center {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
        margin: 20px 0;
        display: flex;
        justify-content: center;
    }

    .btn-qr-pay {
        width: 85%;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #4318FF;
        color: white;
    }

    .btn-qr-pay::after {
        content: " Pagar con QR";
        font-size: 1rem;
        font-weight: 600;
        margin-left: 10px;
        font-family: inherit;
    }

    /* 2. Login y Dashboard Principal */
    .login-wrapper.portal-activo {
        margin-left: 260px;
        max-width: calc(100% - 260px);
        padding: 40px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .login-wrapper.portal-activo .login-main {
        max-width: 100% !important;
        width: 100%;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    #resultado-section {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        padding-bottom: 40px;
        transition: max-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), margin-left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform-origin: left top;
    }

    body.panel-open #resultado-section {
        max-width: 450px !important;
        margin-left: 20px !important;
    }

    .app-wallet-header {
        margin: 0 0 25px 0 !important;
        border-radius: 25px !important;
    }

    /* 3. Selección de Cuenta en Desktop */
    .login-main {
        max-width: 850px !important;
        width: 100%;
        margin: 0 auto;
    }

    #consulta-section.card {
        max-width: 420px !important;
        margin: 0 auto;
    }

    #seleccion-cuenta-section.card {
        max-width: 100% !important;
        width: 100%;
        margin: 40px auto;
    }

    #lista-cuentas {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    #lista-cuentas .cuenta-item {
        margin-bottom: 0;
        height: 100%;
    }

    /* 4. Paneles Deslizables */
    .slide-panel,
    .slide-panel-left {
        width: 650px !important;
        right: -650px !important;
        left: auto !important;
        border-left: 1px solid #e2e8f0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .slide-panel.open,
    .slide-panel-left.open {
        right: 0 !important;
    }

    /* 5. Tabla de Facturas */
    #panel-facturas .factura-item {
        display: grid !important;
        grid-template-columns: 2.5fr 1.2fr 1.2fr 1fr 90px;
        align-items: center;
        gap: 15px;
        padding: 12px 15px !important;
        border-bottom: 1px solid #f1f5f9;
    }

    #panel-facturas .factura-header {
        background-color: #f8fafc !important;
        border-bottom: 2px solid #e2e8f0 !important;
        border-radius: 8px 8px 0 0;
        margin-bottom: 5px;
    }

    #panel-facturas .factura-header span {
        font-weight: 700 !important;
        color: #475569 !important;
        text-transform: uppercase;
        font-size: 0.75rem !important;
        letter-spacing: 0.5px;
    }

    #panel-facturas .factura-item>span {
        display: block;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #panel-facturas .factura-item .accion-cell {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .accion-impaga {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .item-checkbox {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #4318FF;
    }

    #panel-facturas .nc-vinculada-item {
        border-top: none !important;
    }

    #panel-facturas .nc-vinculada-item span:first-child {
        padding-left: 20px;
    }
}

/* Ocultar menú y paneles en la pantalla de Login */
body.login-page .slide-panel,
body.login-page .slide-panel-left,
body.login-page .bottom-nav {
    display: none !important;
}

/* ========================================================================== */
/* FIX: Espaciado inferior para evadir el Bottom Nav en Modal de Upgrade      */
/* ========================================================================== */
#modal-upgrade .modal-content {
    padding-bottom: 100px !important;
    /* Asegura que el scroll baje más allá del menú */
}

#form-upgrade {
    margin-bottom: 40px;
    /* Separación extra directa debajo del botón de envío */
}


/* =========================================
   NEWS TICKER WIDGET
   ========================================= */
.news-ticker-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin: 0 auto 25px auto;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    width: 100%;
    position: relative;
}

.news-ticker-label {
    background: linear-gradient(135deg, #1e3c72, #4318FF);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.news-ticker-scroll {
    display: flex;
    gap: 50px;
    padding: 0 20px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.news-ticker-scroll span {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.news-ticker-scroll span i {
    color: #4318FF;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Desplaza exactamente la mitad (los items originales) */
}

.news-ticker-container:hover .news-ticker-scroll {
    animation-play-state: paused;
    /* Pausa si el cliente pone el mouse arriba */
}

@media (max-width: 768px) {

    /* Ajuste específico para pantallas móviles donde el menú inferior es visible */
    #btn-enviar-upgrade {
        margin-bottom: 60px !important;
    }
}

/* ========================================================================== */
/* ESTILOS PARA PANEL LATERAL DE MOTIVO DE RECHAZO                            */
/* ========================================================================== */
.panel-motivo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.panel-motivo-title {
    margin: 0;
    color: #9f1239;
    font-size: 1.2em;
    font-weight: 600;
}

.btn-cerrar-panel {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    line-height: 1;
    padding: 0 5px;
}

.btn-cerrar-panel:hover {
    color: #0f172a;
}

.panel-motivo-body {
    padding: 20px;
    color: #334155;
    line-height: 1.6;
    font-size: 15px;
}

.motivo-caja-alerta {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff1f2;
    border-left: 4px solid #fda4af;
    border-radius: 6px;
    color: #881337;
}

/* Limitar ancho visual del input de documento */
body.login-page #documento {
    max-width: 180px;
}

/* =========================================
   PROMO CAROUSEL WIDGETS
   ========================================= */
.promo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    padding: 10px 0;
}

.promo-carousel-wrapper::before,
.promo-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
}

.promo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f4f7fe, transparent);
}

.promo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f4f7fe, transparent);
}

.promo-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: carouselScroll 25s linear infinite;
}

.promo-track:hover {
    animation-play-state: paused;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-card:hover {
    transform: translateY(-3px);
}

.promo-card i {
    font-size: 2rem;
    opacity: 0.9;
}

.promo-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.promo-info p {
    margin: 3px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Gradientes Premium para las tarjetas */
.bg-gradient-1 {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.bg-gradient-5 {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.bg-gradient-6 {
    background: linear-gradient(135deg, #FDC830, #F37335);
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 7.5px));
    }

    /* Desplaza exactamente los primeros 6 items */
}

/* ==========================================================================
   OPTIMIZACIÓN MOBILE: ENCAJE PERFECTO (NO SCROLL / ABOVE THE FOLD)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Etiqueta de Novedades: Solo Rayo */
    .news-ticker-label {
        font-size: 0 !important;
        /* Oculta la palabra */
        padding: 10px 15px !important;
    }

    .news-ticker-label i {
        font-size: 1.1rem !important;
        /* Mantiene el rayo visible */
        margin: 0 !important;
    }

    .news-ticker-container {
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }

    /* 2. Achicar la Billetera Azul y sus márgenes */
    .app-wallet-header {
        padding: 15px 15px 20px 15px !important;
        margin: -20px -20px 15px -20px !important;
    }

    .app-top-bar {
        margin-bottom: 10px !important;
    }

    .greeting-text {
        font-size: 1.1rem !important;
    }

    /* 3. Achicar Tarjeta Principal de Pago */
    .wallet-card-main {
        padding: 12px 15px !important;
    }

    .wallet-balance {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .wallet-action-btn {
        padding: 8px !important;
        font-size: 0.85rem !important;
    }

    .wallet-action-btn i {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }

    /* 4. Ajustar Puntos y Estado (Súper compactos) */
    .points-banner {
        padding: 8px 15px !important;
        margin-top: 10px !important;
    }

    .points-value {
        font-size: 1.2rem !important;
    }

    .service-status-banner {
        padding: 8px 12px !important;
        margin-top: 10px !important;
        gap: 5px 10px !important;
    }

    .status-col:nth-child(3) .btn-upgrade-pulse {
        width: 40px !important;
        height: 40px !important;
    }

    .status-col:nth-child(3) .btn-upgrade-pulse i {
        font-size: 1.2rem !important;
    }

    /* 5. Achicar Carrusel Promocional */
    .promo-carousel-wrapper {
        margin-bottom: 85px !important;
        padding: 0 !important;
    }

    .promo-card {
        width: 220px !important;
        /* Un poco más ancho para el nuevo texto */
        padding: 16px 15px !important;
        /* Más altura: 16px arriba y abajo */
        gap: 12px !important;
        border-radius: 14px !important;
    }

    .promo-card i {
        font-size: 1.6rem !important;
        /* Icono más grande */
    }

    .promo-info h4 {
        font-size: 0.95rem !important;
        /* Título principal más grande */
    }

    .promo-info p {
        font-size: 0.8rem !important;
        /* Subtítulo más legible */
        margin-top: 3px !important;
    }
}

/* ==========================================================================  
   FIX: MODALES SOBRE MENU LATERAL (DESKTOP)  
   ========================================================================== */
.modal {
    z-index: 99999 !important;
    /* Fuerza al modal a estar por encima de cualquier sidebar o navbar */
}


/* Responsive Mobile Table para Facturas */
.tabla-facturas-responsive {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

@media (max-width: 768px) {

    .tabla-facturas-responsive th,
    .tabla-facturas-responsive td {
        padding: 8px 2px !important;
        font-size: 0.75rem !important;
    }

    .tabla-facturas-responsive td:nth-child(1),
    .tabla-facturas-responsive th:nth-child(1) {
        white-space: normal !important;
        word-break: break-all;
        max-width: 100px;
    }

    .tabla-facturas-responsive .estado-factura {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }
}

/* Micro-Ajustes UI: Forzar Encogimiento de Columna Final */
@media (max-width: 768px) {

    .tabla-facturas-responsive th:last-child,
    .tabla-facturas-responsive td:last-child {
        width: 1%;
        white-space: nowrap !important;
        padding-right: 5px !important;
    }
}

/* =========================================
   QUICK PAY (BENTO GRID TUNNEL)
   ========================================= */
.qp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.qp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.qp-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) brightness(1.1);
}

.qp-brand i {
    color: #00d2ff;
    font-size: 28px;
}

.qp-status-badge {
    background: #fef3c7;
    color: #d97706;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.qp-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.qp-bento-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.qp-card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a3aed1;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qp-saldo-hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qp-deuda-monto {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #1e3c72;
    line-height: 1;
    margin-bottom: 8px;
}

.qp-deuda-detalle {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.qp-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qp-btn-pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
}

.qp-btn-pay:hover {
    transform: translateY(-2px);
}

.qp-btn-pay .left-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qp-btn-pay i {
    font-size: 24px;
}

.qp-btn-mp {
    background: #009ee3;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 158, 227, 0.25);
}

.qp-btn-qr {
    background: #4318FF;
    color: white;
    box-shadow: 0 6px 15px rgba(67, 24, 255, 0.25);
}

.qp-btn-transfer {
    background: #f8fafc;
    color: #2b3674;
    border: 1px solid #e2e8f0;
}

.qp-invoice-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.qp-invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.qp-invoice-item:last-child {
    border-bottom: none;
}

.qp-invoice-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qp-invoice-number {
    font-weight: 700;
    color: #2b3674;
    font-size: 16px;
}

.qp-invoice-date {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qp-invoice-amount {
    font-weight: 800;
    color: #4318FF;
    font-size: 18px;
}

.qp-reassurance {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qp-reassurance i {
    color: #00d2ff;
    font-size: 20px;
}

@media (max-width: 768px) {
    .qp-deuda-monto {
        font-size: 2.8rem;
    }

    .qp-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .qp-status-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FIX: CONTRASTE DE TEXTO EN MODALES SOBRE FONDO LOGIN (QUICK PAY)
   ========================================================================== */
body.login-page .modal-content {
    color: #334155 !important;
}

body.login-page .modal-content h2,
body.login-page .modal-content h3,
body.login-page .modal-content p {
    color: #1e293b !important;
}

body.login-page .modal-content strong {
    color: #0f172a !important;
}

body.login-page .modal-content .modal-close {
    color: #64748b !important;
}

body.login-page .modal-content .modal-close:hover {
    color: #0f172a !important;
}

/* ==========================================================================
   ESTILO DE SWITCHES/TOGGLES (SISTEMA VISTA 360)
   ========================================================================== */
.switch-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(224, 229, 242, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: #2b3674;
    cursor: pointer;
    transition: background 0.2s;
}

.switch-container:last-child {
    border-bottom: none;
}

.switch-container:hover {
    background: #f8fafc;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 36px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4318FF;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* ==========================================================================
   ESTILOS PARA LOGIN DINÁMICO Y ESTACIONAL DE VANGUARDIA
   ========================================================================== */
#login-theme-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.theme-particle {
    position: absolute;
    bottom: -60px;
    will-change: transform, opacity;
    animation: floatUp 10s linear infinite;
    user-select: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: inherit;
    }
    90% {
        opacity: inherit;
    }
    100% {
        transform: translateY(-105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Variación de animación para simular caída (Otoño / Invierno) */
body.theme-otono .theme-particle,
body.theme-invierno .theme-particle,
body.theme-navidad .theme-particle {
    bottom: auto;
    top: -60px;
    animation: floatDown 10s linear infinite;
}

@keyframes floatDown {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: inherit;
    }
    90% {
        opacity: inherit;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* --- GRADIENTES PREMIUM SEGÚN EL TEMA --- */
body.login-page {
    position: relative;
    overflow-x: hidden;
    transition: background 1.5s ease-in-out;
}

body.login-page.theme-verano {
    background: linear-gradient(135deg, #120c1f 0%, #d946ef 50%, #f97316 100%) !important;
}

body.login-page.theme-otono {
    background: linear-gradient(135deg, #180a02 0%, #c2410c 50%, #7c2d12 100%) !important;
}

body.login-page.theme-invierno {
    background: linear-gradient(135deg, #020617 0%, #1e3a8a 50%, #0369a1 100%) !important;
}

body.login-page.theme-primavera {
    background: linear-gradient(135deg, #022c22 0%, #10b981 50%, #ec4899 100%) !important;
}

body.login-page.theme-navidad {
    background: linear-gradient(135deg, #1c0505 0%, #991b1b 40%, #166534 80%, #064e3b 100%) !important;
}

body.login-page.theme-mundial {
    background: linear-gradient(135deg, #082f49 0%, #0ea5e9 40%, #f8fafc 80%, #0284c7 100%) !important;
}

/* Ajustes Premium de Glassmorphic Login Form en Móviles */
@media (max-width: 768px) {
    body.login-page {
        align-items: stretch;
        padding: 0;
        background-attachment: fixed;
    }

    body.login-page .login-wrapper {
        min-height: 100vh;
        border-radius: 0;
        border: none;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.login-page .login-form-container {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 25px 20px;
        border-radius: 20px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Combo Input Modernizado */
body.login-page .modern-input-combo {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

body.login-page .modern-input-combo:focus-within {
    border-color: #4318FF !important;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

body.login-page .modern-input-combo select {
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    color: white !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    outline: none !important;
    width: 95px !important;
    min-width: 95px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    height: auto !important;
}

body.login-page .modern-input-combo select option {
    background: #1e293b !important;
    color: white !important;
}

body.login-page .modern-input-combo input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: white !important;
    padding: 12px 15px !important;
    outline: none !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Selección de Cuentas Premium */
body.login-page .cuenta-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

body.login-page .cuenta-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #4318FF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(67, 24, 255, 0.25) !important;
}

/* Badges de Categoría (Club) */
body.login-page .badge-categoria {
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

body.login-page .badge-categoria.badge-bronce {
    background: linear-gradient(135deg, #a75a1e, #d37c37) !important;
    color: white !important;
}

body.login-page .badge-categoria.badge-plata {
    background: linear-gradient(135deg, #707070, #a8a8a8) !important;
    color: white !important;
}

body.login-page .badge-categoria.badge-gold {
    background: linear-gradient(135deg, #ca8a04, #facc15) !important;
    color: #1e293b !important;
}

body.login-page .badge-categoria.badge-black {
    background: linear-gradient(135deg, #111827, #374151) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* Badge de tipo cuenta original (Cliente/Proveedor) override */
body.login-page .badge-tipo-cuenta {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* --- AMBIENT GLOW MESH BACKGROUND (SEASONAL) --- */
.login-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: floatGlow 25s ease-in-out infinite alternate;
}

.login-bg-glow-1 {
    top: -10%;
    left: -10%;
    animation-duration: 35s;
}

.login-bg-glow-2 {
    bottom: -10%;
    right: -10%;
    animation-duration: 40s;
    animation-delay: -5s;
}

.login-bg-glow-3 {
    top: 50%;
    left: 60%;
    width: 400px;
    height: 400px;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(150px, 80px) scale(1.15) rotate(180deg);
    }
    100% {
        transform: translate(-100px, 150px) scale(0.9) rotate(360deg);
    }
}

/* Color palettes for the mesh blobs based on active season class on body */
body.login-page.theme-invierno { background: linear-gradient(-45deg, #0b132b, #1c2541, #3a506b, #1e3a8a); }
body.login-page.theme-verano { background: linear-gradient(-45deg, #2e0854, #7928ca, #ff0080, #f59e0b); }
body.login-page.theme-otono { background: linear-gradient(-45deg, #1c0a00, #361500, #815b3c, #b45309); }
body.login-page.theme-primavera { background: linear-gradient(-45deg, #064e3b, #047857, #db2777, #0284c7); }

body.theme-invierno .login-bg-glow-1 { background: radial-gradient(circle, #1e40af 0%, transparent 70%); }
body.theme-invierno .login-bg-glow-2 { background: radial-gradient(circle, #0284c7 0%, transparent 70%); }
body.theme-invierno .login-bg-glow-3 { background: radial-gradient(circle, #0369a1 0%, transparent 70%); }

body.theme-verano .login-bg-glow-1 { background: radial-gradient(circle, #db2777 0%, transparent 70%); }
body.theme-verano .login-bg-glow-2 { background: radial-gradient(circle, #ea580c 0%, transparent 70%); }
body.theme-verano .login-bg-glow-3 { background: radial-gradient(circle, #ca8a04 0%, transparent 70%); }

body.theme-otono .login-bg-glow-1 { background: radial-gradient(circle, #c2410c 0%, transparent 70%); }
body.theme-otono .login-bg-glow-2 { background: radial-gradient(circle, #7c2d12 0%, transparent 70%); }
body.theme-otono .login-bg-glow-3 { background: radial-gradient(circle, #b45309 0%, transparent 70%); }

body.theme-primavera .login-bg-glow-1 { background: radial-gradient(circle, #10b981 0%, transparent 70%); }
body.theme-primavera .login-bg-glow-2 { background: radial-gradient(circle, #db2777 0%, transparent 70%); }
body.theme-primavera .login-bg-glow-3 { background: radial-gradient(circle, #059669 0%, transparent 70%); }

/* Responsive adjustments for glowing background blobs to prevent side border lines */
@media (max-width: 768px) {
    .login-bg-glow {
        width: 320px !important;
        height: 320px !important;
        filter: blur(80px) !important;
        opacity: 0.22 !important;
    }
    .login-bg-glow-1 {
        top: -5% !important;
        left: -15% !important;
    }
    .login-bg-glow-2 {
        bottom: -5% !important;
        right: -15% !important;
    }
    .login-bg-glow-3 {
        top: 40% !important;
        left: 20% !important;
        width: 250px !important;
        height: 250px !important;
    }
}

/* ==========================================================================
   SEGUIMIENTO DE PEDIDOS Y TIMELINE OIT EN VIVO (AUTOGESTIÓN)
   ========================================================================== */
.order-tracking-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    padding: 22px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.order-tracking-card:hover {
    box-shadow: 0 8px 25px rgba(67, 24, 255, 0.08);
    border-color: #cbd5e1;
}

.order-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.order-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-type-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-type-title i {
    color: #4318FF;
}

.order-meta-info {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-meta-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
}

/* Timeline Stepper Container */
.order-timeline-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 15px 0 5px 0;
    padding: 0 10px;
}

.timeline-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.timeline-step-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.timeline-step-item.step-completed .timeline-step-node {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.timeline-step-item.step-active .timeline-step-node {
    background: #4318FF;
    border-color: #4318FF;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.15), 0 4px 15px rgba(67, 24, 255, 0.3);
    animation: pulseStep 2s infinite;
}

.timeline-step-item.step-en-camino .timeline-step-node {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 4px 15px rgba(245, 158, 11, 0.35);
    animation: pulseCamino 1.5s infinite;
}

.timeline-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    max-width: 90px;
}

.timeline-step-item.step-active .timeline-step-label {
    color: #4318FF;
    font-weight: 700;
}

.timeline-step-item.step-en-camino .timeline-step-label {
    color: #d97706;
    font-weight: 700;
}

.timeline-step-item.step-completed .timeline-step-label {
    color: #0f766e;
}

/* Connecting Line between steps */
.timeline-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transition: all 0.4s ease;
}

.timeline-step-item.step-completed:not(:last-child)::after {
    background: #10b981;
}

.timeline-step-item.step-active:not(:last-child)::after {
    background: linear-gradient(90deg, #4318FF 0%, #cbd5e1 100%);
}

@keyframes pulseStep {
    0% { box-shadow: 0 0 0 0 rgba(67, 24, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(67, 24, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 24, 255, 0); }
}

@keyframes pulseCamino {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Bento Info Box for Technical Visit */
.oit-detail-box {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
}

.oit-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oit-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(67, 24, 255, 0.08);
    color: #4318FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.oit-detail-content {
    display: flex;
    flex-direction: column;
}

.oit-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oit-detail-val {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

/* Banner de alerta cuando el técnico está en camino */
.banner-en-camino {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #92400e;
    font-weight: 600;
    font-size: 0.9rem;
}

.banner-en-camino i {
    font-size: 1.4rem;
    color: #d97706;
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Banner de pedido finalizado */
.banner-finalizado {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #065f46;
    font-weight: 600;
    font-size: 0.9rem;
}

.banner-finalizado i {
    font-size: 1.3rem;
    color: #059669;
}

@media (max-width: 600px) {
    .order-timeline-stepper {
        padding: 0;
    }
    .timeline-step-node {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .timeline-step-label {
        font-size: 0.65rem;
        max-width: 60px;
    }
    .timeline-step-item:not(:last-child)::after {
        top: 16px;
    }
    .oit-detail-box {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WIDGET DE TELEMETRÍA GPS EN VIVO (TRACCAR)
   ========================================================================== */
.telemetria-map-wrapper {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
}

.telemetria-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
    gap: 8px;
}

.telemetria-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.telemetria-stat-pill.status-online {
    background: #dcfce7;
    color: #166534;
}

.telemetria-stat-pill.status-online .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.telemetria-map {
    width: 100%;
    height: 220px;
    background: #e2e8f0;
    position: relative;
    z-index: 1;
}

.custom-car-pin {
    background: #4318FF;
    color: white;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(67, 24, 255, 0.4);
    border: 2px solid #ffffff;
    font-size: 14px;
}

.custom-home-pin {
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
    border: 2px solid #ffffff;
    font-size: 13px;
}

/* ==========================================================================
   UNIFICACION ECOSISTEMA HORUS: DARK GLASS CARRIER + MOTOR ESTACIONAL (v9)
   Soporta Conmutacion en Vivo: Portal Dark (Default) <-> Portal Light
   Conserva 100% las particulas y estaciones de login-theme.js
   ========================================================================== */

/* 0. REGLA GLOBAL ANTI-SUBRAYADO Y ALINEACION EN SIDEBAR / MENU INFERIOR */
.bottom-nav a,
.bottom-nav .nav-item,
.bottom-nav .nav-item:link,
.bottom-nav .nav-item:visited,
.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:focus,
.bottom-nav .nav-item:active,
.bottom-nav .nav-item span,
.sidebar-back-web,
.sidebar-back-web:hover,
.sidebar-back-web:focus {
    text-decoration: none !important;
    outline: none !important;
}

.bottom-nav .nav-item span:not(.nav-badge) {
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

/* 1. FONDO Y MALLA TECNICA EN MODO DARK (DEFAULT Y PANTALLA DE LOGIN) */
body:not(.portal-light-mode),
body.login-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #060916 !important;
    color: #f8fafc !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body:not(.portal-light-mode)::before,
body.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Cielo nocturno profundo con auroras estacionales (Dark Mode + Login) */
body:not(.portal-light-mode).theme-primavera,
body.login-page.theme-primavera {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(16, 185, 129, 0.24) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(236, 72, 153, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #040711 0%, #081226 55%, #061c24 100%) !important;
    background-attachment: fixed !important;
}

body:not(.portal-light-mode).theme-verano,
body.login-page.theme-verano {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(121, 40, 202, 0.26) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(245, 158, 11, 0.20) 0%, transparent 55%),
        linear-gradient(135deg, #050613 0%, #110b28 55%, #1c1026 100%) !important;
    background-attachment: fixed !important;
}

body:not(.portal-light-mode).theme-otono,
body.login-page.theme-otono {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(194, 65, 12, 0.24) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(180, 83, 9, 0.20) 0%, transparent 55%),
        linear-gradient(135deg, #06060f 0%, #140c16 55%, #1d110c 100%) !important;
    background-attachment: fixed !important;
}

body:not(.portal-light-mode).theme-invierno,
body.login-page.theme-invierno {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(30, 64, 175, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #04060f 0%, #091326 55%, #0b1c36 100%) !important;
    background-attachment: fixed !important;
}

body:not(.portal-light-mode).theme-navidad,
body.login-page.theme-navidad {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(153, 27, 27, 0.24) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(22, 101, 52, 0.24) 0%, transparent 55%),
        linear-gradient(135deg, #050711 0%, #120a14 55%, #071915 100%) !important;
    background-attachment: fixed !important;
}

body:not(.portal-light-mode).theme-mundial,
body.login-page.theme-mundial {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(14, 165, 233, 0.26) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(56, 189, 248, 0.20) 0%, transparent 55%),
        linear-gradient(135deg, #040712 0%, #081933 55%, #0b2648 100%) !important;
    background-attachment: fixed !important;
}

/* 1B. MODO PORTAL LIGHT (CUANDO EL CLIENTE ELIGE TEMA CLARO EN PREFERENCIAS) */
body.portal-light-mode:not(.login-page) {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: #f4f7fe !important;
    color: #2b3674 !important;
}

body.portal-light-mode:not(.login-page)::before,
body.portal-light-mode:not(.login-page) #particles-canvas {
    display: none !important;
}

/* Nitidez absoluta para el logo blanco en Dark Mode y Login */
.logo-marketing,
body.login-page .login-header img.logo,
body:not(.portal-light-mode) .sidebar-brand-logo {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)) !important;
}

body.portal-light-mode:not(.login-page) .sidebar-brand-logo {
    filter: none !important;
}

/* 2. Barra superior de ecosistema y retorno a redhorus.com.ar */
.login-ecosystem-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    pointer-events: none;
}

body:not(.login-page) .login-ecosystem-bar {
    display: none !important;
}

.ecosystem-back-pill,
.ecosystem-status-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(8, 12, 28, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.ecosystem-back-pill:hover {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(0, 212, 255, 0.45);
    color: #ffffff;
    transform: translateX(-3px);
}

.ecosystem-back-pill i {
    font-size: 1.05rem;
    color: #00d4ff;
}

.ecosystem-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e5a0;
    box-shadow: 0 0 8px #00e5a0;
    animation: pulseDot 2s ease-in-out infinite;
}

/* 3. Chasis de cristal en Login y Seleccion de Cuenta */
body.login-page .login-wrapper {
    background: rgba(8, 12, 28, 0.74) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 70px;
}

.login-marketing {
    background: linear-gradient(155deg, rgba(4, 6, 15, 0.55) 0%, rgba(30, 60, 114, 0.22) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.login-marketing h2,
body.login-page .login-title,
.greeting-text,
.wallet-balance {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    letter-spacing: -0.025em !important;
}

body.login-page #btn-consultar {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #00d4ff 0%, #3a7bd5 55%, #4318FF 100%) !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.28) !important;
}

body.login-page #btn-consultar:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.42) !important;
}

/* 4. Banner PWA Smart en Dark Glass sin tapar el boton Ingresar */
.pwa-smart-banner {
    bottom: 12px !important;
    background: rgba(8, 13, 30, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.32) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 212, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 10px 14px !important;
}

.pwa-banner-logo {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 5px !important;
}

.pwa-banner-title {
    color: #f8fafc !important;
}

.pwa-banner-desc {
    color: #94a3b8 !important;
}

.btn-pwa-action {
    background: linear-gradient(135deg, #00d4ff 0%, #3a7bd5 55%, #4318FF 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.28) !important;
}

.btn-pwa-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.btn-pwa-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ffffff !important;
}

/* 5. Seleccion de Cuenta (#seleccion-cuenta-section) en Dark Glass */
body:not(.portal-light-mode) #seleccion-cuenta-section h2,
body:not(.portal-light-mode) #seleccion-cuenta-section h3,
body:not(.portal-light-mode) #seleccion-cuenta-section p,
body.login-page #seleccion-cuenta-section h2,
body.login-page #seleccion-cuenta-section h3,
body.login-page #seleccion-cuenta-section p {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .cuenta-item,
body.login-page .cuenta-item {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

body:not(.portal-light-mode) .cuenta-item:hover,
body.login-page .cuenta-item:hover {
    background: rgba(22, 34, 62, 0.88) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.22) !important;
    transform: translateY(-2px) !important;
}

body:not(.portal-light-mode) .cuenta-item .cuenta-detalle,
body.login-page .cuenta-item .cuenta-detalle {
    color: #cbd5e1 !important;
}

body:not(.portal-light-mode) .cuenta-item .cuenta-detalle span,
body.login-page .cuenta-item .cuenta-detalle span {
    color: #94a3b8 !important;
    font-weight: 600;
}

body:not(.portal-light-mode) .cuenta-notification-icon svg,
body.login-page .cuenta-notification-icon svg {
    fill: #00d4ff !important;
}

body:not(.portal-light-mode) #seleccion-cuenta-section .footer-acciones,
body.login-page #seleccion-cuenta-section .footer-acciones {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 6. INTERIOR DEL PORTAL (POST-LOGIN / .portal-activo / #resultado-section) */
.login-wrapper.portal-activo {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    z-index: 10;
}

/* Billetera Principal en Portal Dark */
body:not(.portal-light-mode) .app-wallet-header {
    background: linear-gradient(145deg, rgba(10, 17, 40, 0.88) 0%, rgba(18, 35, 78, 0.84) 55%, rgba(67, 24, 255, 0.34) 100%) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    border: 1px solid rgba(0, 212, 255, 0.22) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .wallet-card-main {
    background: rgba(6, 10, 24, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

body:not(.portal-light-mode) .wallet-action-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .wallet-action-btn:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.16) !important;
    border-color: rgba(0, 212, 255, 0.45) !important;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2) !important;
}

body:not(.portal-light-mode) .points-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(10, 15, 34, 0.72) 100%) !important;
    border: 1px solid rgba(250, 204, 21, 0.32) !important;
}

body:not(.portal-light-mode) .service-status-banner {
    background: rgba(6, 10, 24, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .header-status-badge.estado-servicio-activo {
    background: rgba(0, 229, 160, 0.16) !important;
    color: #00e5a0 !important;
    border: 1px solid rgba(0, 229, 160, 0.35) !important;
}

body:not(.portal-light-mode) .header-status-badge.estado-servicio-con-falta-de-pago {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* Marquesina de Novedades y Carrusel Promocional en Portal Dark */
body:not(.portal-light-mode) .news-ticker-container {
    background: rgba(10, 15, 34, 0.82) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

body:not(.portal-light-mode) .news-ticker-label {
    background: linear-gradient(135deg, #00d4ff 0%, #3a7bd5 55%, #4318FF 100%) !important;
    color: #ffffff !important;
}

body:not(.portal-light-mode) .news-ticker-scroll span {
    color: #e2e8f0 !important;
}

body:not(.portal-light-mode) .news-ticker-scroll span i {
    color: #00d4ff !important;
}

body:not(.portal-light-mode) .promo-carousel-wrapper::before {
    background: linear-gradient(to right, rgba(6, 9, 22, 0.9), transparent) !important;
}

body:not(.portal-light-mode) .promo-carousel-wrapper::after {
    background: linear-gradient(to left, rgba(6, 9, 22, 0.9), transparent) !important;
}

body:not(.portal-light-mode) .promo-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

/* 7. Menu de Navegacion (.bottom-nav): Sidebar en PC y Barra en Movil */
.sidebar-brand-desktop {
    display: none;
}

@media (min-width: 769px) {
    .sidebar-brand-desktop {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        padding: 0 26px 20px 26px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sidebar-brand-logo {
        max-height: 44px;
        width: auto;
        max-width: 185px;
        object-fit: contain;
    }

    .sidebar-back-web {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.76rem;
        font-weight: 600;
        color: #00d4ff;
        text-decoration: none !important;
        opacity: 0.88;
        transition: all 0.2s ease;
    }

    .sidebar-back-web:hover {
        opacity: 1;
        transform: translateX(-2px);
    }

    /* Sidebar en Portal Dark */
    body:not(.portal-light-mode) .bottom-nav {
        background: rgba(7, 11, 26, 0.88) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5) !important;
        padding-top: 24px !important;
    }

    body:not(.portal-light-mode) .sidebar-back-web:hover {
        color: #ffffff;
    }

    body:not(.portal-light-mode) .bottom-nav .nav-item {
        color: #94a3b8 !important;
        border-left: 4px solid transparent;
    }

    body:not(.portal-light-mode) .bottom-nav .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: #f8fafc !important;
        border-left: 4px solid rgba(0, 212, 255, 0.5) !important;
    }

    body:not(.portal-light-mode) .bottom-nav .nav-item.active {
        background: linear-gradient(90deg, rgba(0, 212, 255, 0.14) 0%, transparent 100%) !important;
        color: #00d4ff !important;
        border-left: 4px solid #00d4ff !important;
    }

    body:not(.portal-light-mode) .btn-qr-pay {
        background: linear-gradient(135deg, #00d4ff 0%, #3a7bd5 55%, #4318FF 100%) !important;
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.28) !important;
    }

    /* Sidebar en Portal Light */
    body.portal-light-mode:not(.login-page) .bottom-nav {
        background: #ffffff !important;
        border-right: 1px solid #e2e8f0 !important;
        box-shadow: 4px 0 20px rgba(15, 23, 42, 0.05) !important;
        padding-top: 24px !important;
    }

    body.portal-light-mode:not(.login-page) .sidebar-brand-desktop {
        border-bottom: 1px solid #f1f5f9 !important;
    }

    body.portal-light-mode:not(.login-page) .sidebar-back-web {
        color: #4318FF !important;
    }

    body.portal-light-mode:not(.login-page) .sidebar-back-web:hover {
        color: #1e3c72 !important;
    }

    body.portal-light-mode:not(.login-page) .bottom-nav .nav-item {
        color: #64748b !important;
        border-left: 4px solid transparent;
    }

    body.portal-light-mode:not(.login-page) .bottom-nav .nav-item:hover {
        background-color: #f8fafc !important;
        color: #1e3c72 !important;
        border-left: 4px solid #4318FF !important;
    }

    body.portal-light-mode:not(.login-page) .bottom-nav .nav-item.active {
        background: linear-gradient(90deg, rgba(67, 24, 255, 0.08) 0%, transparent 100%) !important;
        color: #4318FF !important;
        border-left: 4px solid #4318FF !important;
    }
}

@media (max-width: 768px) {
    .sidebar-brand-desktop {
        display: none !important;
    }

    body:not(.portal-light-mode) .bottom-nav {
        background-color: rgba(8, 12, 28, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6) !important;
    }

    body:not(.portal-light-mode) .bottom-nav .nav-item {
        color: #94a3b8 !important;
    }

    body:not(.portal-light-mode) .bottom-nav .nav-item.active {
        color: #00d4ff !important;
    }

    body:not(.portal-light-mode) .btn-qr-pay {
        background: linear-gradient(135deg, #00d4ff 0%, #3a7bd5 55%, #4318FF 100%) !important;
        box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4) !important;
    }
}

/* 8. Paneles Deslizables (.slide-panel: Facturas, Pedidos, Hitcoins, Perfil, Referidos) en Portal Dark */
body:not(.portal-light-mode) .slide-panel,
body:not(.portal-light-mode) .slide-panel-left {
    background-color: rgba(7, 11, 26, 0.96) !important;
    backdrop-filter: blur(26px) !important;
    -webkit-backdrop-filter: blur(26px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6) !important;
}

body:not(.portal-light-mode) .slide-header {
    background: linear-gradient(135deg, rgba(12, 20, 46, 0.96) 0%, rgba(30, 58, 118, 0.92) 100%) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body:not(.portal-light-mode) .slide-content .dashboard-container.card,
body:not(.portal-light-mode) .premium-profile-card,
body:not(.portal-light-mode) .order-tracking-card,
body:not(.portal-light-mode) .qp-bento-card {
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

body:not(.portal-light-mode) .slide-content h2,
body:not(.portal-light-mode) .slide-content h3,
body:not(.portal-light-mode) .slide-content h4,
body:not(.portal-light-mode) .premium-name,
body:not(.portal-light-mode) .order-type-title,
body:not(.portal-light-mode) .oit-detail-val,
body:not(.portal-light-mode) .qp-deuda-monto,
body:not(.portal-light-mode) .qp-invoice-number {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .slide-content p,
body:not(.portal-light-mode) .premium-detail-label,
body:not(.portal-light-mode) .order-meta-info,
body:not(.portal-light-mode) .qp-deuda-detalle {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .premium-detail-value {
    color: #e2e8f0 !important;
}

body:not(.portal-light-mode) .premium-profile-header,
body:not(.portal-light-mode) .order-tracking-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.portal-light-mode) .premium-client-badge {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

body:not(.portal-light-mode) .premium-icon-box,
body:not(.portal-light-mode) .oit-detail-icon {
    background: rgba(0, 212, 255, 0.12) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.22) !important;
}

body:not(.portal-light-mode) .oit-detail-box,
body:not(.portal-light-mode) .telemetria-map-wrapper,
body:not(.portal-light-mode) .telemetria-stats-bar {
    background: rgba(8, 12, 28, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body:not(.portal-light-mode) .order-meta-badge,
body:not(.portal-light-mode) .telemetria-stat-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-light-mode) .timeline-step-node {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .timeline-step-item:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Tablas de Facturas y Comprobantes en Portal Dark */
body:not(.portal-light-mode) .tabla-facturas-responsive thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .tabla-facturas-responsive tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

body:not(.portal-light-mode) .tabla-facturas-responsive tbody tr td {
    color: #e2e8f0 !important;
}

/* Perfil: Tabs y Switches de Notificaciones en Portal Dark */
body:not(.portal-light-mode) .profile-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .profile-tab-btn {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .profile-tab-btn.active {
    color: #00d4ff !important;
    border-bottom-color: #00d4ff !important;
}

body:not(.portal-light-mode) .switch-list {
    background: rgba(8, 12, 28, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.portal-light-mode) .switch-container {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .switch-container:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

body:not(.portal-light-mode) .switch-container strong {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .switch-container span {
    color: #94a3b8 !important;
}

/* Referidos: Input de Link y Lista de Invitados en Portal Dark */
body:not(.portal-light-mode) #panel-referidos input#referral-link-input {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) #panel-referidos .dashboard-container.card div[style*="background: #f1f5f9"] {
    background: rgba(8, 12, 28, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body:not(.portal-light-mode) #lista-referidos-status strong {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) #lista-referidos-status span {
    color: #94a3b8;
}

/* 9. Dropdown de Notificaciones, Action Sheet de Salida y Modales en Portal Dark */
body:not(.portal-light-mode) #notification-panel {
    background: rgba(10, 15, 34, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

body:not(.portal-light-mode) #notification-panel > div:first-child {
    background: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #00d4ff !important;
}

body:not(.portal-light-mode) #notification-list,
body:not(.portal-light-mode) #notification-list .notification-item {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body:not(.portal-light-mode) #notification-list .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body:not(.portal-light-mode) #notification-list .notification-item.unread {
    background-color: rgba(0, 212, 255, 0.12) !important;
}

body:not(.portal-light-mode) .action-sheet {
    background: rgba(10, 15, 34, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .action-sheet-header h3 {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .action-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .action-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .action-btn.btn-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

body:not(.portal-light-mode) .action-btn.btn-cancel {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .modal-content,
body.login-page .modal-content {
    background: rgba(10, 16, 36, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

body:not(.portal-light-mode) .modal-content h2,
body:not(.portal-light-mode) .modal-content h3,
body:not(.portal-light-mode) .modal-content strong,
body.login-page .modal-content h2,
body.login-page .modal-content h3,
body.login-page .modal-content strong {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .modal-content p,
body:not(.portal-light-mode) .modal-ayuda-subtitle,
body.login-page .modal-content p {
    color: #cbd5e1 !important;
}

body:not(.portal-light-mode) .modal-content .modal-close,
body.login-page .modal-content .modal-close {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .modal-content .modal-close:hover,
body.login-page .modal-content .modal-close:hover {
    color: #ffffff !important;
}

body:not(.portal-light-mode) .wa-card {
    background: rgba(15, 23, 42, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .wa-card:hover {
    background: rgba(22, 34, 62, 0.95) !important;
    border-color: #25D366 !important;
}

body:not(.portal-light-mode) .wa-card-left {
    background: rgba(0, 212, 255, 0.12) !important;
    color: #00d4ff !important;
}

body:not(.portal-light-mode) .wa-card-center strong {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .wa-card-center span {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .plan-card-upgrade {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .plan-image-container {
    background: linear-gradient(to bottom, rgba(8, 12, 28, 0.8), rgba(15, 23, 42, 0.9)) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body:not(.portal-light-mode) .plan-title {
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .plan-beneficio {
    color: #94a3b8 !important;
}

body:not(.portal-light-mode) .plan-precio-box .precio-numero {
    color: #00d4ff !important;
}

body:not(.portal-light-mode) .btn-seleccionar-plan {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

body:not(.portal-light-mode) .plan-actual-card,
body:not(.portal-light-mode) #step-dni-container,
body:not(.portal-light-mode) #step-router-container,
body:not(.portal-light-mode) #notif-detalle-mensaje,
body:not(.portal-light-mode) .hitcoins-disclaimer-box {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #e2e8f0 !important;
    border-color: #00d4ff !important;
}

body:not(.portal-light-mode) .plan-actual-card h4,
body:not(.portal-light-mode) #step-dni-container h4,
body:not(.portal-light-mode) #step-router-container h4 {
    color: #00d4ff !important;
}

body:not(.portal-light-mode) #step-dni-container p,
body:not(.portal-light-mode) #step-router-container p {
    color: #cbd5e1 !important;
}

body:not(.portal-light-mode) .qp-invoice-item {
    background: rgba(8, 12, 28, 0.72) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body:not(.portal-light-mode) .qp-invoice-list {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body:not(.portal-light-mode) .qp-btn-transfer {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   10. SELECTOR INTERACTIVO DE TEMA EN MI PERFIL -> PREFERENCIAS
   ========================================================================== */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 6px;
}

.theme-option-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    border: 2px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

body.portal-light-mode:not(.login-page) .theme-option-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.theme-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.5);
}

.theme-option-card.active {
    border-color: #00d4ff !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2) !important;
    background: rgba(0, 212, 255, 0.08) !important;
}

body.portal-light-mode:not(.login-page) .theme-option-card.active {
    border-color: #4318FF !important;
    box-shadow: 0 8px 25px rgba(67, 24, 255, 0.14) !important;
    background: rgba(67, 24, 255, 0.05) !important;
}

.theme-preview {
    height: 68px;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #050816 0%, #0d1b3a 100%);
}

.theme-preview-dark .tp-sidebar {
    width: 24%;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 6px;
    border-right: 1px solid rgba(0, 212, 255, 0.3);
}

.theme-preview-dark .tp-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(16, 32, 72, 0.9), rgba(67, 24, 255, 0.45));
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.theme-preview-dark .tp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e5a0;
    box-shadow: 0 0 6px #00e5a0;
}

.theme-preview-dark .tp-bar {
    height: 6px;
    width: 70%;
    border-radius: 4px;
    background: #00d4ff;
}

.theme-preview-light {
    background: #e9edf7;
    border-color: #cbd5e1;
}

.theme-preview-light .tp-sidebar {
    width: 24%;
    background: #ffffff;
    border-radius: 6px;
    border-right: 1px solid #cbd5e1;
}

.theme-preview-light .tp-card {
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.theme-preview-light .tp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4318FF;
}

.theme-preview-light .tp-bar {
    height: 6px;
    width: 70%;
    border-radius: 4px;
    background: #1e3c72;
}

.theme-option-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-right: 22px;
}

.theme-option-meta strong {
    font-size: 0.9rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.portal-light-mode:not(.login-page) .theme-option-meta strong {
    color: #1e293b;
}

.theme-option-meta span {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.3;
}

body.portal-light-mode:not(.login-page) .theme-option-meta span {
    color: #64748b;
}

.theme-check-icon {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 1rem;
    color: #00d4ff;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.2s ease;
}

body.portal-light-mode:not(.login-page) .theme-check-icon {
    color: #4318FF;
}

.theme-option-card.active .theme-check-icon {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .login-ecosystem-bar {
        top: 12px;
        width: calc(100% - 28px);
    }
    .ecosystem-back-pill,
    .ecosystem-status-pill {
        padding: 5px 11px;
        font-size: 0.72rem;
    }
    body.login-page .login-wrapper {
        margin-bottom: 0;
        padding-bottom: 95px !important;
    }
    .theme-selector-grid {
        grid-template-columns: 1fr;
    }
}