/* Portada — coincide con el diseño de referencia. El resto del sitio sigue en main.css. */

:root {
  --nav-h: 78px;
}

.navbar,
.home-lead {
  font-family: "Plus Jakarta Sans", var(--font-body), sans-serif;
}

/* ═══ NAV ═══ */
.navbar {
  background: rgba(2, 8, 20, 0.94);
  border-bottom: 1px solid rgba(130, 180, 220, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav-container {
  width: min(100% - 1.75rem, 1280px);
}
.logo-link,
.logo-link:hover {
  display: flex;
  align-items: center;
  color: #fff;
  line-height: 0;
  min-width: 0;
}
.logo-link img {
  height: 64px;
  width: auto;
  max-width: min(240px, calc(100vw - 6.5rem));
  object-fit: contain;
}
.footer-logo {
  width: min(260px, 100%);
  height: auto;
  display: block;
}
.nav-menu {
  gap: 0.1rem 0.15rem;
  flex-wrap: nowrap;
}
.nav-menu > li > a:not([class]) {
  position: relative;
  color: #e7eef6;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.7rem 0.58rem 0.85rem;
}
.nav-menu > li > a:not([class]):hover {
  color: #fff;
  background: transparent;
}
.nav-menu > li > a[aria-current="page"] {
  color: #fff;
}
.nav-menu > li > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.58rem;
  right: 0.58rem;
  bottom: 0.42rem;
  height: 2px;
  border-radius: 99px;
  background: #3ee9ff;
  box-shadow: 0 0 8px #3ee9ff;
}
.nav-ico {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-speedtest,
.btn-pago-express,
.btn-cliente {
  border-radius: 999px;
  padding: 0.46rem 0.82rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  gap: 0.38rem;
}
.btn-speedtest {
  color: #8af4ff;
  border: 1px solid rgba(90, 225, 255, 0.8);
  background: rgba(0, 24, 48, 0.45);
  box-shadow: inset 0 0 12px rgba(0, 200, 255, 0.08), 0 0 0 1px rgba(0, 180, 255, 0.05);
}
.btn-speedtest:hover {
  background: rgba(0, 170, 255, 0.16);
  color: #fff;
}
.btn-pago-express {
  background: linear-gradient(180deg, #ff9d33, #ff7a00);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.32);
}
.btn-pago-express:hover {
  color: #fff;
  filter: brightness(1.06);
}
.btn-pago-express .nav-ico {
  fill: currentColor;
  stroke: none;
}
.btn-cliente {
  color: #eef3f8;
  border: 1px solid rgba(190, 205, 220, 0.38);
  background: rgba(8, 16, 32, 0.55);
}
.btn-cliente:hover {
  color: #fff;
  border-color: rgba(170, 215, 255, 0.7);
  background: rgba(12, 28, 52, 0.7);
}

/* ═══ LIENZO ═══ */
.home-lead {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 46% 38% at 74% 36%, rgba(0, 150, 230, 0.18), transparent 62%),
    radial-gradient(ellipse 36% 28% at 16% 22%, rgba(40, 70, 170, 0.14), transparent 60%),
    #020814;
  padding-bottom: 2.75rem;
  overflow: hidden;
}

.hero {
  min-height: 0;
  padding: calc(var(--nav-h) + 1.6rem) 0 1.1rem;
  background: transparent;
}
.hero-city {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: min(56%, 760px);
  height: 88%;
  object-fit: cover;
  object-position: 82% 48%;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
  mask-composite: intersect;
  filter: saturate(1.35) brightness(0.92) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #020814 0%, rgba(2, 8, 20, 0.92) 34%, rgba(2, 8, 20, 0.28) 58%, rgba(2, 8, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.2), transparent 18%, rgba(2, 8, 20, 0.15) 70%, #020814 100%);
}
.hero-watermark {
  z-index: 1;
  left: auto;
  right: 1%;
  top: 34%;
  transform: none;
  margin: 0;
  font-family: Outfit, var(--font-display), sans-serif;
  font-weight: 800;
  font-size: clamp(7rem, 15vw, 12.4rem);
  letter-spacing: -0.055em;
  line-height: 0.8;
  color: rgba(22, 78, 145, 0.5);
  background: none;
  -webkit-text-fill-color: rgba(22, 78, 145, 0.5);
  opacity: 1;
}
.hero-stage {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 540px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d5e3f2;
}
.hero-kicker i {
  display: block;
  width: 58px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #3ef0ff, rgba(62, 240, 255, 0));
  box-shadow: 0 0 10px #3ef0ff;
}
.hero-headline {
  margin: 0;
  max-width: none;
  font-family: Outfit, var(--font-display), sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 4.6vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(100deg, #9af7ff 0%, #5ecfff 28%, #6a86ff 68%, #7b6cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-support {
  margin: 0;
  max-width: none;
  font-family: Outfit, var(--font-display), sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-support em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(100deg, #9af7ff 0%, #5ecfff 40%, #7b6cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-support span {
  display: block;
  margin-top: 0.35rem;
  max-width: none;
  font-family: "Plus Jakarta Sans", var(--font-body), sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: #d7e1ee;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.hero-cta .btn {
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0;
}
.hero-cta .btn-primary,
.hero-cta .btn-primary:hover {
  background: linear-gradient(90deg, #1ad4ff 0%, #2b7bff 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 168, 255, 0.38);
  filter: none;
}
.hero-cta .btn-primary:hover {
  filter: brightness(1.06);
}
.btn-wa,
.btn-wa:hover {
  background: rgba(4, 14, 32, 0.55);
  border: 1px solid rgba(198, 214, 230, 0.32);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-wa:hover {
  border-color: rgba(130, 220, 255, 0.55);
  background: rgba(8, 28, 54, 0.72);
}
.btn-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-ico-wa {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* ═══ VELOCÍMETRO ═══ */
.hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}
.gauge {
  position: relative;
  width: min(40vw, 392px);
  aspect-ratio: 1;
  overflow: visible;
}
.gauge-halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 190, 255, 0.32), transparent 66%);
  filter: blur(8px);
  z-index: 0;
  animation: gauge-pulse 3.6s ease-in-out infinite;
}
.gauge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    #0c5eae 0deg,
    #1288dc 70deg,
    #5eebff 130deg,
    #f3fdff 168deg,
    #49d6ff 210deg,
    #1576cc 280deg,
    #0c5eae 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 59.5% 78%, transparent 80.5%);
  mask: radial-gradient(circle, transparent 57%, #000 59.5% 78%, transparent 80.5%);
  filter: drop-shadow(0 0 8px rgba(50, 210, 255, 0.9)) drop-shadow(0 0 22px rgba(0, 150, 255, 0.45));
}
.gauge-ticks {
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.95) 0deg 0.55deg,
    transparent 0.55deg 2.7deg
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64% 73%, transparent 75%);
  mask: radial-gradient(circle, transparent 62%, #000 64% 73%, transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: gauge-spin 16s linear infinite;
}
.gauge-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 120deg,
    transparent 0 55%,
    rgba(255, 255, 255, 0.15) 68%,
    rgba(255, 255, 255, 0.85) 78%,
    transparent 90%
  );
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 60% 79%, transparent 81%);
  mask: radial-gradient(circle, transparent 57%, #000 60% 79%, transparent 81%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: gauge-spin 9s linear infinite;
}
.gauge-face {
  position: absolute;
  inset: 15%;
  z-index: 2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, #17629a 0%, #0b2d52 36%, #06101e 74%);
  box-shadow:
    inset 0 0 32px rgba(0, 170, 255, 0.32),
    0 0 0 1px rgba(130, 220, 255, 0.2);
}
@keyframes gauge-spin {
  to { transform: rotate(360deg); }
}
@keyframes gauge-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}
.gauge-wifi {
  width: 28px;
  height: 28px;
  margin-bottom: 0.15rem;
  color: #8af6ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(120, 240, 255, 0.8));
}
.gauge-value {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: clamp(4.3rem, 6.2vw, 5.65rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: #fff;
}
.gauge-unit {
  margin-top: 0.42rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.36em;
  color: #3ee7ff;
  text-shadow: 0 0 14px rgba(40, 220, 255, 0.7);
  padding-left: 0.36em;
}
.gauge-caption {
  margin-top: 0.42rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b7e6fb;
  line-height: 1.35;
}

/* ═══ DATOS ═══ */
.lead-stats {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 1180px);
  margin: 0.35rem auto 1rem;
}
.lead-stats ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(90, 180, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 40, 74, 0.55), rgba(3, 12, 28, 0.78));
  box-shadow:
    inset 0 0 32px rgba(0, 150, 230, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.28);
}
.lead-stats li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 0.85rem;
  min-width: 0;
}
.lead-stats li + li {
  border-left: 1px solid rgba(150, 196, 255, 0.16);
}
.lead-stats svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: #3adfff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(40, 210, 255, 0.35));
}
.lead-stats strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.lead-stats li span {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.74rem;
  color: #93a6bc;
  line-height: 1.2;
}

