/* Fonts */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* =============================================
   NAVBAR FIJA
   - position: fixed se pone en el HTML (inline)
   - Aquí manejamos la sombra y separación
   ============================================= */
.navbar-white {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    /* Sombra más pronunciada para separar visualmente del contenido al hacer scroll */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Cards & Sections */
.section-card {
    border-radius: 12px;
    background: #ffffff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.section-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
}

.card-header {
    background: transparent;
    border-bottom: none;
}


/* Form Controls */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.8;
}

/* Tables */
.custom-table th {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.custom-table td input,
.custom-table td select {
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s;
}

/* Read-only badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Utilities */
.opacity-10 {
    opacity: 0.1;
}

/* Responsive Utilities */
@media (max-width: 576px) {
    .w-sm-auto {
        width: 100% !important;
    }
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

/* Leyendas Informativas */
.info-legend {
    font-size: 0.85rem;
    color: #5c636a;
    background-color: #e9ecef;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid #0d6efd;
}

.info-legend i {
    color: #0d6efd;
    font-size: 1.1rem;
    margin-top: -0.1rem;
    margin-right: 0.5rem;
}

/* Custom Main Title */
.main-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 576px)
   ============================================= */
@media (max-width: 576px) {

    /* Navbar brand más pequeño en móvil */
    .main-title {
        font-size: 20px;
        letter-spacing: -0.5px;
    }

    /* Títulos de tarjeta (h5): más chicos solo en móvil */
    .section-card .card-header h5 {
        font-size: 1rem;
    }

    /* Botones: resetear padding al default Bootstrap en móvil
       sólo para los botones de acción de la tarjeta.
       (Salir y Descargar PDF mantienen el padding global). */
    .btn-edit, .btn-save, .btn-cancel, .btn-add {
        padding: revert;
    }

    /* Info-legend: fuente más pequeña en móvil */
    .info-legend {
        font-size: 10px;
    }

    .info-legend i {
        font-size: 0.95rem;
    }

    /* Badge "Modificado" en encabezado de tarjeta:
       forzar salto de línea en móvil para que no se superponga al título */
    .section-card .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem;
    }

    /* Bloque de agente: 2 columnas x 2 filas en móvil.
       Usamos clases de orden para reordenar visualmente:
       Fila 1: Nombre y Apellido | Nro. Legajo
       Fila 2: Documento         | Nacimiento  */
    .agent-field-nombre  { order: 1; }
    .agent-field-legajo  { order: 2; }
    .agent-field-doc     { order: 3; }
    .agent-field-nacim   { order: 4; }
}