﻿/* =========================================
   PALETA DE COLORES Y VARIABLES ORIGINALES
   ========================================= */
:root {
    --gold-primary: rgba(167, 145, 72, 1);
    --gold-transparent: rgba(167, 145, 72, 0.2);
    --dark-1: rgba(15, 20, 25, 1);
    --dark-2: rgba(30, 35, 40, 1);
    --white: #ffffff;
    --gold-hover: #c2a855; 
    --light-bg: #f4f6f8;
    --text-dark: #333333;
    --text-gray: #555555;
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    cursor: pointer; 
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    /*border:#721c24 solid 3px;*/
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.btn-outline-gold:hover {
    background: var(--gold-hover);
    color: #fff;
}
/* =========================================
   DISEÑO ELEGANTE PARA SELECTS (LUMA NEXUS)
   ========================================= */
select {
    width: 100%;
    padding: 10px 35px 10px 15px; /* Espacio extra a la derecha para la flecha */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--dark-1, #333);
    background-color: #fcfcfc;
    border: 1px solid #ccc;
    border-radius: 6px;
    
    /* 1. Ocultamos la flecha nativa fea del navegador */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* 2. Inyectamos nuestra propia flecha dorada usando un SVG en Base64 */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a79148'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    
    /* 3. Transiciones suaves y sombra base */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
}

/* Efecto cuando pasas el mouse por encima */
select:hover {
    border-color: var(--gold-primary, #a79148);
    background-color: #ffffff;
}

/* Efecto cuando haces clic para abrirlo (Focus) */
select:focus {
    outline: none;
    border-color: var(--gold-primary, #a79148);
    background-color: #ffffff;
    /* Anillo de luz dorado alrededor del select */
    box-shadow: 0 0 0 3px rgba(167, 145, 72, 0.2); 
}

/* Efecto para selects deshabilitados o de solo lectura */
select:disabled, select[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: #888;
    border-color: #ddd;
    /* Ponemos la flecha gris para indicar que está inactivo */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
header {
    background-color: var(--dark-1);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--gold-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--white);
    margin-left: 30px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(rgba(15, 20, 25, 0.85), rgba(30, 35, 40, 0.9)), url('../Imagenes/mejoramiento.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.hero-columns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--gold-primary);
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #d1d1d1;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--dark-1);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

.hero-video {
    flex: 1;
    width: 100%;
}

.hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 2px solid var(--gold-primary);
    background-color: #000;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 900px) {
    .hero-columns {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .hero-text {
        text-align: center;
    }
    .hero {
        min-height: auto; 
    }
}

/* =========================================
   SECCIÓN ECOSISTEMA 
   ========================================= */
.ecosystem {
    background: linear-gradient(180deg, rgba(12, 17, 23, 0.90) 0%, rgba(18, 24, 32, 0.88) 50%, rgba(12, 17, 23, 0.94) 100%), url('../Imagenes/mejoramiento.webp') center/cover fixed no-repeat;
    padding: 85px 0 95px;
    color: var(--white);
    border-top: 1px solid rgba(167, 145, 72, 0.25);
    border-bottom: 1px solid rgba(167, 145, 72, 0.25);
}

.ecosystem .section-title {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark-1);
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold-primary);
    margin: 15px auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    border-radius: 12px;
    padding: 160px 24px 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 330px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Etiqueta "App Android": solo en programas con APK registrado; lleva a #descargas */
.card-apk-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--gold-primary);
    background: rgba(15, 20, 25, 0.6);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    z-index: 2;
}
.card-apk-tag .material-icons { font-size: 14px; }
.card-apk-tag:hover { background: var(--gold-primary); color: #14181c; }
.luma-app-card { position: relative; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--gold-transparent);
    border-color: var(--gold-hover);
}

.card h3 {
    display: none; /* Oculto: el título ya está diagramado con alta calidad dentro de la imagen de fondo */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card p {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.45;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.8);
    font-weight: 500;
    margin: 0 0 16px;
}

.bg-arkiva { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_arkiva.webp') center/cover no-repeat; }
.bg-lumacall { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_lumacall.webp') center/cover no-repeat; }
.bg-lumacar { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_lumacar.webp') center/cover no-repeat; }
.bg-stockwise { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_stockwise.webp') center/cover no-repeat; }
.bg-acaestoy { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_acaestoy.webp') center/cover no-repeat; }
.bg-estoycontigo { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_estoycontigo.webp') center/cover no-repeat; }
.bg-tuangel { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/fondo_teescuchamos.webp') center/cover no-repeat; }
.bg-auditoria { background: linear-gradient(to bottom, rgba(15, 20, 25, 0.08) 0%, rgba(15, 20, 25, 0.22) 50%, rgba(10, 15, 22, 0.82) 100%), url('../Imagenes/img_auditoria.png') center/cover no-repeat; }

/* =========================================
   BOTONES DE TARJETA (VER MÁS)
   ========================================= */
.btn-card {
    margin-top: 25px;
    padding: 10px 25px;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background-color: rgba(15, 20, 25, 0.6);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: center;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.btn-card:hover {
    background-color: var(--gold-primary);
    color: var(--dark-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 145, 72, 0.4);
}

/* =========================================
   DIFERENCIAL / COMPARATIVO
   ========================================= */
.comparative {
    background-color: var(--dark-2);
    color: var(--white);
    padding: 100px 0;
    border-top: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.comparative .section-title {
    color: var(--white);
    margin-bottom: 60px;
}

/* Tarjetas de Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: var(--dark-1);
    padding: 35px 20px;
    border-radius: 12px;
    border-bottom: 4px solid var(--gold-primary);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(167, 145, 72, 0.15);
}

.stat-card h4 {
    font-size: 50px;
    color: var(--gold-primary);
    margin-bottom: 10px;
    line-height: 1;
    font-weight: 700;
}

.stat-card h5 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 14px;
    color: #aaaaaa;
}



/* =========================================
   TABLAS DE DATOS (ALTO CONTRASTE - BACKEND)
   ========================================= */
.table-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e1e1;
    overflow-x: auto;
}

.impact-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--white); /* Fondo blanco puro para los datos */
}

/* Encabezados de la tabla */
.impact-table th {
    background-color: var(--dark-1); /* Fondo oscuro */
    color: var(--white); /* Texto blanco */
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border-bottom: 3px solid var(--gold-primary); /* Línea dorada divisoria */
}

/* Celdas de información */
.impact-table td {
    padding: 15px 20px;
    color: #222222; /* Texto casi negro para máxima lectura */
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #e5e5e5; /* Línea separadora suave */
    transition: background-color 0.2s ease;
}

/* Columna destacada (El documento) */
.impact-table td.highlight {
    background-color: rgba(167, 145, 72, 0.05); /* Fondo dorado muy sutil */
    color: var(--dark-1);
    font-weight: 700;
    border-left: none;
    border-right: none;
}

/* Efecto al pasar el mouse por encima de la fila */
.impact-table tr:hover td {
    background-color: rgba(167, 145, 72, 0.15); /* Resalte dorado claro */
    cursor: default;
}

/* Íconos dentro de la tabla */
.impact-table td i.material-icons {
    color: #666666;
    margin-right: 5px;
}

/* ============================================
    SECCIÓN LUMA PERSONAL APPS (UNIFICADA)
=========================================*/
.luma-personal-apps {
    background: linear-gradient(180deg, rgba(15, 20, 26, 0.92) 0%, rgba(20, 26, 35, 0.89) 50%, rgba(12, 17, 23, 0.94) 100%), url('../Imagenes/banner-lumaresa.png') center/cover fixed no-repeat;
    color: var(--white);
    padding: 85px 0;
    border-top: 1px solid rgba(167, 145, 72, 0.25);
    border-bottom: 1px solid rgba(167, 145, 72, 0.25);
}

.luma-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.luma-badge {
    background-color: rgba(167, 145, 72, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.luma-section-header h2 {
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.luma-section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold-primary);
    margin: 15px auto 0;
}

.luma-section-header p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.luma-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.luma-app-card {
    background-color: var(--dark-1);
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--white);
}

.luma-app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--gold-transparent);
    border-color: var(--gold-hover);
}

.luma-card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    border: 1px solid var(--gold-primary);
}

.luma-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.luma-card-content h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: var(--gold-primary);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.luma-tag-dev {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    opacity: 0.8;
    display: block;
}

.luma-card-content p {
    color: #f4f6f8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.luma-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex-grow: 1;
}

.luma-card-features li {
    color: #d1d1d1;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.luma-card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

.luma-btn {
    text-align: center;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.luma-btn-accent {
    background-color: var(--gold-primary);
    color: var(--dark-1);
}

.luma-btn-accent:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

/* =========================================
   SECCIÓN LUMA PERSONAL APPS - AVISO LEGAL REINVENTADO
   ========================================= */
.luma-legal-notice {
    margin-top: 60px;
    padding: 0 10px;
}

.luma-legal-box {
    position: relative;
    background: linear-gradient(135deg, rgba(167, 145, 72, 0.08) 0%, rgba(30, 35, 40, 0.4) 100%);
    border: 1px solid rgba(167, 145, 72, 0.3);
    border-left: 6px solid var(--gold-primary);
    padding: 30px 40px 30px 70px; /* Espacio a la izquierda para el ícono absoluto */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto sutil al pasar el mouse por encima del aviso legal */
.luma-legal-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(167, 145, 72, 0.1);
    border-color: var(--gold-hover);
}

/* Ícono flotante decorativo en el fondo */
.luma-legal-box::before {
    content: "🛡️";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    animation: pulse-shield 3s infinite ease-in-out;
}

/* Destello de luz decorativo de fondo */
.luma-legal-box::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(167, 145, 72, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.luma-legal-box p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Resaltamos el título dentro del texto con tu color ocre/dorado */
.luma-legal-box .legal-title {
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-right: 5px;
}

.luma-legal-box strong {
    color: var(--dark-1);
    font-weight: 700;
}

/* Animación suave para el escudo para darle "vida" y alegría a la sección */
@keyframes pulse-shield {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.08); filter: drop-shadow(0 2px 10px rgba(167, 145, 72, 0.4)); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Ajuste responsive para pantallas pequeñas */
@media (max-width: 580px) {
    .luma-legal-box {
        padding: 65px 25px 25px 25px;
        text-align: center;
    }
    .luma-legal-box::before {
        left: 50%;
        top: 35px;
        transform: translate(-50%, -50%);
        font-size: 36px;
    }
    @keyframes pulse-shield {
        0% { transform: translate(-50%, -50%) scale(1); }
        50% { transform: translate(-50%, -50%) scale(1.08); }
        100% { transform: translate(-50%, -50%) scale(1); }
    }
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(rgba(15, 20, 25, 0.45), rgba(30, 35, 40, 0.9)), url('../Imagenes/asesoria.png') center/cover no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .luma-section-header h2 {
        font-size: 2rem;
    }
    .luma-personal-apps {
        padding: 50px 15px;
    }
    .luma-apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Información de Contacto */
.contact-info {
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: rgba(15, 20, 25, 0.85);
}

.contact-info h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--white);
    margin-bottom: 30px;
    font-style: italic;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--white);
}

.contact-info ul li strong {
    color: var(--gold-primary);
    margin-right: 10px;
    font-size: 20px;
}

.contact-form {
    background-color: var(--dark-1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--gold-primary);
}

.contact-form h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: var(--dark-2);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 16px;
}

/* =========================================
   FOOTER
   ========================================= */
footer.main-footer {
    background-color: var(--dark-2);
    color: #aaaaaa;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* =========================================
    BOTÓN FLOTANTE PQRS (protagonista: es el canal del cliente)
    ========================================= */
.pqr-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    height: 56px;
    padding: 0 24px 0 18px;
    background: var(--gold-primary);
    color: var(--dark-1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(167, 145, 72, 0.6);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    animation: pqr-llamado 2.4s ease-out 1s 3;   /* tres pulsos al cargar, luego quieto */
}

.pqr-floating-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.pqr-floating-btn:hover,
.pqr-floating-btn:focus-visible {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(167, 145, 72, 0.45);
}
.pqr-floating-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

@keyframes pqr-llamado {
    0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(167, 145, 72, 0.6); }
    70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 16px rgba(167, 145, 72, 0); }
    100% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(167, 145, 72, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .pqr-floating-btn { animation: none; }
}
/* =========================================
    BOTÓN FLOTANTE (ACCESO BACKEND)
    ========================================= */
.floating-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--dark-1);
    color: var(--gold-primary);
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--gold-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.floating-btn:hover {
    background-color: var(--gold-primary);
    color: var(--dark-1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(167, 145, 72, 0.4);
}

/* Icono SVG para el botón */
.floating-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.floating-btn:hover svg {
    transform: scale(1.1);
}

/* Ajuste para celulares (hacerlo un poco más pequeño) */
@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* =========================================
    BACKEND DISCRETO (páginas con botón PQRS)
    Solo el candado; el texto se despliega al pasar el mouse o con el teclado.
    ========================================= */
.floating-btn--discreto {
    bottom: 92px;
    right: 24px;
    height: 44px;
    min-width: 44px;
    padding: 0 11px;
    gap: 0;
    border-width: 1px;
    font-size: 12px;
    background-color: rgba(15, 20, 25, 0.85);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.floating-btn--discreto .floating-btn__texto {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}
.floating-btn--discreto:hover,
.floating-btn--discreto:focus-visible {
    transform: none;
    padding: 0 16px 0 11px;
}
.floating-btn--discreto:hover .floating-btn__texto,
.floating-btn--discreto:focus-visible .floating-btn__texto {
    max-width: 160px;
    opacity: 1;
    margin-left: 8px;
}
.floating-btn--discreto:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

@media (max-width: 768px) {
    .pqr-floating-btn {
        bottom: 16px;
        right: 16px;
        height: 52px;
        padding: 0 20px 0 16px;
        font-size: 14px;
    }
    .floating-btn--discreto {
        bottom: 80px;
        right: 16px;
        padding: 0 11px;
    }
}

/* =========================================
   SECCIÓN INGRESO (LUMA NEXUS)
   ========================================= */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Usa la misma estética del Hero, pero con un fondo neutro o una imagen sutil */
    background: linear-gradient(rgba(15, 20, 25, 0.9), rgba(30, 35, 40, 0.95)), url('../Imagenes/mejoramiento.png') center/cover;
    padding: 20px;
}

.login-card {
    background-color: var(--dark-1);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
}

.login-card .logo-img {
    width: 90px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 5px 15px rgba(167, 145, 72, 0.2);
}

.login-card h1 {
    color: var(--gold-primary);
    font-size: 26px;
    margin-bottom: 10px;
}

.login-card p {
    color: #d1d1d1;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-card .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-card .form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Modificamos los inputs para usar las variables globales */
.login-card .form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-2);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

.login-links {
    margin-top: 25px;
    font-size: 13px;
    color: #aaaaaa;
}

.login-links a {
    color: var(--gold-primary);
    transition: color 0.3s;
    font-weight: 600;
}

.login-links a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

#resvalida1 {
    margin-top: 20px;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    display: none; /* Oculto por defecto, JS lo muestra si hay error */
}

/* =========================================
   MODAL TÉRMINOS Y CONDICIONES
   ========================================= */
.modal-container {
    display: none; /* Oculto inicialmente para jQuery */
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--dark-2);
}

.modal-content {
    background-color: var(--dark-1);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    overflow: hidden;
}

.modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(167, 145, 72, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header img {
    width: 40px;
    border-radius: 50%;
}

.modal-header h5 {
    color: var(--gold-primary);
    font-size: 18px;
    margin: 0;
}

.modal-body {
    flex-grow: 1;
    padding: 0;
    background-color: #fff; /* Mantiene legibilidad de documentos */
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(167, 145, 72, 0.3);
    text-align: center;
    background-color: var(--dark-1);
}
/* =========================================
   DOCUMENTOS LEGALES (TÉRMINOS Y CONDICIONES)
   ========================================= */
.body-legal {
    background-color: var(--light-bg);
    padding: 30px 15px;
}

.document-container {
    background-color: var(--white);
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--gold-primary);
}

.document-container h1, 
.document-container h2, 
.document-container h3 {
    color: var(--dark-1);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

.document-container h1 {
    color: var(--gold-primary);
    text-align: center;
    font-size: 28px;
    border-bottom: 1px solid rgba(167, 145, 72, 0.3);
    padding-bottom: 10px;
}

.document-container p {
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: justify;
}

.document-container ul, 
.document-container ol {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

.document-container li {
    margin-bottom: 8px;
}

.document-container strong {
    color: var(--dark-1);
}

/* Scrollbar personalizada (aplicará a todo el sitio) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}
/* =========================================
   RECUPERAR CONTRASEÑA (MODAL)
   ========================================= */
.recovery-container {
    background-color: var(--white);
    max-width: 450px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--gold-primary);
    text-align: center;
}

.recovery-container img {
    width: 90px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    padding: 5px;
}

.recovery-container h2 {
    color: var(--dark-1);
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.recovery-container p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.recovery-container .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.recovery-container .form-group label {
    display: block;
    color: var(--dark-1);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.recovery-container .form-group input {
    width: 100%;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.recovery-container .form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: var(--white);
}

.recovery-container .btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    font-size: 15px;
}

#respuesta {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Oculto hasta que haya respuesta de JS */
    font-weight: 600;
}

/* =========================================
   DASHBOARD / MENU PRINCIPAL (BACKEND)
   ========================================= */
.dash-layout {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background-color: var(--light-bg);
}

/* --- Barra Lateral (Sidebar) con Ancho Fijo Rígido Anti-Deformaciones --- */
.dash-sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--dark-1);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: width 0.25s ease, min-width 0.25s ease, max-width 0.25s ease;
}

/* Scrollbar sutil y delgado para el sidebar */
.dash-sidebar::-webkit-scrollbar {
    width: 5px;
}
.dash-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.dash-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.dash-logo-area {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(167, 145, 72, 0.2);
    flex-shrink: 0;
    transition: padding 0.25s ease;
}

.dash-logo-area img {
    width: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

.dash-logo-area h3 {
    color: var(--gold-primary);
    font-size: 17px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-menu {
    flex-grow: 1;
    padding: 12px 0;
    list-style: none;
    margin: 0;
}

.dash-menu li a {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-size: 13.5px;
    font-weight: 600;
    border-left: 4px solid transparent; /* Evita que el menú brinque o cambie de ancho */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-menu li a i {
    margin-right: 14px;
    font-size: 20px;
    flex-shrink: 0;
    text-align: center;
    width: 22px;
}

.dash-menu li a:hover, .dash-menu li a.active {
    background-color: rgba(167, 145, 72, 0.12);
    color: var(--gold-primary);
    border-left: 4px solid var(--gold-primary);
}

/* --- MODO COLAPSADO (Solo Iconos con Tooltip) --- */
.dash-sidebar.colapsado {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
}
.dash-sidebar.colapsado .dash-logo-area {
    padding: 12px 6px;
}
.dash-sidebar.colapsado .dash-logo-area img {
    width: 36px;
    margin-bottom: 0;
}
.dash-sidebar.colapsado .dash-logo-area h3,
.dash-sidebar.colapsado .dash-menu li a span,
.dash-sidebar.colapsado .menu-sep-texto {
    display: none !important;
}
.dash-sidebar.colapsado .dash-menu li a {
    padding: 12px 0;
    justify-content: center;
}
.dash-sidebar.colapsado .dash-menu li a i {
    margin-right: 0;
    font-size: 22px;
}
.dash-sidebar.colapsado #btn-toggle-sidebar {
    position: static !important;
    margin: 8px auto 0 !important;
}

/* --- Área Principal (Eliminación definitiva del doble scrollbar) --- */
.dash-main {
    flex-grow: 1;
    min-width: 0; /* Previene que tablas anchas empujen o estiren el sidebar */
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.dash-header {
    flex-shrink: 0;
    background-color: var(--white);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

.dash-header h2 {
    color: var(--dark-1);
    font-size: 19px;
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-1);
    font-weight: 600;
}

.btn-logout {
    background-color: #f8d7da;
    color: #721c24;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background-color: #f5c6cb;
}

/* --- Contenido del Dashboard (Desplazamiento vertical fluido) --- */
.dash-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 28px 30px;
}

/* Scrollbar moderno para el contenido */
.dash-content::-webkit-scrollbar {
    width: 8px;
}
.dash-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dash-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cabecera pegajosa / fija del módulo:
   Mantiene el título, selectores, botones y pestañas (dashboard, tendencias, etc.)
   100% fijos en la parte superior sin perderse, mientras todo el contenido inferior
   (KPIs, gráficas, semáforos, tablas, reportes) se desplaza suavemente. */
.dash-cabecera-fija {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--light-bg);
    padding-top: 18px;
    padding-bottom: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}
.dash-cabecera-fija .dash-section-title {
    margin-bottom: 10px;
}
.dash-cabecera-fija .seg-pestanas,
.dash-cabecera-fija .lum-pestanas,
.dash-cabecera-fija .cop-tabs {
    margin-bottom: 0 !important;
}

/* Para módulos sin .dash-cabecera-fija, asegurar espaciado superior */
.dash-content > .dash-section-title:first-child,
.dash-content > div:first-child > .dash-section-title:first-child:not(.dash-cabecera-fija *) {
    padding-top: 18px;
}
.dash-content > .lum-pestanas:first-child,
.dash-content > .seg-pestanas:first-child,
.dash-content > .cop-tabs:first-child {
    padding-top: 18px;
}

/* Resumen Operativo */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-stat-card .info h4 {
    margin: 0;
    font-size: 28px;
    color: var(--dark-1);
}

.dash-stat-card .info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
}

.dash-stat-card i {
    font-size: 40px;
    color: var(--gold-transparent);
}

/* Cuadrícula de Módulos (Luma Nexus) */
.dash-section-title {
    color: var(--dark-1);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.dash-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.dash-module-card {
    background-color: var(--dark-1);
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.dash-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(167, 145, 72, 0.2);
    background-color: var(--dark-2);
}

.dash-module-card i {
    font-size: 50px;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.dash-module-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.dash-module-card p {
    margin: 0;
    font-size: 13px;
    color: #aaaaaa;
}
.dash-header {
    background-color: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* Agregamos estas tres líneas de seguridad */
    position: relative;
    flex-shrink: 0;
    width: 100%;
}
/* =========================================
   TARJETAS DE CONTENIDO (MÓDULOS INTERNOS)
   ========================================= */
.panel-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f2 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(15, 20, 25, 0.06);
    border: 1px solid rgba(167, 145, 72, 0.22);
    border-top: 4px solid var(--gold-primary);
    color: var(--text-dark);
}

.panel-card h3 {
    color: var(--dark-1);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid rgba(167, 145, 72, 0.25);
    padding-bottom: 10px;
}


/* =========================================
   FORMULARIOS DEL BACKEND (LUMA NEXUS) - ESTILO CORPORATIVO CÁLIDO
   ========================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.form-group-dash {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group-dash label,
.modulo-card .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--dark-1);
    background: linear-gradient(90deg, rgba(167, 145, 72, 0.18) 0%, rgba(167, 145, 72, 0.04) 100%);
    border-left: 3px solid var(--gold-primary);
    padding: 5px 10px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 2px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.form-group-dash:focus-within label,
.modulo-card .form-group:focus-within label {
    background: linear-gradient(90deg, rgba(167, 145, 72, 0.30) 0%, rgba(167, 145, 72, 0.08) 100%);
    border-left-color: var(--dark-1);
    color: #000000;
}

.form-group-dash input, 
.form-group-dash select {
    padding: 11px 12px;
    border: 1px solid #b8b09c;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111827;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(15, 20, 25, 0.05);
}

.form-group-dash input:focus, 
.form-group-dash select:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: #fffdf9;
    box-shadow: 0 0 0 3px rgba(167, 145, 72, 0.22);
}

/* Campos numéricos (valores, orden, documentos/NIT, cantidades) alineados a la derecha; teléfonos permanecen a la izquierda */
.form-group-dash input[type="number"],
.form-group-dash input.input-num,
.form-group-dash input[name="documento"],
.form-group-dash input[name="id_documento"],
.form-group-dash input[name="vr_venta"],
.form-group-dash input[name="orden"],
.form-group-dash input[name*="valor"],
.form-group-dash input[name*="precio"],
.form-group-dash input[name*="monto"],
.form-group-dash input[name*="cantidad"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.form-group-dash input[type="tel"],
.form-group-dash input[name*="celular"],
.form-group-dash input[name*="telefono"] {
    text-align: left !important;
}

.file-upload-wrapper {
    grid-column: 1 / -1; 
    border: 2px dashed #555555; /* Borde punteado más visible */
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background-color: #f0f2f5; /* Un gris sutil para diferenciar la zona de carga */
    transition: border-color 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--gold-primary);
    background-color: #ffffff;
}
/* =========================================
   SUBMENÚS DE LA BARRA LATERAL
   ========================================= */
.dash-submenu {
    display: none; /* Oculto por defecto */
    list-style: none;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo ligeramente más oscuro */
    padding: 0;
    margin: 0;
}

.dash-submenu li a {
    padding: 12px 25px 12px 50px; /* Sangría a la izquierda para notar la jerarquía */
    font-size: 13px;
    color: #888;
    border-left: 3px solid transparent;
}

.dash-submenu li a i {
    font-size: 16px;
    margin-right: 10px;
}

.dash-submenu li a:hover, .dash-submenu li a.active {
    color: var(--gold-primary);
    background-color: rgba(167, 145, 72, 0.05);
    border-left: 3px solid var(--gold-primary);
}

/* Indicador de flecha para los menús que tienen submenú */
.has-submenu {
    justify-content: space-between !important;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.arrow-icon.open {
    transform: rotate(180deg);
}

/* =========================================
   MÓDULO ARKIVA - ZONA DRAG & DROP
   ========================================= */
.file-drop-area {
    border: 2px dashed var(--gold-primary);
    background-color: #fafafa;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.file-drop-area:hover, .file-drop-area.dragover {
    background-color: rgba(167, 145, 72, 0.1);
    border-color: var(--dark-1);
}

.file-drop-area input[type="file"] {
    display: none; /* Ocultamos el input feo nativo del navegador */
}
/* =========================================
   SEMAFORIZACIÓN PQRS (TE ESCUCHAMOS)
   ========================================= */
.badge-estado {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.estado-cerrado { background-color: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; } /* Gris */
.estado-abierto { background-color: rgba(167, 145, 72, 0.15); color: var(--gold-primary); border: 1px solid var(--gold-primary); } /* Normal Luma */
.estado-alerta { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; } /* Amarillo > 10 días */
.estado-critico { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Rojo > 15 días */

/* =========================================
   SEGURIDAD CENTRAL (LUMA NEXUS > SEGURIDAD)
   ========================================= */
.seg-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.seg-barra input[type="search"], .seg-barra select { padding: 10px 12px; border: 1px solid #555; border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 14px; min-width: 220px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: 13px; border: none; border-radius: 6px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: all 0.2s ease; }
.seg-btn i.material-icons { font-size: 18px; }
.seg-btn-oro { background-color: var(--gold-primary); color: var(--white); box-shadow: 0 2px 6px rgba(167, 145, 72, 0.28); }
.seg-btn-oro:hover { background-color: var(--gold-hover); transform: translateY(-1px); }
.seg-btn-borde { background-color: #3b4654; color: #ffffff; border: 1px solid #2d3748; box-shadow: 0 2px 6px rgba(15, 20, 25, 0.14); }
.seg-btn-borde:hover { background-color: #9b2c38; border-color: #842029; color: #ffffff; transform: translateY(-1px); }
.seg-btn-rojo { background-color: #fdf2f2; color: #b02a37; border: 1px solid #f1aeb5; }
.seg-btn-rojo:hover { background-color: #b02a37; color: #ffffff; }
.seg-icono { background: none; border: none; cursor: pointer; color: #17a2b8; padding: 2px; }
.seg-icono.rojo { color: #b02a37; }
.seg-chip { display: inline-block; padding: 3px 9px; margin: 2px 4px 2px 0; border-radius: 12px; font-size: 11px; font-weight: 600; background-color: var(--gold-transparent); color: var(--dark-1); border: 1px solid var(--gold-primary); white-space: nowrap; }
.seg-chip.cliente { background-color: #e7f1ff; border-color: #6c9bd2; }
.seg-chip.inactivo { background-color: #eee; border-color: #bbb; color: #777; text-decoration: line-through; }
.seg-chip.vencido { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.seg-estado-1 { color: #b02a37; font-weight: 700; }
.seg-estado-2 { color: #1e7e34; font-weight: 700; }
.seg-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 25px; }
.seg-columnas .panel-card { padding: 22px; }
.seg-columnas .panel-card h3 { font-size: 17px; margin-bottom: 15px; }
.seg-mensaje { font-weight: 600; font-size: 13px; min-height: 18px; margin-top: 10px; }
.seg-mensaje.ok { color: #1e7e34; }
.seg-mensaje.error { color: #b02a37; }
.seg-nota { font-size: 12px; color: var(--text-gray); margin: 4px 0 0; }
.seg-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.seg-tabla th { text-align: left; background-color: var(--dark-1); color: var(--white); padding: 10px; font-weight: 600; }
.seg-tabla td { padding: 9px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
.seg-tabla tr.modulo td { background-color: #f4f6f8; font-weight: 700; color: var(--dark-1); }
.seg-tabla select { padding: 5px; border-radius: 4px; border: 1px solid #999; font-size: 12px; }
.seg-pestanas, .lum-pestanas { display: flex; gap: 4px; border-bottom: 2px solid var(--gold-primary); margin-bottom: 20px; flex-wrap: wrap; }
.seg-pestanas button, .lum-pestanas button { background: #e9ecef; border: none; padding: 10px 18px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; border-radius: 6px 6px 0 0; color: var(--dark-1); }
.seg-pestanas button.activa, .lum-pestanas button.activa { background-color: var(--gold-primary); color: var(--white); }
.seg-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.seg-scroll { overflow-x: auto; }
@media (max-width: 600px) {
    .seg-barra input[type="search"], .seg-barra select { min-width: 0; width: 100%; }
    .seg-columnas { grid-template-columns: 1fr; }
}

/* Tabla con títulos fijos: el cuerpo se desplaza dentro de su propio marco manteniendo encabezados visibles */
.seg-tabla-fija {
    max-height: calc(100vh - 335px);
    min-height: 180px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: 0 0 8px 8px;
}
.seg-tabla-fija table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 35px;
}
.seg-tabla-fija table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--dark-1) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 -3px 0 var(--gold-primary);
}
.seg-tabla-fija table tbody tr:last-child td {
    padding-bottom: 22px;
}
/* Scrollbar elegante y visible para todas las tablas fijas */
.seg-tabla-fija::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.seg-tabla-fija::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.seg-tabla-fija::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.seg-tabla-fija::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Pantallas con pestañas superiores (Copropiedades, Seguridad, etc.) */
.seg-pestanas ~ .panel-card .seg-tabla-fija,
.lum-pestanas ~ .panel-card .seg-tabla-fija,
.cop-panel .seg-tabla-fija,
#sp-sec-usuarios .seg-tabla-fija {
    max-height: calc(100vh - 385px);
}
/* Celda de ícono siempre centrada, horizontal y verticalmente */
.seg-tabla td.seg-celda-icono { text-align: center; vertical-align: middle; width: 60px; }
.seg-tabla td.seg-celda-icono i.material-icons { display: block; margin: 0 auto; line-height: 1; }

/* Transición suave al cambiar de módulo en el panel */
#contenido-dinamico { transition: opacity .15s ease; }

/* Tarjetas del Inicio generadas desde el catálogo de programas */
.dash-module-card { cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.dash-module-card .dash-module-nota { margin-top: 12px; font-size: 11px; color: var(--gold-primary); display: inline-flex; align-items: center; gap: 4px; }
.dash-module-card .dash-module-nota i.material-icons { font-size: 14px; margin: 0; }
.dash-module-card.inactiva { opacity: 0.45; cursor: default; }
.dash-module-card.inactiva:hover { transform: none; box-shadow: none; background-color: var(--dark-1); }

/* Tarjetas compactas (Inicio de Luma Nexus y de FenixPass): solo ícono y nombre.
   La descripción va como texto emergente (atributo title) de la tarjeta. */
.dash-modules-grid.compacta { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.dash-modules-grid.compacta .dash-module-card { padding: 20px 12px 16px; justify-content: center; min-height: 128px; }
.dash-modules-grid.compacta .dash-module-card > i.material-icons { font-size: 38px; margin-bottom: 10px; }
.dash-modules-grid.compacta .dash-module-card h3 { font-size: 15px; margin: 0; line-height: 1.25; }
.dash-modules-grid.compacta .dash-module-card .dash-module-nota { margin-top: 6px; font-size: 10px; }
.dash-modules-grid.compacta .dash-module-card:hover { transform: translateY(-3px); }

/* Inicio: el título queda fijo y solo las tarjetas se desplazan dentro de su marco.
   El relleno deja espacio para que la tarjeta suba y muestre su sombra al pasar el mouse. */
.dash-modulos-scroll { max-height: calc(100vh - 230px); overflow-y: auto; overflow-x: hidden; padding: 8px 6px 20px; margin: -8px -6px 0; }

/* =========================================
   EDITOR DE TEXTO (Js/lum_editor.js)
   Hoja blanca tipo documento, con barra de herramientas dorada.
   ========================================= */
.lum-editor-caja { border: 1px solid #555; border-radius: 6px; overflow: hidden; background: #fff; width: 100%; box-sizing: border-box; }
.lum-editor-caja:focus-within { border-color: var(--gold-primary); box-shadow: 0 0 0 2px var(--gold-transparent); }
.lum-editor-caja.lum-editor-error { border-color: #dc3545; }
.lum-editor-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; background: var(--dark-2); border-bottom: 1px solid #444; }
.lum-editor-barra button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: none; border-radius: 4px; background: transparent; color: #d8d8d8; cursor: pointer; }
.lum-editor-barra button .material-icons { font-size: 19px; }
.lum-editor-barra button:hover:not(:disabled), .lum-editor-barra button:focus-visible { background: rgba(167, 145, 72, 0.25); color: var(--gold-primary); outline: none; }
.lum-editor-barra button.lum-btn-activo { background: var(--gold-primary) !important; color: #fff !important; }
.lum-editor-barra button:disabled, .lum-editor-barra select:disabled { opacity: 0.4; cursor: default; }
.lum-editor-barra select { height: 30px; padding: 0 6px; margin-right: 4px; border: 1px solid #555; border-radius: 4px; background: var(--dark-1); color: #e6e6e6; font-family: inherit; font-size: 12px; width: auto; }
.lum-editor-sep { width: 1px; height: 20px; margin: 0 4px; background: #555; }
.lum-editor-color { position: absolute; width: 0; height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.lum-editor-caja-codigo { display: none; background: #0b1329; border-bottom: 1px solid #1e293b; }
.lum-editor-codigo-barra { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 12px; background: #0f172a; border-bottom: 1px solid #1e293b; }
.lum-badge-codigo { background: var(--gold-primary); color: #090e1a; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.lum-btn-volver-visual { background: #1e293b; color: #f8fafc; border: 1px solid var(--gold-primary); padding: 4px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s ease; }
.lum-btn-volver-visual:hover { background: var(--gold-primary); color: #090e1a; }
.lum-editor-codigo { display: block; width: 100%; box-sizing: border-box; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 13px; line-height: 1.55; color: #38bdf8; background: #0b1329; border: none; outline: none; padding: 12px 14px; resize: vertical; min-height: 140px; max-height: 60vh; overflow-y: auto; tab-size: 2; white-space: pre-wrap; word-break: break-word; }
.lum-editor-area { padding: 12px 14px; color: #222; font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; line-height: 1.6; max-height: 60vh; overflow-y: auto; outline: none; text-align: left; cursor: text; }
.lum-editor-area:empty::before { content: attr(data-placeholder); color: #999; pointer-events: none; }
.lum-editor-area p, .lum-editor-area div { margin: 0 0 6px; }
.lum-editor-area h2 { font-size: 20px; margin: 8px 0; color: #222; }
.lum-editor-area h3 { font-size: 16px; margin: 8px 0; color: #222; }
.lum-editor-area ul, .lum-editor-area ol { margin: 4px 0 8px 22px; padding: 0; }
.lum-editor-area blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--gold-primary); background: #f7f5ef; color: #444; }
.lum-editor-area a { color: #0b63c4; text-decoration: underline; }
.lum-editor-area img { max-width: 100%; height: auto; border-radius: 6px; cursor: pointer; transition: outline 0.15s ease; display: block; margin: 12px auto; min-height: 40px; background: #f8fafc; }
.lum-editor-area img:hover { outline: 2px dashed var(--gold-primary); }
.lum-editor-img-popover {
    position: absolute;
    display: none;
    z-index: 1000;
    background: #0f172a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.lum-editor-img-popover button {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.lum-editor-img-popover button:hover {
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
}
.lum-editor-bloqueado .lum-editor-area { background: #f5f5f5; color: #555; cursor: default; }
.lum-editor-aviso { padding: 0 10px; font-size: 12px; color: #dc3545; background: #fff; }
.lum-editor-aviso:empty { display: none; }
.lum-editor-aviso:not(:empty) { padding: 6px 10px; }

/* Contenido HTML guardado (respuestas, mensajes) mostrado en el panel o en páginas públicas */
.lum-html { line-height: 1.6; overflow-wrap: anywhere; }
.lum-html p, .lum-html div { margin: 0 0 6px; }
.lum-html ul, .lum-html ol { margin: 4px 0 8px 22px; padding: 0; }
.lum-html blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--gold-primary); }
.lum-html img { max-width: 100%; height: auto; border-radius: 3px; }
.lum-html a { color: var(--gold-primary); text-decoration: underline; }

/* Tablas Paramétricas (Backend/tablas_parametricas.php): botones de cada tabla dentro de su pestaña */
.tp-panel { border-radius: 0 0 8px 8px; padding: 16px 20px; margin-bottom: 25px; }
.tp-seccion { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #777; margin: 12px 0 6px; }
.tp-seccion:first-child { margin-top: 0; }
.tp-tablas { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-tablas button { display: inline-flex; align-items: center; gap: 6px; background: #f4f6f8; border: 1px solid #d5d9dd; border-radius: 20px; padding: 7px 14px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--dark-1); }
.tp-tablas button i.material-icons { font-size: 17px; color: var(--gold-primary); }
.tp-tablas button:hover { border-color: var(--gold-primary); }
.tp-tablas button.activa { background-color: var(--dark-1); border-color: var(--dark-1); color: var(--white); }
@media (max-width: 600px) { .tp-tablas button { flex: 1 1 100%; justify-content: flex-start; } }

/* =========================================================
   NUEVA02 — ESTILOS UNIFICADOS Y REUTILIZABLES DEL ECOSISTEMA
   ========================================================= */

/* --- 1. Modal Dinámico de Programa y Tarjetas Landing (index.html) --- */
.luma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 18, 0.82);
    backdrop-filter: blur(5px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.luma-modal-overlay.activo {
    display: flex;
    animation: lumaFadeModal 0.22s ease-out;
}
@keyframes lumaFadeModal {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
.luma-modal-box {
    background: var(--dark-1);
    color: var(--white);
    border: 1px solid var(--gold-primary);
    border-radius: 14px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}
.luma-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 26px;
    background: var(--dark-2);
    border-bottom: 2px solid var(--gold-primary);
}
.luma-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.luma-modal-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(167, 145, 72, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.luma-modal-icon .material-icons { font-size: 26px; }
.luma-modal-title-wrap h3 {
    margin: 0;
    font-size: 22px;
    color: var(--gold-primary);
    line-height: 1.2;
}
.luma-modal-title-wrap p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #cccccc;
}
.luma-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.luma-modal-close:hover {
    background: var(--gold-primary);
    color: var(--dark-1);
    border-color: var(--gold-primary);
}
.luma-modal-body {
    padding: 26px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
}
.luma-modal-media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(167, 145, 72, 0.45);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: block;
    background: var(--dark-2);
}
.luma-modal-price {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(167, 145, 72, 0.12);
    border: 1px solid rgba(167, 145, 72, 0.4);
    text-align: center;
}
.luma-modal-price span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cccccc;
}
.luma-modal-price strong {
    font-size: 20px;
    color: var(--gold-primary);
}
.luma-modal-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #eaeaea;
}
.luma-modal-desc p { margin-bottom: 12px; }
.luma-modal-desc .negrita, .luma-modal-desc strong { color: var(--gold-primary); font-weight: 600; }
.luma-modal-footer {
    padding: 18px 26px;
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.luma-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}
.luma-modal-btn-primary {
    background: var(--gold-primary);
    color: var(--dark-1);
}
.luma-modal-btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}
.luma-modal-btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}
.luma-modal-btn-outline:hover {
    background: rgba(167, 145, 72, 0.15);
}
.luma-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}
.luma-btn-outline-card {
    background: transparent !important;
    border: 1px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.luma-btn-outline-card:hover {
    background: rgba(167, 145, 72, 0.16) !important;
}
.contacto-programa-tag {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(167, 145, 72, 0.16);
    border: 1px solid var(--gold-primary);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}
.contacto-programa-tag strong { color: var(--gold-primary); }
.contacto-programa-tag button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.contacto-programa-tag button:hover { color: var(--white); }

@media (max-width: 720px) {
    .luma-modal-body { grid-template-columns: 1fr; }
    .luma-modal-media { max-width: 240px; margin: 0 auto; }
    .luma-modal-footer { justify-content: stretch; }
    .luma-modal-btn { width: 100%; justify-content: center; }
}

/* --- 2. Portal Público Te Escuchamos PQRS (Teescuchamos/index.html) --- */
body.pagina-pqrs {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body.pagina-pqrs .main-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 30px;
    background: linear-gradient(rgba(15, 20, 25, 0.72), rgba(30, 35, 40, 0.92)), url('../Imagenes/mejoramiento.webp') center/cover no-repeat;
    overflow-y: auto;
}
body.pagina-pqrs .contact-form {
    max-width: 950px;
    width: 100%;
    background: rgba(25, 30, 35, 0.88);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(167, 145, 72, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
body.pagina-pqrs .form-group-dash label {
    color: var(--white);
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
    background: rgba(167, 145, 72, 0.14);
    border-left: 3px solid var(--gold-primary);
    padding: 4px 10px;
}
body.pagina-pqrs .form-group-dash input,
body.pagina-pqrs .form-group-dash select,
body.pagina-pqrs .form-group-dash textarea {
    width: 100%;
    background-color: #1a1f26;
    color: #ffffff;
    border: 1px solid #4b5563;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 6px;
    color-scheme: dark;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.pagina-pqrs .form-group-dash select {
    cursor: pointer;
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1a1f26;
    color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

body.pagina-pqrs .form-group-dash select:hover,
body.pagina-pqrs .form-group-dash input:hover,
body.pagina-pqrs .form-group-dash textarea:hover {
    border-color: var(--gold-primary);
    background-color: #242b35 !important;
}

body.pagina-pqrs .form-group-dash select:focus,
body.pagina-pqrs .form-group-dash input:focus,
body.pagina-pqrs .form-group-dash textarea:focus {
    outline: none;
    border-color: var(--gold-primary) !important;
    background-color: #242b35 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(167, 145, 72, 0.35) !important;
}

body.pagina-pqrs .form-group-dash select option {
    background-color: #1a1f26 !important;
    color: #ffffff !important;
    padding: 10px 12px;
}

body.pagina-pqrs .form-group-dash select option:disabled {
    background-color: #13171f !important;
    color: #94a3b8 !important;
}

body.pagina-pqrs .form-group-dash select option:checked {
    background-color: #2c3542 !important;
    color: #d4af37 !important;
}

body.pagina-pqrs .form-group-dash input::placeholder,
body.pagina-pqrs .form-group-dash textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}
body.pagina-pqrs textarea { min-height: 65px !important; resize: vertical; }
.pqrs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}
.col-span-2 { grid-column: span 2; }
.col-span-4 { grid-column: span 4; }
.luma-shield {
    opacity: 0;
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: -1;
}
.nav-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.nav-tabs button {
    padding: 10px 22px;
    border: 1px solid var(--gold-primary);
    background: var(--dark-1);
    color: var(--gold-primary);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-tabs button.active {
    background: var(--gold-primary);
    color: var(--dark-1);
}
.seccion-dinamica { display: none; }
.seccion-activa { display: block; }
.seguimiento { max-width: 560px; margin: 0 auto; }
.seguimiento .btn-primary { width: 100%; margin-top: 10px; }
.seg-ayuda { color: #d1d1d1; font-size: 13px; text-align: center; margin: 0 0 12px; }
.seg-ayuda a { color: var(--gold-primary); text-decoration: underline; }
.seg-opciones { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.seg-opciones label {
    display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--white);
    padding: 8px 14px; border: 1px solid #444; border-radius: 20px; background: var(--dark-2);
}
.seg-opciones label:has(input:checked) { border-color: var(--gold-primary); color: var(--gold-primary); }
.seg-opciones input { accent-color: var(--gold-primary); }
.seg-codigo { text-align: center; font-size: 22px !important; letter-spacing: 8px; }
.caso-pqr {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
    text-align: left; padding: 10px 14px; cursor: pointer; font-family: inherit; font-size: 13px;
    background: var(--dark-2); color: var(--white); border: 1px solid #444; border-radius: 6px;
}
.caso-pqr:hover, .caso-pqr:focus-visible { border-color: var(--gold-primary); }
.caso-pqr small { color: #aaa; }
.aviso-terminos { color: #c9c9c9; font-size: 11px; line-height: 1.5; text-align: center; margin: 0 0 15px; }
.aviso-terminos a { color: var(--gold-primary); font-weight: 600; text-decoration: underline; }
.aviso-terminos a:hover { color: var(--gold-hover); }
.terminos-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 15, 0.85);
}
.terminos-overlay.abierto { display: flex; }
.terminos-cuerpo {
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px 24px;
    color: #d6d6d6;
    font-size: 12px;
    line-height: 1.55;
}
.terminos-cuerpo p,
.terminos-cuerpo li,
.terminos-cuerpo span,
.terminos-cuerpo div {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #d6d6d6 !important;
}
.terminos-cuerpo h1,
.terminos-cuerpo h2,
.terminos-cuerpo h3,
.terminos-cuerpo h4 {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--gold-primary) !important;
    margin: 12px 0 6px !important;
    line-height: 1.35 !important;
}
.terminos-cuerpo p { margin: 0 0 8px !important; }
@media (max-width: 1024px) {
    .pqrs-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-2 { grid-column: span 2; }
}
@media (max-width: 900px) {
    body.pagina-pqrs .main-wrapper { align-items: flex-start; }
}
@media (max-width: 600px) {
    .pqrs-grid { grid-template-columns: 1fr; }
    .col-span-2, .col-span-4 { grid-column: span 1; }
    body.pagina-pqrs .contact-form { padding: 18px; }
}

/* --- 3. Vista de Ingreso, Modal Integrado y Visibilidad de Clave (Backend/index.html) --- */
body.modo-ingreso { height: 100vh; height: 100dvh; overflow: hidden; }
body.modo-ingreso .login-section { height: 100vh; height: 100dvh; min-height: 0; padding: clamp(8px, 2vh, 20px); }
body.modo-ingreso .login-card { padding: clamp(16px, 3.6vh, 40px) clamp(20px, 3vw, 40px); max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
body.modo-ingreso .login-card .logo-img { width: clamp(52px, 9.5vh, 90px); margin-bottom: clamp(6px, 1.8vh, 20px); }
body.modo-ingreso .login-card h1 { font-size: clamp(20px, 3vh, 26px); margin-bottom: clamp(2px, 0.8vh, 10px); line-height: 1.2; }
body.modo-ingreso .login-card > p { margin-bottom: clamp(10px, 2.6vh, 30px); }
body.modo-ingreso .login-card .form-group { margin-bottom: clamp(10px, 2vh, 20px); }
body.modo-ingreso .login-card .form-group label { margin-bottom: clamp(4px, 0.8vh, 8px); }
body.modo-ingreso .login-card .form-group input { padding-top: clamp(8px, 1.3vh, 12px); padding-bottom: clamp(8px, 1.3vh, 12px); }
body.modo-ingreso #resvalida1 { margin-top: clamp(8px, 1.6vh, 20px); padding: clamp(6px, 1vh, 10px); border-radius: 6px; display: none; font-size: 13px; }
body.modo-ingreso .login-links { margin-top: clamp(10px, 2.2vh, 25px); line-height: 1.45; }
body.modo-ingreso .login-links p { margin-bottom: clamp(4px, 1vh, 10px) !important; }
body.modo-ingreso .login-links .btn-primary { margin-top: clamp(6px, 1.4vh, 15px) !important; padding-top: clamp(6px, 1vh, 12px); padding-bottom: clamp(6px, 1vh, 12px); }
body.modo-ingreso .login-card:has(#frmCambio:not([style*="none"])) .login-links,
body.modo-ingreso .login-card:has(#frmCambio:not([style*="none"])) > p { display: none; }
body.modo-ingreso #frmCambio p { margin-bottom: clamp(6px, 1.2vh, 12px); }
@media (max-height: 600px) {
    body.modo-ingreso .login-card > p, body.modo-ingreso .login-links .btn-primary { display: none; }
    body.modo-ingreso .login-card .logo-img { width: 48px; }
}

.backend-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 14, 18, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.backend-modal-overlay.abierto { display: flex; }
.backend-modal-box {
    background: var(--dark-1);
    color: var(--white);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.backend-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    color: #dcdcdc;
    font-size: 12px;
    line-height: 1.55;
}
#mdl-cuerpo-terminos,
#mdl-cuerpo-terminos p,
#mdl-cuerpo-terminos li,
#mdl-cuerpo-terminos span,
#mdl-cuerpo-terminos div {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #d6d6d6 !important;
}
#mdl-cuerpo-terminos h1,
#mdl-cuerpo-terminos h2,
#mdl-cuerpo-terminos h3,
#mdl-cuerpo-terminos h4 {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--gold-primary) !important;
    margin: 12px 0 6px !important;
    line-height: 1.35 !important;
}
#mdl-cuerpo-terminos p { margin: 0 0 8px !important; }

.pass-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pass-input-wrap input {
    width: 100%;
    padding-right: 42px !important;
}
.btn-ver-clave {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.btn-ver-clave:hover { color: var(--gold-primary); }
.btn-ver-clave .material-icons { font-size: 20px; }

/* --- 4. Selector de Íconos y Ayudas de Formulario (Backend/programas.html y catálogos) --- */
#prgm-frm .form-grid { align-items: start; }
#prgm-frm .form-group-dash label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prgm-ayuda { font-size: 11.5px; color: var(--text-gray); margin-top: -1px; padding-left: 4px; }
.prgm-grupo-icono { display: flex; align-items: stretch; border: 1px solid #b8b09c; border-radius: 6px; background: #fff; overflow: hidden; transition: all 0.25s ease; }
.prgm-grupo-icono:focus-within { border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(167, 145, 72, 0.22); }
.prgm-grupo-icono .vista { width: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: #f7f4ec; border-right: 1px solid #e2dccb; color: var(--gold-primary); }
.prgm-grupo-icono input { border: none !important; box-shadow: none !important; flex: 1; min-width: 0; }
.prgm-grupo-icono button { width: 44px; flex: none; border: none; border-left: 1px solid #e2dccb; background: #f7f4ec; color: var(--dark-1); cursor: pointer; transition: background 0.2s; }
.prgm-grupo-icono button:hover { background: var(--gold-primary); color: #fff; }

/* --- 5. Correos Lumaresa Webmail IMAP/SMTP (Backend/mensajes_lumaresa.html) --- */
.crr-grid { display: grid; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); gap: 18px; align-items: start; }
.crr-lista { max-height: calc(100vh - 290px); min-height: 260px; overflow-y: auto; padding: 0; }
.crr-item { display: grid; grid-template-columns: 20px 22px minmax(0, 1fr) auto; gap: 4px 8px; padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer; align-items: center; }
.crr-item:hover, .crr-item:focus-visible { background: var(--gold-transparent); outline: none; }
.crr-item.activo { background: rgba(167, 145, 72, 0.18); }
.crr-item.seleccionado { background: rgba(167, 145, 72, 0.10); }
.crr-item.no-leido .crr-de, .crr-item.no-leido .crr-asunto { font-weight: 700; color: var(--dark-1); }
.crr-de, .crr-asunto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crr-de { font-size: 13px; }
.crr-asunto { grid-column: 3 / 5; font-size: 13px; color: #555; }
.crr-col-derecha { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.crr-fecha { font-size: 11px; color: #888; white-space: nowrap; }
.crr-estrella { font-size: 18px; color: #ccc; cursor: pointer; transition: transform 0.1s ease, color 0.15s ease; }
.crr-estrella:hover { transform: scale(1.15); color: var(--gold-primary); }
.crr-estrella.si { color: var(--gold-primary); }
.crr-btn-fila-eliminar { background: transparent; border: none; padding: 2px 4px; border-radius: 4px; color: #94a3b8; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; opacity: 0.35; transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease; }
.crr-item:hover .crr-btn-fila-eliminar, .crr-btn-fila-eliminar:focus { opacity: 1; }
.crr-btn-fila-eliminar:hover { opacity: 1; color: #dc2626; background: rgba(220, 38, 38, 0.12); }
.crr-lector { min-height: 420px; padding: 22px; }
.crr-lector iframe { width: 100%; min-height: 380px; border: 1px solid #eee; border-radius: 6px; background: #fff; }
.crr-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; align-items: center; }
.crr-cabecera { font-size: 13px; color: #555; display: grid; gap: 3px; }
.crr-cabecera b { color: var(--dark-1); }
.crr-adjuntos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.crr-adjunto { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; cursor: pointer; background: #fafafa; }
.crr-adjunto:hover { border-color: var(--gold-primary); }
.crr-vacio { text-align: center; color: #888; padding: 40px 20px; }
.crr-paginas { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: #666; border-top: 1px solid #eee; }
.crr-cuentas-layout { display: grid; grid-template-columns: minmax(340px, 1.1fr) minmax(380px, 1fr); gap: 20px; height: calc(100vh - 205px); min-height: 440px; align-items: stretch; overflow: hidden; }
.crr-cuentas-col-izq { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0 !important; overflow: hidden; margin-bottom: 0 !important; }
.crr-cuentas-col-izq .seg-tabla-fija { flex: 1; min-height: 0; max-height: none !important; overflow-y: auto; }
.crr-cuentas-col-der { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; overflow-y: auto; padding-right: 4px; }
.crr-cuentas-col-der .panel-card { padding: 16px 20px; margin-bottom: 0; }
.crr-fila-cuenta { cursor: pointer; transition: background 0.15s ease; }
.crr-fila-cuenta:hover { background: #fdfaf2 !important; }
.crr-fila-cuenta.activa { background: rgba(167, 145, 72, 0.14) !important; border-left: 4px solid var(--gold-primary); }
@media (max-width: 980px) {
    .crr-cuentas-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .crr-cuentas-col-izq .seg-tabla-fija { max-height: 360px !important; }
    .crr-cuentas-col-der { height: auto; overflow: visible; }
}
@media (max-width: 900px) { .crr-grid { grid-template-columns: 1fr; } .crr-lista { max-height: 50vh; } }

/* --- 6. Empresa y Términos Legales en 2 Columnas con Ventana Fija (Backend/empresa.html) --- */
.emp-layout { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.15fr); gap: 20px; height: calc(100vh - 175px); min-height: 460px; align-items: stretch; overflow: hidden; }
.emp-col-izq { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow-y: auto; padding: 18px 20px !important; margin-bottom: 0 !important; }
.emp-col-der { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; padding: 18px 20px !important; margin-bottom: 0 !important; }
.emp-col-der .form-group-dash { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }
.emp-col-der .lum-editor-caja { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.emp-col-der .lum-editor-area { flex: 1; min-height: 0 !important; max-height: none !important; overflow-y: auto; }
@media (max-width: 980px) {
    .emp-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .emp-col-izq, .emp-col-der { height: auto; overflow: visible; }
    .emp-col-der .lum-editor-area { max-height: 55vh !important; }
}

/* --- 7. Tablas Paramétricas en 2 Columnas con Ventana Fija (Backend/tablas_parametricas.html) --- */
.tp-panel { border-radius: 0 0 8px 8px; padding: 12px 16px; margin-bottom: 14px; }
.tp-layout { display: grid; grid-template-columns: minmax(380px, 1.35fr) minmax(320px, 0.85fr); gap: 20px; height: calc(100vh - 280px); min-height: 380px; align-items: stretch; overflow: hidden; }
.tp-layout.solo-lectura { grid-template-columns: 1fr; }
.tp-col-izq { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0 !important; overflow: hidden; margin-bottom: 0 !important; }
.tp-col-izq .seg-tabla-fija { flex: 1; min-height: 0; max-height: none !important; overflow-y: auto; }
.tp-col-der { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; overflow-y: auto; padding-right: 4px; }
.tp-col-der .panel-card { padding: 18px 20px; margin-bottom: 0; }
.tp-fila { cursor: pointer; transition: background 0.15s ease; }
.tp-fila:hover { background: #fdfaf2 !important; }
.tp-fila.activa { background: rgba(167, 145, 72, 0.14) !important; border-left: 4px solid var(--gold-primary); }
@media (max-width: 980px) {
    .tp-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .tp-col-izq .seg-tabla-fija { max-height: 380px !important; }
    .tp-col-der { height: auto; overflow: visible; }
}

/* --- 8. Bitácora de Auditoría: Filtros en una sola línea y tabla con altura máxima (Backend/seguridad.html) --- */
.segA-barra-filtros {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100%;
}
.segA-barra-filtros input[type="search"] {
    flex: 1 1 190px;
    min-width: 140px !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    margin: 0 !important;
}
.segA-barra-filtros select {
    flex: 0 1 170px;
    min-width: 125px !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    margin: 0 !important;
}
.segA-barra-filtros input[type="date"] {
    flex: 0 0 138px;
    width: 138px !important;
    min-width: 126px !important;
    padding: 7px 8px !important;
    font-size: 13px !important;
    border: 1px solid #555;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    margin: 0 !important;
}
.segA-barra-filtros .seg-btn {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
    white-space: nowrap;
}
#sp-sec-auditoria .seg-tabla-fija {
    max-height: calc(100vh - 400px);
}
@media (max-width: 980px) {
    .segA-barra-filtros { flex-wrap: wrap !important; }
    .segA-barra-filtros input[type="search"],
    .segA-barra-filtros select,
    .segA-barra-filtros input[type="date"] { flex: 1 1 160px; width: auto !important; }
}

/* ==========================================================================
   LUMACAR / PARKING & CONTROL VEHICULAR - BOTONES Y MODALES GLOBALES
   ========================================================================== */
.lmc-btn {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    user-select: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: 'Montserrat', sans-serif !important;
}
.lmc-btn i { font-size: 18px !important; }
.lmc-btn:hover { transform: translateY(-2px) !important; }
.lmc-btn:active { transform: translateY(0) scale(0.98) !important; }

/* Botón Dorado Primario */
.lmc-btn-primario {
    background: linear-gradient(135deg, #c5a059 0%, #957832 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(167, 145, 72, 0.38) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.lmc-btn-primario:hover {
    background: linear-gradient(135deg, #d4b068 0%, #a4863c 100%) !important;
    box-shadow: 0 6px 20px rgba(167, 145, 72, 0.5) !important;
    color: #ffffff !important;
}

/* Botón Verde Éxito */
.lmc-btn-verde {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.lmc-btn-verde:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
    color: #ffffff !important;
}

/* Botón Azul Informativo */
.lmc-btn-azul {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}
.lmc-btn-azul:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
    color: #ffffff !important;
}

/* Botón Rojo Peligro / Cancelar */
.lmc-btn-rojo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}
.lmc-btn-rojo:hover {
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
    color: #ffffff !important;
}

/* Botón Borde / Secundario */
.lmc-btn-borde {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}
.lmc-btn-borde:hover {
    border-color: #bfa054 !important;
    color: #927530 !important;
    background: #fffdf5 !important;
    box-shadow: 0 4px 12px rgba(191, 160, 84, 0.15) !important;
}

/* Acciones en Tablas */
.lmc-btn-accion {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}
.lmc-btn-accion i { font-size: 15px !important; }

/* Botones Upload de Archivos / Cámara Personalizados */
.lmc-upload-btn-wrap {
    margin-top: 4px;
}
.lmc-upload-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 11px 16px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'Montserrat', sans-serif !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}
.lmc-upload-btn:hover {
    border-color: #bfa054 !important;
    background: #fffdf5 !important;
    color: #927530 !important;
    box-shadow: 0 4px 12px rgba(191, 160, 84, 0.18) !important;
    transform: translateY(-1px) !important;
}
.lmc-upload-btn.con-archivo {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    border-style: solid !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}
.lmc-upload-btn i {
    font-size: 18px !important;
    color: #bfa054 !important;
}
.lmc-upload-btn.con-archivo i {
    color: #10b981 !important;
}
.lmc-btn-cerrar-modal {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.lmc-btn-cerrar-modal:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* ==========================================================================
   LUMA NEXUS - SISTEMA GLOBAL DE CARGA DE ADJUNTOS, IMÁGENES Y ARCHIVOS
   ========================================================================== */

/* 1. Estilizado Universal de cualquier input[type="file"] (Cero planos / Cero grises estándar) */
input[type="file"] {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px dashed #cbd5e1;
    border-radius: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
input[type="file"]:hover {
    border-color: var(--gold-primary, #bfa054);
    background: #fffdf8;
    box-shadow: 0 3px 10px rgba(167, 145, 72, 0.12);
}
input[type="file"]:focus {
    outline: none;
    border-color: var(--gold-primary, #bfa054);
    box-shadow: 0 0 0 3px rgba(191, 160, 84, 0.25);
}

/* El botón interno selector de archivo (Webkit, Blink, Firefox, Chrome, Edge) */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    padding: 8px 18px !important;
    margin-right: 14px !important;
    border: none !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #c5a059 0%, #957832 100%) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px rgba(167, 145, 72, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #d4b068 0%, #a4863c 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 5px 14px rgba(167, 145, 72, 0.48) !important;
    transform: translateY(-1px) !important;
}
input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active {
    transform: translateY(0) scale(0.98) !important;
}

/* 2. Componente de Carga de Archivos / Tarjeta Interactiva Drag & Drop (.luma-file-box / .file-upload-wrapper) */
.luma-file-box,
.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.luma-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: 2px dashed #d9cfba;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    user-select: none;
}

.luma-file-dropzone:hover,
.luma-file-dropzone.drag-over {
    background: linear-gradient(180deg, #ffffff 0%, #fdf8ed 100%);
    border-color: var(--gold-primary, #bfa054);
    box-shadow: 0 6px 18px rgba(167, 145, 72, 0.16);
    transform: translateY(-1px);
}

.luma-file-dropzone .luma-file-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(191, 160, 84, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--gold-primary, #bfa054);
    transition: transform 0.25s ease, background 0.25s ease;
}
.luma-file-dropzone:hover .luma-file-icon-box,
.luma-file-dropzone.drag-over .luma-file-icon-box {
    transform: scale(1.1);
    background: rgba(191, 160, 84, 0.22);
}
.luma-file-dropzone .luma-file-icon-box i {
    font-size: 26px;
}

.luma-file-dropzone .luma-file-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.luma-file-dropzone .luma-file-title span {
    color: var(--gold-primary, #bfa054);
    text-decoration: underline;
}

.luma-file-dropzone .luma-file-hint {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

/* Estado activo cuando ya hay archivo(s) seleccionado(s) */
.luma-file-dropzone.activo {
    border-color: #10b981;
    background: #f0fdf4;
}
.luma-file-dropzone.activo .luma-file-icon-box {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

/* 3. Chips de Archivos Cargados (.luma-file-list y .luma-file-chip) */
.luma-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.luma-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    animation: lmcFadeIn 0.2s ease;
}
.luma-file-chip .luma-file-icon {
    font-size: 18px;
    color: var(--gold-primary, #bfa054);
}
.luma-file-chip .luma-file-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}
.luma-file-chip .luma-file-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.luma-file-chip .luma-file-size {
    font-size: 10.5px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
}

/* =========================================
   PORTAL CLIENTES - TU ÁNGEL (LUMA NEXUS)
   ========================================= */
.card-carnet-digital {
    background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.card-carnet-digital .carnet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(167, 145, 72, 0.35);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.card-carnet-digital .rh-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.qr-box-center {
    background: #ffffff;
    border: 2px dashed var(--gold-primary);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}
.qr-box-center img {
    max-width: 175px;
    border-radius: 6px;
    display: block;
    margin: 0 auto 10px;
}
.contact-item-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold-primary);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-item-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 145, 72, 0.15);
}
.badge-status-ok {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-status-warn {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Selector y Tarjetas Multi-Paciente */
.patient-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.patient-card-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.patient-card-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(167, 145, 72, 0.15);
}
.patient-card-item.active {
    border-color: var(--gold-primary);
    background: linear-gradient(180deg, #ffffff 0%, #faf8f2 100%);
    box-shadow: 0 0 0 3px rgba(167, 145, 72, 0.25), 0 6px 16px rgba(167, 145, 72, 0.2);
}
.patient-card-item.active::after {
    content: "SELECCIONADO";
    position: absolute;
    top: -9px;
    right: 12px;
    background: var(--gold-primary);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.patient-card-empty {
    border: 2px dashed var(--gold-primary);
    background: #fdfcf9;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.25s ease;
}
.patient-card-empty:hover {
    background: #fcf9ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 145, 72, 0.15);
}
.patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
    background: var(--dark-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 22px;
    flex-shrink: 0;
}
.tab-pills-gold {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid rgba(167, 145, 72, 0.25);
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-pill-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--dark-1);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.tab-pill-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}
.tab-pill-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(167, 145, 72, 0.3);
}

/* Fórmulas, Citas y Documentos Diagnósticos */
.doc-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(167, 145, 72, 0.15);
    border-color: var(--gold-primary);
}
.doc-thumb-box {
    width: 100%;
    height: 130px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
}
.doc-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doc-thumb-box .pdf-icon {
    font-size: 52px;
    color: #dc2626;
}
.badge-principal {
    background: linear-gradient(135deg, #bfa054 0%, #a79148 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(167, 145, 72, 0.3);
}
.contact-item-box.principal {
    border-left: 5px solid #a79148;
    background: linear-gradient(90deg, #faf7ef 0%, #ffffff 100%);
    box-shadow: 0 3px 10px rgba(167, 145, 72, 0.15);
}
.cita-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
/* =========================================
   ZONA DE DESCARGAS DE APKS (LUMA NEXUS SPA)
   ========================================= */
.luma-downloads-section {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 10%, rgba(167, 145, 72, 0.12), transparent 60%), #0c1117;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}
.luma-downloads-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}
.luma-badge-apk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.luma-downloads-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}
.luma-downloads-header h2 span {
    color: var(--gold-primary);
}
.luma-downloads-header p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}
.luma-apk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.luma-apk-card {
    background: linear-gradient(145deg, rgba(23, 30, 38, 0.95), rgba(15, 20, 26, 0.98));
    border: 1px solid rgba(167, 145, 72, 0.25);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.luma-apk-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 50px rgba(167, 145, 72, 0.2);
}
.luma-apk-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}
.luma-apk-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.luma-apk-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.luma-apk-icon i {
    font-size: 38px;
    color: var(--gold-primary);
}
.luma-apk-titles h3 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}
.luma-apk-version {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    margin-top: 4px;
}
.luma-apk-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}
.luma-apk-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}
.luma-apk-meta-item {
    display: flex;
    flex-direction: column;
}
.luma-apk-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}
.luma-apk-meta-val {
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 600;
    margin-top: 2px;
}
.luma-btn-download-apk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-primary), #847233);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(167, 145, 72, 0.25);
    text-align: center;
}
.luma-btn-download-apk:hover {
    background: linear-gradient(135deg, #bca14c, var(--gold-primary));
    box-shadow: 0 12px 25px rgba(167, 145, 72, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}
.luma-apk-qr {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}
.luma-apk-qr-box {
    width: 78px;
    height: 78px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.luma-apk-qr-box img {
    width: 100%;
    height: 100%;
    display: block;
}
.luma-apk-qr-info {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}
.luma-apk-qr-info strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 2px;
}
.luma-apk-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto 0;
}
.luma-apk-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px 20px;
}
.luma-apk-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gold-primary);
    color: #000;
    font-weight: 800;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}
.luma-apk-step h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.luma-apk-step p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   BOTÓN FLOTANTE DE AYUDA Y MANUAL ONLINE HTML (.lum-fab-ayuda / .lum-ayuda-*)
   ============================================================================ */
.lum-fab-ayuda {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--gold-primary, #bfa054);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35), 0 0 0 2px rgba(191, 160, 84, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lum-fab-ayuda:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45), 0 0 0 3px rgba(191, 160, 84, 0.55);
}
.lum-fab-ayuda i {
    font-size: 20px;
}

.lum-ayuda-overlay {
    position: fixed;
    inset: 0;
    z-index: 9900;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.lum-ayuda-overlay.abierto {
    opacity: 1;
    pointer-events: auto;
}

.lum-ayuda-drawer {
    width: min(880px, 96vw);
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.3);
    transform: translateX(30px);
    transition: transform 0.22s ease;
}
.lum-ayuda-overlay.abierto .lum-ayuda-drawer {
    transform: translateX(0);
}

.lum-ayuda-head {
    background: var(--dark-1, #0f172a);
    color: #ffffff;
    padding: 14px 20px;
    border-bottom: 3px solid var(--gold-primary, #bfa054);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lum-ayuda-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lum-ayuda-head-title i {
    font-size: 26px;
    color: var(--gold-primary, #bfa054);
}
.lum-ayuda-head-title strong {
    display: block;
    font-size: 16px;
    color: #ffffff;
}
.lum-ayuda-head-title small {
    display: block;
    font-size: 11.5px;
    color: #cbd5e1;
}
.lum-ayuda-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lum-ayuda-head-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(191, 160, 84, 0.16);
    border: 1px solid rgba(191, 160, 84, 0.55);
    color: var(--gold-primary, #bfa054);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.lum-ayuda-head-btn i {
    font-size: 15px;
}
.lum-ayuda-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.lum-ayuda-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.lum-ayuda-searchbar i {
    color: #64748b;
    font-size: 20px;
}
.lum-ayuda-searchbar input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
}

.lum-ayuda-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 245px 1fr;
}
.lum-ayuda-nav {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lum-ayuda-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.lum-ayuda-nav-item i {
    font-size: 18px;
    color: #64748b;
}
.lum-ayuda-nav-item:hover {
    background: #eef2f7;
}
.lum-ayuda-nav-item.activo {
    background: #ffffff;
    border-color: var(--gold-primary, #bfa054);
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.lum-ayuda-nav-item.activo i {
    color: var(--gold-primary, #bfa054);
}
.lum-ayuda-ctx-pill {
    margin-left: auto;
    font-style: normal;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(191, 160, 84, 0.18);
    color: #8b6f23;
    font-weight: 700;
}

.lum-ayuda-article {
    padding: 22px 24px;
    overflow-y: auto;
    color: #1e293b;
}
.lum-ayuda-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(191, 160, 84, 0.35);
    margin-bottom: 18px;
}
.lum-ayuda-hero-ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0f172a;
    color: var(--gold-primary, #bfa054);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lum-ayuda-hero h3 {
    margin: 0 0 4px;
    font-size: 19px;
    color: #0f172a;
}
.lum-ayuda-hero p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.lum-ayuda-section {
    margin-bottom: 20px;
}
.lum-ayuda-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}
.lum-ayuda-section h4 i {
    font-size: 18px;
    color: var(--gold-primary, #bfa054);
}
.lum-ayuda-lead {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
    background: #f8fafc;
    border-left: 3px solid var(--gold-primary, #bfa054);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}
.lum-ayuda-steps,
.lum-ayuda-rules {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
}
.lum-ayuda-steps li,
.lum-ayuda-rules li {
    margin-bottom: 7px;
}

.lum-ayuda-faq details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.lum-ayuda-faq summary {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
}
.lum-ayuda-faq p {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
}

.lum-ayuda-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    color: #334155;
}
.lum-ayuda-callout i {
    color: var(--gold-primary, #bfa054);
}

.lum-ayuda-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.lum-ayuda-pdf-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lum-ayuda-pdf-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lum-ayuda-pdf-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lum-ayuda-pdf-head strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
}
.lum-ayuda-pdf-head span {
    display: block;
    font-size: 11.5px;
    color: #64748b;
}
.lum-ayuda-pdf-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.lum-ayuda-btn-pdf,
.lum-ayuda-btn-sec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.lum-ayuda-btn-pdf {
    background: #2563eb;
    color: #ffffff;
}
.lum-ayuda-btn-sec {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.lum-ayuda-btn-pdf i,
.lum-ayuda-btn-sec i {
    font-size: 15px;
}
.lum-ayuda-sin-pdf {
    font-size: 11.5px;
    color: #94a3b8;
}

.lum-ayuda-figure {
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.lum-ayuda-img-wrap {
    position: relative;
    cursor: zoom-in;
    background: #0f172a;
}
.lum-ayuda-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: top center;
}
.lum-ayuda-img-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}
.lum-ayuda-img-zoom-hint i {
    font-size: 14px;
    color: var(--gold-primary, #bfa054);
}
.lum-ayuda-figcaption {
    padding: 8px 12px;
    font-size: 12px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

.lum-ayuda-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(15, 23, 42, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lum-ayuda-lightbox.abierto {
    display: flex;
}
.lum-ayuda-lightbox img {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 10px;
    border: 2px solid var(--gold-primary, #bfa054);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    background: #ffffff;
}
.lum-ayuda-lightbox-close {
    position: fixed;
    top: 16px;
    right: 22px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    font-size: 22px;
    cursor: pointer;
}

/* Página completa del Manual HTML (Backend/manual_lumanexus.html) */
body.lum-manual-page-body {
    margin: 0;
    background: #f1f5f9;
    color: #1e293b;
}
.lum-manual-header {
    background: var(--dark-1, #0f172a);
    color: #ffffff;
    border-bottom: 3px solid var(--gold-primary, #bfa054);
    padding: 16px 24px;
}
.lum-manual-brand {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.lum-manual-brand img {
    height: 44px;
}
.lum-manual-brand h1 {
    margin: 0;
    font-size: 20px;
    color: var(--gold-primary, #bfa054);
}
.lum-manual-brand p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: #cbd5e1;
}
.lum-manual-main {
    max-width: 1220px;
    margin: 20px auto;
    padding: 0 16px 32px;
}
.lum-ayuda-page-shell {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.lum-ayuda-page-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.lum-ayuda-page-layout {
    min-height: 70vh;
}

@media (max-width: 760px) {
    .lum-ayuda-layout {
        grid-template-columns: 1fr;
    }
    .lum-ayuda-nav {
        max-height: 185px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .lum-fab-ayuda {
        right: 14px;
        bottom: 14px;
        padding: 10px 14px;
    }
}

@media print {
    .lum-manual-header,
    .lum-ayuda-page-bar,
    .lum-ayuda-nav,
    .lum-fab-ayuda {
        display: none !important;
    }
    body.lum-manual-page-body {
        background: #ffffff;
    }
    .lum-manual-main {
        margin: 0;
        padding: 0;
        max-width: none;
    }
    .lum-ayuda-page-shell {
        border: none;
        box-shadow: none;
    }
    .lum-ayuda-layout {
        display: block;
    }
}






/* =========================================
   BOTÓN E INDICADOR DE USUARIOS CONECTADOS
   ========================================= */
.btn-usuarios-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-usuarios-online:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}
