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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #39b54a 0%, #2d8f3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.calculator-container {
    width: 100%;
    max-width: 600px;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

.calculator-title {
    font-size: 32px;
    font-weight: 700;
    color: #39b54a;
    margin-bottom: 8px;
    text-align: center;
}

.calculator-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

/* Input Groups */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #39b54a;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-wrapper input:focus {
    border-color: #39b54a;
    box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.1);
}

.input-wrapper input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #39b54a15 0%, #2d8f3a15 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: #39b54a;
}

/* Slider */
.slider-group {
    margin-bottom: 24px;
}

.slider-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
}

.slider-value-display {
    text-align: center;
    margin-bottom: 12px;
}

.slider-value-display span {
    font-size: 28px;
    font-weight: 700;
    color: #39b54a;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #39b54a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(57, 181, 74, 0.4);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.6);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #39b54a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(57, 181, 74, 0.4);
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.6);
}

input[type="range"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

/* Results */
.results-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.results-title {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    margin-bottom: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.result-row.total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #39b54a;
}

.result-row.total .result-label,
.result-row.total .result-value {
    font-size: 16px;
    font-weight: 700;
    color: #39b54a;
}

.result-row.por-pagar {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e0e0e0;
}

.result-row.por-pagar .result-label,
.result-row.por-pagar .result-value {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.result-row.highlight {
    background: linear-gradient(135deg, #39b54a 0%, #2d8f3a 100%);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.result-row.highlight .result-label,
.result-row.highlight .result-value {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* CTA Button */
.cta-container {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #39b54a 0%, #2d8f3a 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 181, 74, 0.6);
}

/* Responsive */
@media (max-width: 640px) {
    .calculator-card {
        padding: 24px;
    }

    .calculator-title {
        font-size: 24px;
    }

    .calculator-subtitle {
        font-size: 14px;
    }

    .slider-value-display span {
        font-size: 24px;
    }

    .result-row.highlight .result-label,
    .result-row.highlight .result-value {
        font-size: 16px;
    }
}
