/* =============================================================
   AlejoRED — versión premium
   Identidad: navy #081B35 · azul #1675EF · cian #43D5E8
   Lenguaje visual: cielo claro, lomas y ondas (señal + campo),
   formas líquidas, tipografía Outfit + Inter.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #081B35;
  --blue: #1675EF;
  --blue-dark: #0F5FD1;
  --blue-soft: #8FB7F5;
  --cyan: #43D5E8;
  --cyan-deep: #22B8CE;
  --teal: #1E7F93;
  --teal-dark: #166477;
  --sun: #FFD166;

  --ink: #0B1D3A;
  --text: #44536A;
  --muted: #6E7C92;

  --bg: #F3F8FF;
  --bg-2: #E8F1FF;
  --paper: #FFFFFF;
  --tint-blue: #EAF2FE;
  --tint-blue-2: #DCE9FC;
  --tint-cyan: #E6F8FB;
  --tint-cyan-2: #D2F1F6;
  --tint-gray: #EEF1F6;

  --line: rgba(8, 27, 53, 0.10);
  --line-blue: #CFDDF5;
  --line-cyan: #BFE7EE;
  --line-dash: #AEBBD0;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(8, 27, 53, 0.06);
  --shadow: 0 18px 44px rgba(8, 27, 53, 0.10);
  --shadow-lg: 0 30px 70px rgba(8, 27, 53, 0.16);

  --font-head: "Outfit", "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 84px;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.nav-open, html.nav-open body { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 700; }
::selection { background: var(--cyan); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: fixed; left: 16px; top: -80px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px;
  z-index: 1000; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 14px; }

/* Pendientes (elementos por validar o sustituir): borde punteado */
.pendiente { border: 1.5px dashed var(--line-dash) !important; }

/* Regla defensiva: un elemento con data-split nunca se queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.title-xl {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 13ch;
}
.title-xl .accent { color: var(--blue); }
.title-lg { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); max-width: 52ch; }
.link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--blue-dark); }

/* Etiqueta de sección: la "A" con enlace de red + texto en caja normal (sin versalitas) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 16px;
}
.eyebrow-mark { width: 22px; height: 22px; flex: none; }
.section-dark .eyebrow { color: var(--cyan); }
.section-dark .eyebrow-mark { --marca-navy: #fff; }

/* =============================================================
   5. Componentes
   ============================================================= */
