/* --- ESTILOS GENERALES --- */
body {
  font-family: 'Poppins', sans-serif;
  background: #f4f7fb;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

header {
  background-color: #4a90e2;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

h1 {
  margin-bottom: 0.3rem;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* --- FORMULARIO --- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
}

input, select {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover,
button:focus {
  background-color: #357abd;
}

#mensaje {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

/* --- RESULTADO --- */
#resultado {
  font-family: monospace;
  background: #f0f4ff;
  border-left: 5px solid #4a90e2;
  padding: 1rem;
  border-radius: 6px;
  white-space: pre-wrap;
}

footer {
  text-align: center;
  color: #777;
  padding: 1rem;
  font-size: 0.9rem;
}
