/* HostLens — gethostlens.com
   Mundo visual: el etiquetado físico de una sala de servidores. Chapa de rack con raíles perforados y
   regla de unidades, cinta de rotuladora para todo lo que sea etiqueta, un cable de parcheo azul que
   recorre la página y termina enchufado en el botón de instalar. */

:root {
  --steel: #e6e9ed;
  --steel-2: #d8dce2;
  --steel-3: #f4f5f7;
  --rail: #15181c;
  --rail-2: #262a30;
  --ink: #15181c;
  --ink-2: #4a525c;
  --ink-3: #6b7480;
  --tape: #f2c400;
  --tape-ink: #15181c;
  --tape-white: #fbfbf8;
  --cable: #00769e;
  --cable-2: #005c7c;
  --cable-3: #0a8fbd;
  --fiber: #f0862b;
  --led: #4ade80;
  --led-cache: #facc15;
  --line: rgba(21, 24, 28, .14);
  --shadow: 0 1px 2px rgba(21, 24, 28, .12), 0 6px 18px -6px rgba(21, 24, 28, .28);
  --shadow-tape: 0 1px 1px rgba(21, 24, 28, .18), 0 3px 8px -3px rgba(21, 24, 28, .35);
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'Azeret Mono', ui-monospace, Menlo, Consolas, monospace;
  --rail-w: 44px;
  --lane-w: 44px;
  --content-w: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --steel: #1b1f24;
    --steel-2: #262b31;
    --steel-3: #14171b;
    --rail: #0b0d10;
    --rail-2: #1a1e23;
    --ink: #e8eaed;
    --ink-2: #b4bac3;
    --ink-3: #8b929c;
    --tape-white: #f2f1ec;
    --line: rgba(232, 234, 237, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 22px -6px rgba(0, 0, 0, .7);
    --shadow-tape: 0 1px 1px rgba(0, 0, 0, .5), 0 4px 10px -3px rgba(0, 0, 0, .7);
    --cable: #1794c2;
    --cable-2: #0d7aa3;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--font-body);
  color: var(--ink);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tape); color: var(--tape-ink); }
:focus-visible { outline: 3px solid var(--cable-3); outline-offset: 3px; border-radius: 3px; }
a { color: var(--cable); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cable-2); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
kbd { font: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: .5rem .8rem; background: var(--tape); color: var(--tape-ink); border-radius: 4px; }
.skip:focus { left: 8px; }

/* ── El rack: raíles, regla y chasis ──────────────────────────────────────── */
.rack {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--rail-w);
  min-height: 100vh;
}
.rail {
  position: relative;
  background:
    radial-gradient(circle at 50% 9px, var(--steel) 0 4px, transparent 4.6px) 0 0 / var(--rail-w) 44.45px,
    var(--rail);
  /* Los taladros del raíl: uno por unidad, 44.45 px = 1U a esta escala. */
}
.rail--r { background-position: 0 22px; }
.u {
  list-style: none;
  margin: 0; padding: 0;
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  font: 500 10px/1 var(--font-mono);
  color: rgba(232, 234, 237, .6);
  text-align: center;
}
.u li { height: 44.45px; padding-top: 22px; }
.chassis {
  min-width: 0;
  padding: 0 clamp(16px, 4vw, 56px);
  background:
    linear-gradient(90deg, var(--line), transparent 1px) left / 1px 100% no-repeat,
    linear-gradient(-90deg, var(--line), transparent 1px) right / 1px 100% no-repeat;
}
.top, .units, .foot, .suggest { max-width: var(--content-w); margin-inline: auto; }

