/* ============================================
   ESTILOS MODERNOS Y MINIMALISTAS
   Basado en diseño de imágenes de referencia
   ============================================ */

:root {
    /* Colores base */
    --primary-dark: #1a2c3e;
    --primary: #2c7be5;
    --primary-light: #eef2ff;
    --primary-lighter: #f5f7ff;

    /* Semánticos */
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;

    /* Fondos y superficies */
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border: #e9ecef;

    /* Texto */
    --text-primary: #1e2a3a;
    --text-secondary: #5a6e7c;
    --text-tertiary: #8a9aaa;

    /* Botones */
    --btn-primary-bg: var(--primary);
    --btn-primary-hover: #1e6bd0;
    --btn-success-bg: var(--success);
    --btn-success-hover: #27ae60;
    --btn-danger-bg: var(--danger);
    --btn-danger-hover: #c0392b;
    --btn-warning-bg: var(--warning);
    --btn-warning-hover: #e67e22;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app {
    width: 100%;
    max-width: 800px;
    background: transparent;
    border-radius: 32px;
    overflow: hidden;
}

.screen {
    display: none;
    padding: 0;
}
.screen.active { display: block; }

/* ========== TOAST ========== */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    z-index: 1100;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    animation: fadeInOut 3s ease;
    max-width: 90%;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* ========== SPINNER ========== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1200;
}
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== LOGIN ========== */
.login-container {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.login-container h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.login-container p {
    font-size: 1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}
.login-select, .login-container input {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    width: 100%;
    margin-bottom: 16px;
    transition: 0.2s;
    background-color: white;
}
.login-select:focus, .login-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,123,229,0.1);
}

