/* alextoolbox.com — capa visual HUD (Task 5).
   Estructura y semántica: Task 3. Aquí solo hay presentación: nada oculta contenido
   y toda la decoración vive en [data-decor] (aria-hidden) o en pseudo-elementos vacíos. */

/* ---------- Fuentes (OFL, alojadas aquí; ver assets/fonts/LICENSES.txt) ---------- */
@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0c0b09;
  --panel: #141310;
  --panel-2: #1c1b17;
  --ink: #ece6d6;          /* texto principal: 15.8:1 sobre --bg, 14.9:1 sobre --panel */
  --ink-2: #c4beae;        /* texto secundario: 10.0:1 sobre --panel (7.3:1 en el pico del barrido) */
  --ink-3: #8c877a;        /* solo microtexto decorativo del HUD */
  --line: rgba(236, 230, 214, .22);
  --line-2: rgba(236, 230, 214, .48);
  --line-strong: #a39d8f;  /* bordes de controles: >= 3:1 */
  --bezel: #d8d3c5;
  --bezel-2: #b6b1a3;
  --red: #ff5c47;
  --amber: #f4c33d;
  --focus: #f4c33d;
  --cut: 16px;
  --cut-s: 8px;
  --bz: 12px;
  --gap: 12px;
  --pad: calc(var(--bz) + 10px);
  --max: 1720px;
  --font-display: "Orbitron", "Eurostile", "Bank Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Iconos de interfaz como máscaras (sin texto generado: nada que lea un lector). */
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M3 12h16M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M12 3v12M6.5 9.5L12 15l5.5-5.5M4 20h16'/%3E%3C/svg%3E");
  --i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v6H4V6h6'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E");
  --i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M3 6h18M3 12h18M3 18h12'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M3 5.5h18v13H3z'/%3E%3Cpath d='M3 6.5l9 7 9-7'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18M5 7h14M5 17h14'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 3L2 21h20z'/%3E%3Cpath d='M12 10v5M12 17.5v1'/%3E%3C/svg%3E");
  --i-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 1v5M12 18v5M1 12h5M18 12h5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: var(--ink-3) var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  padding: var(--pad);
  font: 400 1.0625rem/1.65 var(--font-mono);
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(236, 230, 214, .045), transparent 60%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
/* list-style "" (no "none"): Safari/VoiceOver mantiene la semántica de lista. */
ul, ol { margin: 0; padding-left: 0; list-style: ""; }
.prose ul { padding-left: 1.5rem; list-style: square; }
.prose li::marker { color: var(--ink-2); }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: calc(var(--bz) + 8px);
  top: calc(var(--bz) + 8px);
  z-index: 100;
  padding: .8rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* Foco: anillo ámbar grueso (11:1 sobre el fondo) en todo lo enfocable. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
#download-alert:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 9px rgba(244, 195, 61, .28);
}

