/* =====================================================================
   NIX Arc — Página de inicio (iteración premium)
   Eleva el Home al nivel visual de /nixmembership sin copiar su
   contenido: interfaces conceptuales, capas, composición editorial y
   ritmo entre secciones. Reutiliza tokens y sistemas globales.
   Prefijos de página: .hs- (pantallas hero) · .hsvc · .hwork
   .product__list · .product-item · .hstudio
   ===================================================================== */

/* El reveal es global y vive solo en styles.css (sección 16). Esta página
   tenía su propia copia con otros valores; se eliminó para que el gesto sea
   idéntico en todo el sitio. */

/* ------------------------------------------------------------------ */
/* 1. ÁTOMOS COMPARTIDOS DE LOS MOCKUPS DEL HOME                       */
/* ------------------------------------------------------------------ */
.hs-mark {
  display: inline-block;
  width: 14px; height: 14px; flex: none;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep));
  box-shadow: 0 3px 10px -4px var(--violet-glow);
}

.hs-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--on-violet);
  background: linear-gradient(120deg, var(--violet), var(--violet-deep));
  border-radius: var(--r-pill);
  padding: 0.4em 1em;
  white-space: nowrap;
  width: fit-content;
}

.hs-line {
  display: block; height: 7px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.hs-line--2 { width: 62%; }

.hs-state {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  font-style: normal; white-space: nowrap;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.28em 0.7em;
}
.hs-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hs-state.is-on { color: var(--violet-bright); border-color: rgba(168, 85, 255, 0.4); background: rgba(132, 18, 241, 0.1); }
.hs-state.is-wait { color: var(--text-faint); border-style: dashed; }

.hs-chip {
  font-family: var(--font-display);
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-style: normal;
  color: var(--violet-bright);
  border: 1px solid rgba(132, 18, 241, 0.35);
  border-radius: var(--r-pill);
  padding: 0.28em 0.7em;
}

.hs-ava {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 255, 0.7), rgba(90, 13, 184, 0.7));
}

.hs-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.hs-bars i { flex: 1; min-width: 5px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--violet-bright), rgba(132, 18, 241, 0.35)); }
.hs-bars i:nth-child(1) { height: 40%; }
.hs-bars i:nth-child(2) { height: 66%; }
.hs-bars i:nth-child(3) { height: 48%; }
.hs-bars i:nth-child(4) { height: 88%; }
.hs-bars i:nth-child(5) { height: 58%; }
.hs-bars i:nth-child(6) { height: 74%; }

/* ------------------------------------------------------------------ */
/* 2. HERO — más presencia del mockup, sin caja detrás                 */
/* ------------------------------------------------------------------ */
.home-page .hero__inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
/* Esta regla tiene dos clases y vencía al override responsive de styles.css
   (`.hero__inner`, una sola clase): en móvil el hero seguía en dos columnas y
   el H1 se partía en una columna de ~127px. Aquí se repite el apilado con la
   misma especificidad para que gane el orden. */
@media (max-width: 1024px) {
  .home-page .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
  }
}
.home-page .hero__stage { max-width: 700px; }
.home-page .hero__device { width: 100%; }

/* Rotación algo más suave para que el contenido interno sea legible */
@keyframes home-device-float {
  0%, 100% { transform: perspective(1600px) rotateX(4.5deg) rotateY(-10deg) rotateZ(0.6deg) translateY(0); }
  50% { transform: perspective(1600px) rotateX(4.5deg) rotateY(-10deg) rotateZ(0.6deg) translateY(-12px); }
}
.home-page .hero__device {
  transform: perspective(1600px) rotateX(4.5deg) rotateY(-10deg) rotateZ(0.6deg);
  animation-name: home-device-float;
}

/* Los paneles ahora llevan interfaces densas: menos padding que antes */
.home-page .hero__panel { padding: 5%; }

