/* M&E Tecnología — panel de parcheo
   Acero de rack, cinta rotuladora y cables: los cables son el único color. */

:root {
  /* acero */
  --cabinet: #CDD0D6;
  --steel: #E7E8EC;
  --recess: #DADCE2;
  --face: #F3F4F6;
  --rail: #BCC0C8;
  --edge-hi: #FFFFFF;
  --edge-lo: #BEC2CA;
  --line: #CDD0D7;
  --socket: #22252C;

  /* tinta */
  --ink: #15171C;
  --ink-2: #444955;
  --ink-3: #5F6470;

  /* cinta rotuladora */
  --tape: #FCFCF9;
  --tape-yellow: #F4CF1F;

  /* LED */
  --led-off: #A3A8B1;
  --led-on: #1FA855;

  /* cables por categoría; violeta = M&E */
  --violet: #5A2FC2;
  --violet-ink: #431F9C;
  --c-equipos: #2462C8;
  --c-perifericos: #E6B10F;
  --c-networking: #1E9A55;
  --c-telecom: #E2611B;
  --c-energia: #CF3529;
  --c-empresas: #6B7280;
  --c-impresion: #0F9DB0;
  --c-me: var(--violet);

  /* placa de marca: aluminio anodizado negro con el logo retroiluminado */
  --plate: #1D2026;
  --plate-hi: #3A3E48;
  --plate-lo: #0B0C0F;
  --plate-silk: #A3A8B1;
  --plate-text: #B8BCC5;
  --plate-led-off: #3B3F48;
  --violet-lit: #7C55EC;
  --trace-cyan: #5BC8F5;
  --trace-amber: #F29A3A;
  --screw-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%232E323A' stroke='%23474C56'/%3E%3Cpath d='M4.4 7h5.2M7 4.4v5.2' stroke='%235C616C' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");

  --u: 48px;
  --rail-w: 26px;
  --pad: 56px;
  --display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --screw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23D5D8DE' stroke='%239AA0AA'/%3E%3Cpath d='M4.4 7h5.2M7 4.4v5.2' stroke='%23858A95' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --rail-holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='48' viewBox='0 0 26 48'%3E%3Crect x='9' y='5' width='8' height='8' rx='1' fill='%23737883'/%3E%3Crect x='9' y='20' width='8' height='8' rx='1' fill='%23737883'/%3E%3Crect x='9' y='35' width='8' height='8' rx='1' fill='%23737883'/%3E%3C/svg%3E");
}

[data-cat="equipos"] { --c: var(--c-equipos); }
[data-cat="perifericos"] { --c: var(--c-perifericos); }
[data-cat="networking"] { --c: var(--c-networking); }
[data-cat="telecom"] { --c: var(--c-telecom); }
[data-cat="energia"] { --c: var(--c-energia); }
[data-cat="empresas"] { --c: var(--c-empresas); }
[data-cat="impresion"] { --c: var(--c-impresion); }
[data-cat="me"] { --c: var(--c-me); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: #9DA2AC var(--recess);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cabinet);
  color: var(--ink);
  font: 400 1rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: #fff; }

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 3px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Rack: rieles y paneles ---------- */

.rack {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--rail-w);
  background: var(--steel);
}
.rack::before,
.rack::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: var(--rail-w);
  background: var(--rail-holes) repeat-y center top / 26px var(--u), var(--rail);
  box-shadow: inset 1px 0 0 #D4D7DD, inset -1px 0 0 #A7ACB5;
}
.rack::before { left: 0; }
.rack::after { right: 0; }

.panel {
  position: relative;
  background:
    var(--screw) no-repeat 16px 14px,
    var(--screw) no-repeat 16px calc(100% - 14px),
    var(--screw) no-repeat calc(100% - 16px) 14px,
    var(--screw) no-repeat calc(100% - 16px) calc(100% - 14px),
    var(--face);
  border-top: 1px solid var(--edge-hi);
  border-bottom: 1px solid var(--edge-lo);
}