/* ---------- Bisel de la consola (marco fijo alrededor de la pantalla) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  --k: 18px;
  background:
    /* asas laterales */
    repeating-linear-gradient(to bottom, #3a3832 0 3px, transparent 3px 7px) left 2px top 46px / calc(var(--bz) - 4px) 24px no-repeat,
    repeating-linear-gradient(to bottom, #3a3832 0 3px, transparent 3px 7px) right 2px top 46px / calc(var(--bz) - 4px) 24px no-repeat,
    /* muescas */
    linear-gradient(90deg, #3a3832 0 40%, transparent 0) left top 38% / var(--bz) 18px no-repeat,
    linear-gradient(-90deg, #3a3832 0 40%, transparent 0) right top 38% / var(--bz) 18px no-repeat,
    /* esquinas interiores recortadas */
    linear-gradient(135deg, var(--bezel) 50%, transparent 0) var(--bz) var(--bz) / var(--k) var(--k) no-repeat,
    linear-gradient(225deg, var(--bezel) 50%, transparent 0) calc(100% - var(--bz)) var(--bz) / var(--k) var(--k) no-repeat,
    linear-gradient(45deg, var(--bezel) 50%, transparent 0) var(--bz) calc(100% - var(--bz)) / var(--k) var(--k) no-repeat,
    linear-gradient(315deg, var(--bezel) 50%, transparent 0) calc(100% - var(--bz)) calc(100% - var(--bz)) / var(--k) var(--k) no-repeat,
    /* bordes */
    linear-gradient(var(--bezel), var(--bezel-2)) top / 100% var(--bz) no-repeat,
    linear-gradient(var(--bezel-2), var(--bezel)) bottom / 100% var(--bz) no-repeat,
    linear-gradient(90deg, var(--bezel-2), var(--bezel)) left / var(--bz) 100% no-repeat,
    linear-gradient(90deg, var(--bezel), var(--bezel-2)) right / var(--bz) 100% no-repeat;
}

/* ---------- Marcos con esquinas recortadas ---------- */
.site-header, .hero, .cat-card, .product-card, .featured, .why, .site-footer > p, .footer-hud,
main:not(:has(.hero)), .btn, .site-menu__cta a, .menu-toggle, .product-card__icon, .download-box,
#download-alert, .product__smartscreen, .screenshots img, .cat-card__cta, .product-card__action, .badge,
.product-card__version, .product__version {
  border-radius: 0;
}
@supports (corner-shape: bevel) {
  .site-header, .site-header::after, .hero, .hero::after, .cat-card, .cat-card::after,
  .product-card, .featured, .why, .site-footer > p, .footer-hud, main:not(:has(.hero)),
  .download-box, #download-alert, .product__smartscreen, .screenshots img {
    border-radius: var(--r, var(--cut));
    corner-shape: bevel;
  }
  .btn, .site-menu__cta a, .menu-toggle, .product-card__icon, .cat-card__cta, .product-card__action,
  .badge, .product-card__version, .product__version {
    border-radius: var(--r, var(--cut-s));
    corner-shape: bevel;
  }
}

/* ---------- Botones ---------- */
.btn, .product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3rem;
  padding: .65rem 1.4rem;
  border: 2px solid transparent; /* visible en forced-colors */
  font: 700 1rem/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn::after, .product-card__action::after {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  mask: var(--icon, var(--i-chevron)) center / contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.btn--primary, .product-card__action { background: var(--ink); color: var(--bg); }
.btn--primary:hover, .product-card__action:hover { background: #fffaf0; }
.btn--secondary { background: rgba(12, 11, 9, .6); color: var(--ink); border-color: var(--ink); --icon: var(--i-arrow); }
.btn--secondary:hover { background: rgba(236, 230, 214, .12); }
.btn:hover::after, .product-card__action:hover::after { transform: translateX(3px); }
.btn:focus-visible, .product-card__action:focus-visible { outline-offset: 4px; }
.hero__actions .btn--secondary { --icon: var(--i-grid); }
.hero__actions .btn--secondary:hover::after { transform: none; }
.product-card__action--internal { --icon: var(--i-arrow); }
.product-card__action--external { --icon: var(--i-external); }
.product-card__action--download { --icon: var(--i-download); }
.product-card__action--external:hover::after { transform: translate(2px, -2px); }
.product-card__action--download:hover::after,
.download-box .btn--primary:hover::after { transform: translateY(2px); }
.download-box .btn--primary { --icon: var(--i-download); }
.download-box .btn--secondary { --icon: var(--i-external); }
button.btn { font-family: var(--font-mono); }

/* ---------- Cabecera ---------- */
.site-header {
  position: relative;
  max-width: var(--max);
  margin: 0 auto var(--gap);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  column-gap: 1.5rem;
  padding: 0 1.25rem;
  background:
    linear-gradient(var(--line), var(--line)) 0 46px / 100% 1px no-repeat,
    var(--panel);
  --r: var(--cut) 0 var(--cut) 0;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  pointer-events: none;
}
.hud {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46px;
  pointer-events: none;
  font-size: .6875rem;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.hud__status, .hud__console {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}
.hud__status { left: 1.25rem; }
.hud__status::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--ink-2);
  mask: var(--i-target) center / contain no-repeat;
}
.hud__status::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 92, 71, .7);
}
.hud__console { right: 1.25rem; }
.hud__console::after {
  content: "";
  width: 34px;
  height: 9px;
  background:
    linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 10px, var(--amber) 10px 14px, transparent 14px 20px,
      var(--red) 20px 24px, transparent 24px 30px, var(--red) 30px 34px);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, .85rem + 1.1vw, 1.75rem);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand::after {
  content: "";
  margin-left: .65rem;
  width: 6px;
  height: 8px;
  background: var(--ink-3);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.brand:hover { color: #fffaf0; }

.site-nav { grid-area: nav; position: static; }
.site-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.site-menu li { display: flex; align-items: center; }
.site-menu li + li::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--line-2);
}
.site-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-menu a:hover { color: #fffaf0; background: rgba(236, 230, 214, .07); }
.site-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6px;
  height: 2px;
  background: var(--amber);
}
.site-menu .site-menu__cta { margin-left: auto; }
.site-menu .site-menu__cta::before { display: none; }
.site-menu__cta a {
  gap: .7rem;
  margin: 8px 0;
  padding: 0 1.25rem;
  border: 2px solid var(--ink);
  font-weight: 700;
  letter-spacing: .1em;
}
.site-menu__cta a::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  mask: var(--i-grid) center / contain no-repeat;
}
.site-menu__cta a:hover { background: var(--ink); color: var(--bg); }
.site-menu__cta a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.site-menu__cta a[aria-current="page"]::after { display: none; }

.lang-switch {
  grid-area: lang;
  justify-self: end;
  display: flex;
  margin: 0;
  padding: 0;
}
.lang-switch li { display: flex; }
.lang-switch li + li::before { content: ""; width: 1px; height: 14px; margin: auto 0; background: var(--line-2); }
.lang-switch a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: 0 .75rem;
  font-size: 1rem;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang-switch a[aria-current="true"]::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--amber);
}

/* Menú móvil: sin JS el menú siempre se ve; el botón solo existe con JS y en pantallas estrechas. */
.menu-toggle {
  display: none;
  min-height: 46px;
  min-width: 44px;
  align-items: center;
  gap: .6rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 1rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  mask: var(--i-menu) center / contain no-repeat;
}
.menu-toggle[aria-expanded="true"]::before { mask-image: var(--i-close); }
.menu-toggle:hover { background: rgba(236, 230, 214, .1); }

