* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

:root {
  --bg: #050b18;
  --neon: #00f7ff;
  --neon-2: #1788ff;
  --text: #ffffff;
  --muted: rgba(255,255,255,.78);
  --border: rgba(0,247,255,.18);
  --shadow: 0 0 40px rgba(0,255,255,.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(0,255,255,.05) 96%),
    linear-gradient(90deg, transparent 95%, rgba(0,255,255,.05) 96%);
  background-size: 40px 40px;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(4, 10, 22, .92), rgba(4, 10, 22, .62));
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .88rem;
}

.brand-mini-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(0,247,255,.30);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 999px;
  transition: .25s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.site-nav .nav-login {
  border: 1px solid rgba(0,247,255,.32);
  color: var(--neon);
}

.site-nav .nav-login:hover {
  background: linear-gradient(90deg, rgba(0,247,255,.10), rgba(23,136,255,.16));
  box-shadow: 0 0 18px rgba(0,247,255,.16);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,247,255,.25);
  color: var(--neon);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  padding: 54px 20px 8px;
}

.hero-brand {
  max-width: 860px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-logo {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(0, 247, 255, 0.35),
    0 0 54px rgba(0, 247, 255, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-logo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 28px rgba(0, 247, 255, 0.45),
    0 0 72px rgba(0, 247, 255, 0.24);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-kicker {
  font-size: .92rem;
  letter-spacing: .26em;
  color: var(--neon);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  text-shadow:
    0 0 12px rgba(0, 247, 255, 0.40),
    0 0 28px rgba(0, 247, 255, 0.18);
}

.hero-subtitle {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.section-head {
  width: min(1100px, 92%);
  margin: 0 auto 26px;
}

.section-head.centered {
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .83rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.65;
}

.plans,
.about,
.showcase {
  padding: 32px 20px 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 35px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow);
  border-color: rgba(0,247,255,.18);
}

.card h3 {
  font-size: 1.95rem;
  margin-bottom: 12px;
}

.price {
  font-size: 2.1rem;
  margin: 15px 0;
  color: var(--neon);
}

.card ul {
  list-style: none;
  margin-bottom: 24px;
}

.card li {
  margin: 10px 0;
  opacity: .9;
}

.card button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg,var(--neon),var(--neon-2));
  color: #000;
  font-weight: 800;
  cursor: pointer;
}

.popular {
  border: 1px solid var(--neon);
}

.tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--neon);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}

.about-grid {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-card {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border: 1px solid rgba(0,247,255,.12);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--neon);
  margin-bottom: 10px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.65;
}

.carousel {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0,247,255,.16);
  box-shadow: 0 10px 36px rgba(0,0,0,.25), 0 0 40px rgba(0,247,255,.08);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform .8s ease;
  display: flex;
  align-items: flex-end;
  padding: 34px;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide-1 {
  background:
    linear-gradient(rgba(4, 12, 24, 0.35), rgba(4, 12, 24, 0.55)),
    url('../img/slide-fibra-router.svg') center/cover no-repeat;
}

.slide-2 {
  background:
    linear-gradient(rgba(4, 12, 24, 0.30), rgba(4, 12, 24, 0.55)),
    url('../img/slide-fibra-optica.svg') center/cover no-repeat;
}

.slide-3 {
  background:
    linear-gradient(rgba(4, 12, 24, 0.32), rgba(4, 12, 24, 0.56)),
    url('../img/slide-cobertura.svg') center/cover no-repeat;
}

.slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 94%, rgba(0,255,255,.06) 95%),
    linear-gradient(90deg, transparent 94%, rgba(0,255,255,.05) 95%);
  background-size: 38px 38px;
  opacity: .55;
}

.slide-overlay {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: rgba(3, 12, 22, .55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,247,255,.16);
}

.slide-kicker {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 10px;
}

.slide-overlay h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.slide-overlay p {
  color: var(--muted);
  line-height: 1.65;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: .25s ease;
}

.dot.active {
  width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 120px 0 80px;
}

.separator span {
  letter-spacing: 4px;
  color: var(--neon);
}

.separator .line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--neon),transparent);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { opacity: .4; }
  to { opacity: 1; }
}

.pqr {
  max-width: 800px;
  margin: auto;
  padding: 60px;
  background: rgba(255,255,255,.06);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,247,255,.12);
}

.pqr h2 {
  text-align: center;
  margin-bottom: 30px;
}

.pqr input,
.pqr textarea,
.modal input,
.modal textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
}

.pqr button,
.modal button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg,var(--neon),var(--neon-2));
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-content {
  background: #050b18;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  border: 1px solid rgba(0,247,255,.14);
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  font-size: 1.5rem;
}

.footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 15, 25, 0.9), rgba(0, 0, 0, 0.6));
  border-top: 1px solid rgba(0,247,255,0.15);
}

.footer p {
  color: #7fdcff;
  font-size: 0.85rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(5, 11, 24, .96);
    border: 1px solid rgba(0,247,255,.14);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 38px;
  }

  .hero-logo {
    width: 98px;
    height: 98px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .hero-subtitle,
  .section-head p {
    font-size: .95rem;
    padding: 0 8px;
  }

  .slide {
    padding: 18px;
  }

  .slide-overlay {
    padding: 18px;
  }

  .pqr {
    padding: 28px 18px;
    margin: 0 14px;
  }
}
/* =========================
   DESTELLOS DE FIBRA
========================= */

.spark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.fiber-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(0,247,255,.95) 35%, rgba(0,247,255,0) 75%);
  box-shadow:
    0 0 8px rgba(255,255,255,.9),
    0 0 18px rgba(0,247,255,.9),
    0 0 34px rgba(23,136,255,.55);
  transform: translate(-50%, -50%) scale(.6);
  animation: fiberSparkFade .8s ease-out forwards;
}

.fiber-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(var(--spark-rot, 0deg));
  background: linear-gradient(90deg, rgba(0,247,255,0), rgba(255,255,255,.95), rgba(0,247,255,0));
  border-radius: 999px;
  opacity: .9;
}

@keyframes fiberSparkFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.25);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}
/* =========================
   LOADER APP
========================= */

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, #08131f, #050b14 70%);
  transition: opacity .45s ease, visibility .45s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  width: min(90%, 360px);
  text-align: center;
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,247,255,.16);
  box-shadow:
    0 0 30px rgba(0,247,255,.08),
    0 0 80px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}

.loader-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow:
    0 0 18px rgba(0,247,255,.25),
    0 0 36px rgba(0,247,255,.12);
  animation: loaderPulse 1.8s infinite ease-in-out;
}

.loader-box h2 {
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: .12em;
  font-size: 1.15rem;
}

.loader-box p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}

.loader-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.loader-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f7ff, #1788ff, #ff7dfc);
  animation: loaderRun 1.3s infinite ease-in-out;
}

@keyframes loaderRun {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 480px) {
  .loader-box {
    padding: 22px 18px;
  }

  .loader-logo {
    width: 82px;
    height: 82px;
  }

  .loader-box h2 {
    font-size: 1rem;
  }
}
