* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#container {
    max-width: 500px;
    width: 100%;
    margin-bottom: 40px;
}

h1 {
    color: #166534;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

#datos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#datos > span {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#precioMax {
    font-weight: 700;
    font-size: 24px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #166534;
    font-size: 15px;
}

input[type="number"] {
    padding: 14px 16px;
    border: 2px solid #86efac;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

input[type="number"]:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:first-of-type {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

button:first-of-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

button:last-of-type {
    background: #d1fae5;
    color: #166534;
    border: 2px solid #86efac;
}

button:last-of-type:hover {
    background: #a7f3d0;
}

button:active {
    transform: translateY(0);
}

#container + div {
    max-width: 500px;
    width: 100%;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

#mensajePrecio {
    color: #166534;
    font-size: 18px;
    font-weight: 500;
}

#resultado {
    color: #059669;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 600px) {
    h1 {
    font-size: 28px;
    }

    button {
    font-size: 14px;
    }
}
