/* ============================================
   EUREKASS - INTERFAZ TRANSFORMADA (DARK MODE + NEOMORPHISM)
   Transformación radical manteniendo compatibilidad de clases
   ============================================ */

/* === VARIABLES CSS REEMPLAZADAS DINÁMICAMENTE === */
/* Estas variables serán inyectadas por PHP pero las forzamos aquí para la transformación */

:root {
    /* Nueva paleta: Cyberpunk/Dark Neomorphic */
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-cyan-t: #00f3ff44;
    --neon-purple-t: #bc13fe44;
    --neon-pink: #ff006e;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(20, 20, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Sobrescritura de variables originales */
    --color-inactivo: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --color-hover: linear-gradient(135deg, #00f3ff 0%, #bc13fe 100%);
    --box-blur: 20px;
    --border-width: 0px;
    --color-box-body-border: rgba(0, 243, 255, 0.3);

    /* Contraste invertido para dark mode */
    --contrast-box-header: #ffffff;
    --contrast-box-body: #e0e0ff;
    --contrast-maintitle: #00f3ff;
    --contrast-essmenu: #a0a0ff;
    --contrast-essmenu-ac: #ffffff;
    --contrast-essmenu-ho: #00f3ff;
    --contrast-esssubmenu: #8080ff;
    --contrast-essfooter: #6060ff;
    --contrast-btn: #0a0a0f;
    --contrast-btn-hover: #ffffff;

    /* Colores de fondo transformados */
    --color-essmenu-bg-ac: linear-gradient(90deg, rgba(0,243,255,0.2) 0%, rgba(188,19,254,0.1) 100%);
    --color-essmenu-bg-ho: rgba(0, 243, 255, 0.15);
    --color-btn-bg: linear-gradient(135deg, #00f3ff 0%, #00c3ff 100%);
    --color-btn-bg-hover: linear-gradient(135deg, #bc13fe 0%, #ff006e 100%);
    --color-btn-border: rgba(0, 243, 255, 0.5);
    --color-btn-border-hover: rgba(188, 19, 254, 0.8);
}

/* === RESET Y BASE === */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--dark-bg) !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(188, 19, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.08) 0%, transparent 40%) !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === VALORACIÓN - ESTRELLAS NEON === */
.ess_valoracion_off { 
    background-image: var(--color-inactivo); 
    filter: grayscale(0.8) brightness(0.5);
}

.ess_valoracion_on { 
    background-image: var(--color-hover); 
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
}

.valoracion {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 5px;
}

.valoracion.editable {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    flex-direction: row-reverse;
    border: 0px solid var(--glass-border);
}

.valoracion span.editable {
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.valoracion span.editable:hover,
span.editable:nth-child(1):hover ~ span,
span.editable:nth-child(2):hover ~ span,
span.editable:nth-child(3):hover ~ span,
span.editable:nth-child(4):hover ~ span,
span.editable:nth-child(5):hover ~ span {
    cursor: pointer;
    background-image: var(--color-hover);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

/* === EDITOR DE NOTAS - DARK MODE === */
.note-editable,
.note-editing-area .note-editable h1,
.note-editing-area .note-editable h2,
.note-editing-area .note-editable h3,
.note-editing-area .note-editable h4,
.note-editing-area .note-editable h5,
.note-editing-area .note-editable h6,
.note-editor .note-toolbar .note-style .dropdown-style h1,
.note-editor .note-toolbar .note-style .dropdown-style h2,
.note-editor .note-toolbar .note-style .dropdown-style h3,
.note-editor .note-toolbar .note-style .dropdown-style h4,
.note-editor .note-toolbar .note-style .dropdown-style h5,
.note-editor .note-toolbar .note-style .dropdown-style h6,
.note-editor .note-toolbar .note-style .dropdown-style p,
.note-popover .popover-content .note-style .dropdown-style h1,
.note-popover .popover-content .note-style .dropdown-style h2,
.note-popover .popover-content .note-style .dropdown-style h3,
.note-popover .popover-content .note-style .dropdown-style h4,
.note-popover .popover-content .note-style .dropdown-style h5,
.note-popover .popover-content .note-style .dropdown-style h6,
.note-popover .popover-content .note-style .dropdown-style p {
    color: #e0e0ff !important;
    background: transparent !important;
}

.note-editor {
    background: var(--card-bg) !important;
    border: 0px solid var(--glass-border) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.note-editor.note-frame { 
    margin-bottom: 0px; 
    border: none !important;
}

/* === HEADER Y NAVEGACIÓN - GLASSMORPHISM === */
.main-header {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-header .navbar .nav>li>a>.label { 
    font-size: 11px; 
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)) !important;
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.ess_image_view { 
    border: 0px; 
    max-width: 100%; 
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.reordered { 
    border: 0px solid var(--neon-pink); 
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
    animation: pulse-border 2s infinite;
}

.row { 
    margin-right: 0px; 
}

/* === SISTEMA DE COLUMNAS === */
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, 
.col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7,
.col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7,
.col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    padding-right: 15px;
    padding-left: 15px;
}

.ess_pad_15 { padding-right: 15px; }

/* === LOGO Y HEADER - NEON === */
.skin-eurekass .main-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,243,255,0.1) 0%, rgba(188,19,254,0.1) 100%) !important;
    border-right: 1px solid var(--glass-border);
}

.main-header .logo-lg img { 
    max-width: 100%; 
    max-height: 45px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.main-header .navbar .idioma .dropdown-menu li a { 
    color: #e0e0ff; 
    background: rgba(20, 20, 35, 0.95);
    transition: all 0.3s;
}

.main-header .navbar .idioma .dropdown-menu li a:hover {
    background: rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
}

.bp-title, .essbderror, .modal-dialog { 
    color: #FFF; 
}

.rows_cols_bot { width: 0px; }
.rows_det_bot { max-width: 0px; }

/* === CARRITO - EFECTO HOVER NEON === */
.item_carrito_menu:hover a { 
    visibility: visible; 
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

.item_carrito_menu a { 
    visibility: hidden; 
}

/* === LOADER - ANIMACIÓN CYBERPUNK === */
.loader {
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
    margin: auto;
    filter: drop-shadow(0px 0px 20px var(--neon-cyan));
}

.loader_o {
    border: 4px solid transparent;
    border-radius: 50%;
    border-top: 4px solid var(--neon-cyan);
    border-right: 4px solid var(--neon-purple);
    border-bottom: 4px solid var(--neon-pink);
    border-left: 4px solid var(--neon-cyan);
    width: 120px;
    height: 120px;
    animation: spin-cyber 1.5s linear infinite;
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.5),
        inset 0 0 20px rgba(188, 19, 254, 0.3);
}

/* === ANIMACIONES RE-DEFINIDAS === */
@keyframes girar { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@keyframes voltear { 
    0% { transform: rotateY(0deg); } 
    100% { transform: rotateY(360deg); } 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-cyber {
    0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { transform: rotate(360deg); filter: hue-rotate(360deg); }
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--neon-pink); box-shadow: 0 0 20px rgba(255, 0, 110, 0.4); }
    50% { border-color: var(--neon-cyan); box-shadow: 0 0 30px rgba(0, 243, 255, 0.6); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 243, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(188, 19, 254, 0.4); }
}

/* === SMALL BOXES - NEOMORPHISMO === */
.small-box {
    background: var(--card-bg) !important;
    border-radius: 20px !important;
    border: 0px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.small-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.7s;
}

.small-box:hover::before {
    left: 100%;
}

.small-box .icon { 
    top: -10px; 
    right: 10px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
    opacity: 0.3;
}

.small-box .icon i { 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--neon-cyan-t) !important;
}

.small-box:hover .icon { 
    font-size: 90px; 
    transform: translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.6));
}