/* Escritorio ancho: franja de estado arriba, logo + menú + catálogo abajo (como el mockup). */
@media (min-width: 90rem) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas: "status lang" "brand nav";
  }
  .lang-switch { margin-right: 11.5rem; }
  .site-nav { justify-self: stretch; }
  .site-menu { flex-wrap: nowrap; }
  .brand { min-height: 64px; }
}
@media (max-width: 89.99rem) {
  .hud { display: none; }
  .site-header { background: var(--panel); }
  .site-nav { border-top: 1px solid var(--line); margin: 0 -1.25rem; padding: 0 .5rem; }
}

/* ---------- Contenido general ---------- */
main { display: block; }
main:not(:has(.hero)) {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line-2);
  min-height: 55vh;
  --r: 0 var(--cut) 0 var(--cut);
}
main:not(:has(.hero)) > * { max-width: 75rem; }
main:not(:has(.hero)) > :is(p, .page-intro, .prose, .empty), main .prose { max-width: 70ch; }

.page-title {
  margin: .25rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.page-intro { font-size: 1.125rem; color: var(--ink); margin: 0 0 2rem; }
.empty {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line-2);
  color: var(--ink-2);
}

.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before {
  content: "";
  width: .8em;
  height: .8em;
  background: var(--ink-3);
  mask: var(--i-chevron) center / contain no-repeat;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 46px; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Encabezados de sección con regla (estilo "FEATURED DOWNLOADS ————"). */
.categories > h2, .featured > h2, .why > h2, .catalog-section > h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.categories > h2::after, .featured > h2::after, .why > h2::after, .catalog-section > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--line-2), var(--line) 70%, transparent);
}

/* ---------- Inicio: héroe ---------- */
.hero {
  --side: 0px;
  --col: min(52rem, 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto var(--gap);
  padding: 10.5rem 1rem 2.25rem;
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(236, 230, 214, .05), transparent 70%),
    #0f0e0c;
  --r: 0 0 var(--cut) var(--cut);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid var(--line-2);
  pointer-events: none;
}
/* Estrellas: dos capas de puntos que derivan a distinta velocidad (parallax ligero). */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(236, 230, 214, .8), transparent 100%),
    radial-gradient(1px 1px at 33% 68%, rgba(236, 230, 214, .55), transparent 100%),
    radial-gradient(1.5px 1.5px at 71% 14%, rgba(236, 230, 214, .7), transparent 100%),
    radial-gradient(1px 1px at 88% 52%, rgba(236, 230, 214, .5), transparent 100%),
    radial-gradient(1px 1px at 52% 86%, rgba(236, 230, 214, .45), transparent 100%),
    radial-gradient(1.3px 1.3px at 6% 77%, rgba(236, 230, 214, .6), transparent 100%),
    radial-gradient(1px 1px at 94% 9%, rgba(236, 230, 214, .55), transparent 100%),
    radial-gradient(1px 1px at 63% 41%, rgba(236, 230, 214, .4), transparent 100%);
  background-size: 260px 190px;
  mask-image: linear-gradient(to bottom, #000 0 9rem, transparent 11rem);
}
.hero > :not([data-decor]) {
  position: relative;
  z-index: 2;
  max-width: var(--col);
  margin-inline: auto;
}
.hero__title {
  margin: 0 auto 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, .95rem + 2.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: .025em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: manual;
}
.hero__eyebrow {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--ink-2);
}
.hero .hero__lead { margin: 0 auto .6rem; max-width: min(50ch, var(--col)); font-size: 1.125rem; line-height: 1.6; }
.hero__tag {
  margin: 0 auto;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1.25rem;
  margin-top: 1.75rem;
}

