/* --- CONFIGURACIONES GENERALES Y COLORES --- */
:root {
    --azul-ccr: #0e2e5c;
    --azul-oscuro: #091e3d;
    --rojo-ccr: #d11d24;
}

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* EL LIENZO DE LAS PARTÍCULAS EFECTÚA EL COLOR DE FONDO */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Al fondo */
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%) !important;
}

/* LA CAPA DEL CONTENIDO SE CONFIGURA TRANSPARENTE */
.background-wrapper {
    position: relative;
    z-index: 2; /* Arriba de las partículas */
    background: transparent !important;
    pointer-events: none; /* Permite al mouse interactuar con el canvas de abajo */
}

/* ACTIVAR CLICK EN LOS ELEMENTOS DEL CONTENIDO */
.header-banner, main, footer, .card-consulta, input, button, a, table {
    pointer-events: auto !important;
}

/* --- ENCABEZADO SUPERIOR REALISTA --- */
.header-banner {
    background: linear-gradient(180deg, var(--azul-ccr) 0%, var(--azul-oscuro) 80%);
    border-bottom: 7px solid var(--rojo-ccr);
    position: relative;
    min-height: 90px;
}

/* Comportamiento de los Logos flotantes */
.logo-top {
    position: relative;
    max-height: 120px;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.25));
    transition: all 0.3s ease;
}

.logo-left {
    top: 20px;
}

.logo-right {
    top: 15px;
}

.text-navy {
    color: var(--azul-oscuro);
}

.tracking-wide {
    letter-spacing: 1px;
}

/* --- TARJETA DE CONSULTA (FLOTANTE) --- */
.card-consulta {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px;
}

.linea-decorativa {
    width: 40px;
    height: 4px;
    background-color: var(--rojo-ccr);
    border-radius: 2px;
}

/* Caja del Input y Botón */
.custom-input-group {
    border: 1px solid #ced4da;
    border-radius: 30px !important;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.custom-input-group:focus-within {
    border-color: var(--azul-ccr);
    box-shadow: 0 0 0 0.25rem rgba(14, 46, 92, 0.15) !important;
}

.btn-search {
    background-color: var(--rojo-ccr) !important;
    border: none;
    border-radius: 0px !important;
    transition: background 0.2s ease-in-out;
}

.btn-search:hover {
    background-color: #b0151b !important;
}

/* Ilustración lateral */
.img-ilustracion {
    max-height: 250px;
    object-fit: contain;
}

.z-1 {
    z-index: 1;
}

/* --- ESTILOS EXTRA PARA LA VISTA DE RESULTADOS INTEGRADA --- */
.fw-mono {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.btn-navy {
    background-color: var(--azul-ccr) !important;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-navy:hover {
    background-color: var(--azul-oscuro) !important;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem; 
}

/* Animación de entrada suave para las tarjetas */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDAD OPTIMIZADA --- */
@media (max-width: 768px) {
    .header-banner {
        min-height: 70px;
    }
    .logo-top {
        max-height: 75px;
    }
    .logo-left {
        top: 5px;
    }
    .logo-right {
        top: 5px;
    }
    .text-title-responsive {
        font-size: 0.95rem !important;
    }
    .text-subtitle-responsive {
        font-size: 0.55rem !important;
    }
    .card-consulta {
        margin-top: 40px;
    }
    .table-responsive table {
        font-size: 0.9rem;
    }
    .table-responsive td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        border-end: none;
    }
    .table-responsive td:first-child {
        background-color: #f8f9fa;
        padding-top: 12px;
        padding-bottom: 4px;
        font-size: 0.8rem;
        color: #6c757d;
    }
    .table-responsive td:last-child {
        padding-top: 4px;
        padding-bottom: 12px;
        border-bottom: 1px solid #dee2e6;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .text-title-responsive {
        font-size: 1.4rem !important;
    }
    .text-subtitle-responsive {
        font-size: 0.8rem !important;
    }
}