/* ============================================
   SISTEMA DE COLORES GLOBAL - SBC_Gestor
   ============================================ */

:root {
    /* Colores Neutros (Soporte / Fondo / Texto) */
    --neutral-100: #F6F7FB;  /* Fondo claro */
    --neutral-300: #D1D5DB;  /* Bordes */
    --neutral-600: #6B7280;  /* Texto secundario */
    --neutral-900: #111827;  /* Texto principal */
    
    /* Color Primario (CTA / Links / Inputs activos) */
    --primary: #638ECB;       /* Azul Moderno */
    --primary-light: #B1C9EF; /* Azul Claro */
    --primary-dark: #4A6FA5;  /* Azul Oscuro */
    
    /* Color Success (Éxito / Positivo) */
    --success: #10B981;
    --success-hover: #059669;
    --success-light: #34D399;
    
    /* Color Warning (Advertencia / Precaución) */
    --warning: #F59E0B;
    --warning-hover: #D97706;
    --warning-light: #FBBF24;
    
    /* Color Destructive (Error / Falla) */
    --destructive: #EF4444;
    --destructive-hover: #DC2626;
    --destructive-light: #F87171;
    
    /* Gradientes para Headers o Cards */
    --gradient-header-card: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    --gradient-primary: linear-gradient(135deg, #B1C9EF 0%, #638ECB 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #638ECB 0%, #B1C9EF 100%);
    --gradient-success: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    --gradient-warning: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --gradient-destructive: linear-gradient(135deg, #F87171 0%, #EF4444 100%);

    /*Configuraciones de transición*/
    --glow-hue: 190;
    --shadow-hue: 190;
    --spring-duration: 0.4s;
    --spring-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --sombreado-texto: 0 1px 2px #fff;
    --sombreado-titulo: 0 1px 2px #fff, 0 2px 6px #aaa;
}

/* Botón base reutilizable */
.btn {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 45px;
    background-color: var(--neutral-100);
    background-image: var(--gradient-primary);
    border: 1px solid var(--primary-dark);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 3px 1px hsl(var(--glow-hue) 50% 20% / 50%), 
                inset 0 -10px 20px -10px hsl(var(--shadow-hue), 10%, 90%, 95%);
    scale: 1;
    transition: all var(--spring-duration) var(--spring-easing);
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden; 
    color: var(--neutral-600);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(250, 250, 250, 0.35), transparent);
    transform: skewX(-30deg);
    transition: all 0.5s ease;
    color: var(--primary);
}
.btn:hover::before {
    left: 150%;
    transition: all 1.2s ease-in-out;
    color: var(--primary);
}

.btn:hover {
    color: var(--primary);
}

.btn:active {
    scale: 1.025;
    color: var(--primary);
}

/*boton cancelar o volver */
.btn-cancel{
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    text-align: left;
    margin-left: 25px;
    color: var(--primary);
    font-size: 20px;  
    transition: font-size 0.3s ease;  
}

.btn-cancel:hover{
    font-size: 25px;  
    color: var(--primary-dark);
}

/* Iconos */
.buttoni  {
    background: transparent;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.buttoni ion-icon {
    font-size: 18px;
    color: var(--neutral-600);
    transition: 0.5s ease-in-out;
}
.buttoni:hover ion-icon {
    color: var(--neutral-100);
    font-size: 20px;
}
.buttoni:active ion-icon {
    color: var(--primary-dark);
    font-size: 22px;
    transition: 1.4s;
}
/* Tablas de Index */
.data-table {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 85vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    background: var(--gradient-header-card);
    border: 2px solid var(--neutral-300);
    border-radius: 16px;
}
.data-table table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
    table-layout: fixed;
    display: block;
    border: 1px solid var(--primary-dark);
    border-radius: 15px;
}
.data-table thead, .data-table tbody {
    display: block;
    width: 100%;
}
.data-table tbody {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 72vh;
    overflow-y: auto;
    background: none;
    /* Scrollbar personalizado */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--neutral-300);
    margin-bottom: 0;
    padding-bottom: 0;
}
.data-table tbody::-webkit-scrollbar {
    width: 6px;
    background: var(--neutral-300);
}
.data-table tbody::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 6px;
}
.data-table th, .data-table td {
    text-align: center;
    padding: 10px;
    border: none;
    position: relative;
}
.data-table td::after{
    content: "";
    display: block;
    position: absolute;
    left: 0; 
    right: 0;
    bottom: 100%;
    border-bottom: 1px solid var(--primary-dark); /* Color del borde */
}
/* Forzar el ancho de cada columna para alinear th y td EJEMPLO:
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 8%; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 8%; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 8%; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 14%; }
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 14%; }
.data-table th:nth-child(6), .data-table td:nth-child(6) { width: 10%; }
.data-table th:nth-child(7), .data-table td:nth-child(7) { width: 12%; }
.data-table th:nth-child(8), .data-table td:nth-child(8) { width: 8%; }
.data-table th:nth-child(9), .data-table td:nth-child(9) { width: 8%; }
.data-table th:nth-child(10), .data-table td:nth-child(10) { width: 8%; }
*/
.data-table thead {
    background: var(--gradient-primary);
    border-radius: 15px 15px 0 0;
}
.data-table th {
    font-size: 0.85rem;
    color: var(--neutral-900);
    text-shadow: var(--sombreado-titulo);
}
.data-table td {
    padding: 5px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--neutral-900);
    text-shadow: var(--sombreado-texto);
}