/* --- Pantalla SITIO: página editorial y comercial --- */
.hs { height: 100%; display: flex; flex-direction: column; }
.hs--site { gap: 4.5%; }
.hs-site__nav {
  display: flex; align-items: center; gap: 0.7rem;
  padding-bottom: 3.5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hs-site__links { display: flex; gap: 7px; margin-left: 4%; }
.hs-site__links i { width: 20px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.hs-site__navcta {
  margin-left: auto;
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 0.32em 0.9em;
}
.hs-site__hero { flex: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 6%; align-items: center; min-height: 0; }
.hs-site__copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hs-site__copy small {
  font-family: var(--font-display); font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-bright);
}
.hs-site__copy strong {
  font-family: var(--font-display); font-size: clamp(0.78rem, 1.15vw, 1rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--text);
}
.hs-site__copy .hs-cta { margin-top: 4px; }
.hs-site__media { position: relative; align-self: stretch; min-height: 0; }
.hs-site__img {
  position: absolute; inset: 6% 14% 18% 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(132, 18, 241, 0.4), rgba(20, 16, 34, 0.9) 70%);
}
.hs-site__img--2 {
  inset: 34% 0 4% 42%;
  background: radial-gradient(120% 120% at 80% 90%, rgba(168, 85, 255, 0.32), rgba(16, 14, 26, 0.92) 72%);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8);
}
.hs-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 17%; }
.hs-site__cards span {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.028);
}
.hs-site__cards i { width: 10px; height: 10px; flex: none; border-radius: 3px; transform: rotate(45deg); background: rgba(168, 85, 255, 0.55); }
.hs-site__cards b { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }

/* --- Pantalla SISTEMA: herramienta administrativa --- */
.hs--sys { position: relative; flex-direction: row; gap: 4.5%; }
.hs-sys__side {
  width: 15%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 4% 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
}
.hs-sys__side .hs-mark { margin-bottom: 4px; }
.hs-sys__side i { width: 46%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.hs-sys__side i.on { background: var(--violet-bright); box-shadow: 0 0 8px -1px var(--violet-glow); }
.hs-sys__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5%; }
.hs-sys__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.hs-sys__top small {
  display: block;
  font-family: var(--font-display); font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.hs-sys__top b { font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; color: var(--text); }
.hs-sys__search {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.56rem; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 0.35em 0.8em;
  background: rgba(255, 255, 255, 0.03);
}
.hs-sys__search i { width: 8px; height: 8px; border: 1.3px solid var(--text-faint); border-radius: 50%; }
.hs-sys__filters { display: flex; gap: 6px; }
.hs-sys__filters b {
  font-family: var(--font-display); font-size: 0.54rem; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 0.3em 0.75em;
}
.hs-sys__filters b.on { color: var(--on-violet); background: var(--violet); border-color: var(--violet); }
.hs-sys__rows { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.hs-sys__row {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hs-sys__row b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); width: 22%; }
.hs-sys__row b.w2 { width: 30%; background: rgba(255, 255, 255, 0.08); }
.hs-sys__row .hs-state { margin-left: auto; }
.hs-sys__float {
  position: absolute; right: -2%; bottom: -4%;
  width: 30%;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 255, 0.3);
  background: linear-gradient(160deg, rgba(28, 22, 46, 0.97), rgba(13, 12, 21, 0.97));
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  padding: 8px 10px 10px;
}
.hs-sys__float small {
  display: block;
  font-family: var(--font-display); font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 6px;
}

/* --- Pantalla PRODUCTO: aplicación con flujo por pasos --- */
.hs--prd { align-items: center; gap: 4%; }
.hs-prd__nav {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 3%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hs-prd__back { width: 8px; height: 8px; border-left: 1.6px solid var(--text-muted); border-bottom: 1.6px solid var(--text-muted); transform: rotate(45deg); }
.hs-prd__nav b { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--text); }
.hs-prd__dot { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep)); }
.hs-prd__steps { display: flex; align-items: center; gap: 8px; }
.hs-prd__steps span {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-family: var(--font-display); font-size: 0.52rem; font-weight: 600;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
}
.hs-prd__steps span.done { color: var(--violet-bright); border-color: rgba(168, 85, 255, 0.5); background: rgba(132, 18, 241, 0.12); }
.hs-prd__steps span.on { color: var(--on-violet); background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px -4px var(--violet-glow); }
.hs-prd__steps i { width: 22px; height: 1px; background: rgba(255, 255, 255, 0.14); }
.hs-prd__steps i.done { background: rgba(168, 85, 255, 0.5); }
.hs-prd__card {
  width: min(74%, 300px);
  display: flex; flex-direction: column; gap: 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(28, 24, 46, 0.9), rgba(14, 13, 22, 0.94));
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.85);
  padding: 12px 14px;
}
.hs-prd__field small {
  display: block;
  font-family: var(--font-display); font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 4px;
}
.hs-prd__field i { display: block; height: 15px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.hs-prd__field i.hs-prd__field-short { width: 56%; }
.hs-prd__choices { display: flex; gap: 6px; }
.hs-prd__choices b {
  font-family: var(--font-display); font-size: 0.54rem; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 0.35em 0.7em;
}
.hs-prd__choices b.on { color: var(--text); border-color: rgba(168, 85, 255, 0.55); background: rgba(132, 18, 241, 0.14); }
.hs-prd__cta { margin-top: 2px; align-self: stretch; padding: 0.55em 1em; }
.hs-prd__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 0.54rem; color: var(--text-faint); }
.hs-prd__hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-bright); opacity: 0.8; }

