/* Viking Tech: circuitos vectoriales, sin librerías ni fondos de vídeo. */
:root {
  --bg: #050d17;
  --surface: #0d2030;
  --line: #203b50;
  --circuit-tile-width: max(100%, 1280px);
  --circuit-tile-height: 1100px;
  --circuit-origin-y: 480px;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--bg);
}

/* La trama acompaña toda la página; el centro conserva el contraste. */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(ellipse 65% 540px at 85% 170px, rgb(0 91 184 / .15), transparent 75%),
    radial-gradient(ellipse 60% 600px at 0 1600px, rgb(0 92 142 / .09), transparent 80%),
    radial-gradient(ellipse 60% 550px at 100% 2700px, rgb(0 92 142 / .10), transparent 80%),
    radial-gradient(circle, rgb(40 158 221 / .2) .8px, transparent 1px);
  background-size: auto, auto, auto, 30px 30px;
  mask-image: linear-gradient(to right, #000, rgb(0 0 0 / .16) 36%, rgb(0 0 0 / .16) 64%, #000);
}

body::after {
  z-index: -1;
  background: url("assets/cyber-edges.svg") center var(--circuit-origin-y) / var(--circuit-tile-width) var(--circuit-tile-height) repeat-y;
  opacity: .33;
}

.header {
  z-index: 3;
  border-color: rgb(83 154 199 / .24);
  background: linear-gradient(90deg, rgb(5 13 23 / .92), rgb(5 13 23 / .55));
}

.hero {
  position: relative;
  isolation: isolate;
  padding-block: 70px 62px;
}

.hero-circuit {
  position: absolute;
  z-index: -1;
  top: -80px;
  bottom: 0;
  left: 50%;
  width: var(--hero-circuit-width, calc(100% + 112px));
  transform: translateX(-50%);
  pointer-events: none;
  mask-image: linear-gradient(#000 0%, #000 82%, transparent 100%);
}

.hero-circuit::before,
.hero-circuit::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-circuit::before {
  background: url("assets/cyber-edges.svg") center var(--hero-circuit-y, 480px) / var(--circuit-tile-width) var(--circuit-tile-height) repeat-y;
  opacity: 0;
}

/* Refuerza las mismas líneas del fondo: sin un segundo dibujo ni cortes de escala. */
.hero-circuit[data-aligned]::before { opacity: .48; }

.hero-circuit::after {
  background: radial-gradient(ellipse 55% 70% at 78% 45%, rgb(0 114 224 / .2), transparent 80%);
  opacity: .14;
}

.hero-copy {
  position: relative;
  text-shadow: 0 2px 22px rgb(5 13 23 / .9);
}

.hero-image { position: relative; }
.photo-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.photo-mosaic button {
  border: 1px solid rgb(56 189 248 / .25);
  aspect-ratio: 1.08;
}
.photo-mosaic .mosaic-main {
  aspect-ratio: 1.85;
  box-shadow: 0 0 35px rgb(0 112 229 / .12);
}
.photo-mosaic .mosaic-fan img { object-position: 40% center; }
.photo-mosaic button:hover,
.photo-mosaic button:focus-visible { border-color: #38bdf8; }
.hero-image figcaption { color: #b9cfdd; }

.paths {
  position: relative;
  background: rgb(5 13 23 / .85);
  border-color: rgb(60 142 193 / .28);
}

.tabs { background: #091723; border-color: #25445b; }
.plan {
  background: rgb(6 18 30 / .96);
  border-color: #233f55;
}
.plan.featured {
  background: linear-gradient(110deg, #0b2138, #0a1b2c);
  border-color: #29618b;
}
.discount-badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 8px;
  border: 1px solid rgb(56 189 248 / .35);
  border-radius: 5px;
  background: rgb(56 189 248 / .1);
  color: #7edcff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.original-price {
  display: block;
  margin-bottom: 3px;
  color: #9eb2c1;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.original-price del {
  margin-left: 3px;
  font-size: 13px;
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}
.service-story,
.coverage {
  border: 1px solid #23445d;
  background:
    linear-gradient(115deg, rgb(10 28 43 / .97), rgb(10 28 43 / .92)),
    url("assets/cyber-edges.svg") right center / 1100px auto;
}
.additional-service { background: rgb(5 13 23 / .8); }
.activation-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid #29618b;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #0b2138, #091927);
}
.activation-info { display: flex; align-items: center; gap: 20px; min-width: 0; }
.activation-info img { flex-shrink: 0; }
.activation-info h3 { font-size: 18px; letter-spacing: -.4px; line-height: 1.4; }
.activation-info p { max-width: 500px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.process ol { padding: 24px 0; background: rgb(5 13 23 / .72); }
.process h3 { color: #eef7ff; }
.process li > span { color: #53cfff; }
.faq-list {
  padding: 0 24px;
  border: 1px solid #20394d;
  border-radius: var(--radius);
  background: rgb(6 18 30 / .95);
}
.faq-list details:last-child { border-bottom: 0; }
footer {
  position: relative;
  margin-top: 30px;
  border-top: 1px solid rgb(60 142 193 / .3);
  background: rgb(5 13 23 / .82);
}
footer a:hover { color: #70d6ff; }
.button { box-shadow: 0 0 22px rgb(37 99 235 / .12); }
.button.outline { background: #071421; box-shadow: none; }
.button.outline:hover { background: #0f2a3d; }
.gallery { background: #071421; border-color: #2c6387; }

@media (prefers-reduced-motion: no-preference) {
  .hero-circuit::after { animation: circuit-breathe 9s ease-in-out infinite; }
  @keyframes circuit-breathe {
    0%, 100% { opacity: .06; }
    45%, 60% { opacity: .3; }
  }
}

@media (min-width: 1600px) {
  :root { --circuit-tile-width: 100%; --circuit-tile-height: 1250px; }
}

@media (max-width: 1100px) {
  .hero { padding-block: 54px 48px; }
  .hero-circuit { opacity: .8; width: var(--hero-circuit-width, calc(100% + 64px)); }
}

@media (max-width: 767px) {
  body::before { background-size: auto, auto, auto, 26px 26px; }
  :root { --circuit-tile-width: 900px; --circuit-tile-height: 950px; }
  body::after { opacity: .2; }
  .header { background: #050d17; }
  .hero { padding-block: 40px 34px; }
  .hero-circuit { top: -72px; opacity: .62; width: var(--hero-circuit-width, calc(100% + 40px)); }
  .hero-copy { background: radial-gradient(ellipse at 30% 40%, rgb(5 13 23 / .8), transparent 85%); }
  .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .photo-mosaic button { aspect-ratio: 1.55; }
  .photo-mosaic .mosaic-main { aspect-ratio: 1.8; }
  .discount-badge { padding: 4px 6px; font-size: 9px; }
  .promo-price { min-width: 106px; }
  .activation-offer { gap: 16px; margin-top: 22px; padding: 20px 17px; }
  .activation-info img { display: none; }
  .activation-info h3 { font-size: 14px; }
  .activation-info p { font-size: 11px; }
  .hero-image figcaption { flex-wrap: wrap; gap: 3px 12px; }
  .process ol { padding: 14px 0; }
  .faq-list { padding-inline: 17px; }
  footer { margin-top: 24px; }
}
