/* Estilos del ejercicio: archivo independiente, sin estilos en línea */
:root {
  --hue: 195;
  --acento: hsl(var(--hue) 70% 45%);
  --acento-suave: hsl(var(--hue) 80% 95%);
  --texto: #1f2937;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: linear-gradient(135deg, hsl(var(--hue) 80% 92%), #f8fafc);
}
.card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
  border-top: 6px solid var(--acento);
}
.volver { color: var(--acento); text-decoration: none; font-size: 0.9rem; }
.volver:hover { text-decoration: underline; }
h1 { margin: 0.5rem 0; color: var(--acento); }
h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.enunciado {
  padding: 1rem;
  background: var(--acento-suave);
  border-left: 4px solid var(--acento);
  border-radius: 8px;
  line-height: 1.5;
}
form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-top: 1rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
input {
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--acento); border-color: transparent; }
button {
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--acento);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
}
button:hover { filter: brightness(1.1); }
button:active { transform: scale(0.97); }
.salida {
  min-height: 3rem;
  padding: 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.nota { font-size: 0.85rem; color: #64748b; }
