/* === Estilo general === */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* === Contenedor principal === */
* {
  box-sizing: border-box;
}

.container {
  background: #ffffff;
  max-width: 480px;
  width: 90%;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === Título === */
h1 {
  font-size: 1.8rem;
  color: #0d47a1;
  margin-bottom: 25px;
}

/* === Etiquetas y controles === */
label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  color: #333;
  font-weight: 600;
}

select,
input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus,
input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 5px rgba(25, 118, 210, 0.4);
  outline: none;
}

/* === Botón === */
button {
  width: 100%;
  padding: 12px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 15px;
}

button:hover {
  background: #1565c0;
  transform: scale(1.02);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* === Resultado === */
.resultado {
  margin-top: 25px;
  padding: 15px;
  border-radius: 10px;
  background: #e3f2fd;
  color: #0d47a1;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: inset 0 0 5px rgba(13, 71, 161, 0.1);
  animation: fadeIn 0.4s ease-in;
}

/* === Animaciones === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