/* ═══ TEST ═══ */
.lead-speed {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.05rem 1.2rem;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(80, 196, 255, 0.38);
  background:
    radial-gradient(ellipse 36% 140% at 12% 110%, rgba(0, 200, 255, 0.22), transparent 55%),
    linear-gradient(90deg, rgba(5, 22, 48, 0.92), rgba(4, 16, 38, 0.88) 42%, rgba(7, 28, 62, 0.92));
  box-shadow:
    inset 0 0 40px rgba(0, 160, 255, 0.08),
    0 0 36px rgba(0, 140, 255, 0.12);
}
.lead-speed::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 16%;
  bottom: -10%;
  height: 70%;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(90, 240, 255, 0.45), transparent 42%),
    radial-gradient(ellipse at 52% 130%, rgba(40, 140, 255, 0.45), transparent 48%),
    radial-gradient(ellipse at 82% 100%, rgba(100, 220, 255, 0.3), transparent 40%);
  filter: blur(7px);
  pointer-events: none;
}
.lead-speed::after {
  content: "";
  position: absolute;
  left: 20%;
  width: 48%;
  bottom: 26%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #e8fdff 18%, #49d6ff 58%, transparent 100%);
  box-shadow: 0 0 16px #3ef0ff, 0 10px 24px rgba(0, 120, 255, 0.45);
  transform: rotate(-7deg);
  pointer-events: none;
}
.mini-gauge {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  flex: none;
}
.mini-gauge span {
  position: absolute;
  border-radius: 50%;
}
.mini-gauge span:first-child {
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(190, 248, 255, 0.98) 0deg 1.5deg,
    transparent 1.5deg 9deg
  );
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 59% 74%, transparent 77%);
  mask: radial-gradient(circle, transparent 56%, #000 59% 74%, transparent 77%);
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.75));
}
.mini-gauge span:last-child {
  inset: 18%;
  background: radial-gradient(circle at 50% 40%, #0e568c, #061426 72%);
  box-shadow: inset 0 0 14px rgba(0, 180, 255, 0.45);
}
.mini-gauge span:last-child::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: #dffbff;
  transform-origin: bottom center;
  transform: translate(-50%, -70%) rotate(32deg);
  box-shadow: 0 0 8px #7ef6ff;
}
.mini-gauge span:last-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #7ef6ff;
}
.lead-speed-copy {
  position: relative;
  z-index: 1;
}
.lead-speed h2 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}
.lead-speed p {
  margin: 0.28rem 0 0;
  color: #d5e0ec;
  font-size: 0.98rem;
}
.btn-test,
.btn-test:hover {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.25rem 0.78rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1fd4ff, #2f88ff);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 160, 255, 0.35);
}
.btn-test:hover { filter: brightness(1.06); }
.btn-test svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.btn-test svg path {
  fill: currentColor;
  stroke: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1280px) and (min-width: 1081px) {
  .nav-menu > li > a:not([class]) { font-size: 0.78rem; padding: 0.65rem 0.4rem 0.8rem; }
  .nav-menu > li > a[aria-current="page"]::after { left: 0.4rem; right: 0.4rem; }
  .btn-speedtest, .btn-pago-express, .btn-cliente { font-size: 0.7rem; padding: 0.42rem 0.62rem; }
}