/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.header-left h2 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
}
.auxiliar-badge { background: #fff3e0; color: var(--warning); }
.financiero-badge { background: #e8f5e9; color: var(--success); }
.zona-badge {
    background: #e8f5e9;
    color: var(--success);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    margin-right: 12px;
}
.btn-logout {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-logout:hover { opacity: 1; }

/* ========== CARD DE TOTAL CONSIGNADO ========== */
.consignado-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.consignado-label { font-size: 14px; opacity: 0.9; margin-bottom: 5px; }
.consignado-valor { font-size: 36px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.5px; }
.consignado-desc { font-size: 12px; opacity: 0.8; }
.btn-toggle-asignaciones {
    background: rgba(255,255,255,0.15);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-toggle-asignaciones:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== SALDOS (GRID DE TARJETAS) ========== */
.saldos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.saldo-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.saldo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.saldo-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.saldo-valor {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}
.saldo-desc {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.minimo-card {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
}

/* ========== BOTONES (ESTILO MODERNO) ========== */
.btn-primary, .btn-nuevo-gasto, .btn-secondary, .btn-legalizar, 
.btn-editar-gasto, .btn-aprobar, .btn-rechazar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary, .btn-nuevo-gasto {
    background: var(--btn-primary-bg);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
}
.btn-primary:hover, .btn-nuevo-gasto:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-aprobar {
    background: var(--btn-success-bg);
    color: white;
    padding: 8px 18px;
    font-size: 13px;
}
.btn-aprobar:hover {
    background: var(--btn-success-hover);
    transform: translateY(-1px);
}
.btn-rechazar {
    background: var(--btn-danger-bg);
    color: white;
    padding: 8px 18px;
    font-size: 13px;
}
.btn-rechazar:hover {
    background: var(--btn-danger-hover);
    transform: translateY(-1px);
}
.btn-legalizar {
    background: var(--btn-warning-bg);
    color: white;
    padding: 8px 18px;
    font-size: 13px;
}
.btn-legalizar:hover {
    background: var(--btn-warning-hover);
    transform: translateY(-1px);
}
.btn-secondary {
    background: #f0f2f5;
    color: var(--text-primary);
    padding: 10px 18px;
    font-size: 13px;
}
.btn-secondary:hover {
    background: #e4e7eb;
    transform: translateY(-1px);
}
.btn-editar-gasto {
    background: #fef5e7;
    color: var(--warning);
    padding: 6px 12px;
    font-size: 12px;
}
.btn-editar-gasto:hover {
    background: #ffe6c2;
}
.btn-historial {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 40px;
    transition: 0.2s;
    color: var(--text-secondary);
}
.btn-historial:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ========== FILTROS ========== */
.filtros-gastos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
.filtro-btn {
    padding: 8px 16px;
    background: #f0f2f5;
    border: none;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    flex: 1 1 auto;
    min-width: 80px;
    white-space: nowrap;
    color: var(--text-secondary);
}
.filtro-btn:hover {
    background: #e4e7eb;
}
.filtro-btn.active {
    background: var(--primary);
    color: white;
}

/* ========== LISTA DE GASTOS (ESTILO TRANSACCIONES) ========== */
.gastos-lista, .giros-lista, .tecnicos-lista, .aprobaciones-lista, .legalizaciones-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}
.gasto-item, .giro-item, .tecnico-item, .aprobacion-item, .legalizacion-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.gasto-item:hover, .giro-item:hover {
    box-shadow: var(--shadow-md);
}
@media (min-width: 641px) {
    .gasto-item {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 16px;
        align-items: center;
    }
    .gasto-info { grid-column: 1 / 2; }
    .gasto-monto { grid-column: 2 / 3; text-align: right; }
    .gasto-estado-container { grid-column: 3 / 4; text-align: right; }
}
.gasto-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gasto-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gasto-monto {
    font-weight: 600;
    color: var(--text-primary);
}
.gasto-estado-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.gasto-codigo, .giro-codigo {
    font-size: 10px;
    font-family: monospace;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    color: var(--text-secondary);
}

/* Estados */
.gasto-estado {
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}
.estado-pendiente { background: #fff3e0; color: var(--warning); }
.estado-aprobado { background: #e8f5e9; color: var(--success); }
.estado-rechazado { background: #ffe6e5; color: var(--danger); }
.estado-legalizado { background: #eef2ff; color: var(--primary); }

/* Miniaturas */
.gasto-imagenes {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.miniatura {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.miniatura:hover { border-color: var(--primary); }
.foto-contador {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
}

/* ========== MODALES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--card-bg);
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-lg { max-width: 750px; }
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1.3em; font-weight: 600; color: var(--text-primary); }
.close, .close-legalizar, .close-galeria, .close-imagen, .close-historial, .close-archivo, .close-estado-cuenta, .close-asignar {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
}
.close:hover { background: var(--border); color: var(--text-primary); }
.modal-body { padding: 24px; }

/* Formularios */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 15px;
    transition: 0.2s;
    background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,123,229,0.1);
}
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
}
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Asignación dinero */
.asignar-dinero-form {
    display: grid;
    gap: 16px;
    padding: 8px;
}
.asignar-dinero-form .form-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 15px;
    width: 100%;
}
.asignar-dinero-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Previsualización documentos */
.vista-previa-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    background: var(--bg-color);
    padding: 16px;
    border-radius: 20px;
    max-height: 280px;
    overflow-y: auto;
}
.vista-previa-item {
    position: relative;
    width: 100px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.vista-previa-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.vista-previa-info {
    padding: 6px;
    font-size: 10px;
    text-align: center;
}
.btn-remover-doc {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 30px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== ADMINISTRADOR ========== */
.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.admin-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.tab-btn-modern {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-secondary);
}
.tab-btn-modern:hover {
    background: var(--border);
    color: var(--text-primary);
}
.tab-btn-modern.active {
    background: var(--primary);
    color: white;
}
.admin-tab-modern {
    display: none;
}
.admin-tab-modern.active {
    display: block;
}
.admin-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.admin-card h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}
.form-grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.btn-block {
    width: 100%;
}
.tabla-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.tabla-usuarios, .tabla-gastos, .tabla-centros, .tabla-tipos, .tabla-niveles {
    min-width: 600px;
}
.tabla-usuarios th, .tabla-gastos th, .tabla-centros th, .tabla-tipos th, .tabla-niveles th {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
}
.tabla-usuarios td, .tabla-gastos td, .tabla-centros td, .tabla-tipos td, .tabla-niveles td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}
.btn-accion {
    padding: 4px 12px;
    margin: 2px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}
.btn-editar { background: #fef5e7; color: var(--warning); }
.btn-eliminar { background: #ffe6e5; color: var(--danger); }
.btn-ver { background: #eef2ff; color: var(--primary); }
.btn-editar:hover, .btn-eliminar:hover, .btn-ver:hover {
    transform: scale(1.02);
}
.respaldo-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stats-grid-detalle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--bg-color);
    padding: 16px;
    border-radius: 20px;
}
.stats-grid-detalle div {
    background: white;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}
.stats-grid-detalle strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}
.stats-grid-detalle span {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

/* ========== RESÚMEN TÉCNICO ========== */
.resumen-tecnico-container {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
}
.resumen-tecnico-container .saldos-grid {
    margin-bottom: 0;
}

/* ========== ESTADO DE CUENTA ========== */
.estado-cuenta-filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.estado-cuenta-filtros input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 14px;
}
.movimiento-item {
    background: var(--card-bg);
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.movimiento-fecha { font-weight: 500; color: var(--text-secondary); }
.movimiento-tipo { font-size: 13px; color: var(--text-tertiary); }
.movimiento-monto { font-weight: 600; color: var(--text-primary); }
.total-movimientos {
    margin-top: 20px;
    padding: 14px;
    background: var(--bg-color);
    text-align: right;
    font-weight: 600;
    border-radius: 20px;
}

/* ========== HISTORIAL CON LÍNEA DE TIEMPO ========== */
#historialContenido {
    position: relative;
    padding-left: 30px;
}
#historialContenido::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.historial-item {
    position: relative;
    padding: 16px 0 16px 24px;
    margin-bottom: 20px;
    background: var(--bg-color);
    border-radius: 20px;
    transition: 0.2s;
}
.historial-item::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}
.historial-item:not(:last-child)::after {
    content: '↓';
    position: absolute;
    left: -16px;
    bottom: -20px;
    font-size: 14px;
    color: var(--text-tertiary);
}
.historial-fecha {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.historial-responsable {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.historial-cambio {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ========== ESTADÍSTICAS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-numero {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== APROBACIONES – BOTONES SEPARADOS ========== */
.aprobacion-item > div:last-child {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .aprobacion-item > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .btn-aprobar, .btn-rechazar {
        width: 100%;
        text-align: center;
    }
}

/* ========== LEGALIZACIÓN ========== */
.legalizacion-item .btn-aprobar,
.legalizacion-item .btn-rechazar {
    width: auto;
}
@media (max-width: 640px) {
    .legalizacion-item .btn-aprobar,
    .legalizacion-item .btn-rechazar {
        width: 100%;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .app {
        border-radius: 0;
    }
    .screen {
        padding: 16px;
    }
    .saldos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gasto-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .gasto-monto, .gasto-estado-container {
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }
    .filtros-gastos {
        flex-direction: column;
    }
    .filtro-btn {
        width: 100%;
    }
    .form-grid-2cols {
        grid-template-columns: 1fr;
    }
    .admin-tabs-modern {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn-modern {
        text-align: center;
    }
    .stats-grid-detalle {
        grid-template-columns: 1fr;
    }
    .respaldo-buttons {
        grid-template-columns: 1fr;
    }
}