/* ------------------------------------------------------------------ */
/* 4. LO QUE CONSTRUIMOS — composición interactiva                     */
/* ------------------------------------------------------------------ */
.hsvc { padding: var(--section-y) 0; border-top: 1px solid var(--border); }
.hsvc__shell {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-width: 0;
}
.hsvc__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hsvc__head h2 { font-size: var(--fs-h2); max-width: 22ch; }

/* Antes .hsvc__board era un riel de tabs + un solo panel visible (JS
   conmutaba cuál). Ahora ambos servicios se muestran siempre, uno junto al
   otro: mismo borde, radio, fondo y sombra de la tarjeta original; el riel de
   tabs se reemplaza por un divisor vertical entre los dos paneles (mismo
   color que usaba el borde del riel). */
.hsvc__board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(50rem 20rem at 90% -10%, rgba(132, 18, 241, 0.08), transparent 70%),
    rgba(11, 11, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 44px 90px -48px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.hsvc__pane {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
}
.hsvc__pane + .hsvc__pane { border-left: 1px solid var(--border); }

/* Numeración 01/02: mismo tratamiento tipográfico que llevaba el tab
   (font-display, tamaño pequeño, tracking amplio, texto tenue). */
.hsvc__num {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--violet-bright);
}

.hsvc__info h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0.6rem 0 0.8rem; }
.hsvc__info > p { color: var(--text-muted); font-size: 1rem; max-width: 44ch; }
.hsvc__solves {
  margin: 1.1rem 0 1.4rem !important;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--violet);
  background: rgba(132, 18, 241, 0.06);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem !important;
}
.hsvc__solves b { color: var(--violet-bright); font-weight: 600; }
.hsvc__info .link-cta { margin-top: 1.35rem; }

.hsvc__visual { min-width: 0; }
.hv {
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(24, 21, 40, 0.94), rgba(12, 12, 20, 0.96));
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85);
  padding: 1.1rem;
  min-height: 250px;
}

/* Visual: sitios web */
.hv--site { display: flex; flex-direction: column; gap: 0.8rem; }
.hv--site > header { display: flex; align-items: center; gap: 8px; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hv--site > header i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.hv--site > header b {
  margin-left: auto;
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 0.3em 0.85em;
}
.hv-site__hero { flex: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: center; }
.hv-site__hero > div { display: flex; flex-direction: column; gap: 8px; }
.hv-site__hero small { font-family: var(--font-display); font-size: 0.54rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-bright); }
.hv-site__hero strong { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; line-height: 1.25; color: var(--text); }
.hv-site__img {
  display: block; align-self: stretch; height: 100%; min-height: 84px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(130% 130% at 24% 8%, rgba(132, 18, 241, 0.36), rgba(18, 15, 30, 0.92) 72%);
}
.hv-site__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.hv-site__strip span {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
}
.hv-site__strip i { width: 9px; height: 9px; flex: none; border-radius: 3px; transform: rotate(45deg); background: rgba(168, 85, 255, 0.55); }
.hv-site__strip b { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }

