/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #f8fafc;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 18px;
    color: #f1f5f9;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #e2e8f0;
}

.cotizacion-actual {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cotizacion-actual span {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cotizacion-actual small {
    opacity: 0.8;
    font-size: 0.9rem;
}

.actualizado-hoy {
    margin-top: 8px;
    text-align: center;
}

.badge-actualizado {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Indicador sutil de estado de validación */
.validation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.validation-status.hidden {
    display: none;
}

.validation-status.ready {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.validation-status.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    transition: background-color 0.3s ease;
}

.validation-status.ready .status-dot {
    background: #22c55e;
}

.validation-status.warning .status-dot {
    background: #fbbf24;
}

.status-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}



/* Secciones principales */
section {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

section h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 6px;
}

/* Formulario */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 6px;
    font-size: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    text-align: left;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.98);
}

.form-help {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

/* Input group para monto y moneda */
.input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-group input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.input-group select {
    flex: 0 0 auto;
    width: 100px;
    border: none;
    border-radius: 0;
    background: #f8f9fa;
    padding: 12px 10px;
    font-size: 16px;
    border-left: 1px solid #e1e8ed;
}

.input-group select:focus {
    outline: none;
    box-shadow: none;
    border-left: 1px solid #e1e8ed;
}

.input-group .currency-label {
    flex: 0 0 auto;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 1px solid #e1e8ed;
    font-weight: 600;
    font-size: 16px;
    color: #475569;
    display: flex;
    align-items: center;
}

/* Nuevo diseño dual para monto del préstamo */
.input-group-dual {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.input-primary {
    display: flex;
    align-items: stretch;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    flex: 1;
    min-width: 250px;
}

.input-primary:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-primary input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    text-align: left;
}

.input-primary input:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background: rgba(15, 23, 42, 0.98);
}

.currency-label-primary {
    flex: 0 0 auto;
    padding: 12px 15px;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.currency-equivalent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    white-space: nowrap;
}

.equals-sign {
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
}

