/* =========================================================
   SATCOM — Seguridad y Telecomunicaciones
   Sistema: central receptora / vigilancia / precisión técnica
   ========================================================= */

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/overpass-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/overpass-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/overpass-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/overpass-mono-500.ttf') format('truetype');
}

:root {
  --ink: #0a0e14;
  --ink-raised: #121821;
  --ink-raised-2: #171f2a;
  --line: rgba(231, 233, 236, 0.11);
  --line-strong: rgba(231, 233, 236, 0.2);
  --steel: #6b7684;
  --paper: #e7e9ec;
  --paper-dim: #9aa3ad;
  --signal: #0080c0;
  --signal-strong: #35a8e0;
  --signal-wash: rgba(0, 128, 192, 0.14);
  --signal-ink: #f0f8ff;
  --alert: #c1443a;

  --font-display: 'Overpass', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Overpass Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* =========================
   Fondo animado global
   ========================= */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 128, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 192, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: site-grid-drift 44s linear infinite;
}
.site-bg::before,
.site-bg::after {
  content: '';
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 128, 192, 0.12), transparent 70%);
  animation: site-blob-float 28s ease-in-out infinite;
}
.site-bg::before { top: -12%; left: -12%; }
.site-bg::after { bottom: -16%; right: -10%; animation-duration: 34s; animation-delay: -9s; }
@keyframes site-grid-drift { from { background-position: 0 0; } to { background-position: 52px 52px; } }
@keyframes site-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 5%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg { animation: none; }
  .site-bg::before, .site-bg::after { animation: none; }
}
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; flex: none; display: inline-block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

::selection { background: var(--signal); color: var(--ink); }

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

/* -------------------------------------------------
   Viewfinder brackets — signature interaction device
   Corner brackets appear on hover/focus, like a camera
   autofocus frame locking onto the element.
   ------------------------------------------------- */
.viewfinder {
  position: relative;
}
.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-tl,
.viewfinder .vf-br {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--signal);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.viewfinder::before {
  top: -6px; left: -6px;
  border-right: none; border-bottom: none;
  transform: translate(4px, 4px);
}
.viewfinder::after {
  bottom: -6px; right: -6px;
  border-left: none; border-top: none;
  transform: translate(-4px, -4px);
}
.viewfinder:hover::before,
.viewfinder:hover::after,
.viewfinder:focus-visible::before,
.viewfinder:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* -------------------------------------------------
   Reveal — aparición suave de bloques (imágenes, tarjetas)
   ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------
   Letter reveal — el texto aparece letra a letra
   ------------------------------------------------- */
.lr-text {
  display: inline;
}
.lr-word {
  display: inline-block;
  white-space: nowrap;
}
.lr-space {
  display: inline-block;
  white-space: pre;
}
.lr-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
}
.lr-visible .lr-letter {
  animation: lr-in 0.6s var(--ease) forwards;
  animation-delay: calc(var(--lr-i, 0) * var(--lr-step, 16ms));
}
@keyframes lr-in {
  to { opacity: 1; transform: translateY(0); }
}
.lr-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .lr-letter { opacity: 1; transform: none; animation: none; }
}

/* -------------------------------------------------
   Typewriter — el titular del hero se escribe letra a
   letra y termina en un cursor que parpadea
   ------------------------------------------------- */
.tw-letter {
  opacity: 0;
}
.tw-visible .tw-letter {
  animation: tw-pop 1ms steps(1, end) forwards;
  animation-delay: calc(var(--tw-i, 0) * var(--tw-step, 42ms));
}
@keyframes tw-pop {
  to { opacity: 1; }
}
.tw-cursor {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--signal-strong);
  opacity: 0;
}
.tw-visible .tw-cursor {
  animation: tw-blink 0.9s steps(1, end) infinite;
  animation-delay: var(--tw-cursor-delay, 0ms);
}
@keyframes tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-letter { opacity: 1; animation: none; }
  .tw-cursor { opacity: 1; animation: none; }
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 18%, var(--signal-strong) 50%, var(--signal) 82%, transparent 100%);
  background-size: 220% 100%;
  animation: tron-scan 5s linear infinite;
  opacity: 0.85;
}
@keyframes tron-scan {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::before { animation: none; background-position: 0 0; }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* =========================
   Logo — iluminación blanca con latido
   ========================= */
.logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.logo-panel--sm .brand__logo { height: 30px; width: auto; display: block; }
.logo-panel--lg .hero__brand-logo { width: min(1100px, 94vw); height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .logo-panel--sm .brand__logo { filter: none; }
}

/* Uno u otro, nunca los dos a la vez */
.header-logo { opacity: 0; transform: scale(0.85); pointer-events: none; }
.header-logo.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* =========================
   Logo grande — hero
   ========================= */
.hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-main a:not(.btn) {
  position: relative;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--paper-dim);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-main a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-main a:not(.btn):hover,
.nav-main a:not(.btn):focus-visible {
  color: var(--paper);
}
.nav-main a:not(.btn):hover::after,
.nav-main a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.86rem; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-dim);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--signal); }
.nav-phone .icon--phone { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background: var(--signal);
  color: var(--signal-ink);
}
.btn--solid:hover, .btn--solid:focus-visible { background: var(--signal-strong); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
}