/* Decoración del héroe */
.hero [data-decor] { pointer-events: none; }
.hero__hud {
  position: absolute;
  z-index: 1;
  top: 1.1rem;
  left: 1.25rem;
  display: grid;
  gap: .35rem;
  text-align: left;
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.hero__hud span { display: block; }
.moon {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 0;
  height: 9.5rem;
  /* Geometría que lee motion.js (fracciones de la caja). */
  --moon-cx: .64;
  --moon-top: .58;
  --moon-r: .62;
  --moon2-x: .14;
  --moon2-y: .34;
  --moon2-r: .085;
  /* Sin JS: luna estática con gradientes. */
  background:
    radial-gradient(circle at 70% 44%, rgba(255, 252, 240, .9) 0 1px, transparent 1.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle 13px at 14% 34%, #9d978a, #4f4b43 60%, #1c1b18 98%, transparent 100%),
    radial-gradient(circle 13.8rem at 64% 205%, #c9c3b4 0, #a7a194 52%, #6f6a5f 80%, #2c2a25 96%, transparent 100%);
}
.js .moon { background: none; } /* con JS la dibuja motion.js en canvas */
.moon canvas {
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 97%);
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.moon canvas.is-ready { opacity: 1; }
.crosshair {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat;
}
.crosshair--1 { left: 30%; top: 2.2rem; }
.crosshair--2 { right: 12%; top: 5.5rem; width: 30px; height: 30px; }
.crosshair--2::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
}
.sys-feed { display: none; }

/* Escritorio: luna a la izquierda, "system feed" a la derecha, texto centrado (mockup). */
@media (max-width: 79.99rem) {
  .moon canvas { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 80rem) {
  .hero {
    --side: clamp(15rem, 16vw, 17.5rem);
    --col: min(52rem, 100% - 2 * var(--side) - 3rem);
    padding: 2.6rem 1.5rem 2.75rem;
    min-height: 26rem;
  }
  .hero::before { mask-image: linear-gradient(90deg, #000 0 24%, transparent 32% 68%, #000 76%); }
  .moon {
    inset: 0 auto 0 0;
    height: auto;
    width: calc((100% - var(--col)) / 2 + 4rem);
    --moon-cx: .26;
    --moon-top: .33;
    --moon-r: .78;
    --moon-mincy: 1.12;
    --moon2-x: .74;
    --moon2-y: .16;
    --moon2-r: .05;
    background:
      radial-gradient(circle 12px at 74% 16%, #a19b8e, #504c44 60%, #1c1b18 98%, transparent 100%),
      radial-gradient(circle 22rem at 27% 140%, #b9b3a5 0, #9a9488 55%, #66615a 82%, #2c2a25 97%, transparent 100%);
  }
  .crosshair--1 { left: 13%; top: auto; bottom: 22%; }
  .crosshair--2 { right: calc(var(--side) + 3.5rem); top: 4.5rem; }
  .sys-feed {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 1.5rem;
    translate: 0 -50%;
    width: var(--side);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem 1.1rem;
    text-align: left;
    font-size: .6875rem;
    line-height: 1.3;
    letter-spacing: .06em;
    color: var(--ink-2);
    --cl: var(--line-2);
    background:
      linear-gradient(var(--cl), var(--cl)) top left / 14px 1px no-repeat,
      linear-gradient(var(--cl), var(--cl)) top left / 1px 14px no-repeat,
      linear-gradient(var(--cl), var(--cl)) top right / 14px 1px no-repeat,
      linear-gradient(var(--cl), var(--cl)) top right / 1px 14px no-repeat,
      linear-gradient(var(--cl), var(--cl)) bottom left / 14px 1px no-repeat,
      linear-gradient(var(--cl), var(--cl)) bottom left / 1px 14px no-repeat,
      linear-gradient(var(--cl), var(--cl)) bottom right / 14px 1px no-repeat,
      linear-gradient(var(--cl), var(--cl)) bottom right / 1px 14px no-repeat;
  }
  .sys-feed__title { color: var(--ink-3); letter-spacing: .18em; }
  .sys-feed ul { display: grid; gap: .55rem; margin: 0; padding: 0; }
  .sys-feed li {
    display: flex;
    align-items: center;
    gap: .6rem;
    white-space: nowrap;
  }
  .sys-feed li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    background: var(--ink);
  }
  .sys-feed li:nth-child(3)::before { background: var(--amber); }
  .sys-feed li:nth-child(4)::before { background: var(--red); }
  .sys-feed li span { margin-left: auto; color: var(--ink); }
  .sys-feed__wave {
    position: relative;
    height: 5.25rem;
    margin-top: .4rem;
    border: 1px solid var(--line);
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0%2020%20L0%2018.9%20L1%2021.0%20L2%2019.0%20L3%2020.9%20L4%2017.7%20L5%2022.1%20L6%2019.0%20L7%2020.9%20L8%2018.1%20L9%2021.7%20L10%2018.7%20L11%2021.2%20L12%2019.0%20L13%2020.9%20L14%2017.8%20L15%2022.0%20L16%2019.0%20L17%2020.9%20L18%2018.1%20L19%2021.7%20L20%2019.0%20L21%2020.9%20L22%2019.0%20L23%2020.9%20L24%2017.9%20L25%2021.9%20L26%2010.2%20L27%2028.8%20L28%2019.0%20L29%2020.9%20L30%2018.8%20L31%2021.1%20L32%2014.8%20L33%2024.7%20L34%204.5%20L35%2033.9%20L36%2015.8%20L37%2023.8%20L38%2018.0%20L39%2021.8%20L40%204.3%20L41%2034.1%20L42%2019.0%20L43%2020.9%20L44%2010.1%20L45%2028.9%20L46%2018.7%20L47%2021.2%20L48%2019.0%20L49%2020.9%20L50%2019.0%20L51%2020.9%20L52%2018.7%20L53%2021.1%20L54%2014.5%20L55%2024.9%20L56%2019.0%20L57%2020.9%20L58%2017.8%20L59%2022.0%20L60%2017.6%20L61%2022.2%20L62%2018.7%20L63%2021.1%20L64%2018.3%20L65%2021.6%20L66%2019.0%20L67%2020.9%20L68%2019.0%20L69%2020.9%20L70%2019.0%20L71%2020.9%20L72%2017.4%20L73%2022.3%20L74%2018.6%20L75%2021.3%20L76%2018.8%20L77%2021.1%20L78%2017.5%20L79%2022.3%20L80%2018.2%20L81%2021.6%20L82%2018.7%20L83%2021.1%20L84%2013.5%20L85%2025.9%20L86%2014.8%20L87%2024.7%20L88%2018.8%20L89%2021.1%20L90%2016.3%20L91%2023.4%20L92%2016.8%20L93%2022.9%20L94%208.3%20L95%2030.6%20L96%2012.6%20L97%2026.7%20L98%2018.6%20L99%2021.3%20L100%203.0%20L101%2035.3%20L102%2019.0%20L103%2020.9%20L104%2017.8%20L105%2022.0%20L106%2012.1%20L107%2027.2%20L108%2018.9%20L109%2020.9%20L110%2017.3%20L111%2022.4%20L112%2019.0%20L113%2020.9%20L114%2015.4%20L115%2024.2%20L116%2014.1%20L117%2025.3%20L118%2017.2%20L119%2022.6%20L120%2013.2%20L121%2026.1%20L122%2018.8%20L123%2021.1%20L124%2016.8%20L125%2022.9%20L126%2017.8%20L127%2022.0%20L128%2018.0%20L129%2021.8%20L130%2018.6%20L131%2021.3%20L132%2016.5%20L133%2023.2%20L134%2015.4%20L135%2024.1%20L136%2018.5%20L137%2021.3%20L138%2017.6%20L139%2022.2%20L140%2019.0%20L141%2020.9%20L142%2016.8%20L143%2022.8%20L144%2017.0%20L145%2022.7%20L146%2010.9%20L147%2028.2%20L148%2013.8%20L149%2025.6%20L150%2018.8%20L151%2021.1%20L152%2018.3%20L153%2021.5%20L154%2015.1%20L155%2024.4%20L156%2019.0%20L157%2020.9%20L158%2017.5%20L159%2022.2%20L160%2018.9%20L161%2021.0%20L162%2019.0%20L163%2020.9%20L164%2019.0%20L165%2020.9%20L166%2011.3%20L167%2027.8%20L168%2019.0%20L169%2020.9%20L170%2018.7%20L171%2021.1%20L172%2018.0%20L173%2021.8%20L174%208.7%20L175%2030.2%20L176%2019.0%20L177%2020.9%20L178%2017.8%20L179%2022.0%20L180%2016.9%20L181%2022.8%20L182%2011.1%20L183%2028.0%20L184%2013.4%20L185%2026.0%20L186%2013.2%20L187%2026.1%20L188%2018.8%20L189%2021.1%20L190%2018.5%20L191%2021.3%20L192%2018.7%20L193%2021.1%20L194%2015.4%20L195%2024.2%20L196%2014.9%20L197%2024.6%20L198%2019.0%20L199%2020.9%20L200%2020' fill='none' stroke='%23c4beae' stroke-width='.8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 70% no-repeat,
      linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, rgba(236, 230, 214, .07) 0 1px, transparent 1px 14px),
      repeating-linear-gradient(rgba(236, 230, 214, .07) 0 1px, transparent 1px 14px);
  }
  .sys-feed__wave.is-live { background-image: none, linear-gradient(var(--line), var(--line)), repeating-linear-gradient(90deg, rgba(236, 230, 214, .07) 0 1px, transparent 1px 14px), repeating-linear-gradient(rgba(236, 230, 214, .07) 0 1px, transparent 1px 14px); }
  .sys-feed__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* ---------- Secciones del inicio ---------- */
.categories, .featured, .why {
  position: relative;
  max-width: var(--max);
  margin: 0 auto var(--gap);
}
.categories { padding-top: .5rem; }
.featured, .why {
  padding: 1.1rem clamp(.9rem, 2vw, 1.5rem) 1.25rem;
  border: 1px solid var(--line-2);
  background: #11100e;
}
.featured { --r: var(--cut) 0 var(--cut) 0; }
.why { --r: 0 var(--cut) 0 var(--cut); }

/* Tarjetas de categoría (todo el recuadro es el enlace del h3) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .cat-grid { --cols: 2; } }
@media (min-width: 80rem) { .cat-grid { --cols: 4; } }
.cat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "icon" "name" "desc" "foot";
  align-content: start;
  column-gap: 1rem;
  padding: 1.25rem;
  min-height: 100%;
  background: var(--panel);
  --r: 0 var(--cut) 0 var(--cut);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  pointer-events: none;
  transition: border-color .25s;
}
.cat-card__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--panel), 0 0 0 6px var(--line);
  margin: 6px 0 0 6px;
  color: var(--ink);
}
.cat-card__icon .icon { width: 2.6rem; height: 2.6rem; }
.cat-card__index {
  grid-area: foot;
  justify-self: end;
  align-self: end;
  max-width: 7.2em;
  font-size: .6875rem;
  line-height: 1.6;
  letter-spacing: .16em;
  text-align: right;
  color: var(--ink-3);
}
.cat-card__index::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .6em; background: var(--red); }
.cat-card:nth-child(even) .cat-card__index::after { background: var(--amber); }
.cat-card__name {
  grid-area: name;
  margin: 1.1rem 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + .35vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cat-card__name a { text-decoration: none; color: var(--ink); }
.cat-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.cat-card__name a:focus-visible { outline: none; }
.cat-card__name a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -6px; }
.cat-card__desc {
  grid-area: desc;
  margin: 1rem 0 1.25rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.cat-card__cta {
  grid-area: foot;
  max-width: calc(100% - 6.5rem);
  justify-self: start;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .9rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s;
}
.cat-card__cta::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: var(--i-chevron) center / contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.cat-card:hover::after, .cat-card:focus-within::after { border-color: var(--ink); }
.cat-card:hover .cat-card__cta, .cat-card:focus-within .cat-card__cta { background: #fffaf0; }
.cat-card:hover .cat-card__cta::after, .cat-card:focus-within .cat-card__cta::after { transform: translateX(3px); }
@media (min-width: 56rem) and (max-width: 79.99rem), (min-width: 100rem) {
  .cat-card {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas: "icon name" "icon desc" "foot foot";
    column-gap: 1.4rem;
  }
  .cat-card__icon { width: 5.5rem; height: 5.5rem; align-self: start; }
  .cat-card__icon .icon { width: 3rem; height: 3rem; }
  .cat-card__name { margin: .25rem 0 0; align-self: start; overflow-wrap: normal; }
  .cat-card__desc { margin: .75rem 0 1rem; }
}

/* Barrido de luz al pasar el cursor o enfocar (tarjetas de categoría y de producto). */
.cat-card::before, .product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(236, 230, 214, .045) 44%, rgba(236, 230, 214, .13) 50%, rgba(236, 230, 214, .045) 56%, transparent 65%);
  transform: translateX(-105%);
}
.cat-card:hover::before, .cat-card:focus-within::before,
.product-card:hover::before, .product-card:focus-within::before {
  transform: translateX(105%);
  transition: transform 1s var(--ease-out);
}

/* Tarjetas de producto */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--pcols, 1), minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
}
@media (min-width: 46rem) { .product-grid { --pcols: 2; } }
@media (min-width: 76rem) { .product-grid { --pcols: 3; } }
.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr auto;
  column-gap: 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--line-2);
  background: var(--panel);
  transition: border-color .25s;
  --r: 0 var(--cut-s) 0 var(--cut-s);
}
.product-card:hover, .product-card:focus-within { border-color: var(--ink); }
.product-card__icon {
  grid-column: 1;
  grid-row: 1 / 5;
  align-self: start;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--ink);
}
.product-card__icon .icon { width: 2.5rem; height: 2.5rem; }
.product-card__name {
  grid-column: 2;
  grid-row: 1;
  margin: .1rem 0 .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.product-card__version, .product__version {
  justify-self: start;
  margin: 0 0 .6rem;
  padding: .1rem .55rem;
  border: 1px solid var(--line-2);
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.product-card__version { grid-column: 2; grid-row: 2; }
.product-card__desc {
  grid-column: 2;
  grid-row: 3;
  margin: 0 0 .9rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.badge {
  grid-column: 2;
  grid-row: 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .2rem .6rem;
  border: 1px solid var(--amber);
  font-size: 1rem;
  color: var(--ink);
}
.badge::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--amber); }
.product-card__action {
  grid-column: 1 / -1;
  grid-row: 6;
  justify-self: start;
  align-self: end;
  margin-top: .35rem;
  min-width: 11rem;
}
@media (max-width: 26rem) {
  .product-card { grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: .85rem; padding: 1rem; }
  .product-card__icon { width: 3.25rem; height: 3.25rem; }
  .product-card__icon .icon { width: 2rem; height: 2rem; }
  .product-card__desc, .product-card__version, .badge { grid-column: 1 / -1; }
  .product-card__icon { grid-row: 1 / 2; }
  .product-card__action { justify-self: stretch; }
}

.featured__all { margin: 1rem 0 0; text-align: right; }
.featured__all a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.featured__all a::after {
  content: "";
  width: .9em;
  height: .9em;
  background: currentColor;
  mask: var(--i-chevron) center / contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.featured__all a:hover { text-decoration: underline; }
.featured__all a:hover::after { transform: translateX(3px); }

/* Por qué este sitio */
.why-list {
  display: grid;
  grid-template-columns: repeat(var(--wcols, 1), minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
@media (min-width: 44rem) { .why-list { --wcols: 2; } }
@media (min-width: 72rem) { .why-list { --wcols: 3; } }
@media (min-width: 96rem) { .why-list { --wcols: 5; } }
.why-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 96rem) {
  .why-item { border-top: 0; }
  .why-item + .why-item { border-left: 1px solid var(--line); }
}
.why-item__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink);
}
.why-item__icon .icon { width: 1.7rem; height: 1.7rem; }
.why-item h3 {
  margin: .1rem 0 .3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}
.why-item p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- Catálogo, categoría, páginas de texto, AudioSynth ---------- */
.catalog-section { margin-top: 2.25rem; }
.catalog-section:first-of-type { margin-top: 1rem; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose h2 {
  margin: 2.25rem 0 .75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.prose h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--ink); }
.product__version { display: inline-block; margin-bottom: 1.5rem; }
.product__description { margin-bottom: 1rem; }
.product__section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.product__section > h2 {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.product__section > h2::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--amber); }
.screenshots { display: grid; gap: 1rem; margin: 0; padding: 0; }
.screenshots img {
  display: block;
  width: 100%;
  aspect-ratio: auto 2494 / 1125; /* reserva el hueco antes de la carga diferida (sin saltos al enfocar avisos) */
  object-fit: contain;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}