/* Etiquetas serigrafiadas y cinta rotuladora */
.silk {
  font: 600 .875rem/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.silkMuted { color: var(--ink-3); }

.tape {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tape);
  color: var(--ink);
  font: 700 .8125rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 8px 4px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(21, 23, 28, .16);
  white-space: nowrap;
}
.tapeYellow { background: var(--tape-yellow); }
.tape svg { width: 16px; height: 16px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0; border-radius: 4px;
  font: 700 1.0625rem/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .12s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btnPrimary { background: var(--violet); color: #fff; }
.btnPrimary:hover { background: var(--violet-ink); }
.btnGhost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btnGhost:hover { background: var(--ink); color: #fff; }
.btnSm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

.textLink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--violet);
}
.textLink svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.textLink:hover svg { transform: translateX(3px); }

/* ---------- Nav (panel 1U) ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 72px;
  padding: 0 var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brandMark { width: 36px; height: 35px; color: var(--violet); --mark-core-op: .32; }
.brandName { font: 800 1.3rem/1 var(--display); letter-spacing: -.01em; }
.brandName span { font-weight: 600; color: var(--ink-2); }

.links { display: flex; gap: 28px; margin-left: auto; }
.links a {
  font-weight: 600; font-size: .9375rem;
  color: var(--ink-2);
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--violet);
}
.links a:hover, .links a.active { color: var(--ink); text-decoration-line: underline; }

.navActions { display: flex; align-items: center; gap: 20px; }
.navWa {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.navWa svg { width: 20px; height: 20px; }
.navWa:hover { color: var(--violet); }

.menuBtn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 4px;
  color: var(--ink); cursor: pointer;
}
.menuBtn svg { width: 24px; height: 24px; }
.mobileMenu { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 0 var(--pad) 56px; }

/* Primera vista: una ventana al interior del procesador, montada en el rack.
   El fondo es el del logo original del cliente (espejado para sacar el logo incrustado);
   las trazas llevan pulsos de luz hacia la M, como en la presentación de un chip. */
.heroHead {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 620px;
  margin: 0 calc(-1 * var(--pad));
  padding: 18px var(--pad) 16px;
  background:
    var(--screw-dark) no-repeat 16px 14px,
    var(--screw-dark) no-repeat 16px calc(100% - 14px),
    var(--screw-dark) no-repeat calc(100% - 16px) 14px,
    var(--screw-dark) no-repeat calc(100% - 16px) calc(100% - 14px),
    linear-gradient(90deg, rgba(10, 11, 16, .93) 0%, rgba(10, 11, 16, .82) 34%, rgba(10, 11, 16, .32) 58%, rgba(10, 11, 16, .12) 100%),
    linear-gradient(180deg, rgba(10, 11, 16, .6) 0%, rgba(10, 11, 16, 0) 18%, rgba(10, 11, 16, 0) 72%, rgba(10, 11, 16, .75) 100%),
    url("../assets/hero-procesador.jpg") -4% 47% / 150% auto no-repeat,
    var(--plate);
  border-bottom: 1px solid var(--plate-lo);
  color: #fff;
}
.heroStage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0;
}
.heroCopy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 32px;
}
.hero h1 {
  font: 700 clamp(2.75rem, 5.4vw, 5.25rem)/.94 var(--display);
  letter-spacing: -.02em;
  max-width: 13ch;
  text-wrap: balance;
  color: #fff;
}
.heroAside { display: grid; justify-items: start; gap: 18px; }
.heroAside p { font-size: 1.125rem; color: #D3D6DE; max-width: 44ch; }
.heroHead .textLink { color: #fff; text-decoration-color: var(--violet-lit); }
.heroHead :focus-visible { outline-color: var(--violet-lit); }

/* Placa de marca: frente anodizado (hero y footer) */
.footer {
  background:
    var(--screw-dark) no-repeat 16px 14px,
    var(--screw-dark) no-repeat 16px calc(100% - 14px),
    var(--screw-dark) no-repeat calc(100% - 16px) 14px,
    var(--screw-dark) no-repeat calc(100% - 16px) calc(100% - 14px),
    var(--plate);
  border-top: 1px solid var(--plate-hi);
  border-bottom: 1px solid var(--plate-lo);
  color: #fff;
}
.plateBar, .plateFoot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 20px;
}
.plateStat, .plateSilk {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .75rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--plate-silk);
}
.plateSilk { text-transform: none; letter-spacing: .04em; font-size: .8125rem; }
.plateLed {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--plate-led-off);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4);
  transition: background-color .2s;
}
.plateLedPwr, .plateLed.is-on { background: var(--led-on); }
/* Easter egg: cada puerto conectado enciende su LED arriba y abajo de la placa; parpadea al enlazar */
.plateLed.is-on { box-shadow: 0 0 6px 1px rgba(31, 168, 85, .75); animation: linkUp .45s steps(1); }
.plateFoot .plateSilk { gap: 14px; }
.plateFoot .plateLed { width: 8px; height: 8px; }
@keyframes linkUp { 0% { background: var(--plate-led-off); box-shadow: none; } 33% { background: var(--led-on); } 66% { background: var(--plate-led-off); box-shadow: none; } }
.plateLinks { display: inline-flex; gap: 6px; margin-left: 2px; }
.plateVents {
  width: 120px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Crect x='3' y='0' width='6' height='14' rx='3' fill='%230E1014'/%3E%3C/svg%3E") repeat-x left center / 12px 14px;
}

