/* ============================================================
   AS SISTEMAS — style.css — v5.3
   Identidad: HUD táctico moderno / sistema de seguridad industrial
   Paleta: fondo #070809 + acento naranja #FF5C1A + verde #39ff8a
   v5.3: Parallax hero, reveal cinematográfico servicios,
         parallax panorámica nosotros
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg:      #070809;
  --bg2:     #0d0f11;
  --or:      #FF5C1A;
  --wh:      #e8e6e1;
  --mid:     #cdd0d5;
  --dim:     #5a5d62;
  --dim2:    #1a1d20;
  --gr:      #39ff8a;
  --brd:     rgba(255,255,255,0.055);
  --cond:    'Bebas Neue', sans-serif;
  --body:    'Barlow', sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

/* ---------- BASE ---------- */
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--wh);
  overflow-x: hidden;
  cursor: none;
}

/* Scanlines sobre toda la página */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,.07) 2px, rgba(0,0,0,.07) 4px
  );
  pointer-events: none;
  z-index: 900;
}

/* Grid de fondo tenue */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,92,26,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,92,26,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Corner marks decorativos */
.co { position: fixed; width: 18px; height: 18px; pointer-events: none; z-index: 50; }
.co-tl { top: 0; left: 0; border-top: 1px solid rgba(255,92,26,.25); border-left: 1px solid rgba(255,92,26,.25); }
.co-tr { top: 0; right: 0; border-top: 1px solid rgba(255,92,26,.25); border-right: 1px solid rgba(255,92,26,.25); }
.co-bl { bottom: 0; left: 0; border-bottom: 1px solid rgba(255,92,26,.25); border-left: 1px solid rgba(255,92,26,.25); }
.co-br { bottom: 0; right: 0; border-bottom: 1px solid rgba(255,92,26,.25); border-right: 1px solid rgba(255,92,26,.25); }

/* ---------- CURSOR PERSONALIZADO ---------- */
#cur {
  width: 8px; height: 8px;
  background: var(--or);
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  box-shadow: 0 0 10px rgba(255,92,26,.6);
}
#curR {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,92,26,.45);
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  clip-path: polygon(
    0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 0 calc(100% - 8px)
  );
}

/* ---------- LAYOUT PRINCIPAL ---------- */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 10;
}

/* ---------- TOPBAR ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--brd);
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7,8,9,.97);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.topbar-scan {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--or);
  width: 0;
  animation: scanH 2.5s .3s ease forwards;
}
@keyframes scanH { to { width: 100%; } }

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.bracket {
  font-size: .7rem;
  color: rgba(255,92,26,.5);
  letter-spacing: 1px;
}
.logo-name {
  font-family: var(--cond);
  font-size: 1.15rem;
  letter-spacing: 5px;
  color: var(--wh);
}
.logo-loc {
  font-size: .55rem;
  letter-spacing: 2px;
  color: var(--dim);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}
.nav-links a:hover { color: var(--wh); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.s-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 8px var(--or);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.sys-tag {
  font-size: .55rem;
  color: var(--dim);
  letter-spacing: 2px;
  border: 1px solid var(--dim2);
  padding: 4px 10px;
}
.nav-cta {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid rgba(255,92,26,.35);
  padding: 7px 16px;
  text-decoration: none;
  cursor: none;
  transition: all .2s;
}
.nav-cta:hover { background: rgba(255,92,26,.08); }

/* Botón de sonido */
.snd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 1px solid var(--brd);
  padding: 5px 10px;
  cursor: none;
  transition: all .2s;
}
.snd-btn:hover { color: var(--wh); border-color: rgba(255,255,255,.12); }
.snd-btn.on { color: var(--or); border-color: rgba(255,92,26,.35); }
.snd-btn svg { width: 11px; height: 11px; stroke: currentColor; flex-shrink: 0; }

/* ---------- CONTENIDO PRINCIPAL ---------- */
.main {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
}
.content {
  border-right: 1px solid var(--brd);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO — Parallax + Slow Zoom "efecto CCTV"
   v5.3: La imagen arranca con zoom 1.12 y baja a 1.0 en 8s,
   el parallax se maneja desde JS (translateY en .hero-bg img)
   ============================================================ */
.hero-panel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--brd);
  min-height: 420px;
}