.nav-credential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
}
.nav-credential__led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-strong);
  box-shadow: 0 0 0 3px var(--signal-wash);
  flex: none;
  animation: rec-blink 1.4s steps(2, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav-credential__led { animation: none; }
}
@media (max-width: 1100px) {
  .nav-credential { display: none; }
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 60px;
}
.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,20,0.2) 0%, rgba(10,14,20,0.4) 62%, var(--ink) 100%),
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, rgba(10,14,20,0.35) 58%, rgba(10,14,20,0.05) 88%);
  z-index: 1;
}
@media (max-width: 900px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(10,14,20,0.3) 0%, rgba(10,14,20,0.55) 55%, var(--ink) 100%),
      linear-gradient(180deg, var(--ink) 0%, rgba(10,14,20,0.55) 40%, rgba(10,14,20,0.55) 100%);
  }
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

/* Rejilla Tron — reacciona al puntero/dedo */
.hero__grid-base,
.hero__grid-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 128, 192, var(--grid-a, 0.06)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 192, var(--grid-a, 0.06)) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero__grid-base { --grid-a: 0.055; }
.hero__grid-glow {
  --grid-a: 0.4;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 20%), #000 0%, transparent 72%);
  mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 20%), #000 0%, transparent 72%);
  transition: -webkit-mask-position 0.05s linear;
}

/* Efecto televisor averiado */
.hero__crt {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  animation: crt-glitch 7s infinite steps(1, end);
}
@keyframes crt-glitch {
  0%, 91%, 100% { opacity: 0.45; transform: translate(0, 0); filter: none; }
  91.3% { opacity: 0.85; transform: translate(3px, -1px); filter: hue-rotate(20deg) saturate(2); }
  91.6% { opacity: 0.2; transform: translate(-4px, 1px); filter: none; }
  92% { opacity: 0.7; transform: translate(2px, 0); filter: hue-rotate(-15deg); }
  92.3% { opacity: 0.45; transform: translate(0, 0); filter: none; }
  96.5%, 97% { opacity: 0.45; transform: translate(0, -2px); filter: none; }
  97.2% { opacity: 0.8; transform: translate(-3px, 2px); filter: hue-rotate(10deg) saturate(1.8); }
  97.5% { opacity: 0.45; transform: translate(0, 0); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__crt { animation: none; opacity: 0.35; }
}

.hero__content { max-width: 760px; }

.hero__credential {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  margin-bottom: 28px;
}
.hero__credential .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-wash);
  flex: none;
}
.hero__credential strong { color: var(--paper); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw + 0.5rem, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--paper);
  max-width: 15ch;
}

.hero__sub {
  margin-top: 26px;
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 52ch;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero__scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
}
.hero__scroll-cue .line {
  width: 32px; height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue .line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--signal);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue .line::after { animation: none; }
}

/* =========================
   Iconos — badges de dispositivo
   ========================= */
.icon-badge {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink-raised);
  color: var(--signal);
  position: relative;
  overflow: hidden;
}
.icon-badge .icon { width: 21px; height: 21px; flex: none; }
.icon-badge--sm { width: 34px; height: 34px; border-radius: 8px; }
.icon-badge--sm .icon { width: 16px; height: 16px; }
.icon-badge--lg { width: 58px; height: 58px; border-radius: 12px; }
.icon-badge--lg .icon { width: 28px; height: 28px; }
.icon-badge--block { margin-bottom: 16px; }

