/* Blocao Labs — hoja de estilos única
   Paleta de marca: noche oliva + papel de plano + lima del logo.
   Fuentes autoalojadas (IBM Plex, licencia OFL): sin peticiones a terceros. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); }

:root {
  --night: #181c12;
  --night-2: #21271a;
  --on-night: #e9ecdf;
  --on-night-2: #b3b9a2;
  --night-rule: rgba(233, 236, 223, .14);

  --paper: #eceee3;
  --paper-2: #e2e5d5;
  --field: #f8f9f3;
  --ink: #181c12;
  --ink-2: #4a5040;
  --rule: rgba(24, 28, 18, .16);

  --lime: #a1c540;
  --moss: #4f6a12;
  --contour: rgba(161, 197, 64, .14);
  --error: #8f2a1c;

  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", system-ui, sans-serif;
  --display-lh: 1.02;
  --display-track: -0.012em;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4.5vw, 2.75rem);
  --band-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 6px;
}

:root[lang="ar"] {
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --display-lh: 1.3;
  --display-track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
:root[lang="ar"] body { font-size: 1.125rem; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10;
  background: var(--lime); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .7rem 1.3rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 2.4rem; padding: .45rem .95rem; font-size: .9375rem; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #b4d655; }
.btn-ghost { border-color: rgba(233, 236, 223, .45); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c3322; }
.btn-dark:focus-visible { outline-color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ------------------------------------------------------------ cabecera */
.site-header { background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-rule); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem;
  padding-block: .9rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--on-night); margin-inline-end: auto; }
.brand img { width: auto; height: 2.4rem; }
.brand span { font: 600 1.25rem/1 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > a:not(.btn) { color: var(--on-night); text-decoration: none; font-weight: 600; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.langs ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.langs a {
  display: block; padding: .3rem .55rem; border-radius: 4px;
  color: var(--on-night-2); text-decoration: none; font-size: .9375rem;
}
.langs a:hover { color: var(--on-night); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--on-night); }

.lang-short { display: none; }
@media (max-width: 40rem) {
  .header-inner { gap: .5rem 1rem; }
  .langs { order: 2; }
  .nav { order: 3; width: 100%; gap: 1rem; justify-content: space-between; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
}

/* ------------------------------------------------------------ heroes */
.hero { background: var(--night); color: var(--on-night); padding-block: clamp(3rem, 7vw, 6rem) clamp(3.25rem, 7vw, 6rem); }
.hero h1 {
  font-family: var(--font-display); line-height: var(--display-lh); letter-spacing: var(--display-track);
  font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5.25rem);
  max-width: 12ch;
}
:root[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.25rem); }
.hero-product h1, .hero-plain h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem); max-width: 16ch; }
.hero .lead {
  margin-top: 1.4rem; max-width: 38rem; color: var(--on-night-2);
  font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.hero-art { margin: 0; }
.hero-tall { min-height: 55vh; display: flex; align-items: center; }
.kicker { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--lime); font-weight: 600; }
.icon { width: 3rem; height: 3rem; flex: none; }
.icon-sm { width: 1.75rem; height: 1.75rem; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 40rem; }
}

/* ------------------------------------------------------------ cabecera con foto */
.hero-photo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(32rem, 84vh, 50rem);
  padding-block: clamp(7rem, 14vw, 10rem) clamp(3rem, 6vw, 5rem);
}
.hero-photo.hero-product { min-height: clamp(30rem, 74vh, 44rem); }
.hero-photo-inner { width: 100%; }
.hero-photo .hero-copy { max-width: 41rem; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--night); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 62% 50%); }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(24, 28, 18, .93) 0%, rgba(24, 28, 18, .76) 32%, rgba(24, 28, 18, .26) 62%, rgba(24, 28, 18, 0) 100%),
    linear-gradient(to top, rgba(24, 28, 18, .8) 0%, rgba(24, 28, 18, 0) 42%);
}
/* en árabe la foto se refleja para que el sujeto quede del lado opuesto al texto */
:root[dir="rtl"] .hero-bg img { transform: scaleX(-1); }
:root[dir="rtl"] .hero-photo::before {
  background:
    linear-gradient(to left, rgba(24, 28, 18, .93) 0%, rgba(24, 28, 18, .76) 32%, rgba(24, 28, 18, .26) 62%, rgba(24, 28, 18, 0) 100%),
    linear-gradient(to top, rgba(24, 28, 18, .8) 0%, rgba(24, 28, 18, 0) 42%);
}
/* punto de foco de cada foto: lo usan la cabecera, las tarjetas y las miniaturas */
.photo-home { --focus: 74% 50%; }
.photo-bodycam { --focus: 72% 40%; }
.photo-radar { --focus: 70% 45%; }
.photo-phones { --focus: 72% 50%; }
.photo-radio { --focus: 60% 50%; }
.photo-counter { --focus: 68% 50%; }
@media (max-width: 48rem) {
  /* en móvil la foto va arriba, entera, y el texto debajo sobre fondo oscuro */
  .hero-photo, .hero-photo.hero-product { min-height: 0; padding-top: calc(58vw + 1.5rem); }
  .hero-photo::before, :root[dir="rtl"] .hero-photo::before { content: none; }
  .hero-bg { bottom: auto; height: calc(58vw + 3.5rem); }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 0%, rgba(24, 28, 18, .55) 30%, rgba(24, 28, 18, 0) 62%); }
}