/* Imagen de fondo — base para parallax */
.hero-bg {
  position: absolute;
  inset: -60px 0 0 0; /* espacio extra arriba para el desplazamiento parallax */
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: calc(100% + 60px);
  object-fit: cover;
  object-position: center 30%;
  /* Slow zoom CCTV: arranca en 1.12, baja a 1.0 en 8 segundos */
  transform: scale(1.12);
  animation: heroZoom 8s 0.2s cubic-bezier(.25,.46,.45,.94) forwards;
  will-change: transform;
}
@keyframes heroZoom {
  to { transform: scale(1.0); }
}
.hero-bg-mobile { display: none; }

/* Overlay gradiente para legibilidad del texto — más sutil */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7,8,9,.82) 0%, rgba(7,8,9,.55) 55%, rgba(7,8,9,.3) 100%);
}

/* Contenido del hero sobre la imagen */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 40px 36px;
}

.hero-line {
  position: absolute;
  right: 64px; top: 0; bottom: 0;
  width: 1px;
  overflow: hidden;
  pointer-events: none;
}
.hero-line::after {
  content: '';
  position: absolute;
  left: 0; width: 1px; height: 80px;
  background: linear-gradient(transparent, var(--or), transparent);
  animation: fallLine 2.2s linear infinite;
}
@keyframes fallLine { 0% { top: -80px; opacity: 1; } 100% { top: 100%; opacity: .3; } }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 24px;
  opacity: 0;
  animation: up .5s .3s ease forwards;
}
.hero-tag-line { width: 28px; height: 1px; background: var(--or); }

.hero-title {
  font-family: var(--cond);
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: .93;
  letter-spacing: .5px;
  margin-bottom: 22px;
  opacity: 0;
  animation: up .6s .45s ease forwards;
}
.hero-title .w { display: block; color: var(--wh); }
.hero-title .o { display: block; color: var(--or); }

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 28px;
  opacity: 0;
  animation: up .5s .6s ease forwards;
}
.hero-desc strong { color: var(--wh); font-weight: 600; }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: up .5s .75s ease forwards;
}
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: var(--or);
  color: #000;
  font-family: var(--cond);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all .2s;
}
.btn-main:hover { background: #d94a0e; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: transparent;
  border: 1px solid var(--brd);
  color: var(--mid);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.15); color: var(--wh); }

/* ---------- TICKER ---------- */
.ticker {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--brd);
  overflow: hidden;
  height: 38px;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  height: 38px;
  font-size: .6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  border-right: 1px solid var(--brd);
}
.ticker-item span { color: var(--or); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   SERVICIOS — Reveal cinematográfico escalonado
   v5.3: Las tarjetas entran desde la izquierda con clip-path
   que simula un "escaneo" del sistema, más zoom sutil en imagen
   ============================================================ */
.servicios-panel {
  padding: 28px 40px;
  border-bottom: 1px solid var(--brd);
}
.sec-tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-tag::before { content: '//'; color: rgba(255,92,26,.4); }

/* --- Tarjetas de servicio con imagen --- */
.srv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--brd);
  border: 1px solid var(--brd);
}

.srv-card {
  background: var(--bg);
  cursor: none;
  transition: background .3s;
  overflow: hidden;
}
.srv-card:hover { background: rgba(255,92,26,.02); }

/* --- Reveal cinematográfico: estado inicial oculto --- */
.srv-card.rv {
  opacity: 0;
  transform: translateX(-30px) translateY(16px);
  transition:
    opacity .7s cubic-bezier(.16,1,.3,1),
    transform .7s cubic-bezier(.16,1,.3,1);
}
/* Estado activo — cada tarjeta con delay escalonado desde JS */
.srv-card.rv.in {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Línea de escaneo naranja que barre la tarjeta al aparecer */
.srv-card.rv.in::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(transparent, var(--or), transparent);
  z-index: 5;
  animation: srvScan .6s ease forwards;
  pointer-events: none;
}
@keyframes srvScan {
  0%   { left: 0; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.srv-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.srv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  filter: saturate(.7) brightness(.8);
}
.srv-card:hover .srv-card-img img {
  transform: scale(1.05);
  filter: saturate(1) brightness(.9);
}

/* Imagen hace zoom sutil al entrar en viewport */
.srv-card.rv .srv-card-img img {
  transform: scale(1.08);
}
.srv-card.rv.in .srv-card-img img {
  transform: scale(1.0);
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94), filter .5s ease;
}
.srv-card.rv.in:hover .srv-card-img img {
  transform: scale(1.05);
}