/* ── Aviso de idioma ───────────────────────────────────────────────────────── */
.suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .85rem 0 0;
}
.suggest__cta { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.35rem/1 var(--font-display);
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand img { border-radius: 7px; }
.top-nav { display: flex; gap: 1.25rem; margin-left: auto; font-weight: 500; }
.top-nav a { color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-nav__install { color: var(--cable) !important; font-weight: 600; }
.top-nav__bk { display: inline-flex; align-items: center; gap: .4rem; }
.top-nav__bk img { width: 16px; height: 16px; }
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line); border-radius: 6px;
  font: 500 .85rem/1 var(--font-mono); color: var(--ink-2);
  background: var(--steel-3);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--ink); border-color: var(--ink-3); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  list-style: none; margin: 0; padding: .35rem;
  min-width: 11rem;
  background: var(--steel-3); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
}
.langs li a {
  display: block; padding: .45rem .7rem; border-radius: 5px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.langs li a:hover { background: var(--steel-2); }
.langs li a[aria-current] { background: var(--tape); color: var(--tape-ink); }

/* ── Cinta de rotuladora ──────────────────────────────────────────────────── */
/* Toda etiqueta obedece la misma ley: tira con los extremos redondeados, ojal a la izquierda y una
   sola grosura de tinta. El ojal deja ver la chapa de detrás. */
.tape {
  --hole: clamp(6px, .38em, 13px);
  position: relative;
  display: inline-block;
  padding: .12em .5em .1em calc(.55em + var(--hole));
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  border-radius: .32em;
  box-shadow: var(--shadow-tape);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: pretty;
}
.tape::before {
  content: "";
  position: absolute; left: .32em; top: 50%; width: var(--hole); height: var(--hole);
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--steel);
  box-shadow: inset 0 0 0 max(1.5px, .06em) rgba(21, 24, 28, .4);
}
.tape--white { background: var(--tape-white); color: #15181c; }
.tape--sm { font-size: .92rem; padding-top: .28em; padding-bottom: .24em; }
/* Cada cinta del titular va en una sola línea: el tamaño sale del ancho de la columna y de la
   cinta más larga del idioma (--h1-em, en em, lo pone la vista). */
.hero__copy { container-type: inline-size; min-width: 0; }
.tape--h1 { font-size: clamp(1.9rem, 100cqw / var(--h1-em, 12), 3.9rem); padding: .06em .3em .05em calc(.3em + var(--hole) + .18em); letter-spacing: 0; }
.tape--h1::before { left: .2em; }
@media (min-width: 901px) { .tape--h1 { white-space: nowrap; } }

/* ── Unidades (secciones) ─────────────────────────────────────────────────── */
.units { position: relative; }
.unit {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem) var(--lane-w);
  border-bottom: 1px solid var(--line);
}
.unit:last-child { border-bottom: 0; }
/* El cable: baja por el carril izquierdo desde la primera unidad de contenido hasta el enchufe. */
.unit:not(.hero)::before {
  content: "";
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 14px;
  background:
    repeating-linear-gradient(180deg, transparent 0 260px, var(--rail) 260px 272px) center / 14px 100% no-repeat,
    linear-gradient(var(--cable), var(--cable)) center / 6px 100% no-repeat;
}
.unit.close::before { bottom: auto; height: var(--run-top, 50%); }
.unit__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.unit__head h2 { margin-bottom: .75rem; }
.unit__head p { color: var(--ink-2); font-size: 1.1rem; text-wrap: pretty; }