/* ------------------------------------------------------------ estado de cada producto */
.badge {
  display: inline-block; margin-inline-start: .6rem; padding: .08rem .55rem;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .02em; white-space: nowrap;
}
:root[lang="ar"] .badge { letter-spacing: 0; font-size: .8125rem; }
.badge-available { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.badge-partner { color: var(--moss); }
.badge-dev { color: var(--ink-2); border-style: dashed; }
.hero .badge-partner { color: var(--lime); }
.hero .badge-dev { color: var(--on-night-2); }
.verb { display: flex; flex-wrap: wrap; align-items: center; row-gap: .25rem; }

/* ------------------------------------------------------------ cómo funciona + diagrama */
.how-body { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.diagram-card { margin: 0; max-width: 40rem; background: var(--night); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); }

/* ------------------------------------------------------------ bandas */
.band { padding-block: var(--band-y); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper-2 { background: var(--paper-2); color: var(--ink); }
.band-night { background: var(--night); color: var(--on-night); }
.band-lime { background: var(--lime); color: var(--ink); }
.band h2 {
  font-family: var(--font-display); line-height: 1.08; letter-spacing: var(--display-track);
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.85rem);
}
:root[lang="ar"] .band h2 { line-height: 1.35; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
.h-small { font-size: 1.25rem !important; font-family: var(--font-body) !important; letter-spacing: 0 !important; }

.section-head { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); max-width: 34rem; }
.two-col { display: grid; gap: 1.25rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.prose { display: grid; gap: 1.1rem; max-width: 40rem; }
.prose a { color: var(--moss); font-weight: 600; text-decoration-thickness: 2px; }
@media (max-width: 48rem) {
  .section-head, .two-col { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ productos (filas) */
.product-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.product-row {
  position: relative;
  display: grid; gap: .75rem 2.5rem; align-items: start;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) auto;
  padding-block: 1.75rem; border-bottom: 1px solid var(--rule);
}
.row-id { display: grid; grid-template-columns: auto 1fr; gap: 0 .9rem; align-items: center; }
.row-id .icon { grid-row: span 2; color: var(--moss); }
.verb { color: var(--moss); font-weight: 600; font-size: .9375rem; }
.row-name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: var(--display-track); }
:root[lang="ar"] .row-name { font-size: 1.4rem; line-height: 1.4; }
.row-summary { color: var(--ink-2); max-width: 36rem; padding-top: .2rem; }
.row-link { align-self: center; color: var(--moss); font-weight: 600; white-space: nowrap; text-decoration-thickness: 2px; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.product-row:hover { background: rgba(24, 28, 18, .035); }
.product-row:hover .row-link { color: var(--ink); }
.product-row:focus-within { background: rgba(161, 197, 64, .14); }
@media (max-width: 52rem) {
  .product-row { grid-template-columns: 1fr; gap: .9rem; }
  .row-link { justify-self: start; }
}

/* ------------------------------------------------------------ productos (tarjetas con foto) */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--field); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  transition: border-color .15s ease;
}
.pcard:hover { border-color: var(--ink); }
.pcard:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.pcard-media { background: var(--night); aspect-ratio: 16 / 9; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.pcard-body { flex: 1; display: grid; gap: .6rem; align-content: start; padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.pcard .verb { column-gap: .45rem; }
.pcard-name { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: var(--display-track); }
:root[lang="ar"] .pcard-name { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.6rem); line-height: 1.4; }
.pcard-summary { color: var(--ink-2); max-width: 38rem; }
.pcard-link { justify-self: start; margin-top: .35rem; color: var(--moss); font-weight: 600; text-decoration-thickness: 2px; }
.pcard-link::after { content: ""; position: absolute; inset: 0; }
.pcard-link:focus-visible { outline: none; }
.pcard:hover .pcard-link { color: var(--ink); }
.pcard-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pcard-featured .pcard-media { aspect-ratio: auto; min-height: 21rem; }
.pcard-featured .pcard-body { align-content: center; padding: clamp(1.4rem, 3.5vw, 2.75rem); }
.pcard-featured .pcard-name { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
@media (prefers-reduced-motion: no-preference) {
  .pcard-media img, .other-media img { transition: transform .45s ease; }
  .pcard:hover .pcard-media img, .other:hover .other-media img { transform: scale(1.035); }
}
@media (max-width: 52rem) {
  .pcards, .pcard-featured { grid-template-columns: 1fr; }
  .pcard-featured .pcard-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ------------------------------------------------------------ portada: se complementan (plano) */
.combine-grid { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.combine-copy { display: grid; gap: 1.1rem; max-width: 34rem; }
.combine-copy p:not(.hint) { color: var(--ink-2); }
.plan-card { max-width: none; overflow: hidden; }
@media (max-width: 56rem) { .combine-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ principios */
.principles h2 { max-width: 18ch; }
.principles-head { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.principles-media { margin: 0; }
/* la foto se funde con la banda: los cuatro bordes se desvanecen (sus bordes ya son oscuros) */
.principles-media img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%),
              linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
:root[dir="rtl"] .principles-media img { transform: scaleX(-1); }
@media (max-width: 48rem) { .principles-head { grid-template-columns: 1fr; } }
.principles-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); }
.principle { border-top: 1px solid var(--night-rule); padding-top: 1.25rem; }
.principle h3 { color: var(--lime); font-size: 1.2rem; margin-bottom: .55rem; }
.principle p { color: var(--on-night-2); }
@media (max-width: 52rem) { .principles-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ qué resuelve */
.solves-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.solve { border-top: 1.5px solid var(--ink); padding-top: 1.1rem; }
.solve h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.solve p { color: var(--ink-2); }
@media (max-width: 52rem) { .solves-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ marco legal */
.law .wrap > p { color: var(--on-night); max-width: 42rem; border-inline-start: 3px solid var(--lime); padding-inline-start: 1.25rem; }

/* ------------------------------------------------------------ CTA */
.cta-inner { display: grid; gap: 1.25rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.cta-body { display: grid; gap: 1rem; max-width: 38rem; }
.cta .audience { font-weight: 600; }
.cta-body .btn { margin-top: .5rem; }
@media (max-width: 48rem) { .cta-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ otros productos */
.others { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.others-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.others-list a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--field);
  text-decoration: none; font-weight: 600;
}
.others-list a:hover { border-color: var(--ink); }
.other-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.other-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.other-name { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; line-height: 1.3; }
.others-list .icon { width: 1.75rem; height: 1.75rem; flex: none; color: var(--moss); }
@media (max-width: 48rem) { .others-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ contacto */
.contact-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
.contact-aside h2, .contact-form h2 { font-size: 1.5rem !important; }
.steps { margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; color: var(--ink-2); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--ink); border-radius: 50%;
  color: var(--ink); font-weight: 600; line-height: 1;
}
.fallback { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--ink-2); }
.fallback a { color: var(--moss); font-weight: 600; }
.form-error a { color: inherit; font-weight: 600; }

.contact-form { display: grid; gap: 1.25rem; background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: .9375rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid rgba(24, 28, 18, .4); border-radius: var(--radius);
  padding: .65rem .8rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(161, 197, 64, .7); outline-offset: 1px; border-color: var(--moss); }
.checks { display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .35rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--moss); margin: 0; flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { border-inline-start: 4px solid var(--error); background: #f6e3df; color: var(--error); padding: .8rem 1rem; border-radius: 4px; }
.form-error[hidden] { display: none; }
.privacy { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .checks { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ pie */
.site-footer { background: var(--night); color: var(--on-night-2); border-top: 1px solid var(--night-rule); padding-block: 3rem 3.5rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem 3rem; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { height: 2.5rem; width: auto; }
.footer-tag { color: var(--on-night); font: 600 1.15rem/1.3 var(--font-display); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-links a, .footer-meta a { color: var(--on-night); text-decoration-color: rgba(233, 236, 223, .35); }
.footer-meta { display: grid; gap: .5rem; align-content: start; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ páginas sueltas (raíz, 404) */
.page-solo { min-height: 100vh; display: grid; place-items: center; color: var(--on-night); }
.solo { width: 100%; max-width: 46rem; padding: 3rem var(--gutter); display: grid; justify-items: center; gap: 2rem; text-align: center; }
.solo img { height: 5rem; width: auto; }
.solo-langs { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .75rem; }
.solo-langs a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem;
  padding: 1.1rem 1.3rem; border: 1px solid var(--night-rule); border-radius: var(--radius);
  text-decoration: none; color: var(--on-night);
}
.solo-langs a:hover { border-color: var(--lime); }
.solo-lang { font-weight: 600; }
.solo-tag { color: var(--on-night-2); font-family: var(--font-display); font-size: 1.35rem; }
[lang="ar"] .solo-tag { font-family: "IBM Plex Sans Arabic", sans-serif; }
[lang="ar"] { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; }
.solo-code { font: 600 clamp(4rem, 12vw, 7rem)/1 var(--font-display); color: var(--lime); }
.solo-grid { display: grid; gap: 1.25rem; width: 100%; }
.solo-grid h2 { font-size: 1.35rem; }
.solo-grid a { color: var(--lime); }

/* ------------------------------------------------------------ ilustraciones */
.ill { width: 100%; height: auto; overflow: visible; }
.ill .k-lime { stroke: var(--lime); }
.ill .k-light { stroke: var(--on-night); }
.ill .k-faint { stroke: rgba(233, 236, 223, .45); }
.ill .k-soft { opacity: .6; }
.ill .k-grid { stroke: rgba(233, 236, 223, .22); stroke-width: 1.2; }
.ill .k-contour { stroke: var(--contour); stroke-width: 1.3; }
.ill .k-dots { stroke-dasharray: 0 9; }
.ill .k-fill-lime { fill: var(--lime); stroke: none; }
.ill .k-fill-night { fill: var(--night); }
.ill text {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  fill: var(--on-night); stroke: var(--night); stroke-width: 6px; paint-order: stroke; stroke-linejoin: round;
}
.ill .t-sm { font-size: 13px; font-weight: 400; }
.ill .t-faint { fill: var(--on-night-2); font-weight: 400; }
.ill .t-lime { fill: var(--lime); }
.plan { max-height: 34rem; }
.plan-mark { cursor: pointer; outline: none; }
.plan-hit { fill: transparent; stroke: none; }
.plan-mark:hover .plan-label, .plan-mark:focus-visible .plan-label { fill: var(--lime); }
.plan-mark:focus-visible .plan-hit { stroke: var(--lime); stroke-width: 2; stroke-dasharray: 5 5; }
.plan-mark:hover .plan-hit { fill: rgba(161, 197, 64, .06); }

@media (max-width: 40rem) {
  .ill text { font-size: 21px; stroke-width: 7px; }
  .ill .t-sm { font-size: 18px; }
}

/* el plano se dibuja al entrar en pantalla: reveal.js pone .is-armed y luego .is-visible.
   Sin JavaScript o con movimiento reducido se ve completo desde el principio. */
@media (prefers-reduced-motion: no-preference) {
  .is-armed .plan-contours, .is-armed .plan-mark { opacity: 0; }
  .is-armed .plan-perimeter { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .is-visible .plan-contours { animation: blocao-fade 1.1s ease-out .1s forwards; }
  .is-visible .plan-perimeter { animation: blocao-draw 1.5s cubic-bezier(.55, .1, .25, 1) .3s forwards; }
  .is-visible .plan-mark { animation: blocao-fade .55s ease-out forwards; }
  .is-visible .plan-mark.d0 { animation-delay: 1.45s; }
  .is-visible .plan-mark.d1 { animation-delay: 1.65s; }
  .is-visible .plan-mark.d2 { animation-delay: 1.85s; }
  .is-visible .plan-mark.d3 { animation-delay: 2.05s; }
  .is-visible .plan-mark.d4 { animation-delay: 2.25s; }
}
@keyframes blocao-draw { to { stroke-dashoffset: 0; } }
@keyframes blocao-fade { to { opacity: 1; } }

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

@media print {
  .site-header .nav, .langs, .actions, .cta, .others { display: none; }
  .hero, .band-night, .site-footer, body { background: #fff; color: #000; }
}
