:root {
    --primary-gradient: linear-gradient(135deg, #003a92 0%, #0046af 100%);
    --success-gradient: linear-gradient(135deg, #198754 0%, #146c43 100%);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Estilos generales - REDUCIDOS */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    font-size: 0.925rem;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-success {
    background: var(--success-gradient) !important;
}

/* Tarjetas - REDUCIDAS */
.main-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.main-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.section-card {
    height: 100%;
    border: 1.5px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
}

/* Headers - REDUCIDOS */
.main-header {
    padding: 1rem 1.5rem;
}

.section-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Formularios - REDUCIDOS */
.form-section {
    padding: 1.25rem;
    max-height: 500px;
    overflow-y: auto;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control-custom {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control-custom:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-control-custom.is-valid {
    border-color: #198754;
}

/* Botones - REDUCIDOS */
.btn-submit {
    background: var(--primary-gradient);
    border: none;
    padding: 0.7rem 2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 0.9rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* Animaciones - REDUCIDAS */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar personalizado */
.form-section::-webkit-scrollbar {
    width: 5px;
}

.form-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.form-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Efectos de carga */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* RESPONSIVIDAD ESPECÍFICA PARA PC */

/* Para pantallas medianas y grandes */
@media (min-width: 992px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .col-xxl-10 {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Ajustar tamaño de logo */
    .img-fluid.rounded {
        max-height: 65px !important;
    }
    
    /* Reducir iconos grandes */
    .bi-person-plus.fs-2 {
        font-size: 1.5rem !important;
    }
    
    /* Ajustar márgenes internos */
    .card-body.p-4.p-md-5 {
        padding: 1.5rem !important;
    }
    
    .row.g-4 {
        gap: 1rem !important;
    }
    
    /* Campos más compactos */
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

/* Para pantallas extra grandes */
@media (min-width: 1400px) {
    body {
        font-size: 0.95rem;
    }
    
    .form-section {
        padding: 1.5rem;
        max-height: 550px;
    }
    
    .form-control-custom {
        padding: 0.65rem 0.9rem;
        font-size: 0.925rem;
    }
}

/* Para pantallas pequeñas (mantener compatibilidad) */
@media (max-width: 768px) {
    body {
        padding-top: 0.25rem;
        padding-bottom: 0.75rem;
    }
    
    .main-card {
        border-radius: 12px;
        margin: 0.25rem;
    }
    
    .main-header {
        padding: 0.85rem 1.25rem;
    }
    
    .form-control-custom {
        padding: 0.6rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 0.65rem 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
        max-height: none;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 576px) {
    .main-header h1 {
        font-size: 1.3rem;
    }
    
    .section-header h5 {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 0.85rem;
    }
}

/* Clases utilitarias adicionales para compactar */
.compact-form .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.compact-form .form-control-custom {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.compact-form .mb-3 {
    margin-bottom: 0.6rem !important;
}

/* Ajustes específicos para el formulario */
.form-control-custom::placeholder {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Mejorar visibilidad de feedback */
.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}