/* ── U1 · Héroe ───────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-left: 0;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.tapes { display: flex; flex-direction: column; align-items: flex-start; gap: .18em; }
.tape--h1 {
  --d: calc(var(--i) * .32s);
  position: relative;
  clip-path: inset(0 0 0 0);
  animation: print 0.9s var(--ease) var(--d) both;
}
.tape--h1:nth-child(2) { transform: rotate(-.6deg); }
.tape--h1:nth-child(3) { transform: rotate(.35deg); }
@keyframes print {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
/* El cabezal de corte: una línea que barre la cinta mientras se imprime. */
.tape--h1::after {
  content: "";
  position: absolute; top: -8%; bottom: -8%; right: 0; width: 3px;
  background: var(--rail);
  animation: cutter .9s var(--ease) var(--d) both;
}
@keyframes cutter {
  from { right: 100%; opacity: 1; }
  90% { opacity: 1; }
  to { right: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tape--h1, .tape--h1::after { animation: none; }
  .tape--h1::after { display: none; }
}
.lead {
  margin: 1.6rem 0 0;
  max-width: 58ch;
  font-size: 1.18rem; line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.cta__meta { color: var(--ink-3); font-size: .8rem; }
.see { display: inline-block; margin-top: 1.5rem; font-size: .85rem; color: var(--ink-2); }
.see:hover { color: var(--ink); }

/* El conector RJ45: el botón. */
.plug {
  --pin: #d9a43b;
  position: relative;
  display: inline-flex; align-items: stretch;
  background: var(--cable);
  color: #fff; text-decoration: none;
  border-radius: 6px 6px 6px 6px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .25s var(--ease), background .2s;
}
.plug::before {
  /* La pestaña del conector */
  content: "";
  position: absolute; left: 26%; right: 26%; top: -7px; height: 9px;
  background: var(--cable-2);
  border-radius: 3px 3px 0 0;
}
.plug__pins {
  width: 22px;
  border-radius: 6px 0 0 6px;
  background:
    repeating-linear-gradient(180deg, var(--pin) 0 3px, transparent 3px 6px) 6px 8px / 10px calc(100% - 16px) no-repeat,
    var(--cable-2);
}
.plug__label {
  padding: .95rem 1.4rem .9rem 1.2rem;
  font: 700 1.15rem/1 var(--font-display);
  text-transform: uppercase; letter-spacing: .04em;
}
.plug:hover { background: var(--cable-3); color: #fff; transform: translateY(-1px); }
.plug:active { transform: translateY(1px); }
.plug--xl .plug__label { padding: 1.2rem 1.9rem 1.15rem 1.6rem; font-size: 1.45rem; }
.plug--xl .plug__pins { width: 28px; }

.soon { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.soon__tape { font-size: 1.1rem; padding-top: .45em; padding-bottom: .4em; white-space: nowrap; }
.soon__sub { font-size: .92rem; color: var(--ink-3); max-width: 42ch; }
.installed { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 500; color: var(--ink); }
.installed::before {
  content: ""; flex: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led);
}

/* La ventana simulada con la pastilla real. */
.hero__demo { min-width: 0; }
.window {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(21, 24, 28, .12), 0 24px 48px -20px rgba(21, 24, 28, .45), 0 2px 6px rgba(21, 24, 28, .12);
  overflow: hidden;
  isolation: isolate;
}
.window__bar {
  display: flex; align-items: center; gap: .6rem;
  height: 34px; padding: 0 .7rem;
  background: #eef0f3; border-bottom: 1px solid #dfe2e7;
}
.window__dots { display: inline-flex; gap: 5px; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced6; }
.window__url {
  display: inline-flex; align-items: center; gap: .35rem;
  flex: 1; height: 22px; padding: 0 .55rem;
  background: #fff; border-radius: 5px;
  font-size: 11px; color: #5b6470;
}
.window__page { padding: 5%; display: grid; gap: 4%; }
.ph { display: flex; gap: 3%; }
.ph i, .ph b { display: block; background: #e3e6ea; border-radius: 3px; }
.ph--nav { align-items: center; }
.ph--nav i { width: 8%; height: 8px; }
.ph--nav i:first-child { width: 14%; height: 12px; background: #c8ccd3; }
.ph--nav b { margin-left: auto; width: 12%; height: 14px; background: #00769e; border-radius: 4px; }
.ph--hero { position: relative; height: 26%; aspect-ratio: 7 / 2; flex-direction: column; justify-content: center; padding: 4% 5%; background: #f3f4f6; border-radius: 6px; }
.ph--hero i { width: 46%; height: 10px; background: #cfd3d9; }
.ph--hero i + i { width: 32%; height: 8px; margin-top: 4px; }
.ph--hero b { width: 18%; height: 12px; margin-top: 6px; background: #00769e; border-radius: 4px; }
.ph--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.ph--grid i { aspect-ratio: 1 / 1.15; background: #f0f1f3; border: 1px solid #e3e6ea; }

/* La pastilla, tal cual la pinta content.js (a 12 px en la demo para leerla mejor). */
.hl-badge {
  position: absolute;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  font: 500 12px/17px var(--font-mono);
  color: #e8e8e8;
  background: rgba(20, 20, 24, .86);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  user-select: none; cursor: default; white-space: nowrap;
  transition: opacity .15s ease;
  z-index: 2;
}
.hl-badge.br { right: 8px; bottom: 8px; }
.hl-badge.bl { left: 8px; bottom: 8px; }
.hl-badge.moving { transition: none; opacity: 0; }
.hl-badge.hold { cursor: copy; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 0, 0, .25); }
.hl-badge.copied .hl-badge__cdn { display: none; }
.hl-badge.copied .hl-badge__dot { background: var(--tape); box-shadow: 0 0 6px var(--tape); }
.hl-badge__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--led); flex: none; }
.hl-badge__cdn { color: #fdba74; font-weight: 600; }
.demo-hint { margin: 1rem 64px 0 .25rem; font-size: .92rem; color: var(--ink-2); text-wrap: pretty; }
.demo-hint b { color: var(--ink); }

/* El cable nace bajo la pastilla, baja, dobla y cruza el pie del héroe hasta el carril. JS fija --cable-top
   y el borde derecho. Tres tramos: vertical, esquina redonda y horizontal. */
.hero__cable {
  display: none;
  position: absolute;
  left: 13px; right: 30px;
  top: var(--cable-top);
  bottom: -1px;
  pointer-events: none;
}
.hero__cable::before {
  /* tramo vertical, con el clavijero de salida arriba */
  content: ""; position: absolute; right: 0; top: 0; bottom: 28px; width: 6px;
  background: linear-gradient(var(--cable-2) 0 12px, var(--cable) 12px);
}
.hero__cable::after {
  /* tramo horizontal hasta el carril */
  content: ""; position: absolute; left: 0; right: 28px; bottom: 0; height: 6px;
  background: var(--cable);
}
.hero__cable .corner {
  position: absolute; right: -0px; bottom: 0; width: 34px; height: 34px;
  background: radial-gradient(circle at 0 0, transparent 27.5px, var(--cable) 28px 33.5px, transparent 34px) 0 0 / 34px 34px no-repeat;
  /* el cuarto de arco une la vertical (derecha) con la horizontal (abajo) */
}
.hero__cable .outlet {
  position: absolute; right: -7px; top: -6px; width: 20px; height: 14px;
  background: var(--cable-2); border-radius: 0 0 4px 4px;
}
.hero.has-cable .hero__cable { display: block; }

/* ── U2-4 · Qué dice la etiqueta ──────────────────────────────────────────── */
.slot { margin-top: 2.5rem; }
.slot__bar { border-bottom: 2px solid var(--rail); }
.slot__body {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: 1.5rem;
}
.crop { position: relative; margin: 0; width: 300px; }
.crop__img {
  height: var(--h);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(21, 24, 28, .1), var(--shadow);
  background: #fff;
}
.crop img { width: 300px; height: auto; transform: translateY(var(--y)); }
/* la etiqueta va pegada al recorte, como en el frontal de una unidad */
.crop__tag { position: absolute; left: -10px; top: -12px; z-index: 1; transform: rotate(-2deg); text-transform: none; letter-spacing: .04em; }
.slot__text h3 { margin-bottom: 1.25rem; font-size: 1.65rem; }
.facts { margin: 0; display: grid; gap: 1rem; }
.facts div { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: .15rem 0 0; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }

/* ── U5 · Cableado ────────────────────────────────────────────────────────── */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(130px, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 .5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem);
  background: var(--rail);
  color: #e8eaed;
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  background-image:
    radial-gradient(circle at 12px 12px, #2a2f36 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #2a2f36 0 3px, transparent 3.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #2a2f36 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #2a2f36 0 3px, transparent 3.5px);
}
.chain { position: relative; display: flex; justify-content: space-between; }
.chain::before {
  /* el cable, detrás de los tres puertos: entra por uno y sale por el siguiente */
  content: ""; position: absolute; left: 40px; right: 40px; top: 20px; height: 6px;
  background: var(--cable); border-radius: 3px;
}
.port { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.port__lbl { font: 500 .8rem/1.25 var(--font-mono); color: #c3c8cf; max-width: 13ch; }
.jack {
  position: relative;
  width: 56px; height: 46px;
  background: #0b0d10;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px #30353c, inset 0 -6px 0 #1f2328;
}
.jack i {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 26px; height: 20px;
  background: var(--cable);
  border-radius: 2px 2px 4px 4px;
  box-shadow: inset 0 3px 0 var(--cable-2);
}
.jack::after {
  content: ""; position: absolute; right: -10px; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 6px var(--led);
}
.jack--cap i { background: #3a4048; box-shadow: none; opacity: .5; }
.jack--cap::after { background: #3a4048; box-shadow: none; }
.gap { display: flex; justify-content: center; align-items: center; height: 46px; }
.gap .tape { font-size: .78rem; letter-spacing: .06em; white-space: nowrap; }
.port--off .port__lbl { color: #7c8590; }

.rules { margin: clamp(2rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.rules dt .tape { text-transform: none; letter-spacing: .01em; font-size: 1.05rem; }
.rules dd { margin: .8rem 0 0; color: var(--ink-2); text-wrap: pretty; }

.table-wrap { margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
  font-size: .82rem; line-height: 1.4;
}
.data th, .data td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data thead th { font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; border-bottom: 2px solid var(--rail); }
.data tbody th { font-weight: 500; color: var(--ink); }
.data td { color: var(--ink-2); }
.data td:last-child { white-space: nowrap; }
.wire__more { margin-top: 1.5rem; font-weight: 500; }

/* ── U6 · CDN: banderines de cable ────────────────────────────────────────── */
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem .5rem; }
.flag {
  --hole: 7px;
  position: relative;
  padding: .5rem .8rem .45rem calc(.6rem + var(--hole) + .35rem);
  background: var(--tape-white); color: #15181c;
  border-radius: .5rem;
  font-size: .86rem; font-weight: 500;
  box-shadow: var(--shadow-tape);
}
.flag::before {
  /* el ojal del banderín */
  content: ""; position: absolute; left: .5rem; top: 50%; width: var(--hole); height: var(--hole);
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--steel);
  box-shadow: inset 0 0 0 1.5px rgba(21, 24, 28, .4);
}
.flag--fiber { background: var(--fiber); color: #1a1004; display: inline-flex; align-items: baseline; gap: .5rem; }
.flag--fiber small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }

/* ── U7 · Casos ───────────────────────────────────────────────────────────── */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.cases h3 { font-size: 1.15rem; text-transform: none; letter-spacing: .01em; padding: .3em .6em .26em; }
.cases p { margin-top: .9rem; color: var(--ink-2); text-wrap: pretty; }

/* ── U8 · FAQ ─────────────────────────────────────────────────────────────── */
.qa { max-width: 72ch; border-top: 2px solid var(--rail); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: .8rem;
  padding: 1rem 0;
  font: 600 1.2rem/1.3 var(--font-display);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: ""; flex: none;
  width: 1.4rem; height: 1.4rem; border-radius: 4px;
  background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315181c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: translateY(-2px);
  transition: transform .3s var(--ease);
}
.qa details[open] summary::before { transform: translateY(-2px) rotate(45deg); }
.qa summary:hover { color: var(--cable); }
.qa p { padding: 0 0 1.25rem 2.2rem; color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }

/* ── U9 · Instalar ────────────────────────────────────────────────────────── */
.close {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.close__run {
  /* el tramo horizontal del cable, del carril al enchufe */
  position: absolute; left: 10px; top: var(--run-top, 50%); width: calc(var(--lane-w) - 10px); height: 6px;
  margin-top: -3px;
  background: var(--cable);
  border-radius: 0 3px 3px 0;
}
.close__run::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 14px; height: 14px;
  border-radius: 0 0 8px 8px; background: var(--cable);
}
.close__cta { position: relative; z-index: 1; }
.close__text h2 { margin-bottom: .8rem; }
.close__text p { color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.close__contact { display: inline-block; margin-top: 1.1rem; font-weight: 600; }

/* ── Pie ──────────────────────────────────────────────────────────────────── */
.foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
  border-top: 2px solid var(--rail);
  font-size: .92rem;
}
.foot__by {
  --hole: 8px;
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem .5rem calc(.6rem + var(--hole) + .5rem);
  background: var(--tape); color: var(--tape-ink);
  border-radius: .5rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  box-shadow: var(--shadow-tape);
}
.foot__by::before {
  content: ""; position: absolute; left: .55rem; top: 50%; width: var(--hole); height: var(--hole);
  transform: translateY(-50%); border-radius: 50%;
  background: var(--steel); box-shadow: inset 0 0 0 1.5px rgba(21, 24, 28, .4);
}
.foot__by:hover { color: var(--tape-ink); background: #ffd21a; }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__links a[aria-current] { color: var(--ink); font-weight: 600; }
.foot__rights { grid-column: 1 / -1; color: var(--ink-3); font-size: .85rem; }

/* ── Política ─────────────────────────────────────────────────────────────── */
.doc { max-width: 72ch; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin: .6rem 0 .5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; }
.doc p + p { margin-top: .9rem; }
.doc .lead { margin-top: 1.25rem; }
.doc__updated { color: var(--ink-3); font-size: .8rem; }
.doc__back { font-size: .9rem; }
.doc__list { padding-left: 1.2rem; color: var(--ink-2); }
.doc__list li + li { margin-top: .4rem; }
.doc .facts dt { display: inline; }
.doc .facts dt::after { content: " — "; color: var(--ink-3); }
.doc .facts dd { display: inline; margin: 0; }
.doc .table-wrap { margin-top: 1rem; }
.doc .data { min-width: 640px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --rail-w: 18px; --lane-w: 28px; }
  .u { display: none; }
  .rail { background-size: var(--rail-w) 44.45px; }
  .hero { grid-template-columns: 1fr; }
  .hero__cable { left: 8px; right: 24px; }
  .unit:not(.hero)::before { left: 4px; }
  .close__run { left: 4px; width: calc(var(--lane-w) - 4px); }
  .demo-hint { margin-right: 48px; }
  .top-nav a:not(.top-nav__install):not(.top-nav__bk) { display: none; }
  .top-nav__bk span { display: none; }
  .langs { margin-left: auto; }
  .slot__body { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; gap: .75rem; justify-items: center; }
  .chain { flex-direction: column; gap: 1.25rem; align-items: center; }
  .chain::before { left: 50%; right: auto; width: 6px; margin-left: -3px; top: 23px; bottom: 60px; height: auto; }
  .gap { height: auto; }
  .close { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cases { grid-template-columns: 1fr; }
  .lead { font-size: 1.08rem; }
  .crop { width: 100%; max-width: 300px; }
  .plug__label { padding: .85rem 1.1rem .8rem 1rem; font-size: 1.05rem; }
  .soon__tape { font-size: min(1.1rem, 5vw); }
  .tape--h1 { font-size: clamp(1.75rem, 8.6vw, 2.6rem); }
}