@media (max-width: 1080px) {
  .logo-link { min-width: 0; }
}

@media (max-width: 980px) {
  .lead-stats ul { grid-template-columns: 1fr 1fr; }
  .lead-stats li:nth-child(odd) { border-left: none; }
  .lead-stats li:nth-child(n + 3) { border-top: 1px solid rgba(150, 196, 255, 0.16); }
  .lead-stats li:last-child {
    grid-column: 1 / -1;
    border-left: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--nav-h) + 1.35rem);
  }
  .hero-stage { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { align-items: center; text-align: center; margin-inline: auto; }
  .hero-kicker { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .gauge { width: min(78vw, 320px); }
  .hero-watermark {
    font-size: 28vw;
    top: 62%;
    right: -12%;
    -webkit-text-fill-color: rgba(22, 78, 145, 0.28);
  }
  .hero-city { width: 100%; height: 58%; opacity: 0.75; }
}

@media (max-width: 768px) {
  .hero-cta { width: min(100%, 340px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lead-speed {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
  }
  .btn-test { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .lead-stats ul { grid-template-columns: 1fr; }
  .lead-stats li,
  .lead-stats li + li,
  .lead-stats li:last-child {
    border-left: none;
    grid-column: auto;
  }
  .lead-stats li + li { border-top: 1px solid rgba(150, 196, 255, 0.16); }
}

@media (max-width: 600px) {
  .hero-support br { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.35rem, 11vw, 2.9rem); }
  .hero-support { font-size: 0.98rem; }
  .gauge-value { font-size: 4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-halo, .gauge-ticks, .gauge-shine { animation: none !important; }
}
