.calculadora-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.calculadora {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem;
}

.calculadora-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calculadora-header h2 {
    color: #2C3E50;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.calculadora-header .descripcion {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.calculadora-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #f5f5f5;
    color: #2C3E50;
}

.tab-button.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

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

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

.campo-grupo {
    display: flex;
    flex-direction: column;
}

.campo-grupo label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.campo-grupo input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.campo-grupo input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.boton-calcular {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
}

.boton-calcular:hover {
    background: #2980b9;
}

.resultados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resultado {
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.resultado-principal {
    background: #e8f4fc;
}

.resultado h3 {
    margin: 0 0 0.5rem 0;
    color: #444;
    font-size: 1rem;
}

.resultado p {
    margin: 0;
    color: #2C3E50;
    font-size: 1.4rem;
    font-weight: bold;
}

.resultado-principal p {
    color: #3498db;
}

@media (max-width: 600px) {
    .calculadora {
        padding: 1rem;
        margin: 0.5rem;
    }

    .campos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resultados {
        grid-template-columns: 1fr;
    }

    .calculadora-header h2 {
        font-size: 1.5rem;
    }
    
    .calculadora-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        margin: 0.3rem 0;
    }
}