/* Número superpuesto sobre la imagen */
.srv-card-img .srv-num {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-family: var(--cond);
  font-size: 3rem;
  color: rgba(255,92,26,.25);
  line-height: 1;
  transition: color .3s;
  text-shadow: 0 0 20px rgba(0,0,0,.8);
}
.srv-card:hover .srv-card-img .srv-num { color: rgba(255,92,26,.6); }

/* Borde naranja inferior en la imagen al hover */
.srv-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.srv-card:hover .srv-card-img::after { transform: scaleX(1); }

.srv-card-body {
  padding: 18px 20px 22px;
}

.srv-title {
  font-family: var(--cond);
  font-size: 1.15rem;
  color: var(--wh);
  margin-bottom: 6px;
  letter-spacing: .5px;
  transition: color .2s;
}
.srv-card:hover .srv-title { color: var(--or); }

.srv-text {
  font-size: .82rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
}

/* ---------- NOSOTROS ---------- */
.info-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--brd);
}
.info-left {
  padding: 28px 40px;
  border-right: 1px solid var(--brd);
}
.info-right { padding: 28px 40px; }

.about-title {
  font-family: var(--cond);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1;
  color: var(--wh);
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.about-title .o { color: var(--or); }

.about-p {
  font-size: .92rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 12px;
}
.about-p strong { color: var(--wh); font-weight: 600; }

/* Galería de fotos en Nosotros — reveal mejorado */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.about-gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brd);
}
.about-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .5s ease;
  filter: saturate(.6) brightness(.75);
}
.about-gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(.9) brightness(.85);
}

/* Reveal con zoom para galería */
.about-gallery.rv .about-gallery-item img {
  transform: scale(1.1);
}
.about-gallery.rv.in .about-gallery-item img {
  transform: scale(1.0);
  transition: transform 1s cubic-bezier(.25,.46,.45,.94), filter .5s ease;
}
.about-gallery.rv.in .about-gallery-item:hover img {
  transform: scale(1.06);
}
/* Delay escalonado para cada foto de la galería */
.about-gallery.rv.in .about-gallery-item:nth-child(2) img {
  transition-delay: .15s;
}

.about-gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(7,8,9,.9));
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
}

/* ============================================================
   Panorámica — Parallax suave
   v5.3: La imagen se mueve más lento que el scroll,
   controlado por JS (translateY sobre el img)
   ============================================================ */
.about-panorama {
  margin-top: 14px;
  border: 1px solid var(--brd);
  overflow: hidden;
  position: relative;
}
.about-panorama img {
  width: 100%;
  height: 200px; /* un poco más alto para margen de parallax */
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter .5s ease;
  filter: saturate(.7) brightness(.8);
  will-change: transform;
}
.about-panorama:hover img {
  filter: saturate(.9) brightness(.85);
}

/* Imagen showroom en la columna derecha */
.about-showroom {
  margin-top: 18px;
  border: 1px solid var(--brd);
  overflow: hidden;
}
.about-showroom img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform .5s ease, filter .5s ease;
  filter: saturate(.7) brightness(.8);
}
.about-showroom:hover img {
  transform: scale(1.04);
  filter: saturate(.9) brightness(.85);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--brd);
}
.stat {
  background: var(--bg);
  padding: 18px 16px;
}
.stat-n {
  font-family: var(--cond);
  font-size: 2.4rem;
  color: var(--or);
  display: block;
  line-height: 1;
}
.stat-l {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
  display: block;
}

.feat-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.feat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--brd);
}
.feat-row:first-child { border-top: 1px solid var(--brd); }
.feat-ok {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gr);
  flex-shrink: 0;
}
.feat-row span:last-child {
  font-size: .85rem;
  font-weight: 300;
  color: var(--mid);
}