/* Cámara — barrido de escaneo */
.icon-badge--camera::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  background: linear-gradient(90deg, transparent, var(--signal-wash) 45%, transparent);
  transform: translateX(-140%);
  animation: cam-sweep 3.4s var(--ease) infinite;
}
@keyframes cam-sweep {
  0%, 8% { transform: translateX(-140%); }
  50%, 58% { transform: translateX(220%); }
  100% { transform: translateX(220%); }
}

/* Alarma — anillos de pulso */
.icon-badge--alarm::before,
.icon-badge--alarm::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--signal);
  opacity: 0;
  animation: alarm-ping 2.6s var(--ease) infinite;
}
.icon-badge--alarm::after { animation-delay: 1.3s; }
@keyframes alarm-ping {
  0% { transform: scale(0.92); opacity: 0.75; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Teclado de acceso — teclas parpadeando */
.keypad-mini {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
}
.keypad-mini span {
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--paper-dim);
  animation: key-blink 4.2s ease-in-out infinite;
}
.keypad-mini span:nth-child(1) { animation-delay: 0s; }
.keypad-mini span:nth-child(2) { animation-delay: 0.22s; }
.keypad-mini span:nth-child(3) { animation-delay: 0.44s; }
.keypad-mini span:nth-child(4) { animation-delay: 0.66s; }
.keypad-mini span:nth-child(5) { animation-delay: 0.88s; }
.keypad-mini span:nth-child(6) { animation-delay: 1.1s; }
@keyframes key-blink {
  0%, 82%, 100% { background: var(--paper-dim); }
  86%, 94% { background: var(--signal); }
}

/* Teléfono — vibración sutil periódica */
.icon--phone {
  animation: phone-ring 5s ease-in-out infinite;
  transform-origin: 50% 15%;
}
@keyframes phone-ring {
  0%, 92%, 100% { transform: rotate(0); }
  93% { transform: rotate(-11deg); }
  94.5% { transform: rotate(9deg); }
  96% { transform: rotate(-6deg); }
  97.5% { transform: rotate(4deg); }
  99% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-badge--camera::after,
  .icon-badge--alarm::before,
  .icon-badge--alarm::after,
  .keypad-mini span,
  .icon--phone { animation: none; }
}

/* =========================
   Franja de monitorización en vivo
   ========================= */
.live-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
  padding: clamp(28px, 4vw, 40px) 0;
}
.live-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.live-card {
  background: var(--ink);
  padding: 22px clamp(16px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.live-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(193, 68, 58, 0.2);
  flex: none;
  animation: rec-blink 1.4s steps(2, end) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }
.live-card__label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card__time {
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
@media (max-width: 720px) {
  .live-strip__grid { grid-template-columns: 1fr; }
}

/* =========================
   Monitor — feed en directo (demo)
   ========================= */
.monitor {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 128, 192, 0.35);
}
.monitor__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink-raised);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}
.monitor__rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--alert);
  font-weight: 600;
}
.monitor__rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(193, 68, 58, 0.2);
  animation: rec-blink 1.4s steps(2, end) infinite;
}
.monitor__label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.monitor__led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal-strong);
  box-shadow: 0 0 0 3px var(--signal-wash);
  flex: none;
  animation: led-blink 1.8s ease-in-out infinite;
}
@keyframes led-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--signal-wash); }
  50% { opacity: 0.35; box-shadow: 0 0 0 6px transparent; }
}
.monitor__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.monitor__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .monitor__rec-dot, .monitor__led { animation: none; }
}

/* =========================
   Equipos que instalamos
   ========================= */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}
.equipment-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-raised);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.equipment-card:hover {
  transform: translateY(-4px);
  border-color: var(--signal);
}
.equipment-card__photo {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--line);
}
.equipment-card__photo .icon-badge { width: 64px; height: 64px; border-radius: 14px; }
.equipment-card__photo .icon-badge .icon { width: 30px; height: 30px; }
.equipment-card__photo .keypad-mini { grid-template-columns: repeat(3, 7px); grid-template-rows: repeat(2, 7px); gap: 4px; }
.equipment-card__photo .keypad-mini span { width: 7px; height: 7px; }
.equipment-card__photo--img { padding: 0; }
.equipment-card__photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
  transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}
