
/* ========================================
   FUENTES TIPOGRÁFICAS
   ======================================== */

/* Google Fonts - Poppins (fuente principal) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ========================================
   LIBRERÍAS DE ICONOS
   ======================================== */

/* Remix Icon v4.3 */
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css');

/* Boxicons v2.1.4 */
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

/* Material Design Icons v7.2.96 */
@import url('https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css');


/* ========================================
   BOOTSTRAP 5
   ======================================== */

@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');


/* ========================================
   SWIPER SLIDER
   ======================================== */

@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');


/* ========================================
   SIMPLEBAR (Scrollbar personalizado)
   ======================================== */

@import url('https://cdn.jsdelivr.net/npm/simplebar@latest/dist/simplebar.min.css');




:root {
    /* Colores principales */
    --vz-primary: #405189;
    --vz-primary-rgb: 64, 81, 137;
    --vz-secondary: #3577f1;
    --vz-secondary-rgb: 53, 119, 241;
    --vz-success: #0ab39c;
    --vz-success-rgb: 10, 179, 156;
    --vz-info: #299cdb;
    --vz-info-rgb: 41, 156, 219;
    --vz-warning: #f7b84b;
    --vz-warning-rgb: 247, 184, 75;
    --vz-danger: #f06548;
    --vz-danger-rgb: 240, 101, 72;
    --vz-light: #f3f6f9;
    --vz-light-rgb: 243, 246, 249;
    --vz-dark: #212529;
    --vz-dark-rgb: 33, 37, 41;
    
    /* Colores de fondo y texto */
    --vz-body-bg: #ffffff;
    --vz-body-bg-rgb: 255, 255, 255;
    --vz-body-color: #212529;
    --vz-body-color-rgb: 33, 37, 41;
    
    /* Colores neutros */
    --vz-gray-100: #f3f6f9;
    --vz-gray-200: #e9ebec;
    --vz-gray-300: #ced4da;
    --vz-gray-400: #adb5bd;
    --vz-gray-500: #878a99;
    --vz-gray-600: #495057;
    --vz-gray-700: #343a40;
    --vz-gray-800: #212529;
    --vz-gray-900: #0b0d0e;
    
    /* Tipografía */
    --vz-font-sans-serif: 'Poppins', sans-serif;
    --vz-body-font-family: var(--vz-font-sans-serif);
    --vz-body-font-size: 0.875rem;
    --vz-body-font-weight: 400;
    --vz-body-line-height: 1.5;
    
    /* Espaciado */
    --vz-border-width: 1px;
    --vz-border-color: #e9ebec;
    --vz-border-radius: 0.25rem;
    --vz-border-radius-sm: 0.2rem;
    --vz-border-radius-lg: 0.3rem;
    --vz-border-radius-xl: 0.5rem;
    --vz-border-radius-2xl: 1rem;
    
    /* Sombras */
    --vz-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --vz-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    --vz-box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --vz-transition-base: all 0.3s ease-in-out;
}

/* Modo oscuro */
[data-bs-theme="dark"] {
    --vz-body-bg: #1a1d21;
    --vz-body-color: #adb5bd;
    --vz-border-color: #2a2f34;
    --vz-gray-100: #212529;
}


/* ========================================
   ESTILOS BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--vz-font-sans-serif);
    font-size: var(--vz-body-font-size);
    font-weight: var(--vz-body-font-weight);
    line-height: var(--vz-body-line-height);
    color: var(--vz-body-color);
    background-color: var(--vz-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

a {
    color: var(--vz-primary);
    text-decoration: none;
    transition: var(--vz-transition-base);
}

a:hover {
    color: var(--vz-secondary);
}


/* ========================================
   CLASES DE UTILIDAD DE COLORES
   ======================================== */

