:root {
  --bg: #f6f2ea;
  --panel: #fffaf1;
  --ink: #1d2433;
  --muted: #5f6675;
  --brand: #9b3d2e;
  --brand-2: #145c50;
  --line: #e2d7c8;
  --shadow: 0 18px 40px rgba(33, 28, 20, .10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff4d8, transparent 38rem), var(--bg);
}
header, main, footer { max-width: 1180px; margin: 0 auto; padding: 24px; }
header { padding-top: 42px; }
h1 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: .95; margin: 0 0 14px; letter-spacing: -0.05em; }
h2 { margin: 0 0 16px; }
h3 { margin-bottom: 8px; }
.lead { max-width: 820px; color: var(--muted); font-size: 1.15rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 800; font-size: .78rem; }
.panel {
  background: rgba(255, 250, 241, .92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.intro { margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: 22px; align-items: start; }
label { display: block; font-weight: 750; margin: 14px 0; color: #293044; }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d5c8b8;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(20, 92, 80, .18); border-color: var(--brand-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.check input { width: auto; margin: 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button {
  border: 0;
  background: var(--brand-2);
  color: white;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 92, 80, .20);
}
button:hover { filter: brightness(1.06); transform: translateY(-1px); }
#ex-primaria, #ex-eso, #ex-pi { background: var(--brand); }
#output {
  min-height: 360px;
  font-size: 1.02rem;
  line-height: 1.55;
  background: #fffdf8;
}
aside {
  margin-top: 18px;
  border-left: 4px solid var(--brand-2);
  padding: 10px 14px;
  background: #eef8f5;
  border-radius: 12px;
}
li { margin: 6px 0; }
footer { color: var(--muted); padding-bottom: 40px; }
#copied { color: var(--brand-2); font-weight: 800; }
@media (max-width: 900px) {
  .grid, .two { grid-template-columns: 1fr; }
  header, main, footer { padding: 16px; }
}
