/**
 * Calculadora de Financiamiento - CSS
 */

.financing-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.financing-calculator h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.calculator-subtitle {
    margin: 0 0 25px 0;
    opacity: 0.9;
    font-size: 15px;
}

.calculator-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.calculator-row {
    margin-bottom: 20px;
}

.calculator-row:last-child {
    margin-bottom: 0;
}

.calculator-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.input-group input:focus {
    outline: none;
    border-color: white;
    background: white;
}

.input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #6b7280;
}

.calculator-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.calculator-row select:focus {
    outline: none;
    border-color: white;
    background: white;
}

.calculator-row input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.calculator-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calculator-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calculator-result {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.result-label {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.result-note {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .financing-calculator {
        padding: 20px;
    }

    .result-value {
        font-size: 36px;
    }
}