.small-box:hover .icon i { 
    font-size: 160px; 
    color: var(--neon-purple-t) !important;
}

.small-box .icon img { 
    transition: all 0.4s linear; 
    opacity: 0.9;
    filter: saturate(1.5) hue-rotate(180deg);
}

.small-box:hover .icon img { 
    opacity: 1 !important; 
    transition: all 0.4s linear !important; 
    max-width: 100% !important; 
    max-height: 220px !important; 
    height: 220px !important;
    filter: saturate(2) hue-rotate(200deg) drop-shadow(0 0 15px rgba(188, 19, 254, 0.5));
}

/* === EFECTO HOVER RESALTADO - LEVITACIÓN === */
.resaltar_hover .inner, .resaltar_hover .box-body, .resaltar_hover .widget-user-header { 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.resaltar_hover:hover .inner { 
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.resaltar_hover:hover .widget-user-header { 
    background: linear-gradient(135deg, rgba(0,243,255,0.2) 0%, rgba(188,19,254,0.2) 100%) !important;
}

.resaltar_hover:hover .box-body { 
    background: rgba(20, 20, 35, 0.9) !important;
}

/* === MENÚ Y ÁRBOL - ESTILO CYBER === */
.menu_tree_icon { 
    margin: 2px 10px 10px 0px; 
    text-align: right;
    color: var(--neon-cyan);
}

.attach { 
    border: 0px solid var(--neon-cyan); 
    display: inline-grid;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.attach img { 
    width: 100px; 
    max-height: 100px;
    filter: contrast(1.2);
}

.wizard_grupo_id { display: none; }
.wizard_grupo_current { display: block; }

.box-widget p *, .box-widget a * { 
    color: var(--contrast-box-body); 
}

.box-header>.box-tools { 
    position: unset; 
}

/* === MENÚ DE USUARIO - DROPDOWN GLASS === */
.navbar-nav>.user-menu>.dropdown-menu {
    background: rgba(20, 20, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 0px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header {
    background: linear-gradient(135deg, rgba(0,243,255,0.1) 0%, rgba(188,19,254,0.1) 100%) !important;
    border-bottom: 1px solid var(--glass-border);
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>a>img {
    /*z-index: 5;*/
    height: 90px;
    width: 90px;
    border: 3px solid;
    border-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transition: all 0.3s;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>a>img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

/* === SIDEBAR - NAVEGACIÓN CYBERPUNK === */
.sidebar-menu>li>a>.fa, .sidebar-menu .treeview-menu>li>a>.fa { 
    text-align: right; 
    margin-right: 8px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.main-sidebar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1031;
}

.sidebar-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu > li > a {
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
    padding: 12px 15px;
}

/* === CHAT DIRECTO - BURBUJAS MODERNAS === */
.direct-chat-messages { 
    height: 450px;
    background: rgba(10, 10, 15, 0.5);
}

.direct-chat .left>.direct-chat-text { 
    background: rgba(30, 30, 50, 0.9);
    border: 0px solid var(--glass-border);
    border-radius: 0 16px 16px 16px;
    color: #e0e0ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.direct-chat .right>.direct-chat-text {
    background: linear-gradient(135deg, rgba(0,243,255,0.2) 0%, rgba(188,19,254,0.2) 100%);
    border: 0px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px 0 16px 16px;
    color: #ffffff;
}

.direct-chat-text { 
    display: flow-root;
    backdrop-filter: blur(10px);
}

.direct-chat .left>.direct-chat-timestamp { 
    color: #8080ff; 
}

.direct-chat .right>.direct-chat-timestamp {
    color: var(--neon-cyan);
}

/* === EFECTO BLUR ACTIVADO === */
.box-body, .bg_blur, .box-header, .box-footer, .info-box, .navbar { 
    backdrop-filter: blur(var(--box-blur));
}

/* === BOX DE AYUDA - TARJETA GLASS === */
.ess_box_help {
    margin-bottom: 17px;
    border-radius: 16px;
    background: var(--card-bg);
    border: var(--border-width) solid var(--color-box-body-border);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ess_box_help.col_help { 
    margin-top: -14px; 
}

.info-box { 
    overflow: overlay;
    background: var(--card-bg) !important;
    border-radius: 16px;
    border: 0px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === DATATABLES - TABLA DARK === */
.dataTables_length select {
    border-color: var(--glass-border);
    background: rgba(20, 20, 35, 0.8);
    height: 40px;
    padding: 8px 16px;
    color: var(--neon-cyan);
    font-weight: normal;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.dataTables_filter input {
    background: rgba(20, 20, 35, 0.8) !important;
    border: 0px solid var(--glass-border) !important;
    border-radius: 25px;
    padding: 8px 16px;
    color: #e0e0ff !important;
    backdrop-filter: blur(10px);
}

.dataTables_filter input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    outline: none;
}

table.dataTable {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 8px;
}

table.dataTable thead th {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan) !important;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

table.dataTable tbody tr {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

table.dataTable tbody tr:hover {
    background: rgba(0, 243, 255, 0.1) !important;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.2);
}

table.dataTable.stripe tbody tr.odd, 
table.dataTable.display tbody tr.odd {
    background-color: var(--card-bg);
}


table.dataTable tbody td {
    border: none;
    padding: 15px;
    color: #e0e0ff;
}

/* === FORMULARIOS - INPUTS NEON === */
.box-body .form-group .control-label { 
    padding-top: 0px; 
    padding-right: 0px;
    color: var(--neon-cyan);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.form-control {
    background: rgba(20, 20, 35, 0.8) !important;
    border: 0px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: #e0e0ff !important;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 30, 50, 0.9) !important;
}

/* === TABLAS DE MODESS === */
.ess_modess_tab_exp { 
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ess_modess_tab_exp td { 
    padding: 15px; 
    color: #e0e0ff;
}

.ess_modess_tab_exp tbody, .ess_modess_tab_exp tfoot { 
    border-bottom: 1px solid rgba(0, 243, 255, 0.3); 
}

.ess_modess_hide { display: none; }

.ess_modess_tit, .ess_modess_text { 
    max-width: 50%;
    color: var(--neon-cyan);
}

.ess_modess_number { 
    width: 10%; 
    text-align: right;
    color: var(--neon-pink);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.ess_modess_tab_exp thead td.ess_modess_tit, .ess_modess_tab_exp tfoot td.ess_modess_number { 
    font-weight: bold;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === TÍTULOS EN TIMELINE === */
tbody h1, tbody h2, tbody h3, tbody h4, tbody h5,
.timeline h1, .timeline h2, .timeline h3, .timeline h4, .timeline h5 { 
    color: #e0e0ff;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.timeline {
    position: relative;
}

.timeline::before {
    background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    width: 3px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.timeline > li > .timeline-item {
    background: var(--card-bg);
    border: 0px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline > li > .timeline-item > .timeline-header {
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--glass-border);
}

.timeline > li > .fa, .timeline > li > .glyphicon, .timeline > li > .ion {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    border: 0px solid rgba(255, 255, 255, 0.2);
}

/* === CHECKBOX Y ENLACES === */
.checkbox_info { 
    margin-left: 10px;
    color: #8080ff;
}

.checkbox_info a, .help-block a, .control-label a, .box-header a,
.box-body h1 a, .box-body h2 a, .box-body h3 a, .box-body h4 a, .box-body h5 a, .ess_a_copy { 
    text-decoration: none;
    color: var(--neon-cyan);
    position: relative;
    font-weight: 500;
}

.checkbox_info a::after, .help-block a::after, .control-label a::after, 
.box-header a::after, .box-body h1 a::after, .box-body h2 a::after, 
.box-body h3 a::after, .box-body h4 a::after, .box-body h5 a::after, 
.ess_a_copy::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.3s;
}

.checkbox_info a:hover::after, .help-block a:hover::after, .control-label a:hover::after, 
.box-header a:hover::after, .box-body h1 a:hover::after, .box-body h2 a:hover::after, 
.box-body h3 a:hover::after, .box-body h4 a:hover::after, .box-body h5 a:hover::after, 
.ess_a_copy:hover::after {
    width: 100%;
}

.checkbox_info a:hover, .help-block a:hover, .control-label a:hover, .box-header a:hover,
.box-body h1 a:hover, .box-body h2 a:hover, .box-body h3 a:hover, .box-body h4 a:hover, 
.box-body h5 a:hover, .ess_a_copy:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* === INFO BOXES - TARJETAS CON ÍCONOS === */
.info-box-icon { 
    background: none;
    border-radius: 16px 0 0 16px;
}

.info-box-content {
    padding: 20px;
}

.info-box-text {
    color: #8080ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

.info-box-number {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

table.table_det tbody td { 
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    color: #e0e0ff;
}

table tbody { 
    color: #e0e0ff; 
}

/* === CHOSEN Y INPUTS DE BÚSQUEDA === */
.chosen-container, input[type="search"] { 
    color: #e0e0ff; 
}

input[type="search"] { 
    border: 0px solid var(--glass-border);
    background: rgba(20, 20, 35, 0.8);
    border-radius: 25px;
    padding: 10px 20px;
}

.chosen-container-multi .chosen-choices {
    min-height: 45px;
    padding: 8px 16px;
    background: rgba(20, 20, 35, 0.8) !important;
    border: 0px solid var(--glass-border) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.chosen-container-multi .chosen-choices li.search-choice {
    padding: 8px 20px 8px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,243,255,0.2) 0%, rgba(188,19,254,0.2) 100%) !important;
    border: 0px solid rgba(0, 243, 255, 0.3) !important;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    top: 8px;
    right: 5px;
    filter: invert(1);
}

/* === BOTONES DE FILA EN TABLAS - APARICIÓN SUAVE === */
.btn_row_list {
    padding: 8px 12px;
    border: 0px;
    background: rgba(0, 243, 255, 0.1);
    visibility: hidden;
    border-radius: 8px;
    color: var(--neon-cyan);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

tr[role='row']:hover .btn_row_list { 
    visibility: visible;
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

tr[role='row']:hover .btn_row_list:hover {
    background: var(--neon-cyan);
    color: #0a0a0f;
    transform: scale(1.1);
}

table.dataTable tbody tr:hover { 
    background-color: transparent !important;
}

/* === ICONOS DE INFO BOX === */
.info-box-icon-jjj { 
    height: 84px; 
    width: 84px;
    background: linear-gradient(135deg, rgba(0,243,255,0.1) 0%, rgba(188,19,254,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box-icon-jjj i {
    color: var(--neon-cyan);
    font-size: 2em;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

/* === SIDEBAR TOGGLE === */
.main-header .sidebar-toggle:before { 
    content: '';
    /*content: '☰';*/
    font-size: 1.2em;
    color: var(--neon-cyan);
}

.main-header .sidebar-toggle {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.main-header .sidebar-toggle:hover {
    background: rgba(0, 243, 255, 0.1) !important;
    color: var(--neon-pink) !important;
}

/* === BOX HEADER - TÍTULOS DE SECCIÓN === */
.box-header {
    background: linear-gradient(135deg, rgba(0,243,255,0.1) 0%, rgba(188,19,254,0.05) 100%) !important;
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.box-header h3 {
    color: #ffffff !important;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.box-header .box-title {
    font-size: 1.3em;
}

/* === BOX BODY - CONTENIDO === */
.box-body {
    background: var(--card-bg) !important;
    padding: 25px;
}

.box {
    background: transparent;
    border-radius: 16px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

/* === BOX FOOTER === */
.box-footer {
    background: rgba(10, 10, 15, 0.8) !important;
    border-top: 1px solid var(--glass-border);
    padding: 20px;
}

/* === MODALES - VENTANAS EMERGENTES === */
.modal-content {
    background: rgba(20, 20, 35, 0.95) !important;
    backdrop-filter: blur(30px);
    border: 0px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, rgba(0,243,255,0.1) 0%, rgba(188,19,254,0.1) 100%);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 20px;
}

.modal-header .close {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    opacity: 1;
    font-size: 1.5em;
    transition: all 0.3s;
}

.modal-header .close:hover {
    color: var(--neon-pink);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    color: #e0e0ff;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 20px;
}

/* === PAGINACIÓN === */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(20, 20, 35, 0.8) !important;
    border: 0px solid var(--glass-border) !important;
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
    color: #e0e0ff !important;
    transition: all 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 243, 255, 0.2) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%) !important;
    color: #0a0a0f !important;
    border-color: transparent !important;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    color: #8080ff !important;
}

.main-header a.logo {
    display: none !important;
    background-color: none;
}

.main-sidebar a.logo {
    margin-top: -50px;
    display: block;
    width: 100%;
}

.main-sidebar a.logo .logo-lg img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .fb_reset iframe {
        margin: 0px -10px 0px 0px;
        bottom: 0px;
    }

    .box-header {
        padding: 15px;
    }

    .box-body {
        padding: 15px;
    }

    .small-box .icon {
        display: none;
    }

    .info-box-icon {
        border-radius: 16px;
        margin-bottom: 10px;
    }
    .main-header a.logo {
        display: block !important;
    }

    .skin-eurekass .main-sidebar a.logo,
    .skin-eurekass .main-sidebar a.logo .logo-lg,
    .skin-eurekass .main-sidebar a.logo .logo-lg img {
        display: none !important;
    }
}

/* ============================================
   APLICACIÓN DE VARIABLES DE CONTRASTE
   (Sobrescritas arriba, mantenidas por compatibilidad)
   ============================================ */

/* Box header */
.box-header, .box-header h3, .box-header a { 
    color: var(--contrast-box-header) !important; 
}

/* Box body y contenido relacionado */
.box-body, .modal-content, .box-body .form-group .control-label, .box-body label a, .control-label a,
.boess_table_list th, .dataTables_info, .dataTables_filter,
.dataTables_wrapper .dataTables_paginate .paginate_button, .dataTables_wrapper .dataTables_paginate .ellipsis,
.box-footer, .help-block, .box-body h1, .box-body h2, .box-body h3, .box-body h4, .box-body h5,
.checkbox_info, .checkbox_info a, .help-block a, .box-body h1 a, .box-body h2 a, .box-body h3 a,
.box-body h4 a, .box-body h5 a, .ess_a_copy, center, .box-body span.help-block, .dataTables_paginate a {
    color: var(--contrast-box-body) !important;
}

/* Header principal */
.skin-eurekass .main-header .navbar .sidebar-toggle,
.skin-eurekass .main-header .logo,
.skin-eurekass .main-header .navbar .nav > li > a {
    color: var(--contrast-maintitle) !important;
}

/* Sidebar menu */
.skin-eurekass .sidebar-menu > li > a, .skin-eurekass .sidebar-menu > li.header {
    color: var(--contrast-essmenu) !important;
}

.skin-eurekass .sidebar-menu > li.active > a, .skin-eurekass .treeview-menu > li.active > a {
    background: var(--color-essmenu-bg-ac) !important;
    color: var(--contrast-essmenu-ac) !important;
    box-shadow: 
        inset 0 0 20px rgba(0, 243, 255, 0.2),
        0 0 20px rgba(0, 243, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
}

.skin-eurekass .sidebar-menu > li:hover > a, .skin-eurekass .treeview-menu > li > a:hover {
    background: var(--color-essmenu-bg-ho) !important;
    color: var(--contrast-essmenu-ho) !important;
    transform: translateX(5px);
}

.skin-eurekass .treeview-menu > li > a, .skin-eurekass .sidebar-menu > li > .treeview-menu {
    color: var(--contrast-esssubmenu) !important;
    background: rgba(10, 10, 15, 0.5) !important;
}

.skin-eurekass .treeview-menu {
    border-left: 1px solid rgba(0, 243, 255, 0.2);
    margin-left: 20px;
}

/* Footer */
.skin-eurekass .main-footer a, .skin-eurekass .main-footer {
    color: var(--contrast-essfooter) !important;
    background: rgba(10, 10, 15, 0.9) !important;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Botones y elementos interactivos */
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close,
.chosen-container-multi .chosen-choices li.search-choice, .ui-state-default,
.ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .btn-primary,
.ui-state-default span, .ui-state-default .ui-icon {
    border-color: var(--color-btn-border) !important;
    background: var(--color-btn-bg) !important;
    color: var(--contrast-btn) !important;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    transition: all 0.3s;
}

.btn-special:hover { 
    color: var(--contrast-btn) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5);
}

.btn-special { 
    color: var(--contrast-btn-hover) !important;
}

.chosen-container-multi .chosen-choices li.search-choice:hover, .ui-state-default:hover,
.btn-primary:hover, .btn-default:hover, .ui-state-default:hover span,
.ui-state-default:hover .ui-icon {
    border-color: var(--color-btn-border-hover) !important;
    background: var(--color-btn-bg-hover) !important;
    color: var(--contrast-btn-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 19, 254, 0.5);
}

/* Botones secundarios */
.btn-default {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 0px solid var(--glass-border) !important;
    color: #e0e0ff !important;
}

.btn-default:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
}

/* === SCROLLBAR PERSONALIZADO === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    border-radius: 5px;
    border: 0px solid rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink) 0%, var(--neon-cyan) 100%);
}

/* === EFECTOS ESPECIALES ADICIONALES === */

/* Glow para elementos importantes */
.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* Float para elementos destacados */
.float-effect {
    animation: float 3s ease-in-out infinite;
}

/* Gradiente animado para bordes */
.gradient-border {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    background-size: 400% 400%;
    border-radius: 18px;
    /*z-index: -1;*/
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

