body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    min-height: 100vh;
}

/* Estilos para el logo en el header */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.header-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

/* Estilos para el footer */
.footer-container {
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo-container {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 35px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

/* Estilos para el loader */
.loader-dialog {
    backdrop-filter: blur(4px);
}

.loader-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
}

.form-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.form-subsection {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(74, 85, 104, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #3182ce;
}

.form-subsection-title {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-row-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-row-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.form-row-1 {
    grid-template-columns: 1fr;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Estilos para mejorar la organización */
.form-section .form-grid {
    gap: 0.75rem;
}

.form-row {
    margin-bottom: 0;
}

/* Separadores visuales entre grupos */
.form-row:not(:last-child) {
    border-bottom: 1px solid rgba(30, 60, 114, 0.1);
    padding-bottom: 1rem;
}

/* Mejor espaciado para switches */
.v-switch {
    margin-top: 0.5rem;
}

/* Estilo para campos agrupados */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Estilos para la sección de conceptos */
.concepto-item {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(30, 60, 114, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.concepto-item:last-child {
    margin-bottom: 0;
}

.concepto-item .form-row {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.concepto-item h5 {
    color: #1e3c72;
    margin: 0;
}

.concepto-item .form-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 60, 114, 0.1);
}

.concepto-item .form-subsection h6 {
    color: #2a5298;
    margin: 0 0 1rem 0;
}

.form-field-placeholder {
    height: 56px;
    background: rgba(30, 60, 114, 0.05);
    border: 2px dashed rgba(30, 60, 114, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 60, 114, 0.6);
    font-style: italic;
}

/* Estilos para el drawer JSON */
.json-drawer {
    z-index: 1000;
}

.json-drawer .v-card {
    height: 100%;
    border-radius: 0;
}

.json-drawer .v-card-text {
    height: 100%;
    overflow: hidden;
}

.json-drawer .v-card-text > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.json-drawer .v-card-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.json-content {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: 100%;
    overflow-y: auto;
    display: block;
}

/* Scrollbar personalizado para el JSON */
.json-content::-webkit-scrollbar {
    width: 8px;
}

.json-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.json-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.json-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive para el drawer */
@media (max-width: 768px) {
    .json-drawer {
        width: 100% !important;
    }
    
    .json-content {
        font-size: 11px;
    }
}

/* Estilos adicionales para el área del JSON */
.json-area {
    height: calc(100vh - 200px);
    overflow: hidden;
}

.json-card-content {
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
}

/* Estilos para el modal de resultados */
.resultados-modal {
    background-color: #edf2f7;
}

.resultados-dashboard {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resultados-tabs {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* Estilos para el contenedor de resultados */
.resultados-container {
    background-color: #edf2f7;
    min-height: 100vh;
    overflow-y: auto;
}

/* Asegurar que el contenido del modal tenga scroll apropiado */
.modal-content {
    background-color: white;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px); /* Restar altura del header */
}

/* Estilos para las tablas de amortización */
.amortizacion-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.amortizacion-table .v-data-table__wrapper {
    border-radius: 8px;
}

.amortizacion-table .v-data-table-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    font-weight: 600;
}

.amortizacion-table .v-data-table-header th {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-bottom: none !important;
}

.amortizacion-table .v-data-table__tr:hover {
    background-color: #f7fafc !important;
}

.amortizacion-table .v-data-table__tr:nth-child(even) {
    background-color: #f7fafc !important;
}

.amortizacion-table .v-data-table__td {
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    padding: 8px 16px !important;
}

/* Estilos para tablas con scroll */
.amortizacion-table-scrollable {
    max-height: 400px;
}

.amortizacion-table-scrollable .v-data-table__wrapper {
    overflow-y: auto;
    max-height: 400px;
}

/* Scrollbar personalizado para las tablas */
.amortizacion-table-scrollable .v-data-table__wrapper::-webkit-scrollbar {
    width: 8px;
}

.amortizacion-table-scrollable .v-data-table__wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.amortizacion-table-scrollable .v-data-table__wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.amortizacion-table-scrollable .v-data-table__wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Asegurar que el header permanezca fijo */
.amortizacion-table-scrollable .v-data-table-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f5f5f5;
}

/* Estilos para el indicador de scroll */
.scroll-indicator {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Mejorar la experiencia de scroll en dispositivos móviles */
@media (max-width: 768px) {
    .amortizacion-table-scrollable {
        max-height: 300px;
    }
    
    .amortizacion-table-scrollable .v-data-table__wrapper {
        max-height: 300px;
    }
    
    .scroll-indicator {
        font-size: 0.7rem;
    }
}

/* Estilos para los chips de pago */
.pago-chip {
    font-weight: 600;
    min-width: 40px;
    justify-content: center;
}

/* Estilos para los valores monetarios */
.moneda-valor {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.moneda-total {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #1976d2;
}



/* Estilos para el dashboard de resumen */
.resumen-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.resumen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Estilos para las tabs de navegación */
.nav-tabs {
    background-color: white;
    border-bottom: 2px solid #e0e0e0;
}

.nav-tab {
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background-color: #f5f5f5;
}

/* Estilos para el contenedor de resultados */
.resultados-container {
    background-color: #edf2f7;
    min-height: 100vh;
}

/* Estilos para el header del modal */
.modal-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para el contenido del modal */
.modal-content {
    background-color: white;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Estilos para las métricas del dashboard */
.metrica-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.metrica-card:hover {
    box-shadow: 0 4px 16px rgba(74, 85, 104, 0.15);
    transform: translateY(-2px);
    border-color: #3182ce;
}

.metrica-valor {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metrica-etiqueta {
    font-size: 0.875rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Estilos para el tiempo de ejecución */
.tiempo-ejecucion {
    font-size: 0.75rem;
    color: #718096;
    font-style: italic;
    background-color: rgba(113, 128, 150, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(113, 128, 150, 0.2);
}

/* Estilos para las fechas */
.fecha-valor {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
}

/* Estilos para los números */
.numero-valor {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Estilos para el scroll personalizado */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #1976d2 #f0f0f0;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Estilos para el estado de carga */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: #fafafa;
    border-radius: 8px;
}

/* Estilos para mensajes de error */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
    margin: 16px 0;
}

/* Estilos para mensajes de éxito */
.success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
    margin: 16px 0;
}

/* Estilos para el botón de cerrar */
.close-button {
    transition: all 0.3s ease;
}

.close-button:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

/* Estilos para el contador de conceptos en las tabs */
.concepto-counter {
    background-color: #ebf8ff;
    color: #3182ce;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 600;
}

/* Estilos para el tipo de concepto */
.concepto-tipo {
    text-transform: capitalize;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.concepto-tipo.financiado {
    background-color: #ebf8ff;
    color: #3182ce;
}

.concepto-tipo.prorrateado {
    background-color: #f0fff4;
    color: #38a169;
}

.concepto-tipo.descontado {
    background-color: #fffbeb;
    color: #d69e2e;
}

/* Estilos para el responsive */
@media (max-width: 768px) {
    .amortizacion-table {
        font-size: 0.875rem;
    }
    
    .metrica-card {
        margin-bottom: 16px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .metrica-valor {
        font-size: 1.25rem;
    }
}

/* Estilos para animaciones */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-enter-active, .slide-leave-active {
    transition: transform 0.3s ease;
}

.slide-enter-from {
    transform: translateX(100%);
}

.slide-leave-to {
    transform: translateX(-100%);
}

/* Estilos para campos de montos formateados */
.v-text-field input[type="text"] {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.v-text-field input[type="text"]:focus {
    font-weight: 600;
}

/* Mejorar la legibilidad de los montos */
.monto-formateado {
    text-align: right;
    direction: ltr;
}

/* Estilos para las columnas de gracia */
.moneda-valor.gracia {
    color: #ff6b35;
    font-weight: 600;
    background-color: rgba(255, 107, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
}

/* Estilos para el header de las columnas de gracia */
.v-data-table-header th[data-key="interes_gracia"],
.v-data-table-header th[data-key="iva_gracia"],
.v-data-table-header th[data-key="capital_diferido"] {
    background-color: rgba(255, 107, 53, 0.1) !important;
    color: #ff6b35 !important;
    font-weight: 700 !important;
    border-left: 3px solid #ff6b35 !important;
}

/* Indicador visual para tablas con período de gracia */
.tabla-con-gracia {
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
}

.tabla-con-gracia .v-data-table-header {
    background-color: rgba(255, 107, 53, 0.05) !important;
}

/* Estilos para la gráfica */
.grafica-card {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grafica-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding: 16px;
}

.grafica-container canvas {
    max-height: 400px !important;
    width: 100% !important;
}

/* Responsive para la gráfica */
@media (max-width: 768px) {
    .grafica-container {
        height: 300px;
    }
    
    .grafica-container canvas {
        max-height: 300px !important;
    }
}

/* Estilos para la gráfica compacta en expansion panel */
.grafica-compacta-container {
    position: relative;
    height: 400px;  /* Aumentada de 250px a 400px */
    width: 100%;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;  /* Habilitar desplazamiento horizontal */
    overflow-y: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grafica-compacta-container canvas {
    max-height: 400px !important;  /* Aumentada de 250px a 400px */
    width: 100% !important;
    min-width: 800px;  /* Ancho mínimo para garantizar legibilidad */
}

/* Responsive para la gráfica compacta */
@media (max-width: 768px) {
    .grafica-compacta-container {
        height: 300px;  /* Aumentada de 200px a 300px */
    }
    
    .grafica-compacta-container canvas {
        max-height: 300px !important;  /* Aumentada de 200px a 300px */
        min-width: 600px;  /* Ancho mínimo menor para móviles */
    }
}

/* Estilos para los totales de la gráfica */
.totales-grafica {
    margin-top: 16px;
}

.total-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.total-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.total-card .v-card-text {
    padding: 12px 8px !important;
}

.total-card .text-caption {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.total-card .text-h6 {
    font-size: 1.1rem !important;
    line-height: 1.2;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .total-card .text-h6 {
        font-size: 1rem !important;
    }
    
    .total-card .v-card-text {
        padding: 8px 6px !important;
    }
}

/* Estilos para la fila de totales manual integrada en la tabla */
.fila-totales-manual {
    background-color: #f8f9fa !important;
    border-top: 2px solid #e9ecef !important;
    position: relative;
}

.fila-totales-manual:hover {
    background-color: #f8f9fa !important;
}

/* Estilos específicos para la fila de totales */
.totales-chip {
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
}

.fila-totales-texto {
    font-weight: 600 !important;
    color: #4a5568 !important;
    font-style: italic;
    padding: 8px !important;
}

.fila-totales-valor {
    font-weight: 700 !important;
    color: #3182ce !important;
    background-color: rgba(49, 130, 206, 0.05) !important;
    padding: 8px !important;
    border-radius: 4px;
    border-left: 3px solid #3182ce;
    font-family: 'Courier New', monospace;
}

.fila-totales-total {
    font-weight: 800 !important;
    color: #38a169 !important;
    background-color: rgba(56, 161, 105, 0.1) !important;
    padding: 8px !important;
    border-radius: 6px;
    border-left: 4px solid #38a169;
    font-size: 1.05em;
    font-family: 'Courier New', monospace;
}

/* Estilos para columnas de gracia en fila de totales */
.fila-totales-valor.gracia {
    color: #ff6b35 !important;
    background-color: rgba(255, 107, 53, 0.05) !important;
    border-left-color: #ff6b35;
}

/* Indicador sutil para la fila de totales */
.fila-totales-manual::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1976d2 0%, #2e7d32 100%);
    border-radius: 0 2px 2px 0;
}

/* Estilos para el selector de tipo de crédito */
.v-chip-group .v-chip {
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 25px;
}

.v-chip-group .v-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.v-chip-group .v-chip--selected {
    background: linear-gradient(45deg, #4a5568, #3182ce) !important;
    color: white !important;
    border-color: #3182ce !important;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.v-chip-group .v-chip--selected .v-icon {
    color: white !important;
}

/* Estilo para la fila de enganche y monto solicitado */
.enganche-monto-row {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Proporción 4:8 = 1:2 */
    gap: 16px;
    align-items: end; /* Alinear al final para que coincidan las alturas */
}

.enganche-col {
    /* Columna del enganche (proporción 4) */
}

.monto-col {
    /* Columna del monto solicitado (proporción 8) */
    display: flex;
    align-items: end;
}

.monto-simple-inline {
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border-left: 4px solid #4caf50;
    width: 100%;
    height: 56px; /* Misma altura que el input */
    display: flex;
    align-items: center;
}

.monto-simple-inline .text-subtitle-1 {
    font-family: 'Courier New', monospace;
    color: #2e7d32 !important;
    margin: 0;
}

/* Estilos para los hints de los campos automotriz */
.v-text-field .v-messages__message {
    color: #4a5568 !important;
    font-style: italic;
    font-size: 0.75rem;
}

/* Animación para la transición entre tipos de crédito */
.credito-automotriz-enter-active,
.credito-automotriz-leave-active {
    transition: all 0.5s ease;
}

.credito-automotriz-enter-from {
    opacity: 0;
    transform: translateY(-20px);
}

.credito-automotriz-leave-to {
    opacity: 0;
    transform: translateY(-20px);
}

/* Estilos específicos para el campo de enganche */
.v-text-field[hint*="enganche"] .v-field {
    border-left: 4px solid #ff6b35;
}

/* Indicador visual para crédito automotriz activo */
.form-section:has(.v-chip--selected[value="automotriz"]) {
    border-left: 4px solid #3182ce;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Mejoras responsive para los nuevos campos */
@media (max-width: 768px) {
    .v-chip-group .v-chip {
        font-size: 0.85rem;
        padding: 10px 16px;
        margin-bottom: 8px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Responsive para la fila de enganche y monto */
    .enganche-monto-row {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        gap: 12px;
    }
    
    .monto-simple-inline .text-subtitle-1 {
        font-size: 1rem !important;
    }
    
    .monto-simple-inline {
        height: 48px; /* Altura reducida en móviles */
    }
}

/* Estilos para el botón de configuración (engrane) */
.v-btn[icon="mdi-cog"] {
    transition: all 0.3s ease;
    border-radius: 50%;
}

.v-btn[icon="mdi-cog"]:hover {
    background-color: rgba(49, 130, 206, 0.1) !important;
    transform: rotate(90deg);
}

.v-btn[icon="mdi-cog"]:active {
    transform: rotate(180deg);
}

/* Estilos para los modales de validación */
.v-dialog .v-card {
    border-radius: 16px;
    border: 1px solid rgba(74, 85, 104, 0.1);
}

.v-dialog .v-card-title {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v-dialog .v-card-title .v-icon {
    color: white;
}

/* Estilos específicos para el modal de configuración */
.config-modal-card {
    min-height: 500px;
    border-radius: 16px !important;
    overflow: hidden;
}

.config-modal-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.config-modal-header .v-icon {
    color: white !important;
    font-size: 1.5rem;
}

.close-btn {
    color: white !important;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1);
}

.config-modal-content {
    padding: 32px 24px !important;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-description {
    text-align: center;
    margin-bottom: 8px;
}

.config-title {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #4a5568, #3182ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.config-subtitle {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.config-options {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card {
    width: 100%;
    max-width: 500px;
    border-radius: 12px !important;
    border: 2px solid rgba(49, 130, 206, 0.2) !important;
    background: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: rgba(49, 130, 206, 0.4) !important;
    box-shadow: 0 12px 32px rgba(49, 130, 206, 0.15) !important;
    transform: translateY(-2px);
}

.option-content {
    padding: 24px !important;
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.option-icon {
    margin-top: 4px;
    color: #3182ce !important;
}

.option-info {
    flex: 1;
}

.option-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.option-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.option-actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(74, 85, 104, 0.1);
}

.execute-btn {
    background: #4a5568 !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3) !important;
    transition: all 0.3s ease !important;
}

.execute-btn:hover {
    background: #2d3748 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4) !important;
}

.execute-btn .v-icon {
    color: white !important;
}

/* Estilos para la tabla de validación */
.validacion-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.validacion-table .v-data-table__wrapper {
    border-radius: 8px;
}

.validacion-table .v-data-table-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    font-weight: 600;
}

.validacion-table .v-data-table-header th {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-bottom: none !important;
}

.validacion-table .v-data-table__tr:hover {
    background-color: #f7fafc !important;
}

.validacion-table .v-data-table__tr:nth-child(even) {
    background-color: #f7fafc !important;
}

.validacion-table .v-data-table__td {
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    padding: 8px 16px !important;
}

/* Estilos para los chips de estado en la validación */
.v-chip[color="success"] {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
    border: 1px solid #4caf50;
}

.v-chip[color="error"] {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #f44336;
}

/* Estilos para el resumen de validación como encabezado */
.resumen-validacion-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.resumen-header-content {
    padding: 12px 16px !important;
}

.resumen-item {
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.resumen-item:hover {
    background-color: rgba(74, 85, 104, 0.05);
    transform: translateY(-1px);
}

.resumen-item.success {
    background-color: rgba(56, 161, 105, 0.1);
    border-left: 3px solid #38a169;
}

.resumen-item.error {
    background-color: rgba(229, 62, 62, 0.1);
    border-left: 3px solid #e53e3e;
}

.resumen-item.primary {
    background-color: rgba(74, 85, 104, 0.1);
    border-left: 3px solid #4a5568;
}

.resumen-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    line-height: 1.2;
}

.resumen-item.success .resumen-valor {
    color: #38a169;
}

.resumen-item.error .resumen-valor {
    color: #e53e3e;
}

.resumen-item.primary .resumen-valor {
    color: #4a5568;
}

.resumen-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos para la precisión del crédito */
.resumen-item.precision-credito {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    border: 2px solid rgba(74, 85, 104, 0.3);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.resumen-item.precision-credito:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
}

.resumen-item.precision-credito .resumen-valor {
    color: #2d3748;
    font-weight: 700;
}

.resumen-item.precision-credito .resumen-label {
    color: #4a5568;
    font-weight: 600;
}

/* Estilos para el botón de exportar */
.v-btn[variant="outlined"] {
    border: 2px solid #3182ce !important;
    color: #3182ce !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.v-btn[variant="outlined"]:hover:not(.v-btn--disabled) {
    background: #3182ce !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.v-btn[variant="outlined"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estilos específicos para el botón de PDF */
.v-btn[variant="outlined"][color="error"] {
    border: 2px solid #ef4444 !important;
    color: #ef4444 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.v-btn[variant="outlined"][color="error"]:hover:not(.v-btn--disabled) {
    background: #ef4444 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Estilos para las métricas del resumen */
.metrica-validacion {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.metrica-validacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metrica-validacion[color="info"] {
    background-color: rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
}

.metrica-validacion[color="success"] {
    background-color: rgba(56, 161, 105, 0.1);
    border-color: #38a169;
}

.metrica-validacion[color="error"] {
    background-color: rgba(229, 62, 62, 0.1);
    border-color: #e53e3e;
}

.metrica-validacion[color="primary"] {
    background-color: rgba(74, 85, 104, 0.1);
    border-color: #4a5568;
}

/* Estilos para la lista de opciones de validación */
.v-list-item {
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.v-list-item:hover {
    background-color: rgba(49, 130, 206, 0.05);
    transform: translateX(4px);
}

.v-list-item .v-list-item-title {
    font-weight: 600;
    color: #2d3748;
}

.v-list-item .v-list-item-subtitle {
    color: #4a5568;
    font-size: 0.875rem;
}

/* Estilos para el botón de ejecutar validación */
.v-btn[color="primary"][variant="outlined"] {
    border: 2px solid #3182ce;
    color: #3182ce;
    font-weight: 600;
    transition: all 0.3s ease;
}

.v-btn[color="primary"][variant="outlined"]:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Responsive para los modales de validación */
@media (max-width: 768px) {
    .v-dialog {
        margin: 16px;
    }
    
    .v-dialog .v-card-title {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    
    .validacion-table .v-data-table__td {
        padding: 6px 12px !important;
        font-size: 0.8rem;
    }
    
    .resumen-validacion-card .v-card-text {
        padding: 12px 16px 16px 16px;
    }
    
    .metrica-validacion .v-card-text {
        padding: 8px 6px !important;
    }
    
    .metrica-validacion .text-h6 {
        font-size: 1rem !important;
    }
    
    /* Responsive para el modal de configuración */
    .config-modal-card {
        min-height: 450px;
    }
    
    .config-modal-header {
        padding: 14px 16px !important;
    }
    
    .config-modal-content {
        padding: 24px 16px !important;
        min-height: 350px;
        gap: 20px;
    }
    
    .config-title {
        font-size: 1.3rem;
    }
    
    .config-subtitle {
        font-size: 0.9rem;
        padding: 0 8px;
    }
    
    .option-content {
        padding: 20px !important;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .option-description {
        font-size: 0.9rem;
    }
    
    .execute-btn {
        padding: 10px 24px !important;
        font-size: 0.95rem !important;
    }
    
    /* Responsive para el resumen de validación */
    .resumen-header-content {
        padding: 10px 12px !important;
    }
    
    .resumen-valor {
        font-size: 1.25rem;
    }
    
    .resumen-label {
        font-size: 0.8rem;
    }
    
    .resumen-item {
        padding: 4px;
        margin-bottom: 6px;
    }
    
    /* Responsive para la precisión del crédito */
    .resumen-item.precision-credito {
        padding: 6px !important;
        margin: 4px 0 !important;
    }
}