/* Visual: sistemas web */
.hv--sys { display: flex; gap: 0.9rem; }
.hv--sys aside {
  width: 17%;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.hv--sys aside i { width: 44%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.hv--sys aside i.on { background: var(--violet-bright); }
.hv-sys__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.hv-sys__main > header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.2rem; }
.hv-sys__main > header b { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hv-sys__row {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  border-radius: 9px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hv-sys__row b { width: 34%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.hv-sys__row .hs-state { margin-left: auto; }

/* Visual: UX/UI y producto (flujo entre pantallas) */
.hv--flow { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.hv-flow__screen {
  flex: 1; max-width: 30%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 15, 26, 0.9);
  padding: 10px;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.8);
}
.hv-flow__screen small {
  font-family: var(--font-display); font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 2px;
}
.hv-flow__screen i { display: block; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.hv-flow__screen i.pick { background: rgba(132, 18, 241, 0.3); border: 1px solid rgba(168, 85, 255, 0.5); }
.hv-flow__screen i.c { width: 60%; margin-inline: auto; }
.hv-flow__block { display: block; flex: 1; border-radius: 6px; background: radial-gradient(120% 120% at 30% 10%, rgba(132, 18, 241, 0.28), rgba(255, 255, 255, 0.04)); }
.hv-flow__screen.is-done { align-items: center; justify-content: center; border-color: rgba(168, 85, 255, 0.45); }
.hv-flow__screen.is-done em {
  font-style: normal;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--on-violet);
  background: var(--violet);
  box-shadow: 0 0 18px -4px var(--violet-glow);
  font-size: 0.85rem;
}
.hv-flow__arrow { position: relative; width: clamp(0.8rem, 2vw, 1.6rem); height: 1px; flex: none; background: linear-gradient(90deg, rgba(168, 85, 255, 0.55), rgba(168, 85, 255, 0.2)); }
.hv-flow__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid rgba(168, 85, 255, 0.6);
  border-right: 1px solid rgba(168, 85, 255, 0.6);
  transform: rotate(45deg);
}

/* Visual: branding digital */
.hv--brand { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hv-brand__system, .hv-brand__applied {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 15, 26, 0.9);
  padding: 16px 18px;
}
.hv-brand__logo {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--on-violet);
  background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep));
  box-shadow: 0 8px 22px -8px var(--violet-glow);
}
.hv-brand__type { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hv-brand__colors { display: flex; gap: 5px; }
.hv-brand__colors i { width: 14px; height: 14px; border-radius: 5px; }
.hv-brand__colors i:nth-child(1) { background: var(--violet); }
.hv-brand__colors i:nth-child(2) { background: var(--violet-bright); }
.hv-brand__colors i:nth-child(3) { background: #ECEBF3; }
.hv-brand__arrow { width: clamp(1rem, 2.4vw, 2rem); height: 1px; flex: none; background: linear-gradient(90deg, rgba(168, 85, 255, 0.55), rgba(168, 85, 255, 0.18)); }
.hv-brand__applied small {
  font-family: var(--font-display); font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.hv-brand__applied .hs-cta { font-size: 0.66rem; }
.hv-brand__card {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(168, 85, 255, 0.35); border-radius: 8px;
  padding: 7px 10px;
  width: 110px;
}
.hv-brand__card i { width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--violet); }
.hv-brand__card em { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------------ */
/* 5. PROYECTOS — protagonista + secundario                            */
/* ------------------------------------------------------------------ */
.hwork { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
.hwork__link { display: grid; align-items: center; gap: clamp(1.5rem, 3.5vw, 3.5rem); color: inherit; }
.hwork--lead .hwork__link { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.hwork--side { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hwork--side .hwork__link {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  max-width: 980px;
  margin-left: auto;
}
.hwork__name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0.9rem 0 0.7rem; }
.hwork__desc { color: var(--text-muted); max-width: 44ch; margin-bottom: 1.3rem; font-size: 1.02rem; }

.hwork__media {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}

/* Escena Patrulla de Plagas: página de servicios con búsqueda local */
.hwsite {
  aspect-ratio: 16 / 10.5;
  display: flex; flex-direction: column; gap: 4%;
  padding: 4.5%;
  background:
    radial-gradient(60rem 24rem at 85% -10%, rgba(132, 18, 241, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(20, 18, 34, 0.9), rgba(10, 10, 17, 0.95));
}
.hwsite__nav { display: flex; align-items: center; gap: 4%; padding-bottom: 3%; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.hwsite__nav > span:first-child { font-family: var(--font-display); font-size: clamp(0.66rem, 1vw, 0.8rem); font-weight: 600; color: var(--text); white-space: nowrap; }
.hwsite__links { display: flex; gap: 7px; margin-left: auto; }
.hwsite__links i { width: 20px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.hwsite__nav b {
  font-family: var(--font-display); font-size: clamp(0.54rem, 0.85vw, 0.66rem); font-weight: 600;
  color: var(--on-violet);
  background: var(--violet);
  border-radius: var(--r-pill);
  padding: 0.4em 1em;
  white-space: nowrap;
}
.hwsite__hero { flex: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 5%; align-items: center; min-height: 0; }
.hwsite__copy { display: flex; flex-direction: column; gap: 3.5%; min-width: 0; }
.hwsite__copy small { font-family: var(--font-display); font-size: clamp(0.5rem, 0.8vw, 0.62rem); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-bright); }
.hwsite__copy strong { font-family: var(--font-display); font-size: clamp(0.85rem, 1.6vw, 1.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.hwsite__cta {
  margin-top: 2%;
  width: fit-content;
  font-family: var(--font-display); font-size: clamp(0.52rem, 0.85vw, 0.66rem); font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 0.45em 1.1em;
}
.hwsite__panel {
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 255, 0.3);
  background: rgba(18, 15, 30, 0.92);
  padding: 4.5%;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column; gap: 7px;
}
.hwsite__panel small { font-family: var(--font-display); font-size: clamp(0.48rem, 0.75vw, 0.58rem); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.hwsite__panel span {
  display: flex; align-items: center; gap: 6px;
  font-size: clamp(0.52rem, 0.85vw, 0.66rem); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 0.4em 0.8em;
  background: rgba(255, 255, 255, 0.03);
}
.hwsite__panel span i { width: 8px; height: 8px; flex: none; border: 1.3px solid var(--text-faint); border-radius: 50%; }
.hwsite__panel em {
  font-style: normal;
  font-family: var(--font-display); font-size: clamp(0.5rem, 0.8vw, 0.6rem); font-weight: 600;
  color: var(--violet-bright);
}
.hwsite__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; height: 19%; }
.hwsite__cards span {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
}
.hwsite__cards small { font-family: var(--font-display); font-size: clamp(0.46rem, 0.72vw, 0.56rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwsite__cards b { font-family: var(--font-display); font-size: clamp(0.56rem, 0.95vw, 0.74rem); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Escena Perfection Fitness: portada con ritmo */
.hwfit {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex; flex-direction: column; justify-content: center; gap: 4%;
  padding: 7%;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(22, 18, 38, 0.92), rgba(10, 10, 17, 0.96));
}
.hwfit__glow {
  position: absolute; right: -20%; top: -30%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(132, 18, 241, 0.3), transparent 70%);
  filter: blur(10px);
}
.hwfit small { position: relative; font-family: var(--font-display); font-size: clamp(0.52rem, 0.85vw, 0.64rem); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-bright); }
.hwfit strong { position: relative; font-family: var(--font-display); font-size: clamp(1rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--text); max-width: 16ch; }
.hwfit__strip { position: relative; display: flex; gap: 3.5%; margin-top: 4%; }
.hwfit__strip span {
  flex: 1; min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 5% 6%;
  background: rgba(255, 255, 255, 0.03);
}
.hwfit__strip b { display: block; font-family: var(--font-display); font-size: clamp(0.54rem, 0.9vw, 0.7rem); font-weight: 600; color: var(--text); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwfit__strip i { display: block; height: 4px; border-radius: 2px; background: rgba(168, 85, 255, 0.4); width: 70%; }

/* ------------------------------------------------------------------ */
/* 6. PRODUCTOS PROPIOS — presentación en tarjetas de los dos productos */
/* ------------------------------------------------------------------ */
.product__list { display: flex; flex-direction: column; gap: 1rem; }
.product-item {
  border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(24, 20, 40, 0.9), rgba(12, 12, 20, 0.95));
  padding: 1.4rem 1.6rem; border-left: 3px solid var(--violet);
}
.product-item h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 1.1rem; }
/* El padding horizontal venía de cuando .link-cta era una cápsula; ahora es un
   enlace de texto y ese relleno lo descolocaba del borde izquierdo de la card. */
.product-item .link-cta { font-size: 0.88rem; }
.product-item--booking { border-left-color: #2563EB; }

/* ------------------------------------------------------------------ */
/* 7. CONFIANZA — fila corta de 2-3 datos, sin tarjetas                */
/* Reutiliza únicamente tokens ya existentes (--container-wide, --gutter,
   --font-display, --text, --text-muted, --border): ningún color, radio
   ni sombra nuevo. */
/* ------------------------------------------------------------------ */
.trust { padding: clamp(2.25rem, 4.5vw, 3.25rem) 0; border-top: 1px solid var(--border); }
.trust__shell {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  text-align: center;
}
.trust__item { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; }
.trust__item strong { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.trust__item span { font-size: 0.85rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ */
/* 8. SOBRE NIX ARC — tres planos alineados                            */
/* ------------------------------------------------------------------ */
.hstudio { padding: var(--section-y) 0; border-top: 1px solid var(--border); }
.hstudio__shell {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  min-width: 0;
}
.hstudio__copy h2 { font-size: var(--fs-h2); max-width: 18ch; }
.hstudio__lead { color: var(--text-muted); font-size: var(--fs-lead); max-width: 46ch; margin: 1.4rem 0 1.6rem; }
.hstudio__points { display: flex; flex-direction: column; margin-bottom: 2rem; }
.hstudio__points li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.98rem;
}
.hstudio__points li:last-child { border-bottom: 1px solid var(--border); }
.hstudio__points li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: 8px; height: 8px; border-radius: 2px;
  transform: rotate(45deg);
  background: var(--violet);
}

.hstudio__layers { position: relative; display: flex; flex-direction: column; gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.hstudio__spine {
  position: absolute; left: clamp(1.2rem, 2.4vw, 2rem); top: 8%; bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg, rgba(168, 85, 255, 0.6), rgba(168, 85, 255, 0.15));
}
.hstudio__layer {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(13, 13, 21, 0.82);
  padding: 1.1rem 1.3rem 1.2rem clamp(2.4rem, 4.5vw, 3.6rem);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.8);
}
.hstudio__layer::before {
  content: "";
  position: absolute; left: calc(clamp(1.2rem, 2.4vw, 2rem) - 4px); top: 1.35rem;
  width: 9px; height: 9px; border-radius: 2px;
  transform: rotate(45deg);
  background: var(--violet);
  box-shadow: 0 0 12px -2px var(--violet-glow);
}
.hstudio__layer--design { margin-left: clamp(1rem, 2.5vw, 2.2rem); }
.hstudio__layer--dev { margin-left: clamp(2rem, 5vw, 4.4rem); border-color: rgba(132, 18, 241, 0.4); }
.hstudio__layer small {
  display: block;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 0.7rem;
}
.hstudio__plan { display: flex; flex-direction: column; gap: 6px; }
.hstudio__plan i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); }
.hstudio__plan i.w2 { width: 72%; }
.hstudio__plan i.w3 { width: 48%; }
.hstudio__wire { display: flex; align-items: center; gap: 8px; }
.hstudio__wire b { width: 34px; height: 34px; border-radius: 7px; border: 1px dashed rgba(168, 85, 255, 0.5); }
.hstudio__wire i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); }
.hstudio__wire i.w2 { flex: 0.6; }
.hstudio__wire em { width: 24px; height: 12px; border-radius: var(--r-pill); background: rgba(132, 18, 241, 0.3); border: 1px solid rgba(168, 85, 255, 0.4); }
.hstudio__ui { display: flex; align-items: center; gap: 10px; }
.hstudio__ui b { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.hstudio__ui em { font-style: normal; margin-left: auto; font-size: 0.62rem; }

/* ------------------------------------------------------------------ */
/* 10. CTA FINAL — fragmentos que se alinean                           */
/* ------------------------------------------------------------------ */
.closing__actions { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.closing__frags { position: absolute; inset: 0; pointer-events: none; }
.closing__frag { position: absolute; border-radius: 8px; opacity: 0.5; }
.closing__frag--wire {
  left: clamp(2%, 6vw, 9%); top: 22%;
  width: 74px; height: 52px;
  border: 1px dashed rgba(168, 85, 255, 0.4);
  transform: rotate(-5deg);
}
.closing__frag--chip {
  right: clamp(3%, 7vw, 10%); top: 30%;
  width: 64px; height: 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(168, 85, 255, 0.35);
  background: rgba(132, 18, 241, 0.08);
  transform: rotate(4deg);
}
.closing__frag--btn {
  left: clamp(4%, 9vw, 13%); bottom: 24%;
  width: 58px; height: 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, rgba(132, 18, 241, 0.5), rgba(90, 13, 184, 0.5));
  transform: rotate(3deg);
}
.closing__frag--row {
  right: clamp(2%, 6vw, 8%); bottom: 20%;
  width: 88px; height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: rotate(-3deg);
}

/* ------------------------------------------------------------------ */
/* 11. RESPONSIVE                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .home-page .hero__stage { max-width: 560px; }

  /* Los dos servicios se apilan uno debajo del otro; el divisor pasa de
     vertical (border-left) a horizontal (border-top). */
  .hsvc__board { grid-template-columns: 1fr; }
  .hsvc__pane + .hsvc__pane { border-left: 0; border-top: 1px solid var(--border); }

  .hwork--lead .hwork__link,
  .hwork--side .hwork__link { grid-template-columns: 1fr; }
  .hwork--side .hwork__link { max-width: none; }
  .hwork--side .hwork__info { order: 2; }


  .hstudio__shell { grid-template-columns: 1fr; }
  .hstudio__visual { order: 2; max-width: 620px; }

}

@media (max-width: 760px) {

  .hv--flow { flex-wrap: wrap; }
  .hv-flow__screen { max-width: none; flex: 1 1 28%; }

  .hv--brand { flex-direction: column; }
  .hv-brand__arrow { transform: rotate(90deg); }


  .hwsite__hero { grid-template-columns: 1fr; }
  .hwsite__panel { display: none; }
  .hwsite { aspect-ratio: auto; }
  .hwsite__cards { height: auto; }
  .hwsite__cards span { padding: 8px 10px; }

  .hstudio__layer--design, .hstudio__layer--dev { margin-left: 0; }

  .closing__frags { display: none; }
}

@media (max-width: 560px) {
  .home-page .hero__tabs { max-width: 100%; }
  .home-page .hero__tab { padding: 0.5rem 0.75rem; font-size: 0.72rem; }
  .home-page .hero__panel { padding: 4.5%; }
  .hs-site__links i:nth-child(n+3) { display: none; }
  .hs-site__navcta { padding: 0.32em 0.6em; }
  .hs-site__copy strong { font-size: 0.72rem; }
  .hs-site__cards span:nth-child(3) { display: none; }
  .hs-site__cards { grid-template-columns: repeat(2, 1fr); }
  .hs-sys__filters b:nth-child(3) { display: none; }
  .hs-sys__float { display: none; }
  .hs-sys__search { display: none; }
  .hs-prd__card { width: 100%; }
  .closing__actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* 12. PREFERENCIAS DE MOVIMIENTO                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .home-page .hero__device { animation: none; }
}

/* ------------------------------------------------------------------ */
/* INDICADOR DE SCROLL DEL HERO — SOLO INICIO                           */
/* ------------------------------------------------------------------ */
.hero-scroll-cue {
  display: none;
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 2.2vh, 1.45rem);
  z-index: 4;
  align-items: center;
  flex-direction: column;
  gap: 0.42rem;
  color: rgba(223, 210, 255, 0.68);
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.hero-scroll-cue.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.hero-scroll-cue__mouse {
  position: relative;
  display: block;
  width: 25px;
  height: 39px;
  border: 1px solid rgba(225, 210, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(132,18,241,.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 22px -12px var(--violet-glow);
}
.hero-scroll-cue__mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: linear-gradient(180deg, rgba(237,228,255,.9), var(--violet-bright));
  border-radius: 999px;
  transform: translateX(-50%);
}
.hero-scroll-cue__mouse i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 9px rgba(168,85,255,.72);
  transform: translateX(-50%);
  animation: hero-scroll-wheel 1.65s var(--ease) infinite;
}
.hero-scroll-cue__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(205, 190, 235, 0.58);
}
@keyframes hero-scroll-wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  22% { opacity: 1; }
  72% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .hero-scroll-cue { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue__mouse i { animation: none; opacity: 0.75; }
  .hero-scroll-cue { transition: opacity 120ms linear; }
}