.download-box {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  padding: 1.25rem;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  --r: var(--cut-s) 0 var(--cut-s) 0;
}
.download-box form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.download-box p { margin: 0; }
.download-size { font-size: 1rem; color: var(--ink-2); letter-spacing: .06em; }
#download-alert {
  position: relative;
  margin: 0;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border: 2px solid var(--amber);
  background: #241e0d;
  color: var(--ink);
  font-weight: 600;
}
#download-alert::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--amber);
  mask: var(--i-warn) center / contain no-repeat;
}
.product__vt { margin: 1.25rem 0 .5rem; }
.product__vt a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
}
.product__vt a::after {
  content: "";
  width: .95em;
  height: .95em;
  background: currentColor;
  mask: var(--i-external) center / contain no-repeat;
}
.product__vt-note { color: var(--ink-2); }
.product__smartscreen {
  max-width: 70ch;
  margin: 1.25rem 0 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- Pie ---------- */
.site-footer {
  max-width: var(--max);
  margin: var(--gap) auto 0;
  display: grid;
  grid-template-columns: repeat(var(--fcols, 1), minmax(0, 1fr));
  gap: var(--gap);
}
@media (min-width: 48rem) { .site-footer { --fcols: 2; } }
@media (min-width: 48rem) and (max-width: 79.99rem) { .footer-hud { grid-column: 1 / -1; } }
@media (min-width: 80rem) { .site-footer { grid-template-columns: 1.45fr 1fr 1fr 1.25fr 1fr; } }
.site-footer > p, .footer-hud {
  display: flex;
  align-items: center;
  gap: .25rem .75rem;
  min-height: 4.75rem;
  margin: 0;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-size: 1rem;
  line-height: 1.45;
  --r: 0 var(--cut-s) 0 var(--cut-s);
}
.site-footer a { display: inline-flex; align-items: center; min-height: 46px; overflow-wrap: anywhere; }
.site-footer__contact { flex-wrap: wrap; letter-spacing: .02em; color: var(--ink-2); }
.site-footer__contact a { color: var(--ink); }
.site-footer__contact::before, .footer-hud::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--ink-2);
  mask: var(--i-mail) center / contain no-repeat;
}
.site-footer__made, .site-footer__privacy {
  justify-content: center;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer__privacy a { letter-spacing: .1em; }
.site-footer__copy { color: var(--ink-2); }
.site-footer__copy::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 12px;
  background: linear-gradient(90deg, var(--ink-2) 0 4px, transparent 4px 9px, var(--red) 9px 13px, transparent 13px 18px, var(--red) 18px 22px);
}
.footer-hud {
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.footer-hud::before { mask-image: var(--i-globe); background: var(--ink-3); }
.footer-hud::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 12px;
  background: linear-gradient(90deg, var(--ink-2) 0 4px, transparent 4px 9px, var(--ink-2) 9px 13px, transparent 13px 18px, var(--ink-2) 18px 22px);
}

