/* ============================================================
   NEXO · Infraestructura crítica, sin drama
   Palette: #06090d near-black · #37c6dd cyan accent
   ============================================================ */

:root {
  --bg: #06090d;
  --bg-raise: #0a0f15;
  --bg-card: #0c121a;
  --ink: #dde6ec;
  --ink-dim: #8fa0ac;
  --ink-faint: #5a6a76;
  --accent: #37c6dd;
  --accent-dim: rgba(55, 198, 221, 0.14);
  --hairline: rgba(221, 230, 236, 0.09);
  --hairline-strong: rgba(221, 230, 236, 0.18);
  --sans: "Helvetica Neue", "Segoe UI", Arial, system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
  --nav-h: 4.25rem;
  --maxw: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.accent { color: var(--accent); }

/* ---------- typography ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
  max-width: 34ch;
}
.section__lead {
  color: var(--ink-dim);
  max-width: 58ch;
  margin-bottom: 3rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04252b;
  font-weight: 600;
}
.btn--primary:hover { background: #5cd4e6; border-color: #5cd4e6; color: #04252b; }
.btn--ghost { border-color: var(--hairline-strong); }
.btn--block { width: 100%; }
.btn--nav { padding: 0.55rem 1.1rem; font-size: 0.75rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
}
.nav__mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.875rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav__links a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}
.nav__toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(0.23rem) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-0.23rem) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
}
.nav__mobile a { padding: 0.7rem 0; color: var(--ink-dim); font-size: 0.95rem; }
.nav__mobile a.btn { color: var(--ink); text-align: center; margin-top: 0.75rem; }
.nav__mobile.open { display: flex; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,13,0.55) 0%, rgba(6,9,13,0.35) 45%, rgba(6,9,13,0.92) 100%),
    linear-gradient(90deg, rgba(6,9,13,0.72) 0%, rgba(6,9,13,0.15) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-h);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero__sub {
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll-line {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- stats ---------- */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-raise);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2.6rem 1.5rem;
  text-align: center;
  border-left: 1px solid var(--hairline);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- sections ---------- */
.section { padding: 7rem 0; }

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.card {
  background: var(--bg-card);
  padding: 2.2rem 1.8rem 2rem;
  position: relative;
  transition: background 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover { background: #0e151f; }
.card:hover::before { transform: scaleX(1); }
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.card p { font-size: 0.9rem; color: var(--ink-dim); }
.card__detail {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.7rem !important;
  letter-spacing: 0.1em;
  color: var(--accent) !important;
  text-transform: uppercase;
}

/* CSS icons */
.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  position: relative;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
}
.card__icon i { position: absolute; background: var(--accent); }
/* storage: stacked drive bays */
.icon-storage i { left: 0.5rem; right: 0.5rem; height: 2px; }
.icon-storage i:nth-child(1) { top: 0.62rem; }
.icon-storage i:nth-child(2) { top: 1.22rem; }
.icon-storage i:nth-child(3) { top: 1.82rem; }
/* network: nodes */
.icon-network i { width: 6px; height: 6px; border-radius: 50%; }
.icon-network i:nth-child(1) { top: 0.5rem; left: 0.5rem; }
.icon-network i:nth-child(2) { top: 0.5rem; right: 0.5rem; }
.icon-network i:nth-child(3) { bottom: 0.5rem; left: 0.5rem; }
.icon-network i:nth-child(4) { bottom: 0.5rem; right: 0.5rem; }
.icon-network::after {
  content: "";
  position: absolute;
  inset: 0.68rem;
  border: 1px solid var(--accent);
  opacity: 0.55;
}
/* shield */
.icon-shield i {
  top: 0.45rem; left: 50%;
  width: 1.15rem; height: 1.5rem;
  transform: translateX(-50%);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 50% / 12% 12% 78% 78%;
}
/* backup: rotation arcs */
.icon-backup i {
  width: 1.5rem; height: 1.5rem;
  top: 50%; left: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.icon-backup i:nth-child(1) {
  transform: translate(-50%, -50%);
  border-right-color: transparent;
}
.icon-backup i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(180deg) scale(0.62);
  border-right-color: transparent;
  opacity: 0.55;
}

/* ---------- bands ---------- */
.band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 24rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,9,13,0.88) 0%, rgba(6,9,13,0.45) 100%);
}
.band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.band--fibra { min-height: 26rem; }