.usd-amount {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

@media (max-width: 768px) {
    .input-group-dual {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .input-primary {
        min-width: unset;
    }
    
    .currency-equivalent {
        justify-content: center;
    }
}

/* Sliders */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e1e8ed;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Input de tipo de cambio */
.tc-input-container {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.tc-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    opacity: 0.8;
}

.tc-input-container label {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.tc-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tc-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tc-input-wrapper:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tc-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 4px 16px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.currency-prefix {
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.currency-prefix::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.tc-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
}

.tc-input:focus {
    background: rgba(59, 130, 246, 0.05);
}

.tc-input::-webkit-outer-spin-button,
.tc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tc-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Botones de sugerencias mejorados */
.tc-suggestions {
    display: flex;
    gap: 8px;
}

.tc-suggestion {
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.tc-suggestion:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tc-suggestion.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Info de bandas compacta */
.tc-banda-info-compact {
    text-align: center;
    padding: 8px 12px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tc-banda-info-compact small {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.tc-banda-info-compact span {
    color: #e2e8f0;
    font-weight: 600;
}

/* Responsive para el componente TC */
@media (max-width: 768px) {
    .tc-input-container {
        padding: 12px;
    }
    
    .tc-input-group {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .tc-input-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .tc-suggestions {
        justify-content: center;
    }
    
    .tc-suggestion {
        flex: 1;
        min-width: auto;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tc-input-container {
        padding: 10px;
    }
    
    .tc-input {
        font-size: 18px;
        padding: 14px 16px;
    }
    
    .currency-prefix {
        font-size: 18px;
        padding: 14px 16px;
    }
    
    .tc-suggestion {
        padding: 14px 12px;
        font-size: 0.8rem;
    }
}

/* Resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.result-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: #f1f5f9;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.result-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 1;
    text-align: center;
    width: 100%;
    color: #e2e8f0;
}

/* Estilos legacy para compatibilidad */
.result-value {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Override para cards que usan dual currency */
.result-card .result-value {
    display: none; /* Ocultamos el estilo legacy cuando hay dual currency */
}

/* Descripción de sección */
.section-description {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

/* Dual Currency Display */
.dual-currency-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
}

.currency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
    padding: 8px;
    gap: 4px;
}

.currency-label {
    font-size: 1.1rem;
    color: #10b981;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
    letter-spacing: 0.5px;
}

.currency-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    text-align: center;
}

.currency-label-small {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 400;
    margin-top: 3px;
    opacity: 0.9;
    text-align: center;
}

/* Para result cards - más compacto */
.result-card .dual-currency-display {
    gap: 12px;
    margin: 15px 0;
    align-items: center;
    justify-content: center;
}

.result-card .currency-item {
    min-width: 120px;
    padding: 10px;
}

.result-card .currency-value {
    font-size: 1.6rem;
    line-height: 1.2;
}

.result-card.priority .currency-value {
    color: #34d399;
}

.result-card.secondary .currency-value {
    color: #60a5fa;
}

/* Para gastos - inline */
.gasto-valores.dual-currency {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    align-items: flex-end;
    justify-content: center;
}

.currency-item-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 100px;
    gap: 2px;
}

.currency-label-small {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: right;
    letter-spacing: 0.3px;
}

.currency-value-inline {
    font-size: 1rem;
    font-weight: 600;
    color: #10b981;
    line-height: 1.2;
    text-align: right;
}

.currency-label-tiny {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
    text-align: right;
}

/* Responsive para dual currency */
@media (min-width: 640px) {
    .dual-currency-display {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 30px;
        align-items: center;
    }
    
    .currency-item {
        flex: 1;
        max-width: 180px;
        padding: 15px;
    }
    
    .gasto-valores.dual-currency {
        flex-direction: row;
        gap: 20px;
        justify-content: flex-end;
        align-items: center;
    }
    
    .currency-item-inline {
        align-items: flex-end;
        text-align: right;
    }
}

/* Desglose compacto y consistente */
.scenario-breakdown {
    margin-top: 16px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
}

.breakdown-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.9rem;
}

.breakdown-item-compact:last-child {
    border-bottom: none;
}

.breakdown-label-compact {
    color: #94a3b8;
    font-weight: 500;
    flex: 1;
}

.breakdown-amount-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 100px;
}

.amount-pesos {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.amount-usd {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.amount-usd::before {
    content: "USD ";
    font-size: 0.65rem;
    font-weight: 600;
    color: #10b981;
    margin-right: 2px;
}

/* Responsive para desglose compacto */
@media (max-width: 640px) {
    .breakdown-item-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .breakdown-amount-compact {
        align-items: flex-start;
        width: 100%;
    }
}

/* Consejos */
.tips-content ul {
    list-style: none;
    padding-left: 0;
}

.tips-content li {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    color: #f1f5f9;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.tips-content li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
    border-left-color: #60a5fa;
}

.tips-content li strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.tips-content li br {
    line-height: 2;
}

/* Tips Dinámicos */
.tips-dynamic {
    margin-bottom: 25px;
}

.tip-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    animation: slideIn 0.5s ease;
}

.tip-card.warning {
    background: rgba(251, 191, 36, 0.15);
    border-left: 3px solid #fbbf24;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tip-card.info {
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid #3b82f6;
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tip-card.success {
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
    color: #34d399;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tip-card.success.highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.25));
    border: 2px solid #10b981;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.02);
    font-weight: 500;
}

.tip-card.danger {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
    line-height: 1.5;
}

.breakdown-line {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin: 2px 0;
    font-size: 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Ejemplo práctico */
.practical-example {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.1);
}

.practical-example h4 {
    color: #22c55e;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
    padding-bottom: 10px;
}

.example-content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 500;
}

.example-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.example-item:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(5px);
}

.example-item.highlight {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    font-weight: 600;
}

.example-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.25) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    margin-top: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.example-label {
    color: #cbd5e1;
    font-size: 0.95rem;
    flex: 1;
}

.example-value {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    min-width: 120px;
}

.example-total .example-label {
    color: #e2e8f0;
    font-size: 1rem;
}

.example-total .example-value {
    color: #10b981;
    font-size: 1.2rem;
}

.example-note {
    text-align: center;
    font-style: italic;
    color: #94a3b8;
    margin-top: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive para ejemplo práctico */
@media (max-width: 768px) {
    .practical-example {
        padding: 20px 15px;
    }
    
    .example-item,
    .example-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .example-value {
        text-align: left;
        min-width: auto;
        font-size: 1.1rem;
    }
    
    .example-total .example-value {
        font-size: 1.3rem;
    }
}

/* Sección educativa sobre UVA */
.uva-education-section {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.uva-education-content {
    display: grid;
    gap: 24px;
}

.uva-explanation h3,
.uva-calculation h3,
.uva-example h3 {
    color: #60a5fa;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.uva-explanation p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.uva-benefits h4 {
    color: #22c55e;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.uva-benefits ul {
    list-style: none;
    padding-left: 0;
}

.uva-benefits li {
    padding: 8px 0;
    border-left: 3px solid #22c55e;
    padding-left: 16px;
    margin-bottom: 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 0 8px 8px 0;
}

.calculation-steps {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 4px;
}

.uva-formula {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.formula-box {
    text-align: center;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.formula-box strong {
    color: #60a5fa;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.formula-box p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.example-box {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.example-box p {
    margin-bottom: 16px;
}

.example-box ul {
    list-style: none;
    padding-left: 0;
}

.example-box li {
    padding: 8px 0;
    border-left: 3px solid #60a5fa;
    padding-left: 16px;
    margin-bottom: 8px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 0 8px 8px 0;
}

/* Sección de FAQ */
.faq-section {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.faq-content {
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.15);
}

.faq-question h3 {
    color: #60a5fa;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    background: rgba(15, 23, 42, 0.6);
    display: none;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Footer */
footer {
    text-align: center;
    color: #cbd5e1;
    margin-top: 30px;
    padding: 15px;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Tooltips y mejoras de resultados */
.tooltip {
    cursor: help;
    font-size: 0.9rem;
    color: #3b82f6;
    margin-left: 8px;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tooltip:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.result-card.priority {
    border-left: 4px solid #34d399;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.2);
}

.result-card.secondary {
    border-left: 4px solid #60a5fa;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

.result-card small {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.result-card.priority .result-value {
    color: #065f46;
    font-weight: 700;
}

.result-card.secondary .result-value {
    color: #1e40af;
    font-weight: 700;
}

/* Desglose de gastos - Estilo unificado con la calculadora principal */
/* Esta sección se movió al formulario principal, manteniendo solo el resumen aquí */

/* Porcentajes de gastos - Estilo mejorado */
.porcentaje {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
}

/* Controles de gastos - Estilo unificado */
.gasto-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
}

/* Inputs de porcentaje - Estilo mejorado y unificado */
.percentage-input {
    display: flex;
    align-items: center;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    min-width: 130px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.percentage-input:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.percentage-input:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 4px 16px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.percentage-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.percentage-field:focus {
    background: rgba(59, 130, 246, 0.05);
}

.percentage-field::-webkit-outer-spin-button,
.percentage-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percentage-field[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.percentage-symbol {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.percentage-symbol::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* Valores duales de gastos - Estilo mejorado */
.gasto-valores {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dual-currency {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.currency-item-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.currency-label-small {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.currency-value-inline {
    font-weight: 600;
    color: #ffffff;
}

/* Responsive mejorado para gastos */
@media (max-width: 768px) {
    .gastos-detalle {
        padding: 12px;
        margin-top: 12px;
    }
    
    .gasto-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        min-height: auto;
    }
    
    .gasto-item:hover {
        transform: none;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .gasto-item:hover::after {
        display: none;
    }
    
    .gasto-control {
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .percentage-input {
        min-width: 140px;
        max-width: 200px;
        width: 100%;
    }
    
    .percentage-field {
        font-size: 18px;
        padding: 12px 14px;
    }
    
    .percentage-symbol {
        padding: 12px 18px;
        font-size: 18px;
    }
    
    .gasto-item.total {
        padding: 16px;
        margin-top: 16px;
    }
    
    .gasto-item.total::after {
        display: none;
    }
    
    .gasto-valores {
        text-align: center;
        align-items: center;
    }
    
    .dual-currency {
        align-items: center;
    }
}

/* Estados visuales para feedback de interacción en gastos */
/* Estos estilos se mantienen para la funcionalidad en el formulario principal */

/* Mejoras en la transición de valores */
.gasto-item span:last-child {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.gasto-item.updating span:last-child {
    color: #f59e0b;
    transform: scale(1.05);
}

.gasto-item.confirmed span:last-child {
    color: #10b981;
    transform: scale(1.02);
}

/* Indicador de cambio en tiempo real */
.gasto-item .change-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    opacity: 0;
    transition: all 0.3s ease;
}

.gasto-item.updating .change-indicator {
    opacity: 1;
    background: #f59e0b;
    animation: updatingDot 1s infinite;
}

.gasto-item.confirmed .change-indicator {
    opacity: 1;
    background: #10b981;
    animation: confirmedDot 0.8s ease-out;
}

@keyframes updatingDot {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.3);
    }
}

@keyframes confirmedDot {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
}

/* Mejoras finales para la integración visual completa */
.results-section {
    position: relative;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.result-card.secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.result-card.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    opacity: 0.8;
}

.result-card.secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

/* Mejoras en el título de la sección de gastos */
.result-card.secondary h3 {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.result-card.secondary h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    border-radius: 1px;
}

/* Mejoras en la transición entre secciones */
.results-grid {
    gap: 20px;
}

.results-grid .result-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-grid .result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Mejoras en la responsividad general */
@media (max-width: 768px) {
    .results-grid {
        gap: 16px;
    }
    
    .result-card.secondary:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    }
    
    .results-section::before {
        width: 90%;
    }
}

/* Mejoras en la accesibilidad visual */
.gasto-item:focus-within {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.percentage-input:focus-within {
    outline: none;
}

/* Mejoras en la legibilidad */
.gasto-item .gasto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.gasto-item .gasto-header span:first-child {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.gasto-item .gasto-header span:last-child {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

/* Mejoras en el contraste y legibilidad */
.porcentaje {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Mejoras en la animación de entrada */
.gastos-detalle {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras en el estado de carga */
.gastos-detalle.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gastos-detalle.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sección de gastos integrada en el formulario principal */
.gastos-form-section {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.gastos-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    opacity: 0.8;
}

.gastos-form-section h3 {
    margin: 0 0 20px 0;
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gastos-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.gasto-form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gasto-form-item label {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gasto-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gasto-input-group .percentage-input {
    flex: 1;
    min-width: 120px;
}

.gasto-reference {
    color: #94a3b8;
    font-size: 0.75rem;
    background: rgba(148, 163, 184, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.gasto-form-item:hover .gasto-reference {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Responsive para la sección de gastos integrada */
@media (max-width: 768px) {
    .gastos-form-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .gastos-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gasto-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .gasto-input-group .percentage-input {
        width: 100%;
        min-width: auto;
    }
    
    .gasto-reference {
        text-align: center;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .gastos-form-section {
        padding: 12px;
    }
    
    .gastos-form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}

/* Desglose de gastos en el ejemplo práctico */
.example-gastos-breakdown {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.example-gastos-breakdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    opacity: 0.8;
}

.example-gastos-breakdown h5 {
    margin: 0 0 16px 0;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gasto-ejemplo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.2);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.gasto-ejemplo-item:hover {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(2px);
}

.gasto-ejemplo-item:last-of-type {
    margin-bottom: 0;
}

.gasto-ejemplo-label {
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gasto-ejemplo-value {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.gasto-ejemplo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

.gasto-ejemplo-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    border-radius: 10px 10px 0 0;
}

.gasto-ejemplo-total .gasto-ejemplo-label {
    color: #e2e8f0;
    font-weight: 600;
}

.gasto-ejemplo-total .gasto-ejemplo-value {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive para el desglose de gastos en el ejemplo */
@media (max-width: 768px) {
    .example-gastos-breakdown {
        padding: 12px;
        margin: 12px 0;
    }
    
    .gasto-ejemplo-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .gasto-ejemplo-total {
        padding: 14px 16px;
        margin-top: 10px;
    }
}



/* Estilos para el CORE principal con tabla */
.core-section {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.core-section h2 {
    color: #60a5fa;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Tabla principal del CORE */
.core-table-container {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow-x: auto;
}

.core-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.core-table th {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    font-size: 1rem;
}

.core-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    vertical-align: middle;
}

/* Columnas de la tabla */
.currency-column {
    text-align: center;
    min-width: 120px;
}

.description-column {
    min-width: 200px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Filas principales */
.core-row-primary {
    background: rgba(59, 130, 246, 0.05);
}

.core-row-primary .concept-cell {
    font-weight: 600;
    color: #e2e8f0;
}

.core-row-primary .currency-cell {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Filas secundarias */
.core-row-secondary {
    background: rgba(15, 23, 42, 0.4);
}

.core-row-secondary .concept-cell {
    font-weight: 500;
    color: #cbd5e1;
}

/* Celdas de concepto */
.concept-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.concept-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.concept-text {
    flex: 1;
}

.tooltip {
    color: #60a5fa;
    cursor: help;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Celdas de moneda */
.currency-cell {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.currency-cell.ars {
    color: #fbbf24;
    font-size: 1rem;
}

.currency-cell.usd {
    color: #34d399;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Separador visual */
.separator-row {
    height: 20px;
    background: transparent;
}

.separator-row td {
    border: none;
    padding: 0;
}

/* Encabezado de sección de gastos */
.section-header {
    background: rgba(59, 130, 246, 0.1);
}

.section-header h3 {
    color: #60a5fa;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

/* Filas de gastos */
.gasto-row {
    background: rgba(15, 23, 42, 0.3);
}

.gasto-row .concept-cell {
    font-weight: 500;
    color: #cbd5e1;
}

.gasto-row .currency-cell {
    font-size: 0.95rem;
}

/* Fila total de gastos */
.gasto-total-row {
    background: rgba(59, 130, 246, 0.15);
    border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.gasto-total-row .concept-cell {
    font-weight: 600;
    color: #e2e8f0;
}

.gasto-total-row .currency-cell {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive para la tabla */
@media (max-width: 768px) {
    .core-section {
        padding: 16px;
    }
    
    .core-table-container {
        padding: 12px;
        margin: 16px 0;
    }
    
    .core-table {
        font-size: 0.85rem;
    }
    
    .core-table th,
    .core-table td {
        padding: 12px 8px;
    }
    
    .concept-cell {
        min-width: 200px;
        gap: 8px;
    }
    
    .currency-column {
        min-width: 100px;
    }
    
    .description-column {
        min-width: 150px;
        font-size: 0.8rem;
    }
    
    .currency-cell.ars {
        font-size: 0.9rem;
    }
    
    .currency-cell.usd {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .core-table {
        font-size: 0.8rem;
    }
    
    .concept-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 180px;
    }
    
    .concept-icon {
        font-size: 1rem;
    }
    
    .concept-text {
        font-size: 0.9rem;
    }
    
    .tooltip {
        font-size: 0.8rem;
    }
}

/* Escenarios de tipo de cambio */
.escenarios-tc {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.escenarios-tc h3 {
    color: #60a5fa;
    margin-bottom: 16px;
    text-align: center;
    font-size: 1.3rem;
}

.escenarios-tc .section-helper {
    color: #94a3b8;
    text-align: center;
    margin: -6px 0 16px 0;
    font-size: 0.9rem;
}

.escenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.escenario-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.escenario-card.mejor { border-color: rgba(34,197,94,0.25); }
.escenario-card.base { border-color: rgba(59,130,246,0.25); }
.escenario-card.peor { border-color: rgba(239,68,68,0.25); }

.escenario-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.escenario-card h4 {
    color: #60a5fa;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.escenario-content p { color:#cbd5e1; margin-bottom:12px; text-align:center; font-size:0.9rem; }

.tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.12);
    color: #bfdbfe;
    border: 1px solid rgba(59,130,246,0.25);
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.85rem;
    margin: 0 auto 12px auto;
}

.tc-badge .badge-title {
    color: #93c5fd;
    font-weight: 600;
}

/* Tabla dentro de tarjetas de escenarios */
.escenario-table { width:100%; border-collapse:collapse; font-size:0.95rem; table-layout:fixed; }
.escenario-table .col-concept { width:52%; }
.escenario-table .col-valores { width:48%; }
.escenario-table th { background: rgba(59,130,246,0.08); color:#93c5fd; padding:10px 12px; text-align:center; border-bottom:1px solid rgba(59,130,246,0.25); }
.escenario-table th.col-monedas { letter-spacing: 0.5px; }
.escenario-table td { padding:14px 12px; border-bottom:1px solid rgba(59,130,246,0.12); }
.escenario-table .concept-cell { color:#e2e8f0; word-break:keep-all; }
.escenario-table .col-valores { text-align:right; }
.escenario-table .col-valores .currency-line { display:block; }
.escenario-table .col-valores .currency-line.ars { color:#fbbf24; font-weight:700; }
.escenario-table .col-valores .currency-line.usd { color:#34d399; font-weight:700; }

.escenario-table tr.delta-row td { border-top: 1px dashed rgba(148,163,184,0.3); }
.escenario-table tr.delta-row .concept-cell { color:#cbd5e1; }
/* Colores intuitivos para diferencia vs oficial */
.escenario-table tr.delta-row .col-valores.mejor .currency-line.ars, 
.escenario-table tr.delta-row .col-valores.mejor .currency-line.usd, 
.escenario-summary.mejor { color:#22c55e !important; } /* Verde: necesitás menos (mejor) */

.escenario-table tr.delta-row .col-valores.peor .currency-line.ars, 
.escenario-table tr.delta-row .col-valores.peor .currency-line.usd, 
.escenario-summary.peor { color:#ef4444 !important; } /* Rojo: necesitás más (peor) */

.escenario-table tr.delta-row .col-valores.igual .currency-line.ars, 
.escenario-table tr.delta-row .col-valores.igual .currency-line.usd, 
.escenario-summary.igual { color:#f59e0b !important; } /* Dorado: igual al oficial */

/* Colores para tarjetas completas según qué tan bueno es el escenario */
.escenario-card.mejor .col-valores .currency-line.ars { color:#22c55e !important; } /* Verde: mejor escenario */
.escenario-card.mejor .col-valores .currency-line.usd { color:#16a34a !important; }

.escenario-card.base .col-valores .currency-line.ars { color:#f59e0b !important; } /* Dorado: escenario base */
.escenario-card.base .col-valores .currency-line.usd { color:#d97706 !important; }

.escenario-card.peor .col-valores .currency-line.ars { color:#ef4444 !important; } /* Rojo: peor escenario */
.escenario-card.peor .col-valores .currency-line.usd { color:#dc2626 !important; }

.escenario-summary { margin-top:8px; color:#94a3b8; font-size:0.9rem; text-align:right; }

@media (max-width: 720px) {
    /* Mantener la misma experiencia en mobile, sólo ajustar tamaños */
    .escenario-table { font-size:0.88rem; }
    .escenario-table .col-concept { width:50%; }
    .escenario-table .col-ars, .escenario-table .col-usd { width:25%; }
    .tc-badge { font-size:0.8rem; }
}

.escenario-values .value-ars {
    color: #fbbf24;
    font-weight: 600;
}

.escenario-values .value-usd {
    color: #34d399;
    font-weight: 600;
}

.escenario-values .sep {
    color: #475569;
}

.escenario-ars {
    color: #fbbf24;
    font-weight: 500;
}

.escenario-usd {
    color: #34d399;
    font-weight: 500;
}

/* Responsive para escenarios */
@media (max-width: 768px) {
    .escenarios-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive para sección educativa UVA */
@media (max-width: 768px) {
    .uva-education-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .uva-education-content {
        gap: 16px;
    }
    
    .calculation-steps {
        gap: 12px;
    }
    
    .step {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .uva-formula,
    .example-box {
        padding: 16px;
    }
}

/* Responsive para FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 16px 16px;
    }
}

/* Responsive para badge actualizado */
@media (max-width: 768px) {
    .badge-actualizado {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* Celdas con dos líneas de moneda en una columna */
.currency-line {
    display: block;
}
.currency-line.ars {
    color: #fbbf24;
    font-weight: 600;
}
.currency-line.usd {
    color: #34d399;
    opacity: 0.95;
    font-size: 0.9em;
}

/* Ocultar descripción en mobile */
@media (max-width: 768px) {
    .core-table .description-column,
    .core-table td.description-cell {
        display: none;
    }
}

/* Consejos */
.tips-section {
    margin-top: 30px;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #60a5fa;
    font-size: 1.8rem;
}

.tips-content h3 {
    color: #60a5fa;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

/* Grid de tips mejorado */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.tips-column {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tips-column h3 {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border-left: 3px solid #3b82f6;
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateX(5px);
    background: rgba(15, 23, 42, 0.8);
    border-left-color: #60a5fa;
}

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

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-content strong {
    display: block;
    color: #60a5fa;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.tip-content p {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

/* Checklist de acción */
.action-checklist {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.action-checklist h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #22c55e;
}

.checklist-grid {
    display: grid;
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border-left: 3px solid #22c55e;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(3px);
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
    cursor: pointer;
}

.checklist-item label {
    color: #e2e8f0;
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
}

.checklist-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

.checklist-item.completed label {
    color: #22c55e;
    font-weight: 500;
}

.checklist-item.completed input[type="checkbox"] {
    accent-color: #22c55e;
}

/* Responsive para tips */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tips-column {
        padding: 15px;
    }
    
    .tip-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .action-checklist {
        padding: 20px;
    }
}

.tips-content ul {
    list-style: none;
    padding-left: 0;
}

.tips-content li {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    color: #f1f5f9;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.tips-content li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
    border-left-color: #60a5fa;
}

.tips-content li strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.tips-content li br {
    line-height: 2;
}

/* Estilos para la sección de sueldo */
.sueldo-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.sueldo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
}

.sueldo-section label {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: block;
}

.sueldo-input {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #16a34a;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.sueldo-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    background: rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.sueldo-input::placeholder {
    color: rgba(34, 197, 94, 0.6);
    font-weight: 400;
}

.sueldo-info {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 8px;
}

.max-cuota-badge {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    animation: pulse-green 2s infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.max-cuota-badge.warning {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sueldo-helper {
    color: #16a34a;
    font-style: italic;
    margin-top: 12px;
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

/* Mensaje introductorio sobre el sueldo */
.sueldo-intro {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.sueldo-intro p {
    color: #1e40af;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.sueldo-intro strong {
    color: #1d4ed8;
    font-weight: 700;
}

/* Indicador de estado de la cuota */
.cuota-status-indicator {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    backdrop-filter: blur(10px);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-row:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
}

.status-label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
}

.status-value {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1rem;
}

.status-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-message.warning {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-message.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