/* Botones: se elevan al pasar el cursor (microinteracción, no se desactiva) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 117, 239, 0.26);
}
.btn-primary:hover { color: #fff; box-shadow: 0 20px 40px rgba(22, 117, 239, 0.32); }

.btn-ghost { background: rgba(255,255,255,0.85); color: var(--ink); border-color: var(--line-blue); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-soft); box-shadow: var(--shadow); }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); width: 100%; padding: 12px 18px; border-radius: 16px; font-size: 0.95rem; }
.btn-outline:hover { background: var(--tint-blue); box-shadow: var(--shadow-sm); }
.btn-outline-teal { color: var(--teal); border-color: var(--teal); }
.btn-outline-teal:hover { background: var(--tint-cyan); }

.btn-cyan { background: var(--cyan); color: var(--navy); box-shadow: 0 10px 28px rgba(67, 213, 232, 0.32); }
.btn-cyan:hover { background: #5FDDED; color: var(--navy); box-shadow: 0 20px 44px rgba(67, 213, 232, 0.38); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  color: var(--ink);
  background: var(--tint-gray);
  white-space: nowrap;
}
.chip-blue { background: var(--tint-blue-2); color: var(--blue-dark); }
.chip-cyan { background: var(--tint-cyan-2); color: var(--teal-dark); }

/* Formas líquidas (blob): el borde se transforma lentamente */
.blob {
  display: grid; place-items: center;
  border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%;
  background: linear-gradient(140deg, var(--tint-blue) 0%, var(--tint-blue-2) 100%);
  animation: blobMorph 14s ease-in-out infinite;
}
.blob.is-cyan { background: linear-gradient(140deg, var(--tint-cyan) 0%, var(--tint-cyan-2) 100%); }
.blob.is-gray { background: linear-gradient(140deg, #F2F4F8 0%, var(--tint-gray) 100%); }
.blob-icon { width: 68px; height: 68px; flex: none; animation-duration: 11s; }
.blob-icon svg { width: 48px; height: 48px; }
.blob-feature { width: 150px; height: 150px; margin-bottom: 24px; }
.blob-feature svg { width: 104px; height: 104px; }
.blob-group { width: 92px; height: 92px; flex: none; background: #fff; }
.blob-group svg { width: 64px; height: 64px; }

/* Flotación suave (producto/tarjetas que "respiran") */
.float { animation: floatY 7s ease-in-out infinite; }
.float-2 { animation-delay: -2.4s; animation-duration: 8s; }
.float-3 { animation-delay: -1.2s; animation-duration: 9s; }

/* Separadores ondulados: dos capas que se desplazan en sentidos opuestos */
.wave { position: absolute; left: 0; right: 0; height: clamp(40px, 7vw, 100px); pointer-events: none; overflow: hidden; z-index: 2; }
.wave svg { width: 100%; height: 100%; overflow: visible; }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.wave-front { animation: waveDrift 26s linear infinite; }
.wave-back { opacity: .5; animation: waveDriftBack 34s linear infinite; }

/* =============================================================
   6. Encabezado y menú
   ============================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  background: rgba(243, 248, 255, 0);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(8, 27, 53, 0.06), 0 10px 30px rgba(8, 27, 53, 0.06);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 58px; width: auto; }

.nav-list { display: flex; gap: 34px; }
.nav-link {
  position: relative; display: inline-block;
  font-weight: 600; color: var(--ink); font-size: 0.98rem;
  padding: 8px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-header { padding: 12px 22px; }
.label-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line-blue); border-radius: 16px; background: #fff;
  align-items: center; justify-content: center;
  position: relative; z-index: 120;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menú de teléfono: pantalla completa, aparece con un corte líquido */
.nav-mobile {
  position: fixed; inset: 0; z-index: 110;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0 round 0 0 48px 48px);
  transition: clip-path .65s var(--ease-soft), visibility 0s linear .65s;
  visibility: hidden;
}
.nav-mobile.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; transition-delay: 0s; }
.nav-mobile nav { width: 100%; max-width: 420px; }
.nav-mobile ul { display: grid; gap: 6px; margin-bottom: 28px; }
.nav-mobile ul a {
  display: block; padding: 16px 4px;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-mobile-note { margin-top: 22px; color: #AFC0DA; font-size: 0.95rem; text-align: center; }

/* =============================================================
   7. Secciones
   ============================================================= */
.section { position: relative; padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(220px, 27vw, 400px);
  display: flex; align-items: center;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 84% 8%, rgba(255, 209, 102, 0.28), transparent 65%),
    radial-gradient(700px 500px at 10% 30%, rgba(67, 213, 232, 0.14), transparent 60%),
    linear-gradient(180deg, #F4F9FF 0%, #EBF3FF 60%, #DFECFC 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 620px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.9); color: var(--ink);
  padding: 9px 16px 9px 12px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.pill .eyebrow-mark { width: 20px; height: 20px; }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Selector de tipo de conexión: tarjetas líquidas que flotan */
.chooser-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.chooser-list { display: grid; gap: 14px; }
.chooser-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px; align-items: center;
  padding: 18px 20px 18px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  transition: box-shadow .45s var(--ease-soft), border-color .3s;
}
.chooser-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-blue); }
.chooser-card.is-cyan:hover { border-color: var(--line-cyan); }
.chooser-card.is-cyan .blob { background: linear-gradient(140deg, var(--tint-cyan) 0%, var(--tint-cyan-2) 100%); }
.chooser-body { display: grid; gap: 2px; min-width: 0; }
.chooser-name { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; color: var(--ink); }
.chooser-desc { font-size: 0.92rem; color: var(--text); }
.chooser-meta { font-size: 0.9rem; color: var(--text); margin-top: 4px; }
.chooser-meta strong { color: var(--blue); }
.is-cyan .chooser-meta strong { color: var(--teal); }
.chooser-chevron { width: 20px; height: 20px; color: var(--muted); transition: transform .35s var(--ease-soft), color .2s; }
.chooser-card:hover .chooser-chevron { transform: translateX(4px); color: var(--blue); }
.chooser-note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }

/* Escena: lomas al fondo del hero */
.hero-scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: clamp(220px, 29vw, 480px);
  pointer-events: none;
}
.hero-scene .scene-desktop { width: 100%; height: 100%; }
.hero-scene-mobile { display: none; }
.scene-mobile { width: 100%; height: auto; aspect-ratio: 400 / 300; }

.hero .wave-hero { bottom: -1px; z-index: 1; }
.wave-hero .wave-front { fill: var(--bg); }
.wave-hero .wave-back { fill: var(--bg); }