.quote { max-width: 44rem; }
.quote p {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.quote footer {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.band--pasillo {
  background:
    linear-gradient(rgba(6,9,13,0.87), rgba(6,9,13,0.87)),
    url("assets/pasillo.jpg") center 40% / cover no-repeat;
  min-height: 22rem;
}
.band__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.band__text { color: var(--ink-dim); max-width: 52ch; }

/* ---------- split sections ---------- */
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split__media {
  border: 1px solid var(--hairline);
  padding: 0.6rem;
  background: var(--bg-raise);
}
.split__media img { width: 100%; height: auto; }
.split__media figcaption {
  padding: 0.85rem 0.4rem 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.split__media--tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.split__copy > p { color: var(--ink-dim); max-width: 52ch; }
.split__copy .btn { margin-top: 2.2rem; }

.list { margin-top: 2rem; border-top: 1px solid var(--hairline); }
.list li {
  display: flex;
  gap: 1.3rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.list li .mono {
  flex: none;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.split__note {
  margin-top: 2.2rem;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}
.split__note .mono { font-size: 0.7rem; letter-spacing: 0.14em; flex: none; }
.split__note p { font-size: 0.92rem; color: var(--ink); max-width: none; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  padding: 2.4rem 2rem 2.2rem;
  position: relative;
}
.step__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  margin-bottom: 1.4rem;
}
@supports not (-webkit-text-stroke: 1px black) {
  .step__num { color: var(--accent); }
}
.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.step h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  margin-top: 0.7rem;
}
.step p { font-size: 0.9rem; color: var(--ink-dim); margin-top: 0.9rem; }

/* ---------- contact ---------- */
.contact { background: var(--bg-raise); border-top: 1px solid var(--hairline); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.contact__copy > p { color: var(--ink-dim); max-width: 48ch; }
.contact__meta { margin-top: 2.6rem; border-top: 1px solid var(--hairline); }
.contact__meta div {
  display: flex;
  gap: 1.4rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem;
}
.contact__meta dt { color: var(--ink-faint); width: 5rem; flex: none; letter-spacing: 0.14em; }
.contact__meta dd { color: var(--ink); }
.contact__figure {
  margin-top: 2.4rem;
  border: 1px solid var(--hairline);
  padding: 0.6rem;
  background: var(--bg-card);
  max-width: 28rem;
}
.contact__figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: brightness(0.85);
}
.contact__figure figcaption {
  padding: 0.8rem 0.4rem 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.form {
  border: 1px solid var(--hairline-strong);
  background: var(--bg-card);
  padding: 2.4rem;
  position: relative;
}
.form__field { margin-bottom: 1.6rem; }
.form__field label {
  display: block;
  font-size: 0.675rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.form__field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease;
}
.form__field input:focus {
  outline: none;
  border-color: var(--accent);
}
.form__field input.invalid { border-color: #e05a5a; }
.form__hint {
  margin-top: 1.1rem;
  font-size: 0.675rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-align: center;
}
.form__success {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.4rem;
  gap: 0.7rem;
}
.form__success[hidden] { display: none; }
.form__success h3 { font-size: 1.25rem; font-weight: 600; }
.form__success p { font-size: 0.9rem; color: var(--ink-dim); max-width: 34ch; }
.form__success .mono { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.12em; }
.form__check {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
  margin-bottom: 0.6rem;
}
.form__check::after {
  content: "";
  position: absolute;
  top: 46%; left: 50%;
  width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.footer__brand .nav__mark { margin-top: 0.4rem; }
.footer__brand strong {
  font-family: var(--mono);
  letter-spacing: 0.28em;
  font-size: 0.95rem;
}
.footer__brand p { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.3rem; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--accent); }
.footer__legal {
  font-size: 0.675rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 2;
}

/* ---------- reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .split--rev .split__grid { display: flex; flex-direction: column; }
  .split--rev .split__copy { order: 1; }
  .split--rev .split__media { order: 2; max-width: 26rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
}

@media (max-width: 46rem) {
  .section { padding: 4.5rem 0; }
  .nav__links, .btn--nav { display: none; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.8rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .cards { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .form { padding: 1.6rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll-line { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