.equipment-card:hover .equipment-card__photo--img img {
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.04);
}
.equipment-card__body { padding: 18px clamp(14px, 2vw, 20px) 22px; }
.equipment-card__brand {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--signal);
  text-transform: uppercase;
}
.equipment-card__name {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--paper);
}
.equipment-card__desc {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--paper-dim);
}
@media (max-width: 900px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .equipment-grid { grid-template-columns: 1fr; }
}

/* =========================
   Tecnología — bloques con foto real
   ========================= */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row--reverse .feature-row__body { order: 1; }

.feature-row__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-raised);
  box-shadow: 0 30px 80px -34px rgba(0, 128, 192, 0.35);
}
.feature-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.96);
}

/* Esquinas de encuadre — permanentes, no solo al hover */
.frame-corners::before,
.frame-corners::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--signal-strong);
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}
.frame-corners::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}
.frame-corners::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}

.feature-row__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--signal);
  margin-bottom: 14px;
}
.feature-row__body h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  max-width: 22ch;
}
.feature-row__body > p {
  margin-top: 16px;
  color: var(--paper-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 54ch;
}

.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--paper-dim);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 52ch;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 14px; height: 1px;
  background: var(--signal);
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }
  .feature-row--reverse .feature-row__media,
  .feature-row--reverse .feature-row__body,
  .feature-row .feature-row__media,
  .feature-row .feature-row__body {
    order: initial;
  }
  .feature-row__media img { aspect-ratio: 16 / 10; }
}

/* =========================
   Section scaffolding
   ========================= */
section { position: relative; }
.section {
  padding: clamp(64px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.section__head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section__head p {
  color: var(--paper-dim);
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.6;
}
.section__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  white-space: nowrap;
}

/* =========================
   Protegemos — hogar / negocio split
   ========================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.split__divider { background: var(--line); }
.split__col h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--signal);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.split__col p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--paper);
  max-width: 42ch;
}
.split__col p + p {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--paper-dim);
  max-width: 46ch;
}

/* =========================
   Servicios — index list
   ========================= */
.service-row {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.service-row__name {
  flex: 1;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
.service-row:hover .service-row__name,
.service-row.is-open .service-row__name { color: var(--signal); }

.service-row__tagline {
  color: var(--paper-dim);
  font-size: 0.98rem;
  flex: none;
  max-width: 32ch;
  text-align: right;
  display: none;
}
@media (min-width: 760px) {
  .service-row__tagline { display: block; }
}

.service-row__toggle {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.service-row__toggle::before,
.service-row__toggle::after {
  content: '';
  position: absolute;
  background: var(--paper-dim);
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.service-row__toggle::before { left: 4px; right: 4px; top: 50%; height: 1px; margin-top: -0.5px; }
.service-row__toggle::after { top: 4px; bottom: 4px; left: 50%; width: 1px; margin-left: -0.5px; }
.service-row.is-open .service-row__toggle::after { transform: rotate(90deg); opacity: 0; }
.service-row:hover .service-row__toggle::before,
.service-row:hover .service-row__toggle::after,
.service-row.is-open .service-row__toggle::before {
  background: var(--signal);
}

.service-row__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.service-row.is-open .service-row__body { grid-template-rows: 1fr; }
.service-row__body-inner { overflow: hidden; }
.service-row__body p {
  padding-top: 18px;
  max-width: 62ch;
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.65;
}

/* =========================
   Proceso — pasos numerados (secuencia real)
   ========================= */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process__step {
  background: var(--ink);
  padding: 36px clamp(20px, 3vw, 32px);
}
.process__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.process__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal);
}
.process__step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.process__step p {
  color: var(--paper-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* =========================
   Fotos de fondo — Equipos / Confianza
   ========================= */
#equipos, #confianza { position: relative; overflow: hidden; }
#equipos::before, #confianza::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: saturate(0.45) contrast(1.05) brightness(0.85);
}
#equipos::before {
  background-image:
    linear-gradient(180deg, rgba(10, 14, 20, 0.85) 0%, rgba(10, 14, 20, 0.93) 45%, var(--ink) 100%),
    linear-gradient(0deg, rgba(0, 128, 192, 0.16), rgba(0, 128, 192, 0.16)),
    url('../img/photos/cameras.jpg');
}
#confianza::before {
  background-image:
    linear-gradient(180deg, rgba(10, 14, 20, 0.85) 0%, rgba(10, 14, 20, 0.93) 45%, var(--ink) 100%),
    linear-gradient(0deg, rgba(0, 128, 192, 0.16), rgba(0, 128, 192, 0.16)),
    url('../img/photos/keypad.jpg');
}
#equipos > .wrap, #confianza > .wrap { position: relative; z-index: 1; }

/* =========================
   Confianza
   ========================= */
.trust {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.trust__badge {
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 3vw, 36px);
}
.trust__badge .num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--signal);
  line-height: 1;
  display: block;
}
.trust__badge .label {
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 40ch;
}
.trust__points { display: flex; flex-direction: column; gap: 22px; }
.trust__point { border-top: 1px solid var(--line); padding-top: 20px; }
.trust__point-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.trust__point h4 { font-size: 1.02rem; font-weight: 700; }
.trust__point p { color: var(--paper-dim); font-size: 0.96rem; line-height: 1.6; max-width: 48ch; }