/* Movimiento de la escena */
.drift-far { animation: driftFar 48s ease-in-out infinite alternate; }
.drift-mid { animation: driftMid 36s ease-in-out infinite alternate; }
.cloud-1 { animation: cloudDrift 40s ease-in-out infinite alternate; }
.cloud-2 { animation: cloudDrift 52s ease-in-out infinite alternate-reverse; }
.beam { animation: dashFlow 1.8s linear infinite; }
.fiber-pulse { stroke-dasharray: 16 120; animation: fiberFlow 2.6s linear infinite; }
.sig { opacity: .25; animation: signalPulse 3.2s ease-out infinite; }
.sig:nth-child(2) { animation-delay: .5s; }
.sig:nth-child(3) { animation-delay: 1s; }
.sig:nth-child(4) { animation-delay: 1.5s; }

/* ---------- Por qué ---------- */
.section-why { padding-top: 96px; }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
/* Sin tarjeta a propósito: las tarjetas quedan para lo que se puede elegir (los planes). */
.feature { padding: 4px 0; max-width: 34ch; }
.feature .blob-feature { background: linear-gradient(140deg, var(--tint-blue-2) 0%, #C9DDF9 100%); }
.feature .blob-feature.is-cyan { background: linear-gradient(140deg, var(--tint-cyan-2) 0%, #BDE9F0 100%); }
.feature .blob-feature.is-gray { background: linear-gradient(140deg, #E6EAF1 0%, #D7DDE7 100%); }
.feature .chip { margin-bottom: 14px; }
.feature h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.feature p { font-size: 1rem; line-height: 1.6; }

/* ---------- Planes ---------- */
.section-plans { background: var(--paper); padding-top: 128px; }
.wave-plans .wave-front, .wave-plans .wave-back { fill: var(--paper); }
.plans-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 36px;
}
.plans-head .lead { max-width: 46ch; margin-top: 16px; }
.plans-switch { display: flex; gap: 14px; flex: none; }
.plans-switch a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 18px;
  background: var(--tint-blue); border: 1px solid var(--line-blue);
  font-weight: 700; color: var(--ink); font-size: 1rem;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.plans-switch a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plans-switch a.is-cyan { background: var(--tint-cyan); border-color: var(--line-cyan); }
.plans-switch .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.plans-switch .dot-cyan { background: var(--cyan); }

.plan-group { margin-top: 48px; }
.plan-group:first-of-type { margin-top: 0; }
.group-banner {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--tint-blue);
  border: 1px solid var(--line-blue);
  margin-bottom: 26px;
}
.group-banner.is-cyan { background: var(--tint-cyan); border-color: var(--line-cyan); }
.group-kicker {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  color: var(--blue-dark); margin-bottom: 8px;
}
.is-cyan .group-kicker { color: var(--teal-dark); }
.group-banner h3 { font-size: 1.9rem; font-weight: 700; margin-bottom: 4px; }
.group-banner p { font-size: 1rem; }

.plans-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.plan {
  background: var(--paper);
  border: 1px solid var(--line-blue);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.is-cyan { border-color: var(--line-cyan); }
.plan-art { background: var(--tint-blue); padding: 14px 18px 12px; }
.plan.is-cyan .plan-art { background: var(--tint-cyan); }
.plan-art svg { width: 100%; height: auto; }
.plan-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.plan-speed { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-num { font-family: var(--font-head); font-size: 4.4rem; font-weight: 800; color: var(--ink); line-height: 0.85; letter-spacing: -0.05em; }
.plan-unit { display: flex; flex-direction: column; line-height: 1.1; padding-bottom: 2px; }
.plan-unit strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.plan-unit small { font-size: 0.86rem; color: var(--text); margin-top: 3px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; padding: 18px 0 20px; }
.plan-price .price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.plan-price .per { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.plan-body .btn { margin-top: auto; }

/* Ilustraciones de las tarjetas de plan: cada nivel enciende más hilos/ondas. */
.art-fibra, .art-antena {
  --s1: #DCE6F6; --s2: #DCE6F6; --s3: #DCE6F6; --s4: #DCE6F6;
  --c1: 0; --c2: 0; --c3: 0; --c4: 0;
  --a1: #D5EDF2; --a2: #D5EDF2; --a3: #D5EDF2;
}
.art-fibra.tier-1 { --s1: #1675EF; --c1: 1; }
.art-fibra.tier-2 { --s1: #1675EF; --s2: #5C98F4; --c1: 1; --c2: 1; }
.art-fibra.tier-3 { --s1: #1675EF; --s2: #5C98F4; --s3: #9DC1F8; --c1: 1; --c2: 1; --c3: 1; }
.art-fibra.tier-4 { --s1: #1675EF; --s2: #5C98F4; --s3: #9DC1F8; --s4: #43D5E8; --c1: 1; --c2: 1; --c3: 1; --c4: 1; }
.art-antena.tier-1 { --a1: #43D5E8; }
.art-antena.tier-2 { --a1: #43D5E8; --a2: #43D5E8; }
.art-antena.tier-3 { --a1: #43D5E8; --a2: #43D5E8; --a3: #43D5E8; }

.plans-help { text-align: center; margin-top: 44px; font-size: 1.02rem; }

/* ---------- Cobertura (sección oscura entre ondas) ---------- */
.section-dark {
  background: var(--navy);
  color: #C9D4E6;
  padding: 150px 0 160px;
  isolation: isolate;
}
.wave-dark .wave-front, .wave-dark .wave-back { fill: var(--navy); }
.wave-dark-out .wave-front, .wave-dark-out .wave-back { fill: var(--bg); }
.dark-glow {
  position: absolute; inset: -30% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 78% 42%, rgba(67, 213, 232, 0.22), transparent 70%),
    radial-gradient(36% 32% at 14% 70%, rgba(22, 117, 239, 0.28), transparent 70%);
}
.section-dark .title-lg { color: #fff; }
.section-dark .lead { color: #C9D4E6; }
.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}
.coverage-copy .lead { margin-top: 22px; }
.coverage-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wa-pending {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  border-color: #4A5C7A !important; color: #C9D4E6; font-size: 0.86rem; font-weight: 600;
}
.wa-pending .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.coverage-note { margin-top: 22px; font-size: 1rem; line-height: 1.6; color: #C9D4E6; max-width: 46ch; }

.steps-card {
  background: #fff; color: var(--text);
  border-radius: var(--radius-lg); padding: 34px 36px;
  box-shadow: var(--shadow-lg);
}
.steps-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 18px; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--cyan); }
.step:last-child::before { display: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-family: var(--font-head);
  display: grid; place-items: center; font-size: 1rem;
  position: relative; z-index: 1;
}
.step p { padding-top: 8px; font-size: 1.02rem; }

/* ---------- Preguntas frecuentes ---------- */
.section-faq { padding-top: 96px; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.faq-grid .lead { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { width: 22px; height: 22px; flex: none; color: var(--blue); position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform .25s var(--ease-soft);
}
.faq-icon::before { width: 18px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 18px; }
.faq-item[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(45deg); }
.faq-answer { padding: 0 0 26px; font-size: 1.02rem; line-height: 1.65; max-width: 60ch; }

/* ---------- Contacto en el pie (discreto a propósito) ---------- */
.footer-contact { font-size: 0.92rem; color: var(--text); }
.footer-address { font-style: normal; line-height: 1.55; }
.footer-map { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-hours { margin: 10px 0 10px; }
.footer-col .footer-lines { display: grid; gap: 4px; }
.footer-col .footer-lines a { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.footer-col .footer-lines a:hover, .footer-map:hover { color: var(--blue); }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; background: var(--paper); padding: 120px 0 32px; }
.wave-footer .wave-front, .wave-footer .wave-back { fill: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px;
}
.logo-footer { height: 78px; }
.footer-brand p { margin-top: 18px; font-size: 1rem; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  color: var(--text); margin-bottom: 14px;
}
.footer-col li + li { margin-top: 12px; }
.footer-col a { font-weight: 700; color: var(--ink); font-size: 1rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { font-weight: 600; color: var(--text); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--blue); }

/* =============================================================
   8. Efectos: aparición y animaciones
   ============================================================= */
/* Solo se oculta contenido cuando hay JavaScript (clase .js en <html>) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
/* Recorte parcial a propósito: Chrome no detecta en IntersectionObserver un
   elemento recortado al 100 %; la opacidad 0 ya lo mantiene invisible. */
.js [data-reveal="mask"] {
  transform: translateY(36px);
  clip-path: inset(0 0 55% 0 round 28px);
  transition: opacity .9s var(--ease-soft), transform 1s var(--ease-soft), clip-path 1.1s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-revealed { clip-path: inset(0 0 0 0 round 28px); }
/* Las ventajas no llevan tarjeta: su recorte no redondea esquinas y termina fuera de la caja */
.js .feature[data-reveal="mask"] { clip-path: inset(0 0 55% 0); }
.js .feature[data-reveal="mask"].is-revealed { clip-path: inset(-24px); }
/* Las tarjetas flotantes conservan su animación una vez visibles */
.js .float[data-reveal] { animation-play-state: paused; }
.js .float[data-reveal].is-revealed { animation-play-state: running; }
.features .feature:nth-child(2), .plans-grid .plan:nth-child(2) { transition-delay: .08s; }
.features .feature:nth-child(3), .plans-grid .plan:nth-child(3) { transition-delay: .16s; }
.plans-grid .plan:nth-child(4) { transition-delay: .24s; }
.chooser-list .chooser-card:nth-child(2) { transition-delay: .1s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; }
  33% { border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%; }
  66% { border-radius: 38% 62% 55% 45% / 60% 42% 58% 40%; }
}
@keyframes waveDrift { to { transform: translateX(-540px); } }
@keyframes waveDriftBack { from { transform: translateX(-540px); } to { transform: translateX(0); } }
@keyframes driftFar { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes driftMid { from { transform: translateX(22px); } to { transform: translateX(-22px); } }
@keyframes cloudDrift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes dashFlow { to { stroke-dashoffset: -26; } }
@keyframes fiberFlow { to { stroke-dashoffset: -136; } }
@keyframes signalPulse {
  0% { opacity: .15; }
  35% { opacity: 1; }
  100% { opacity: .15; }
}

/* =============================================================
   9. Responsive
   ============================================================= */
@media (max-width: 1280px) {
  .title-xl { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
}

@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 32px; }
  .features { gap: 28px; }
  .blob-feature { width: 124px; height: 124px; }
  .blob-feature svg { width: 88px; height: 88px; }
}

@media (max-width: 959px) {
  :root { --header-h: 70px; --gutter: 20px; }
  .section { padding: 72px 0; }

  /* Encabezado de teléfono */
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .btn-header { padding: 11px 16px; font-size: 0.92rem; }
  .nav-toggle { width: 44px; height: 44px; border-radius: 14px; flex: none; }
  .logo-img { height: 46px; }
  .site-header { background: rgba(255,255,255,0.92); box-shadow: 0 1px 0 rgba(8,27,53,0.06); }
  html.nav-open .site-header { background: #fff; box-shadow: none; }

  .lead { font-size: 1.0625rem; line-height: 1.6; }

  /* Hero apilado: texto, escena, selector */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 32px); padding-bottom: 0; display: block; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { order: 1; max-width: none; }
  .hero-scene-mobile { order: 2; display: block; margin: 12px calc(-1 * var(--gutter)) 0; }
  /* El selector se apoya sobre la loma: el color del terreno continúa y se funde con el fondo */
  .hero-chooser {
    order: 3;
    margin: -1px calc(-1 * var(--gutter)) 0;
    padding: 22px var(--gutter) 40px;
    background: linear-gradient(180deg, #A9CDF2 0%, #BFD9F5 30%, #DCE9FC 72%, var(--bg) 100%);
  }
  .chooser-title { color: var(--navy); }
  .chooser-note { color: var(--text); }
  .hero-scene { display: none; }
  .hero-actions { flex-direction: column; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .chooser-card { padding: 16px; gap: 14px; border-radius: 22px; }
  .blob-icon { width: 60px; height: 60px; }
  .blob-icon svg { width: 42px; height: 42px; }
  .chooser-name { font-size: 1.12rem; }
  .hero .wave-hero { display: none; }

  /* Por qué */
  .section-why { padding-top: 56px; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .feature { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; align-items: start; max-width: none; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .feature .chip { justify-self: start; }
  .feature .blob-feature { grid-row: 1 / span 3; width: 92px; height: 92px; margin: 0; }
  .feature .blob-feature svg { width: 70px; height: 70px; }
  .feature h3 { font-size: 1.2rem; }

  /* Planes */
  .section-plans { padding-top: 92px; }
  .plans-head { flex-direction: column; align-items: stretch; }
  .plans-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .plans-switch a { padding: 14px 14px; white-space: normal; justify-content: center; text-align: center; }
  .group-banner { align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .blob-group { width: 76px; height: 76px; }
  .blob-group svg { width: 54px; height: 54px; }
  .group-banner h3 { font-size: 1.6rem; }
  .plans-grid, .plans-grid.cols-3 { grid-template-columns: 1fr; gap: 18px; }
  .plan-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; row-gap: 18px; padding: 22px 20px 24px; }
  .plan-speed { border-bottom: 0; padding-bottom: 0; }
  .plan-price { padding: 0 0 6px; }
  .plan-body .btn { grid-column: 1 / -1; margin-top: 0; }
  .plan-num { font-size: 3.6rem; }
  .plan-unit strong { font-size: 1.3rem; }
  .plan-unit small { font-size: 0.8rem; white-space: nowrap; }
  .plan-price .price { font-size: 1.8rem; }
  .plan-price .per { font-size: 0.95rem; }
  .plans-help { text-align: left; }

  /* Cobertura */
  .section-dark { padding: 104px 0 112px; }
  .coverage-grid { grid-template-columns: 1fr; gap: 32px; }
  .coverage-actions { align-items: stretch; }
  .coverage-actions .btn { width: 100%; }
  .wa-pending { justify-content: flex-start; font-size: 0.8rem; }
  .steps-card { padding: 26px 22px; }

  /* FAQ */
  .section-faq { padding-top: 64px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-item summary { font-size: 1.1rem; padding: 20px 0; }

  .footer-col .footer-lines { display: grid; gap: 6px; }

  /* Pie */
  .site-footer { padding: 84px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .footer-col li + li { margin-top: 0; }
  .footer-cta .btn { width: 100%; }
  .footer-cta h4 { display: none; }
  .logo-footer { height: 64px; }

  /* En teléfono la aparición es solo fundido + desplazamiento (sin recorte, más ligero) */
  .js [data-reveal="mask"] { clip-path: none; transform: translateY(24px); }
  .js [data-reveal="mask"].is-revealed,
  .js .feature[data-reveal="mask"],
  .js .feature[data-reveal="mask"].is-revealed { clip-path: none; }
}

@media (max-width: 420px) {
  .title-xl { font-size: 2.55rem; }
  .plan-num { font-size: 3.3rem; }
  .plan-price .price { font-size: 1.7rem; }
  .plan-unit small { white-space: normal; }
  .feature { grid-template-columns: 80px minmax(0, 1fr); }
  .feature .blob-feature { width: 80px; height: 80px; }
  .feature .blob-feature svg { width: 60px; height: 60px; }
}

/* Teléfonos muy angostos: el precio baja a su propia línea en vez de encogerse */
@media (max-width: 340px) {
  .plan-body { grid-template-columns: 1fr; row-gap: 12px; padding-left: 18px; padding-right: 18px; }
  .plan-price { padding: 0 0 2px; }
}

/* =============================================================
   10. Movimiento reducido (ajuste del sistema del visitante):
   se detienen todos los bucles (lomas, nubes, ondas, flotación,
   formas y señal) y las apariciones pasan a un fundido breve.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .beam, .fiber-pulse, .sig,
  .float, .blob, .wave-front, .wave-back,
  .drift-far, .drift-mid, .cloud-1, .cloud-2 { animation: none; }
  .fiber-pulse { stroke-dasharray: none; opacity: .55; }
  .sig { opacity: .85; }
  .js [data-reveal] { transform: none; clip-path: none; transition: opacity .3s linear; }
  .js [data-reveal="mask"].is-revealed,
  .js .feature[data-reveal="mask"],
  .js .feature[data-reveal="mask"].is-revealed { clip-path: none; }
  .btn, .plan, .chooser-card, .plans-switch a, .nav-link::after, .chooser-chevron { transition: none; }
  .btn:hover, .btn:active, .plan:hover, .plans-switch a:hover, .chooser-card:hover .chooser-chevron { transform: none; }
}

/* =============================================================
   11. Páginas legales (privacy-policy/ y terminos-y-condiciones/):
   copias exactas de las páginas publicadas, con la misma identidad.
   ============================================================= */
.legal-header, .legal-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.legal { padding: calc(var(--header-h) + 48px) 0 88px; }
.legal-doc { max-width: 72ch; }
.legal-doc h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.legal-doc h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal-doc p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 14px; overflow-wrap: anywhere; }
.legal-doc ul { list-style: disc; padding-left: 1.4em; margin: 0 0 16px; }
.legal-doc li { line-height: 1.6; margin: 4px 0; }
.legal-footer { padding: 28px 0 32px; }
.legal-footer .footer-bottom { margin-top: 0; }
@media (max-width: 959px) {
  .legal { padding: calc(var(--header-h) + 28px) 0 64px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