/* Colores de texto */
.text-primary { color: var(--vz-primary) !important; }
.text-secondary { color: var(--vz-secondary) !important; }
.text-success { color: var(--vz-success) !important; }
.text-info { color: var(--vz-info) !important; }
.text-warning { color: var(--vz-warning) !important; }
.text-danger { color: var(--vz-danger) !important; }
.text-muted { color: var(--vz-gray-500) !important; }

/* Fondos sutiles */
.bg-primary-subtle {
    background-color: rgba(var(--vz-primary-rgb), 0.1) !important;
    color: var(--vz-primary);
}

.bg-secondary-subtle {
    background-color: rgba(var(--vz-secondary-rgb), 0.1) !important;
    color: var(--vz-secondary);
}

.bg-success-subtle {
    background-color: rgba(var(--vz-success-rgb), 0.1) !important;
    color: var(--vz-success);
}

.bg-info-subtle {
    background-color: rgba(var(--vz-info-rgb), 0.1) !important;
    color: var(--vz-info);
}

.bg-warning-subtle {
    background-color: rgba(var(--vz-warning-rgb), 0.1) !important;
    color: var(--vz-warning);
}

.bg-danger-subtle {
    background-color: rgba(var(--vz-danger-rgb), 0.1) !important;
    color: var(--vz-danger);
}

.bg-light-subtle {
    background-color: var(--vz-gray-100) !important;
}


/* ========================================
   TAMAÑOS DE FUENTE
   ======================================== */

.fs-10 { font-size: 0.625rem !important; }
.fs-11 { font-size: 0.6875rem !important; }
.fs-12 { font-size: 0.75rem !important; }
.fs-13 { font-size: 0.8125rem !important; }
.fs-14 { font-size: 0.875rem !important; }
.fs-15 { font-size: 0.9375rem !important; }
.fs-16 { font-size: 1rem !important; }
.fs-17 { font-size: 1.0625rem !important; }
.fs-18 { font-size: 1.125rem !important; }
.fs-19 { font-size: 1.1875rem !important; }
.fs-20 { font-size: 1.25rem !important; }
.fs-22 { font-size: 1.375rem !important; }
.fs-24 { font-size: 1.5rem !important; }


/* ========================================
   CARDS (TARJETAS)
   ======================================== */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    border: var(--vz-border-width) solid var(--vz-border-color);
    border-radius: var(--vz-border-radius);
    box-shadow: var(--vz-box-shadow);
    margin-bottom: 24px;
    transition: var(--vz-transition-base);
}

.card:hover {
    box-shadow: var(--vz-box-shadow-lg);
}

.card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: transparent;
    border-bottom: var(--vz-border-width) solid var(--vz-border-color);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-top: var(--vz-border-width) solid var(--vz-border-color);
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.card-height-100 {
    height: calc(100% - 24px);
}

.card-radio {
    cursor: pointer;
    border: 2px solid var(--vz-border-color);
    border-radius: var(--vz-border-radius);
    transition: var(--vz-transition-base);
}

.card-radio:hover {
    border-color: var(--vz-primary);
}


/* ========================================
   BOTONES PERSONALIZADOS
   ======================================== */

.btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--vz-border-radius);
    transition: var(--vz-transition-base);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Botones soft (fondos sutiles) */
.btn-soft-primary {
    background-color: rgba(var(--vz-primary-rgb), 0.1);
    color: var(--vz-primary);
    border: 1px solid transparent;
}

.btn-soft-primary:hover {
    background-color: rgba(var(--vz-primary-rgb), 0.2);
    color: var(--vz-primary);
}

.btn-soft-secondary {
    background-color: rgba(var(--vz-secondary-rgb), 0.1);
    color: var(--vz-secondary);
    border: 1px solid transparent;
}

.btn-soft-secondary:hover {
    background-color: rgba(var(--vz-secondary-rgb), 0.2);
    color: var(--vz-secondary);
}

.btn-soft-success {
    background-color: rgba(var(--vz-success-rgb), 0.1);
    color: var(--vz-success);
    border: 1px solid transparent;
}

