@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- ESTILOS PARA EL LOGOTIPO --- */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 70px; /* Esta regla ahora se aplica siempre */
    height: auto;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 750px;
    width: 100%;
    border: 1px solid #dee2e6;
}

h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.3rem;
    text-align: left;
    color: #34495e;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

p {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.input-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.input-section input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 5px;
    background: #dee2e6;
    outline: none;
    transition: background 0.3s;
}

.input-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.input-section input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.input-section input[type="range"]:hover {
    background: #ced4da;
}

.slider-value {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    font-weight: 700;
    color: #3498db;
    font-size: 1.2rem;
}

.results-section {
    padding-top: 20px;
    margin-top: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.05em;
    color: #495057;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.result-item .value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
}

.result-item.total {
    font-weight: 700;
    color: #2c3e50;
    background-color: #eaf5ff;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    border: 1px solid #cce4ff;
}

.result-item.total .value {
    color: #0056b3;
    font-size: 1.2em;
}

.final-total {
    font-size: 1.8rem;
    color: #2ecc71;
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #2ecc71;
    background-color: #f0fff4;
    text-align: center;
}

.final-total .value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.disclaimer, .footnote {
    margin-top: 1.5rem;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.action-buttons button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.action-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .input-section {
        padding: 1.5rem;
    }
    .final-total {
        font-size: 1.5rem;
    }
    .final-total .value {
        font-size: 1.8rem;
    }
    .action-buttons button {
        width: 100%;
        padding: 12px;
    }
}