/* ==========================================================================
   GLOBAL FUTURISTIC DARK THEME OVERRIDES
   Se aplica a las páginas blancas como legal o eventos para estandarizarlas
   ========================================================================== */

/* Fondo base y color de texto */
body {
    background-color: transparent !important;
    background-image: none !important; /* Quitamos el gradiente claro de app.css */
    color: #cbd5e1 !important; /* Softer text color */
}

/* GLOBAL BACKGROUND VIDEO */
.video-fondo-container.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* raised from -10 to ensure visibility of particles */
    overflow: hidden;
    pointer-events: none;
    /* Fondo A: azul marino con brillo cian suave arriba a la derecha */
    background: radial-gradient(ellipse 70% 70% at 88% 5%, rgba(0, 169, 204, 0.20), transparent 60%),
                radial-gradient(ellipse 45% 50% at 0% 100%, rgba(0, 169, 204, 0.06), transparent 60%),
                #0a1428;
}

.video-fondo-container.global-background .global-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-fondo-container.global-background .video-fondo {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Ligeramente menos brillante para que no distraiga */
}

.video-fondo-container.global-background .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente mÃ¡s oscuro inspirado en el home original */
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.4) 0%, rgba(3, 10, 22, 0.85) 100%) !important;
    z-index: 1;
}

/* Estilo específico para la Home (más vibrante y clara) */
.is-home .video-fondo-container.global-background {
    background-color: #0a1428;
}

.is-home .video-fondo-container.global-background .video-fondo {
    opacity: 1; /* Video al 100% de brillo en el home */
}

.is-home .video-fondo-container.global-background .video-overlay {
    display: none;
}

/* Neural Network Canvas */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Encabezados globales */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .title {
    color: #f8fafc !important; /* Soft white */
}

/* Modales y contenedores que pudiesen ser blancos */
.modal-content, .modal-body, .modal-header, .modal-full {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: rgba(0, 212, 255, 0.2) !important;
}

/* Enlaces y listas genéricas */
.legal p, .legal li, .wrapper p, .wrapper li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1 !important;
}

/* Componentes del calendario (Sección eventos) */
#calendar, .fc, .fc-theme-standard, .fc-scroller {
    background-color: #0a1128 !important;
}
.fc-daygrid-day, .fc-timegrid-slot, .fc-col-header-cell {
    border-color: rgba(0, 212, 255, 0.15) !important;
}
.fc-daygrid-day-number, .fc-col-header-cell-cushion {
    color: #ffffff !important;
}

/* Reemplazando tarjetas blancas */
.card, .panel, .box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   FORMULARIOS Y CAMPOS FUTURISTAS (Página Demo etc.)
   ========================================================================== */

/* Labels */
.ls-form label, .text-special {
    color: #a8d9e8 !important;
}

/* Inputs, Textareas, Selects nativos */
.ls-form .form-control, .store-input-field {
    background-color: rgba(13, 22, 51, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.ls-form .form-control:focus, .store-input-field:focus {
    outline: none !important;
    border-color: rgba(0, 212, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 8px rgba(0, 212, 255, 0.1) !important;
    background-color: rgba(17, 30, 65, 0.9) !important;
}

/* Select2 Overrides para integrarlos al diseño Cyber */
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: rgba(13, 22, 51, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    min-height: 48px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(0, 212, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
}

/* Texto desplegable seleccionado */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #ffffff !important;
    padding-left: 15px;
    padding-top: 8px;
}

/* Flecha desplegable select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}

/* Chips/Badges de opciones multiseleccionadas */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(90deg, rgba(45, 122, 143, 0.8), rgba(0, 212, 255, 0.6)) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 8px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    margin-right: 5px;
}

/* Menú dropdown (Opciones desplegadas) */
.select2-dropdown {
    background-color: #0d1633 !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    color: #a8d9e8 !important;
    padding: 10px 15px !important;
}

/* Hover en las opciones */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background-color: rgba(0, 212, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Buscador dentro del select2 */
.select2-container--default .select2-search--inline .select2-search__field {
    color: white !important;
    margin-top: 8px !important;
}

/* Placeholder */
::placeholder {
    color: rgba(168, 217, 232, 0.5) !important;
}

/* Expansion Tile custom styling */
.expansion-tile-header {
    background-color: rgba(13, 22, 51, 0.8) !important;
}
.tile-chevron {
    transition: transform 0.3s ease;
    color: rgba(0, 212, 255, 0.8);
}

/* Custom Checkboxes */
.checkbox-container-futurista {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: #ffffff;
}

.checkbox-container-futurista input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container-futurista .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(13, 22, 51, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container-futurista:hover input ~ .checkmark {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.checkbox-container-futurista input:checked ~ .checkmark {
    background-color: rgba(0, 212, 255, 0.6);
    border-color: rgba(0, 212, 255, 1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container-futurista input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container-futurista .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* Enlaces a los dossieres de cada módulo (Características y utilidades / Uso y funcionamiento) */
.product-info-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 4px; }
.product-info-link { color: #00d4ff; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.product-info-link::after { content: "↗"; font-size: 13px; opacity: .8; }
.product-info-link:hover, .product-info-link:focus { color: #a8d9e8; text-decoration: underline; text-underline-offset: .2em; }
.product-info-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