/* ---------- CONTACTO ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-left {
  padding: 28px 40px;
  border-right: 1px solid var(--brd);
}
.contact-right { padding: 28px 40px; }

.contact-title {
  font-family: var(--cond);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: .93;
  letter-spacing: .5px;
  color: var(--wh);
  margin-bottom: 24px;
}
.contact-title .o { color: var(--or); }

.c-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brd);
  text-decoration: none;
  cursor: none;
  transition: all .2s;
}
.c-row:first-child { border-top: 1px solid var(--brd); }
.c-row:hover .c-label { color: var(--wh); }
.c-tag {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  width: 60px;
  flex-shrink: 0;
}
.c-label {
  font-size: .9rem;
  font-weight: 300;
  color: var(--mid);
  transition: color .2s;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  margin-top: 20px;
  background: #25D366;
  color: #000;
  font-family: var(--cond);
  font-size: .85rem;
  letter-spacing: 3px;
  text-decoration: none;
  cursor: none;
  transition: background .2s;
}
.wa-btn:hover { background: #1eba59; }
.wa-btn svg { width: 16px; height: 16px; fill: #000; }

/* Formulario */
.form-head {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-head::before { content: '//'; color: rgba(255,92,26,.4); }

.fg { margin-bottom: 16px; }
.fg label {
  display: block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.fg input, .fg textarea, .fg select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--brd);
  color: var(--wh);
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 300;
  padding: 8px 0;
  outline: none;
  transition: border-color .2s;
  cursor: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-bottom-color: var(--or); }
.fg textarea { height: 70px; resize: none; }
.fg select option { background: #111; color: var(--wh); }
.fg select { color: var(--mid); }

.form-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--or);
  color: var(--or);
  font-family: var(--body);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: none;
  transition: all .2s;
  width: 100%;
  margin-top: 4px;
}
.form-send:hover { padding-right: 6px; }
.form-send svg { width: 15px; height: 15px; stroke: currentColor; transition: transform .2s; }
.form-send:hover svg { transform: translate(3px,-3px); }

/* Feedback visual del formulario */
.form-feedback {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all .4s ease;
  border-left: 2px solid transparent;
}
.form-feedback.show {
  padding: 10px 14px;
  max-height: 60px;
  margin-bottom: 12px;
}
.form-feedback.success {
  color: var(--gr);
  border-left-color: var(--gr);
  background: rgba(57,255,138,.05);
}
.form-feedback.error {
  color: var(--or);
  border-left-color: var(--or);
  background: rgba(255,92,26,.05);
}
.form-send:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
}
.sb {
  padding: 20px 24px;
  border-bottom: 1px solid var(--brd);
  opacity: 0;
  animation: up .5s ease forwards;
}
.sb:nth-child(1) { animation-delay: .4s; }
.sb:nth-child(2) { animation-delay: .55s; }
.sb:nth-child(3) { animation-delay: .7s; }
.sb:nth-child(4) { animation-delay: .85s; }

.sb-lbl {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-lbl::before { content: ''; width: 4px; height: 4px; background: var(--or); }
.sb-val {
  font-family: var(--cond);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--wh);
}
.sb-sub {
  font-size: .6rem;
  font-weight: 300;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 2px;
}
.sb-mono {
  font-size: .9rem;
  font-weight: 400;
  color: var(--wh);
  letter-spacing: .5px;
}
.sb-a {
  display: block;
  font-size: .82rem;
  color: var(--or);
  text-decoration: none;
  cursor: none;
  margin-top: 2px;
  transition: opacity .2s;
}
.sb-a:hover { opacity: .6; }

/* Barras de señal */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: 8px;
}
.bar {
  width: 9px;
  background: var(--dim2);
  transition: background .3s;
}
.bar:nth-child(1) { height: 8px; }
.bar:nth-child(2) { height: 13px; }
.bar:nth-child(3) { height: 19px; }
.bar:nth-child(4) { height: 25px; }
.bar:nth-child(5) { height: 31px; }
.bar.on { background: var(--gr); box-shadow: 0 0 6px rgba(57,255,138,.4); }
.bar-lbl {
  font-size: .52rem;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 8px;
}