.btn-soft-success:hover {
    background-color: rgba(var(--vz-success-rgb), 0.2);
    color: var(--vz-success);
}

.btn-soft-info {
    background-color: rgba(var(--vz-info-rgb), 0.1);
    color: var(--vz-info);
    border: 1px solid transparent;
}

.btn-soft-info:hover {
    background-color: rgba(var(--vz-info-rgb), 0.2);
    color: var(--vz-info);
}

.btn-soft-warning {
    background-color: rgba(var(--vz-warning-rgb), 0.1);
    color: var(--vz-warning);
    border: 1px solid transparent;
}

.btn-soft-warning:hover {
    background-color: rgba(var(--vz-warning-rgb), 0.2);
    color: var(--vz-warning);
}

.btn-soft-danger {
    background-color: rgba(var(--vz-danger-rgb), 0.1);
    color: var(--vz-danger);
    border: 1px solid transparent;
}

.btn-soft-danger:hover {
    background-color: rgba(var(--vz-danger-rgb), 0.2);
    color: var(--vz-danger);
}


/* ========================================
   AVATARES
   ======================================== */

.avatar-xs {
    height: 2rem;
    width: 2rem;
}

.avatar-sm {
    height: 3rem;
    width: 3rem;
}

.avatar-md {
    height: 4.5rem;
    width: 4.5rem;
}

.avatar-lg {
    height: 6rem;
    width: 6rem;
}

.avatar-xl {
    height: 7.5rem;
    width: 7.5rem;
}

.avatar-xxl {
    height: 9rem;
    width: 9rem;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--vz-primary);
    color: #ffffff;
    border-radius: 50%;
}


/* ========================================
   BADGES (ETIQUETAS)
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--vz-border-radius);
}

.badge-pill {
    border-radius: 10rem;
}


/* ========================================
   TABLAS
   ======================================== */

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--vz-body-color);
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: var(--vz-transition-base);
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--vz-primary-rgb), 0.05);
    cursor: pointer;
}

.table-borderless > :not(caption) > * > * {
    border-bottom-width: 0;
}

.table-centered td,
.table-centered th {
    vertical-align: middle;
}

.table-nowrap th,
.table-nowrap td {
    white-space: nowrap;
}


/* ========================================
   UTILIDADES DE DISEÑO
   ======================================== */

/* Flexbox */
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }

/* Espaciado responsive */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* Bordes */
.border-dashed {
    border-style: dashed !important;
}

.border-top-dashed {
    border-top-style: dashed !important;
}

.border-bottom-dashed {
    border-bottom-style: dashed !important;
}

.border-start-dashed {
    border-left-style: dashed !important;
}

.border-end-dashed {
    border-right-style: dashed !important;
}

/* Sombras */
.shadow-sm {
    box-shadow: var(--vz-box-shadow-sm) !important;
}

.shadow {
    box-shadow: var(--vz-box-shadow) !important;
}

.shadow-lg {
    box-shadow: var(--vz-box-shadow-lg) !important;
}

/* Rounded */
.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}


/* ========================================
   COUNTER (CONTADORES ANIMADOS)
   ======================================== */

.counter-value {
    font-weight: 600;
    font-size: 1.25rem;
}


/* ========================================
   RESPONSIVE HELPERS
   ======================================== */

@media (max-width: 575px) {
    .card-body {
        padding: 1rem;
    }
    
    .fs-13 { font-size: 0.75rem !important; }
    .fs-15 { font-size: 0.875rem !important; }
}

@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}


/* ========================================
   PRELOADER
   ======================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#status {
    width: 40px;
    height: 40px;
}


/* ========================================
   SCROLLBAR PERSONALIZADO
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vz-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--vz-gray-400);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vz-gray-500);
}


/* ========================================
   FIN DEL ARCHIVO
   ======================================== */
