:root { color-scheme: light dark; --acento: light-dark(#0b3d78, #93c5fd); }
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 40rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
           max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  font: 1rem/1.5 system-ui, sans-serif;
}
h1 { color: var(--acento); margin-bottom: 0; }
h2 { font-size: 1.125rem; margin-top: 0; }
section { border: 1px solid #8886; border-radius: .75rem; padding: 1rem; margin-block: 1rem; }
[hidden] { display: none !important; }
dt { font-weight: 600; }
dd { margin: 0 0 .75rem; overflow-wrap: anywhere; }
button, input { font: inherit; max-width: 100%; }
button, input::file-selector-button { min-height: 2.75rem; padding: .5rem 1rem; }
label { display: block; margin-bottom: .5rem; }
textarea { font: inherit; width: 100%; margin-bottom: .5rem; overflow-wrap: anywhere; }
.botones { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
summary { font-weight: 600; font-size: 1.125rem; min-height: 2rem; cursor: pointer; }
/* Tapa el contenido que pasa por detrás de la barra de estado de iOS. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top); background: Canvas; z-index: 1; }
select { font: inherit; max-width: 100%; min-height: 2.75rem; }
form > input:not([type="file"]), form > select, form div > input { display: block; width: 100%; min-height: 2.75rem; margin-bottom: .75rem; }
form > select { margin-bottom: .75rem; }
button { margin-block: .25rem; }
#historial { padding: 0; list-style: none; }
#historial li { border-top: 1px solid #8886; overflow-wrap: anywhere; }
details > summary { margin-bottom: .5rem; }
