/* Estilos específicos para la calculadora de amortización anticipada */
.calculator-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Calculadora */
.calculator {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.8rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

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

.input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.time-input-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.time-input-wrapper select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.time-input-wrapper select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.input-wrapper .currency,
.input-wrapper .percentage {
    position: absolute;
    right: 1rem;
    color: #666;
    font-weight: 500;
}

/* Radio buttons */
.radio-group {
    margin-bottom: 1.8rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.8rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--secondary-color);
}

.calculate-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.calculate-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.calculate-button:active {
    transform: translateY(0);
}

/* Resultados */
.results {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.result-box {
    margin-bottom: 2rem;
}

.result-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.05);
}

.result-item:hover {
    transform: translateX(5px);
    background: rgba(52, 152, 219, 0.1);
}

.result-label {
    color: var(--text-color);
    font-weight: 500;
}

.result-value {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Colores específicos para cada tipo de resultado */
.result-item.original .result-value {
    color: #e74c3c;
}

.result-item.new .result-value {
    color: #27ae60;
}

.result-item.period .result-value {
    color: #f39c12;
}

.result-item.total .result-value {
    color: #2980b9;
}

/* Gráfico */
.chart-container {
    margin-top: 2rem;
    height: 400px;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Contenido informativo */
.content-section {
    margin-top: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-5px);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.strategy-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .calculator,
    .results {
        padding: 1.5rem;
    }

    .input-wrapper input,
    .time-input-wrapper select {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .result-value {
        font-size: 1.1rem;
    }

    .chart-container {
        height: 300px;
    }

    .benefits-grid,
    .strategy-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .calculator-section {
        margin: 1rem auto;
    }

    .calculator,
    .results {
        margin: 0 -1rem;
        border-radius: 0;
        padding: 1.2rem;
    }

    .time-input-wrapper {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .chart-container {
        height: 250px;
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .radio-options {
        flex-direction: column;
    }
} 