/* Terminal de la sidebar */
.sb-terminal {
  padding: 20px 24px;
  border-bottom: 1px solid var(--brd);
}
.t-lbl {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-lbl::before { content: ''; width: 4px; height: 4px; background: var(--or); }
.t-row {
  display: flex;
  gap: 10px;
  font-size: .72rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dim);
}
.tok { color: var(--gr); flex-shrink: 0; font-weight: 700; }
.terr { color: var(--or); flex-shrink: 0; font-weight: 700; }
.twat { color: var(--dim); flex-shrink: 0; }
.blink {
  display: inline-block;
  width: 6px; height: 9px;
  background: var(--or);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink .8s infinite;
}

/* Barra MARAND */
.sb-marand {
  padding: 14px 24px;
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-marand-lbl {
  font-size: .48rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.sb-marand-link {
  font-family: var(--cond);
  font-size: .85rem;
  letter-spacing: 3px;
  color: var(--wh);
  text-decoration: none;
  cursor: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-marand-link:hover { color: var(--or); }
.sb-marand-link svg { width: 11px; height: 11px; stroke: currentColor; }

/* Botón WA sidebar */
.sb-wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--or);
  color: #000;
  text-decoration: none;
  cursor: none;
  font-family: var(--cond);
  font-size: .95rem;
  letter-spacing: 3px;
  transition: background .2s;
  margin-top: auto;
}
.sb-wa:hover { background: #d94a0e; }
.sb-wa svg { width: 18px; height: 18px; fill: #000; }

/* ---------- FOOTER ---------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  border-top: 1px solid var(--brd);
  font-size: .55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg2);
  position: relative;
  z-index: 10;
}
footer a {
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
footer a:hover { color: var(--wh); }
.foot-links { display: flex; gap: 24px; }
.clock-val {
  color: var(--or);
  letter-spacing: 2px;
  border: 1px solid rgba(255,92,26,.2);
  padding: 4px 12px;
}

/* ---------- REVEAL & ANIMACIONES ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.rv.in { opacity: 1; transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- RESPONSIVE — TABLET ---------- */
@media (max-width: 1100px) {
  .main { grid-template-columns: minmax(0,1fr) 220px; }
  .sb-terminal .t-row span:last-child { font-size: .65rem; }
}

/* ---------- RESPONSIVE — MOBILE ---------- */
@media (max-width: 900px) {
  html, body { overflow-x: hidden !important; }
  .page { overflow-x: hidden; width: 100%; }

  /* --- Topbar mobile --- */
  .topbar {
    padding: 12px 16px;
    overflow: hidden;
    width: 100%;
    gap: 8px;
  }
  .nav-links, .sys-tag, .status-pill { display: none; }
  .snd-btn { display: flex; }
  .topbar-right { gap: 10px; }
  .nav-cta { padding: 6px 12px; font-size: .58rem; letter-spacing: 1.5px; }
  .logo-name { font-size: 1rem; letter-spacing: 3px; }
  .logo-loc { font-size: .5rem; }
  .logo-img { height: 26px; }
  .bracket { font-size: .6rem; }

  /* --- Layout: una columna --- */
  .main { grid-template-columns: 1fr; width: 100%; }
  .content { border-right: none; }

  /* --- Hero mobile: sin parallax, solo zoom --- */
  .hero-panel { overflow: hidden; min-height: 360px; }
  .hero-content { padding: 28px 20px 24px; }
  .hero-bg { inset: 0; } /* Sin espacio extra en mobile */
  .hero-bg img { height: 100%; }
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7,8,9,.75) 0%, rgba(7,8,9,.45) 40%, rgba(7,8,9,.8) 100%);
  }
  .hero-line { display: none; }
  .hero-tag { font-size: .5rem; letter-spacing: 2px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 16px; }
  .hero-desc { font-size: .88rem; max-width: 100%; width: 100%; margin-bottom: 20px; line-height: 1.7; }
  .hero-btns { flex-direction: column; gap: 10px; width: 100%; }
  .btn-main { width: 100%; justify-content: center; box-sizing: border-box; padding: 14px 20px; font-size: .9rem; }
  .btn-ghost { width: 100%; justify-content: center; box-sizing: border-box; padding: 12px 20px; font-size: .7rem; }

  /* --- Ticker mobile --- */
  .ticker { overflow: hidden; width: 100%; max-width: 100vw; }
  .ticker-item { padding: 0 14px; font-size: .5rem; letter-spacing: 2px; }

  /* --- Servicios mobile: tarjetas compactas horizontales --- */
  .servicios-panel { padding: 24px 20px; overflow: hidden; }
  .srv-grid { grid-template-columns: 1fr; gap: 0; background: none; border: none; }
  .srv-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--brd);
    position: relative; /* para el ::before del scan */
  }
  .srv-card:first-child { border-top: 1px solid var(--brd); }
  .srv-card-img { height: auto; min-height: 100px; }
  .srv-card-img .srv-num { font-size: 1.6rem; bottom: 6px; left: 8px; }
  .srv-card-img::after { display: none; }
  .srv-title { font-size: .9rem; }
  .srv-text { font-size: .75rem; line-height: 1.5; }
  .srv-card-body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
  /* Reveal mobile: más simple, solo fade + slide vertical */
  .srv-card.rv {
    transform: translateX(0) translateY(12px);
  }
  .srv-card.rv.in::before { display: none; } /* sin línea de escaneo en mobile */

  /* --- Nosotros mobile --- */
  .info-panel { grid-template-columns: 1fr; overflow: hidden; }
  .info-left { padding: 24px 20px; border-right: none; }
  .info-right { padding: 20px 20px 24px; }
  .about-title { font-size: clamp(28px, 8vw, 40px); }
  .about-p { font-size: .85rem; line-height: 1.7; }
  .about-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-gallery-item img { height: 140px; }
  .about-showroom img { height: 180px; }
  .about-panorama img { height: 120px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 12px; }
  .stat-n { font-size: 2rem; }
  .feat-row { padding: 10px 0; }
  .feat-row span:last-child { font-size: .8rem; }

  /* --- Contacto mobile --- */
  .contact-panel { grid-template-columns: 1fr; overflow: hidden; }
  .contact-left { padding: 24px 20px; border-right: none; }
  .contact-right { padding: 20px 20px 28px; }
  .contact-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 16px; }
  .c-row { padding: 12px 0; gap: 12px; flex-wrap: wrap; }
  .c-tag { width: auto; min-width: 50px; }
  .c-label { font-size: .82rem; word-break: break-word; }
  .wa-btn {
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: .8rem;
  }

  /* --- Formulario mobile --- */
  .fg { margin-bottom: 14px; }
  .fg input, .fg textarea, .fg select {
    font-size: 16px; /* evita zoom en iOS */
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
  }
  .fg textarea { height: 80px; }
  .form-send { padding: 14px 0; font-size: .65rem; }

  /* --- Sidebar mobile: compacta, debajo del contenido --- */
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-top: 1px solid var(--brd);
  }
  .sb { padding: 16px 16px; animation: none; opacity: 1; }
  .sb-lbl { font-size: .48rem; }
  .sb-val { font-size: .95rem; }
  .sb-mono { font-size: .8rem; }
  .sb-a { font-size: .75rem; }
  .sb-terminal {
    grid-column: 1 / -1;
    padding: 16px;
    border-top: 1px solid var(--brd);
  }
  .t-row { font-size: .65rem; line-height: 1.7; }
  .sb-marand { display: none; }
  .sb-wa {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 16px 20px;
    font-size: .85rem;
  }
  .bars { margin-top: 6px; }
  .bar-lbl { font-size: .48rem; }

  /* --- Footer mobile --- */
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 20px;
    display: flex;
  }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .clock-val { font-size: .5rem; padding: 3px 10px; }

  /* --- Cursor: desactivar en mobile --- */
  body { cursor: auto; }
  #cur, #curR { display: none; }
}

/* ---------- RESPONSIVE — MOBILE PEQUEÑO ---------- */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(28px, 8.5vw, 38px); }
  .topbar { padding: 10px 12px; }
  .logo-name { font-size: .9rem; letter-spacing: 2px; }
  .nav-cta { padding: 5px 10px; font-size: .52rem; }
  .snd-btn { padding: 4px 8px; font-size: .5rem; }
  .sidebar { grid-template-columns: 1fr; }
  .stat-n { font-size: 1.8rem; }
  .contact-title { font-size: clamp(28px, 8vw, 40px); }
  .about-gallery { grid-template-columns: 1fr; }
  .about-gallery-item img { height: 160px; }
  .srv-card { grid-template-columns: 80px 1fr; }
  .srv-card-img .srv-num { font-size: 1.3rem; }
}
