:root {
  color-scheme: dark;
  --fondo: #0d1216;
  --panel: #151d22;
  --borde: #26333a;
  --texto: #e8ede5;
  --suave: #a9b6ad;
  --verde: #b7d7a8;
  --verde-oscuro: #5c9876;
  --ambar: #e4b66b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
.ancho { width: min(1100px, 100% - 32px); margin-inline: auto; }
header.barra { border-bottom: 1px solid var(--borde); }
header.barra .ancho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 0; }
header.barra img { width: 132px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--suave); text-decoration: none; padding: 6px 0; }
nav a:hover { color: var(--texto); }

.portada { position: relative; isolation: isolate; padding: clamp(56px, 12vw, 140px) 0; }
.portada picture, .portada picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,18,22,.94) 0%, rgba(13,18,22,.78) 45%, rgba(13,18,22,.35) 100%); }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.08; margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.lema { color: var(--ambar); text-transform: uppercase; letter-spacing: .22em; font-size: .85rem; margin: 0 0 18px; }
.portada p { max-width: 34rem; }
.boton {
  display: inline-block; background: var(--verde); color: #10201a; font-weight: 700;
  text-decoration: none; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--verde);
}
.boton:hover { background: #c9e4bd; }
.boton.hueco { background: transparent; color: var(--texto); border-color: var(--borde); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

section { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--borde); }
.entradilla { color: var(--suave); max-width: 40rem; margin: 0 0 32px; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ficha { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 20px; }
.ficha p { margin: 0; color: var(--suave); }

.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
figure { margin: 0; background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; }
figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { padding: 12px 16px; color: var(--suave); font-size: .95rem; }

.descargas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.descargas .ficha { display: flex; flex-direction: column; gap: 10px; }
.descargas .boton { text-align: center; }
.dato { font-variant-numeric: tabular-nums; }
details { color: var(--suave); font-size: .92rem; }
summary { cursor: pointer; color: var(--texto); }
code { font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.aviso { border-left: 3px solid var(--ambar); padding: 2px 0 2px 14px; color: var(--suave); }

footer { border-top: 1px solid var(--borde); padding: 28px 0 40px; color: var(--suave); font-size: .92rem; }
footer .ancho { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

main.documento { max-width: 720px; width: calc(100% - 32px); margin: 0 auto; padding: 40px 0 72px; }
main.documento h2 { font-size: 1.3rem; margin-top: 36px; }
main.documento li { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--borde); padding: 8px 10px 8px 0; }
.tabla { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.visor { position: relative; aspect-ratio: 16 / 9; background: #000; }
.visor picture img, .visor iframe, .visor video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.reproducir {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(13, 18, 22, .82); color: var(--texto); border: 2px solid var(--verde);
  border-radius: 999px; padding: 12px 22px; font: 700 1rem system-ui, sans-serif; cursor: pointer;
}
.reproducir:hover { background: var(--verde); color: #10201a; }
.reproducir:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
figcaption strong { color: var(--texto); display: block; }

.descargas .ficha.tuyo { border: 2px solid var(--verde); }
.etiqueta { align-self: flex-start; background: var(--ambar); color: #231a08; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
[hidden] { display: none !important; }
#tu-sistema { color: var(--texto); margin: -16px 0 24px; }
