/* ============================================================
   Conectividad: el GPS emite ondas; cada onda "encuentra" una red
   (las operadoras aparecen una por una) y la conexión va pasando a la
   mejor disponible. La operadora conectada se ve a color.
   ============================================================ */

.bt.cx {
  position: relative; overflow: hidden; padding: 96px 0;
  background: radial-gradient(80% 120% at 100% 0, #0d4e70cc 0%, #0a223b00 50%), #0a223b;
  color: #fff;
}
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.cx-texto { padding-bottom: 8px; }

/* Texto */
.cx-kick { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b9e4ff; margin: 0 0 12px; }
.cx-h2 { margin: 0 0 16px; font: 800 clamp(28px, 2.9vw, 38px)/1.14 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px; color: #fff; }   /* cabe en su columna sin dejar 'incluida.' sola */
.cx-sub { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: #ffffffbf; }
.cx-datos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.cx-datos li { display: flex; align-items: flex-start; gap: 13px; }
.cx-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #ffffff12; border: 1px solid #ffffff1f; }
.cx-ico svg { width: 19px; height: 19px; fill: none; stroke: #b9e4ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-datos p { margin: 0; padding-top: 2px; }
.cx-datos b { display: block; font: 700 15px/1.3 'Plus Jakarta Sans', sans-serif; color: #fff; }
.cx-datos p span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #ffffffa6; }   /* solo el texto, no el recuadro del ícono */
.cx-legal { margin: 22px 0 0; font-size: 12px; color: #ffffff73; }

/* Escena */
/* El GPS sale del borde inferior de la sección: la escena llega hasta abajo y la
   sección (overflow: hidden) corta el equipo a tres cuartos */
.cx-escena { position: relative; width: 100%; max-width: 500px; aspect-ratio: 480 / 460; margin: 0 auto -96px; align-self: end; }
.cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-orbita { fill: none; stroke: #ffffff14; stroke-width: 1.5; stroke-dasharray: 3 7; }
.cx-ondas circle { fill: none; stroke: #8ccbff; stroke-width: 1.6; }   /* la opacidad la pone conectividad.js */
.cx-lineas line { stroke: #7cc4ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; opacity: 0; transition: opacity .35s; }
.cx-lineas line.on { opacity: .9; animation: cx-flujo .9s linear infinite; }
@keyframes cx-flujo { to { stroke-dashoffset: -22; } }

/* GPS: el render real (recortado de la imagen del hero) con contorno luminoso */
.g-foto { filter: drop-shadow(0 0 1px #9fd0ff80) drop-shadow(0 -6px 30px #4aa8ff4d); }
.g-led { fill: transparent; transition: fill .2s; }               /* destello sobre los LED reales */
.g-led-a.on { fill: #6fbaff; filter: drop-shadow(0 0 5px #4aa8ff); }
.g-led-b.on { fill: #5cf0a0; filter: drop-shadow(0 0 5px #3ddc84); }

/* Operadoras: aparecen con rebote; la conectada se ve a color */
.cx-op {
  position: absolute; left: var(--x); top: var(--y);
  display: grid; place-items: center; width: 27%; height: 11.5%;
  border-radius: 14px; background: #ffffff0f; border: 1px solid #ffffff1f;
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  transition: transform .5s var(--ease-pop), opacity .3s, background .35s, box-shadow .35s, border-color .35s;
}
.cx-op.visto { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cx-op img { max-width: 72%; max-height: 44%; filter: brightness(0) invert(1); opacity: .75; transition: filter .35s, opacity .35s; }
.cx-op.activa { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px #4aa8ff26, 0 12px 30px #00000059; transform: translate(-50%, -50%) scale(1.07); }
.cx-op.activa img { filter: none; opacity: 1; }

/* Estado de conexión */
.cx-estado {
  position: absolute; left: 50%; top: 8%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; background: #ffffff14; border: 1px solid #ffffff26;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: #ffffffd9;
}
.cx-estado i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.cx-estado i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: cx-ping 1.6s ease-out infinite; }
@keyframes cx-ping { to { transform: scale(2.8); opacity: 0; } }
.cx-estado b { color: #fff; }
.cx-red { display: inline-block; }
.cx-red.entra { animation: cx-red-entra .35s var(--ease-out) backwards; }
@keyframes cx-red-entra { from { opacity: 0; transform: translateY(5px); } }
.cx-barras { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.cx-barras s { width: 3px; border-radius: 1px; background: #ffffff40; transition: background .2s; }
.cx-barras s:nth-child(1) { height: 4px; } .cx-barras s:nth-child(2) { height: 7px; } .cx-barras s:nth-child(3) { height: 10px; } .cx-barras s:nth-child(4) { height: 12px; }
.cx-barras s.on { background: #3ddc84; }
.cx-estado strong { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: #ffffff1f; color: #fff; }

@media (max-width: 900px) {
  .cx-grid { grid-template-columns: 1fr; gap: 36px; }
  .cx-escena { max-width: 420px; }
}
@media (max-width: 720px) {
  .bt.cx { padding: 60px 0; }
  .cx-escena { margin-bottom: -60px; }
  .cx-sub { font-size: 15px; line-height: 1.55; }
  .cx-h2 br { display: none; }        /* que el navegador lo balancee: no deja "incluida." sola */
  .cx-op { border-radius: 11px; }
  .cx-estado { font-size: 12px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-op, .cx-lineas line { transition: none; }
  .cx-red.entra { animation: none; }
  .cx-lineas line.on, .cx-estado i::after { animation: none; }
}