/* =========================
   Contacto — estilo circuito/Tron
   ========================= */
#contacto { position: relative; overflow: hidden; }
#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 128, 192, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 192, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
#contacto > .wrap { position: relative; z-index: 1; }

.tron-frame {
  position: relative;
  border-radius: 6px;
  isolation: isolate;
}
.tron-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 82%, var(--signal-strong) 92%, transparent 100%);
  animation: tron-rotate 4.5s linear infinite;
  z-index: -2;
}
.tron-frame::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--ink-raised);
  z-index: -1;
}
@keyframes tron-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tron-frame::before { animation: none; }
}

/* -------------------------------------------------
   Tron border — anillo de luz recorriendo el borde
   de forma constante (equipos, monitor, confianza)
   ------------------------------------------------- */
@property --tron-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes tron-border-spin {
  to { --tron-angle: 360deg; }
}
.equipment-card,
.monitor,
.trust__badge {
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(var(--tron-fill), var(--tron-fill)),
    conic-gradient(from var(--tron-angle), transparent 0%, var(--signal-strong) 10%, transparent 24%, transparent 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: tron-border-spin 5s linear infinite;
}
.equipment-card { --tron-fill: var(--ink-raised); }
.monitor { --tron-fill: #000; }
.trust__badge { --tron-fill: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .equipment-card, .monitor, .trust__badge { animation: none; }
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(24px, 3vw, 36px);
}
.contact__form { padding: clamp(24px, 3vw, 36px); }
.contact__phone { display: flex; flex-direction: column; gap: 8px; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.contact__line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  transition: color 0.2s var(--ease);
}
.contact__line .icon--phone { width: 20px; height: 20px; flex: none; color: var(--signal); }
.contact__line:hover { color: var(--signal); }
.contact__meta { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.7; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--paper-dim);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px var(--signal-wash), 0 0 16px rgba(0, 128, 192, 0.25);
}
.field input, .field textarea { transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { resize: vertical; min-height: 110px; }

.radio-group { display: flex; gap: 10px; }
.radio-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-group label {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.92rem;
  color: var(--paper-dim);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.radio-group input:checked + label {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-wash);
}
.radio-group input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--steel);
  display: none;
}
.form-note.is-visible { display: block; }

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.85rem;
  color: var(--paper-dim);
}
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--signal); }
.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
}

/* =========================
   Legal pages
   ========================= */
.legal-page {
  padding: calc(60px + clamp(48px, 8vw, 96px)) 0 96px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 48px;
  display: block;
}
.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
}
.legal-page p, .legal-page li {
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 66ch;
}
.legal-page ul { margin-top: 12px; }
.legal-page li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal-page li::before {
  content: '';
  position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--signal);
}
.legal-page .pending {
  color: var(--signal);
  font-style: normal;
}
.legal-page a { color: var(--paper); text-decoration-color: var(--line-strong); }
.legal-page a:hover { color: var(--signal); }

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__divider { display: none; }
  .trust { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }

  /* Menú móvil — puerta corredera: fijo a la pantalla, independiente del scroll */
  .nav-main {
    position: fixed;
    top: 60px; left: 0; right: 0;
    height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 24px;
    overflow-y: auto;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.45s;
    z-index: 99;
  }
  .site-header.menu-open .nav-main {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  .nav-phone { font-size: 1.1rem; }
  .nav-main .btn { width: 100%; justify-content: center; }

  .hero__scroll-cue { display: none; }
  .service-row__tagline { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { max-width: none; }
}