.data-table tbody tr:hover {
    background: var(--gradient-primary);
    border: var(--primary-dark);
    border-radius: 15px;
}
.data-table tbody tr:hover td:first-child {
    border-radius: 0 0 0 15px;
}
.data-table tbody tr:hover td:last-child {
    border-radius: 0 0 15px 0;
}

/* Buscador */
.search-bar {
    display: inline-flex;
    align-items: center;
    width: 280px;
    height: 45px;
}
.search-bar input {
    text-shadow: var(--sombreado-texto);
    padding: 8px;
    border: 1px solid var(--neutral-300);
    border-radius: 45px 0 0 45px;
    outline: none;
}
.search-bar ion-icon{
    padding: 2px;
    padding-left: 0;
    background-color: var(--primary);
    border: 1px solid var(--neutral-300);
    border-radius: 0 45px 45px 0;
    height: 36px;
    width: 20px;
}

/* Descargar Boton - icono */
.download {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 15px;
    position: relative;
    transition: 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.download .export-text {
    display: none;
    position: absolute;
    top: 5%; 
    left: 100%;
    transform: translateX(5%);
    background: var(--neutral-100);
    color: var(--neutral-900);
    padding: 2px 10px;
    border-radius: 45px;
    font-size: 0.95em;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px var(--neutral-300);
}

.download:hover .export-text {
    display: block;
}

.download ion-icon {
    font-size: 2rem;
    color: var(--success);
    transition: 0.3s ease; 
}

.download:hover ion-icon {
    font-size: 2.1rem;
    color: var(--success-hover);
}

.download:active ion-icon {
    color: var(--success-light);
    font-size: 2.2rem;
    transition: 0.3s ease; 
}

/* Configuracion container y titulos 
.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 85vh;
    max-width: 100%;
    max-height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex: 1 1 auto;
}

h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--neutral-900);
    text-shadow: var(--sombreado-titulo);
}
Boton-principal
.boton-principal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
    width: 100%;
    justify-content: flex-start;
}

.boton-principal a{
    text-decoration: none;
    text-align: center;
    text-shadow: var(--sombreado-titulo);
}

.boton-principal .btn {
    width: auto;
    min-width: 120px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 1px solid var(--primary-dark);
    color: var(--neutral-900);
}    
*/