.lockup {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.markWrap { --mw: clamp(150px, 15vw, 204px); position: relative; isolation: isolate; width: var(--mw); }
.plateMark { display: block; width: 100%; height: auto; aspect-ratio: 350 / 336; overflow: visible; }

/* Trazas del chip: base tenue, pads en las puntas y pulsos que avanzan hacia la M */
.traces {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: calc(var(--mw) * 7.843); height: calc(var(--mw) * 4.902);
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.traces path, .traces circle { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.traceBase { stroke: rgba(124, 85, 236, .34); stroke-width: 1.5; }
.tracePads { stroke: rgba(124, 85, 236, .55); stroke-width: 1.5; }
.pulse {
  stroke: currentColor; stroke-width: 2.5;
  stroke-dasharray: .07 1.3; stroke-dashoffset: .1;
  filter: drop-shadow(0 0 4px currentColor);
  animation: flow var(--t) cubic-bezier(.55, 0, .85, .45) var(--d) infinite;
}
.pv { color: var(--violet-lit); }
.pc { color: var(--trace-cyan); }
.pa { color: var(--trace-amber); }
@keyframes flow { 0% { stroke-dashoffset: .1; } 60%, 100% { stroke-dashoffset: -1.05; } }
.plateMark g, .markFill { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Neón: tubo blanco, halo violeta difuso y la V interior encendida en violeta */
.markGlow { stroke: var(--violet-lit); stroke-width: 34; }
.markFill { stroke: var(--violet); stroke-width: 44; }
.markHoles { fill: var(--violet); }
.markCore { stroke: #FBF9FF; stroke-width: 30; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .85)); }
.markCore circle { stroke-width: 28; }

.wordmark { display: flex; flex-direction: column; align-items: center; }
.wmMain {
  font: 800 clamp(2.6rem, 4vw, 3.5rem)/.9 var(--text);
  letter-spacing: .01em;
  color: #fff;
}
.wmSub {
  margin-top: 10px;
  padding-left: .34em; /* compensa el tracking para centrar */
  font: 600 clamp(.95rem, 1.25vw, 1.125rem)/1 var(--text);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #E4E0F5;
}

/* Encendido: la traza recorre la M, los nodos se energizan, el neón parpadea al prender y se enciende el PWR */
.markCore path { stroke-dasharray: 1 2; animation: trace 1.1s var(--ease-out) .25s backwards; }
.markCore path + path { animation-duration: .7s; animation-delay: .6s; }
.markFill { stroke-dasharray: 1 2; animation: trace .6s var(--ease-out) .95s backwards; }
.markCore circle, .markHoles circle { transform-box: fill-box; transform-origin: center; animation: node .45s var(--ease-out) backwards; }
.plateMark .n1 { animation-delay: .15s; }
.plateMark .n2 { animation-delay: 1s; }
.plateMark .n3 { animation-delay: 1.15s; }
.markGlow { animation: ignite 1s linear 1.3s backwards, hum 11s linear 5s infinite; }
.lockup .wordmark { animation: rise .7s var(--ease-out) .75s backwards; }
.plateLedPwr { animation: pwr .2s steps(1) 1.4s backwards; }
@keyframes trace { from { stroke-dashoffset: 1; } }
@keyframes node { from { transform: scale(0); } }
@keyframes ignite {
  0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; }
  26% { opacity: .3; } 34%, 100% { opacity: 1; }
}
@keyframes hum { 0%, 95% { opacity: 1; } 96% { opacity: .45; } 97% { opacity: 1; } 98% { opacity: .65; } 100% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pwr { from { background-color: var(--plate-led-off); } }

.patchWrap { position: relative; margin-top: 40px; }

.patch { padding: 22px var(--pad) 26px; }
.patchBar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ports { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.port .tape, .port .jack, .port .portDesc { transition: opacity .2s; }
.port.dim .tape, .port.dim .jack, .port.dim .portDesc { opacity: .5; }
.cables g { transition: opacity .2s; }
.cables g.dim { opacity: .18; }
.ports li { display: flex; }

.port {
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 4px 12px;
  background: none; border: 0; border-radius: 4px;
  color: var(--ink); font: inherit;
  cursor: pointer;
  transition: background-color .18s;
}
.port:hover { background: var(--recess); }
.port .tape { order: 0; }
.port .portDesc { order: 1; }
.port .led { order: 2; }
.port .jack { order: 3; }

.led {
  width: 8px; height: 8px; border-radius: 50%;
  margin: auto 0 9px;
  background: var(--led-off);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
  transition: background-color .2s;
}

.jack {
  position: relative;
  width: 64px; height: 54px;
  background: var(--socket);
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45), 0 1px 0 var(--edge-hi);
  overflow: hidden;
}
.jack::before { /* contactos */
  content: "";
  position: absolute; left: 15px; right: 15px; top: 9px; height: 7px;
  background: repeating-linear-gradient(90deg, #C7A445 0 2px, transparent 2px 4.5px);
}
.jack::after { /* ranura del seguro */
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 9px; margin-left: -11px;
  background: #0E0F12;
}
.plug {
  position: absolute; inset: 5px 6px 0;
  z-index: 1;
  background: var(--c);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .28);
  transform: translateY(105%);
  transition: transform .34s var(--ease-out);
}
.port[aria-pressed="true"] .plug { transform: translateY(0); }
.port[aria-pressed="true"] .led { background: var(--led-on); }
.port[aria-pressed="true"] .tape::after {
  content: "";
  width: 7px; height: 7px; border-radius: 1px;
  background: var(--c);
}

.portDesc {
  margin: 10px 0 12px;
  font-size: .8125rem; line-height: 1.3;
  color: var(--ink-2);
  text-align: center;
  max-width: 15ch;
}

.cables {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.cables .sheath { fill: none; stroke: rgba(21, 23, 28, .22); stroke-width: 11; stroke-linecap: round; }
.cables .core { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; }
.cables .loose { fill: var(--c); }
.cables .draw { animation: draw .6s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

.tray {
  z-index: 3;
  margin-top: 92px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  min-height: 96px;
}
.trayInfo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.trayList { display: flex; flex-wrap: wrap; gap: 8px; }
.trayList .tape::before {
  content: "";
  width: 10px; height: 10px; border-radius: 1px;
  background: var(--c);
}
.trayEmpty { color: var(--ink-3); font-size: .9375rem; }
.trayActions { display: flex; gap: 12px; flex: none; }

/* ---------- Marcas (panel ciego) ---------- */

.brands {
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--pad);
  border-top-color: var(--edge-hi);
}
.brandsHead { flex: none; display: flex; align-items: center; gap: 12px; }
.brands h2 { flex: none; color: var(--ink-3); }
.brandPause {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: none; border: 0; border-radius: 3px;
  color: var(--ink-2); cursor: pointer;
  box-shadow: inset 0 0 0 1px #B9BDC6;
  transition: background-color .15s, color .15s;
}
.brandPause:hover { background: var(--recess); color: var(--ink); }
.brandPause svg { width: 16px; height: 16px; }
.brands.is-paused .brandTrack { animation-play-state: paused; }

/* Carrusel: una ventana hundida en el panel por donde pasan las marcas */
.brandWindow {
  flex: 1; min-width: 0;
  overflow: hidden;
  background: var(--recess);
  border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(21, 23, 28, .14), 0 1px 0 var(--edge-hi);
  padding: 12px 0;
}
.brandTrack { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.brandWindow:hover .brandTrack, .brandWindow:focus-within .brandTrack { animation-play-state: paused; }
.brandList { display: flex; gap: 12px; padding-right: 12px; }
.brandTile {
  display: grid; place-items: center;
  width: 168px; height: 76px;
  padding: 14px 22px;
  background: var(--tape);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(21, 23, 28, .16);
}
.brandTile img { max-width: 100%; max-height: 40px; width: auto; height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

.section { padding: calc(var(--u) * 2) var(--pad); }

.sectionHead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section h2 {
  font: 700 clamp(2.1rem, 3.7vw, 3.5rem)/1 var(--display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.sectionHead p { color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }

/* Servicios: equipos montados en el rack */
.units { display: grid; gap: 6px; }
.unit {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 200px;
  align-items: center;
  gap: 28px;
  min-height: calc(var(--u) * 2);
  padding: 22px var(--pad) 22px 36px;
  background:
    var(--screw) no-repeat 14px 12px,
    var(--screw) no-repeat 14px calc(100% - 12px),
    var(--screw) no-repeat calc(100% - 14px) 12px,
    var(--screw) no-repeat calc(100% - 14px) calc(100% - 12px),
    var(--face);
  border-top: 1px solid var(--edge-hi);
  border-bottom: 1px solid var(--edge-lo);
}
.unitJack {
  position: relative;
  justify-self: center;
  width: 38px; height: 32px;
  background: var(--socket);
  border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .45), 0 1px 0 var(--edge-hi);
}
.unitJack { overflow: hidden; }
.unitJack::before {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 14px; height: 6px; margin-left: -7px;
  background: #0E0F12;
}
.unitJack::after {
  content: "";
  position: absolute; inset: 4px 4px 0;
  background: var(--c);
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, .2);
  transform: translateY(105%);
  transition: transform .34s var(--ease-out);
}
.unit.is-on .unitJack::after, .unitMe .unitJack::after { transform: translateY(0); }
.unitBody { display: grid; gap: 6px; }
.unit h3 { font: 700 1.4rem/1.15 var(--display); }
.unit p { color: var(--ink-2); max-width: 68ch; }
.vents {
  justify-self: end;
  width: 154px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='40' viewBox='0 0 14 40'%3E%3Crect x='3.5' y='1' width='7' height='38' rx='3.5' fill='%23FFFFFF'/%3E%3Crect x='3.5' y='0' width='7' height='38' rx='3.5' fill='%2322252C'/%3E%3Crect x='3.5' y='0' width='7' height='5' rx='3.5' fill='%2310121A'/%3E%3C/svg%3E") repeat-x left center / 14px 40px;
}
.unitCta { justify-self: end; }

/* Portafolio: un cable por categoría */
.lines { border-top: 1px solid var(--line); }
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "cable toggle" "body body";
  row-gap: 14px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.lineCable {
  grid-area: cable;
  align-self: center;
  width: calc(100% - 34px);
  height: 36px;
  overflow: visible;
  opacity: .32;
  transition: width .4s var(--ease-out), opacity .2s;
}
.lineCable path {
  fill: none;
  stroke: var(--c);
  stroke-width: 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.line.is-on .lineCable { width: calc(100% - 10px); opacity: 1; }
.lineToggle {
  grid-area: toggle;
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  background: var(--socket); color: #fff;
  border: 0; border-radius: 3px;
  font: 600 .9375rem/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s;
}
.lineToggle:hover { background: #33373F; }
.lineToggle::before { /* cabeza del conector */
  content: "";
  position: absolute; left: -14px; top: 50%;
  width: 18px; height: 20px; margin-top: -10px;
  background: var(--c);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateX(-14px);
  transition: transform .34s var(--ease-out), opacity .2s;
}
.lineToggle[aria-pressed="true"]::before { opacity: 1; transform: translateX(0); }
.lineLed { width: 8px; height: 8px; border-radius: 50%; background: #6A6F79; transition: background-color .2s; }
.lineToggle[aria-pressed="true"] .lineLed { background: var(--led-on); }
.lineBody {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}
.line h3 { font: 700 1.6rem/1.1 var(--display); }
.tapes { display: flex; flex-wrap: wrap; gap: 8px; }
.tapes li {
  background: var(--tape);
  padding: 6px 11px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(21, 23, 28, .14);
  font-size: .9375rem; font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .lines:hover .line:not(:hover) .lineCable { opacity: .14; }
  .lines:hover .line:hover .lineCable { opacity: 1; }
}
.catalogNote { margin-top: 32px; }

/* Por qué M&E: la traza de la marca */
.why { background: var(--face); border-top: 1px solid var(--edge-hi); border-bottom: 1px solid var(--edge-lo); }
.whyTitle {
  font-size: clamp(2.4rem, 4.8vw, 4.5rem) !important;
  line-height: .98 !important;
  max-width: 17ch;
}
.whyTitle span { display: block; color: var(--ink-3); }
.trace { position: relative; margin-top: 72px; }
.traceLine {
  position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: 0;
  width: calc(100% + 2 * var(--pad)); height: 24px;
}
.traceLine path { stroke: var(--violet); stroke-width: 6; vector-effect: non-scaling-stroke; }
.nodes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.node {
  display: block;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 5.5px solid var(--violet);
  background: var(--face);
  margin-bottom: 22px;
}
.nodes h3 { font: 700 1.4rem/1.15 var(--display); margin-bottom: 8px; }
.nodes p { color: var(--ink-2); max-width: 40ch; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: calc(var(--u) * 2);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.about h3 { font: 700 1.4rem/1.15 var(--display); margin-bottom: 12px; }
.about p { color: var(--ink-2); max-width: 62ch; font-size: 1.0625rem; }
.mv { display: grid; gap: 28px; }
.mv dt { font: 600 .875rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.mv dd { color: var(--ink-2); max-width: 60ch; }

/* ---------- Contacto ---------- */

.contactGrid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.contactSide > p { color: var(--ink-2); font-size: 1.0625rem; margin-top: 16px; max-width: 42ch; }

.direct { margin-top: 32px; border-top: 1px solid var(--line); }
.directRow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.directRow svg { width: 24px; height: 24px; flex: none; }
.directRow span { display: grid; gap: 2px; font-size: 1.0625rem; }
.directRow strong { font: 600 .8125rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.directRow:hover { color: var(--violet); }
.directWa svg { color: var(--violet); }

.ship { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; color: var(--ink-2); }

.order { padding: 30px var(--pad) 34px; }
.orderHead { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.orderCats { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.orderCats legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .9375rem; }
.catChecks { display: flex; flex-wrap: wrap; gap: 8px; }
.catChip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px;
  padding: 0 12px 0 10px;
  background: transparent;
  border: 1px solid #B9BDC6; border-radius: 3px;
  color: var(--ink-2);
  font: 500 .9375rem/1 var(--text);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.catChip::before {
  content: "";
  width: 10px; height: 10px; border-radius: 1px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--c);
}
.catChip:hover { border-color: var(--ink-3); color: var(--ink); }
.catChip[aria-pressed="true"] { background: var(--tape); border-color: transparent; color: var(--ink); box-shadow: 0 1px 1px rgba(21, 23, 28, .16); }
.catChip[aria-pressed="true"]::before { background: var(--c); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; gap: 6px; }
.fieldWide { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: .9375rem; }
.field em { font-style: normal; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #B3B8C1; border-radius: 3px;
  color: var(--ink);
  font: 400 1rem/1.4 var(--text);
  caret-color: var(--violet);
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #6B707B; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.field [aria-invalid="true"] { border-color: var(--c-energia); }

.formError {
  margin-top: 18px;
  padding: 12px 14px;
  background: #FBE9E6; color: #8F1F15;
  border-radius: 3px;
  font-weight: 500;
}
.orderActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.orderNote { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }

/* ---------- Footer ---------- */

.footer {
  display: grid; gap: 44px;
  padding: 64px var(--pad) 30px;
}
.footTop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px 64px;
}
.footBrand { display: inline-flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; }
.footMark {
  width: 78px; height: 75px; flex: none;
  color: #FBF9FF; --mark-core: var(--violet); --mark-hole: var(--violet);
  filter: drop-shadow(0 0 5px rgba(124, 85, 236, .9)) drop-shadow(0 0 14px rgba(124, 85, 236, .55));
}
.footBrand .wordmark { align-items: flex-start; }
.footBrand .wmMain { font-size: 2.5rem; }
.footBrand .wmSub { margin-top: 7px; padding-left: 0; font-size: .8125rem; letter-spacing: .3em; }
.footer .footTag {
  justify-self: end;
  max-width: 32ch;
  font: 600 clamp(1.35rem, 2.3vw, 1.875rem)/1.15 var(--display);
  color: #fff;
  text-wrap: balance;
}
.footBottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 22px;
  border-top: 1px solid #343842;
}
.footer p { color: var(--plate-text); font-size: .9375rem; }
.footBottom a { color: #fff; text-underline-offset: 3px; text-decoration-color: var(--violet-lit); }
.footBottom a:hover { text-decoration-thickness: 2px; }
.footWa { font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer :focus-visible { outline-color: var(--violet-lit); }

.mobileBar { display: none; }

/* Textos largos justificados, solo donde la columna es ancha (en columnas angostas
   y en el teléfono el justificado abre ríos de espacio entre palabras) */
@media (min-width: 761px) {
  .sectionHead p, .unit p, .about p, .mv dd, .contactSide > p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-wrap: pretty;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .ports { gap: 6px; }
  .portDesc { font-size: .75rem; }
  .tape { font-size: .75rem; padding: 4px 6px 3px; }
}

@media (max-width: 1020px) {
  .heroHead, .sectionHead, .about, .contactGrid { grid-template-columns: 1fr; gap: 24px; }
  .heroHead {
    min-height: 0;
    background:
      linear-gradient(rgba(10, 11, 16, .7), rgba(10, 11, 16, .7)),
      linear-gradient(180deg, rgba(10, 11, 16, .4) 0%, rgba(10, 11, 16, 0) 30%, rgba(10, 11, 16, .6) 100%),
      url("../assets/hero-procesador.jpg") center 40% / cover no-repeat,
      var(--plate);
  }
  .heroStage { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 20px; }
  .lockup { order: -1; flex-direction: row; gap: 28px; padding: 18px 0; }
  .markWrap { --mw: 128px; }
  .lockup .wordmark { align-items: flex-start; }
  .lockup .wmSub { padding-left: 0; }
  .footTop { grid-template-columns: 1fr; }
  .footer .footTag { justify-self: start; }
  .contactGrid { gap: 48px; }
  .heroAside p { max-width: 52ch; }
  .links { display: none; }
  .navActions { margin-left: auto; }
  .menuBtn { display: inline-flex; }
  .navWa span { display: none; }
  .mobileMenu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    padding: 8px var(--pad) 16px;
    background: var(--face);
    border-bottom: 1px solid var(--edge-lo);
  }
  .mobileMenu.open { display: flex; }
  .mobileMenu a { padding: 13px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobileMenu a:last-child { border-bottom: 0; }
  .brands { flex-direction: column; align-items: stretch; gap: 14px; }
  .lineBody { grid-template-columns: 1fr; gap: 14px; }
  .unit { grid-template-columns: 60px minmax(0, 1fr); }
  .vents { display: none; }
  .unitCta { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; --rail-w: 10px; }
  .rack::before, .rack::after { background: var(--rail); }
  .panel, .unit { background: var(--face); }
  .nav { height: 64px; gap: 12px; }
  .navActions { gap: 4px; }
  .navActions .btnSm { display: none; }
  .navWa { width: 44px; height: 44px; justify-content: center; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .patchWrap { margin-top: 32px; }
  .patchBar { flex-direction: column; gap: 4px; }
  .ports { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
  .ports li { width: 25%; }
  .portDesc { display: none; }
  .jack { width: 52px; height: 44px; }
  .jack::before { left: 11px; right: 11px; }
  .tray { margin-top: 72px; flex-direction: column; align-items: stretch; }
  .cables .sheath { stroke-width: 8; }
  .cables .core { stroke-width: 6; }
  .trayActions { flex-direction: column; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .unit { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 22px var(--pad); }
  .unitJack { justify-self: start; margin-top: 2px; }
  .unitCta { grid-column: 2; }
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .nodes { grid-template-columns: 1fr; gap: 32px; padding-left: 40px; }
  .traceLine { display: none; }
  .nodes::before {
    content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px;
    width: 6px; background: var(--violet); border-radius: 3px;
  }
  .node { position: absolute; left: 0; margin: 0; }
  .nodes li { position: relative; }
  .nodes li .node { left: -40px; top: 0; }
  .fields { grid-template-columns: 1fr; }
  .orderActions .btn { flex: 1 1 100%; }
  .footer { padding-top: 48px; padding-bottom: 96px; background: var(--plate); }
  .footBottom { flex-direction: column; align-items: flex-start; }
  .heroHead { gap: 10px; padding-top: 14px; padding-bottom: 12px; }
  .heroStage { gap: 28px; padding: 16px 0 12px; }
  .lockup { gap: 18px; padding: 14px 0; }
  .markWrap { --mw: 84px; }
  .wmMain { font-size: 2.25rem; }
  .wmSub { font-size: .8125rem; letter-spacing: .28em; margin-top: 7px; }
  .plateVents { width: 72px; }
  .brandTile { width: 132px; height: 64px; padding: 12px 16px; }
  .brandTile img { max-height: 32px; }
  .brandTrack { animation-duration: 38s; }
  .mobileBar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--face);
    border-top: 1px solid var(--edge-lo);
  }
  .mobileBar .btn { min-height: 46px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .heroHead * { animation: none !important; }
  .tracePulses { display: none; }
  .brandTrack { animation: none; width: auto; }
  .brandList { flex-wrap: wrap; justify-content: center; padding: 0 12px; }
  .brandDup { display: none; }
  .brandPause { display: none; }
}

@media (max-width: 760px) {
  .port { padding: 8px 2px 10px; }
  .port .tape { font-size: .6875rem; padding: 4px 5px 3px; letter-spacing: .02em; }
  .port .tapeNum { display: none; }
}
@media (max-width: 760px) { .port[aria-pressed="true"] .tape::after { display: none; } }