/* ---------- Móvil y tableta ---------- */
@media (max-width: 63.99rem) {
  :root { --bz: 5px; --pad: calc(var(--bz) + 7px); --cut: 12px; }
  body::before { --k: 12px; }
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "lang" "nav";
    padding: .4rem .75rem 0;
  }
  .brand { min-height: 48px; }
  .brand::after { display: none; }
  .lang-switch { justify-self: start; margin-left: -.75rem; }
  .site-nav { margin: 0 -.75rem; padding: 0; }
  .js .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: calc(.4rem + 48px);
    right: .75rem;
  }
  .site-menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .site-menu li { display: block; border-top: 1px solid var(--line); }
  .site-menu li + li::before { display: none; }
  .site-menu a { min-height: 52px; padding: 0 1.25rem; white-space: normal; }
  .site-menu a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .site-menu .site-menu__cta { margin: 0; }
  .site-menu__cta a { margin: .75rem; justify-content: center; }
  .js .site-menu:not(.is-open) { display: none; }
}
@media (max-width: 22.4rem) {
  .js .menu-toggle {
    position: static;
    display: flex;
    justify-content: center;
    width: calc(100% - 1.5rem);
    margin: 0 .75rem .6rem;
  }
}
@media (max-width: 30rem) {
  .hero { padding-top: 8.75rem; }
  .moon { height: 8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__hud { display: none; }
  .crosshair--1 { left: 40%; top: 1.4rem; }
  .crosshair--2 { right: 8%; top: 2.5rem; }
  .site-footer > p, .footer-hud { min-height: 0; }
}

/* ---------- Movimiento (todo condicionado a no-preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: atb-drift-far 140s linear infinite alternate; }
  .crosshair--1 { animation: atb-drift-a 26s ease-in-out infinite alternate; }
  .crosshair--2 { animation: atb-drift-b 34s ease-in-out infinite alternate; }
  .hud__status::after, .sys-feed li:nth-child(3)::before, .sys-feed li:nth-child(4)::before,
  .cat-card__index::after { animation: atb-pip 2.6s ease-in-out infinite; }
  .sys-feed li:nth-child(4)::before { animation-duration: 1.7s; }
  .cat-card:nth-child(2) .cat-card__index::after { animation-delay: -.8s; }
  .cat-card:nth-child(3) .cat-card__index::after { animation-delay: -1.6s; }
  .cat-card:nth-child(4) .cat-card__index::after { animation-delay: -2.1s; }

  /* Arranque (solo la primera página de la sesión; ver el script en línea de layout.php).
     Solo anima marcos y microtexto decorativo: el contenido nunca se oculta. */
  .boot .site-header::after, .boot .hero::after, .boot .cat-card::after {
    animation: atb-draw .8s var(--ease-out) backwards;
  }
  .boot .hero::after { animation-delay: .15s; }
  .boot .cat-card:nth-child(1)::after { animation-delay: .35s; }
  .boot .cat-card:nth-child(2)::after { animation-delay: .45s; }
  .boot .cat-card:nth-child(3)::after { animation-delay: .55s; }
  .boot .cat-card:nth-child(4)::after { animation-delay: .65s; }
  .boot .hud__status, .boot .hud__console, .boot .hero__hud span, .boot .sys-feed__title,
  .boot .sys-feed li, .boot .cat-card__index {
    animation: atb-type .45s steps(14, end) backwards;
  }
  .boot .hud__console { animation-delay: .2s; }
  .boot .hero__hud span:nth-child(2) { animation-delay: .3s; }
  .boot .sys-feed__title { animation-delay: .3s; }
  .boot .sys-feed li:nth-child(1) { animation-delay: .45s; }
  .boot .sys-feed li:nth-child(2) { animation-delay: .6s; }
  .boot .sys-feed li:nth-child(3) { animation-delay: .75s; }
  .boot .sys-feed li:nth-child(4) { animation-delay: .9s; }
  .boot .cat-card__index { animation-delay: .8s; }
  .boot body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 59;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(236, 230, 214, .85) 30%, rgba(236, 230, 214, .85) 70%, transparent);
    box-shadow: 0 0 18px 4px rgba(236, 230, 214, .25);
    opacity: 0;
    animation: atb-scan 1.2s var(--ease-out) .05s;
  }
}
/* Pausa: fuera de pantalla o pestaña oculta (clases de motion.js). */
.motion-off, .motion-off *, .motion-off::before, .motion-off::after, .motion-off *::before, .motion-off *::after,
.page-hidden *, .page-hidden *::before, .page-hidden *::after, .page-hidden body::before, .page-hidden body::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Sin barrido: un brillo fijo y discreto marca la tarjeta activa. */
  .cat-card:hover::before, .cat-card:focus-within::before,
  .product-card:hover::before, .product-card:focus-within::before {
    transform: none;
    background: rgba(236, 230, 214, .045);
  }
  .moon canvas { opacity: 1; }
}
@keyframes atb-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }
@keyframes atb-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes atb-scan {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}
@keyframes atb-drift-far { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-34px, 14px, 0); } }
@keyframes atb-drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(18px, -10px, 0); } }
@keyframes atb-drift-b { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-22px, 12px, 0) rotate(45deg); } }
@keyframes atb-pip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Alto contraste de Windows ---------- */
@media (forced-colors: active) {
  body::before, .hero::before, .moon, .crosshair, .sys-feed__wave, .boot body::after, .brand::after { display: none; }
  .site-header::after, .hero::after, .cat-card::after { border-color: CanvasText; }
  .site-header, .hero, .cat-card, .product-card, .featured, .why, .site-footer > p, .footer-hud,
  main:not(:has(.hero)), .download-box, .product-card__icon, .cat-card__icon, .why-item__icon {
    border-color: CanvasText;
  }
  .product-card, .featured, .why, .site-footer > p, .footer-hud, main:not(:has(.hero)), .download-box {
    border-style: solid;
    border-width: 1px;
  }
  .btn, .product-card__action, .site-menu__cta a, .menu-toggle { border: 2px solid ButtonText; }
  .btn::after, .product-card__action::after, .site-menu__cta a::before, .menu-toggle::before,
  .cat-card__cta::after, .featured__all a::after, .breadcrumb li + li::before, .product__vt a::after,
  .site-footer__contact::before, .footer-hud::before, #download-alert::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .cat-card__cta { border: 1px solid CanvasText; }
  .site-menu a[aria-current="page"]::after, .lang-switch a[aria-current="true"]::before { background: Highlight; forced-color-adjust: none; }
  :focus-visible, .cat-card__name a:focus-visible::after, #download-alert:focus { outline-color: Highlight; }
  #download-alert { border-color: CanvasText; }
}

@media print {
  body::before, .hero::before, [data-decor] { display: none !important; }
  body { background: #fff; color: #000; }
}
