/* =========================================================
   Sitio 2026-11 (pedido del usuario: página más profesional y llamativa por servicio)
   Capa nueva sobre style.css: todo con prefijo gx- para no chocar con lo anterior.
   Idea: el mapa es la marca. Una sola pieza se mueve (el mapa en vivo del inicio);
   lo demás queda quieto y ordenado. Los colores de los planes son los mismos del panel.
   2026-11-13 (tarde): colores y estilo de la imagen que mandó el usuario («habla de nosotros»):
   grafito con cuadrícula, ruta amarilla, geocerca turquesa, tarjetas oscuras y datos en letra mono.
   ========================================================= */
:root {
  /* Los mismos de la app de monitoreo (app/web/css/app.css), para que la web y la app se vean como una sola cosa */
  --gx-noche: #14161b;      /* grafito (--bg de la app) */
  --gx-asfalto: #20232a;    /* tarjetas (--card de la app) */
  --gx-asfalto-2: #262a32;
  --gx-senal: #2e70ff;      /* azul de la marca: enlaces sobre fondo claro */
  --gx-pin: #ff5a3c;        /* naranja de la app: botones de acción */
  --gx-via: #f5b800;
  --gx-alerta: #ff5a3c;     /* alertas y apagado remoto */
  --gx-geo: #22b8b0;        /* geocercas */
  --gx-vivo: #34d399;       /* en vivo (verde de la app) */
  --gx-papel: #f3f4f6;      /* fondo claro */
  --gx-tinta: #111418;
  --gx-gris: #59616c;
  --gx-gris-claro: #a3abb5;
  --gx-linea-clara: #e1e4e8;
  --gx-linea-oscura: rgba(255, 255, 255, 0.11);
  --gx-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Planes (los colores del panel) */
  --gx-basico: #4f86ff;
  --gx-estandar: #22b07d;
  --gx-premium: #ff7a45;
  --gx-video: #e0457b;
  --gx-display: "Saira Semi Condensed", "Saira", system-ui, sans-serif;
  --gx-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* la letra de la app */
}

body { font-family: var(--gx-texto); }

.gx {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  color: var(--gx-tinta);
  background: var(--gx-papel);
  overflow: hidden;
}
.gx--noche {
  color: #e9ecef;
  background-color: var(--gx-noche);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* Datos y rótulos en letra mono, como en la imagen del usuario */
.gx-mono { font-family: var(--gx-mono); font-size: 0.82rem; letter-spacing: 0; }
.gx--blanco { background: #fff; }
.gx-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; position: relative; }

/* ---------- Tipografía ---------- */
.gx-titulo {
  font-family: var(--gx-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 20ch;
  text-wrap: balance;
}
.gx-lead {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--gx-gris);
  max-width: 60ch;
  margin: 0;
}
.gx--noche .gx-lead { color: var(--gx-gris-claro); }
.gx-cabeza { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.gx-cabeza--centro { text-align: center; }
.gx-cabeza--centro .gx-titulo, .gx-cabeza--centro .gx-lead { margin-inline: auto; }
.gx-cabeza--fila { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.gx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.45rem;
  border-radius: 14px; border: 2px solid transparent;
  font: 600 1.02rem/1 var(--gx-texto);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.gx-btn:hover { transform: translateY(-2px); }
.gx-btn:active { transform: translateY(0); }
.gx-btn:focus-visible, .gx a:focus-visible, .gx summary:focus-visible { outline: 3px solid var(--gx-via); outline-offset: 3px; }
.gx-btn--pin { color: #fff; background: var(--gx-pin); }
.gx-btn--pin:hover { background: #ff7a45; }
.gx-btn--linea { color: inherit; border-color: currentColor; background: transparent; }
.gx--noche .gx-btn--linea { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.gx--noche .gx-btn--linea:hover { border-color: #fff; }
.gx-btn--claro { color: var(--gx-tinta); background: #fff; }
.gx-acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.gx-enlace { color: var(--gx-senal); font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.gx--noche .gx-enlace { color: var(--gx-via); }

/* ---------- Inicio: hero con el mapa en vivo ---------- */
.gx-hero { padding-top: clamp(7.5rem, 12vw, 9.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.gx-hero__grid { display: grid; grid-template-columns: 0.92fr 1.12fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.gx-hero h1 {
  font-family: var(--gx-display); font-weight: 800;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  line-height: 0.96; letter-spacing: -0.015em;
  margin: 0 0 1.4rem; text-wrap: balance; color: #fff;
}
.gx-hero h1 .gx-h1-sub { display: block; color: var(--gx-gris-claro); font-weight: 600; font-size: 0.56em; line-height: 1.12; margin-top: 0.7rem; letter-spacing: 0; }
.gx-datos { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 2.4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--gx-linea-oscura); list-style: none; }
.gx-datos li { display: flex; align-items: center; gap: 0.55rem; color: #cfd8ec; font-size: 0.95rem; }
.gx-datos i { color: var(--gx-via); font-size: 0.95rem; }

/* El mapa (como la imagen del usuario): vías curvas, ruta amarilla, geocerca turquesa, tarjeta de la app y una alerta */
.gx-mapa {
  position: relative; aspect-ratio: 900 / 680; margin: 0; border-radius: 22px;
  background: var(--gx-noche); border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.gx-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-mapa .via { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 24; stroke-linecap: round; }
.gx-mapa .geo { fill: rgba(34, 184, 176, 0.12); stroke: var(--gx-geo); stroke-width: 3.5; stroke-dasharray: 16 12; }
.gx-mapa .ruta { fill: none; stroke: var(--gx-via); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gx-ruta 2.6s 0.4s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
.gx-mapa .ruta-sombra { fill: none; stroke: rgba(245, 184, 0, 0.16); stroke-width: 24; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gx-ruta 2.6s 0.4s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
.gx-mapa .inicio { fill: #e9ecef; stroke: #14161b; stroke-width: 5; }
.gx-mapa .otra { fill: #b9bec5; stroke: #14161b; stroke-width: 7; }
@keyframes gx-ruta { to { stroke-dashoffset: 0; } }
.gx-pin__halo { transform-box: fill-box; transform-origin: center; animation: gx-halo 2.2s 3.1s ease-out infinite; }
@keyframes gx-halo { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.gx-alerta-mapa {
  position: absolute; top: 4.5%; right: 3.5%;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.95rem; border-radius: 12px;
  background: var(--gx-asfalto); border: 1px solid rgba(255, 90, 60, 0.35);
  color: #e9ecef; font-size: 0.92rem; line-height: 1.25;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(-8px); animation: gx-aviso 0.45s 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.gx-alerta-mapa b { display: block; color: var(--gx-alerta); font-weight: 600; }
.gx-alerta-mapa__punto { width: 11px; height: 11px; border-radius: 50%; background: var(--gx-alerta); flex: none; }
@keyframes gx-aviso { to { opacity: 1; transform: none; } }

.gx-tarjeta-app {
  position: absolute; left: 4.5%; bottom: 6%; width: min(310px, 44%);
  display: grid; gap: 0.35rem; padding: 1rem;
  border-radius: 18px; background: var(--gx-asfalto); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.gx-tarjeta-app__top { display: flex; justify-content: space-between; color: var(--gx-gris-claro); margin-bottom: 0.35rem; }
.gx-en-vivo { color: var(--gx-vivo); display: inline-flex; align-items: center; gap: 0.4rem; }
.gx-en-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gx-tarjeta-app strong { font-size: 1.15rem; font-weight: 600; }
.gx-tarjeta-app__meta { color: var(--gx-gris-claro); margin-bottom: 0.4rem; }
.gx-tarjeta-app__botones { display: grid; gap: 0.45rem; }
.gx-tarjeta-app__botones span { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; }
.gx-tarjeta-app__botones i { width: 16px; color: var(--gx-gris-claro); font-size: 0.85rem; }
.gx-tarjeta-app__botones .is-alerta { color: var(--gx-alerta); border-color: rgba(255, 90, 60, 0.5); }
.gx-tarjeta-app__botones .is-alerta i { color: var(--gx-alerta); }

/* ---------- Servicios ---------- */
.gx-servicios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.gx-servicio {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--gx-linea-clara);
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gx-servicio:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(14, 22, 48, 0.12); }
.gx-servicio__foto { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: #dfe6f2; }
.gx-servicio__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gx-servicio:hover .gx-servicio__foto img { transform: scale(1.03); }
.gx-servicio__chip {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem; border-radius: 12px;
  background: rgba(11, 19, 48, 0.85); color: #fff; font-size: 0.86rem; font-weight: 500;
}
.gx-servicio__chip i { color: var(--gx-via); }
.gx-servicio__cuerpo { padding: 1.6rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.gx-servicio h3 { font-family: var(--gx-display); font-weight: 700; font-size: 1.85rem; line-height: 1.05; margin: 0 0 0.5rem; }
.gx-servicio p { color: var(--gx-gris); line-height: 1.55; margin: 0 0 1.1rem; }
.gx-servicio ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.5rem; }
.gx-servicio li { display: flex; gap: 0.6rem; align-items: baseline; line-height: 1.4; }
.gx-servicio li i { color: var(--gx-via); font-size: 0.6rem; transform: translateY(-2px); }
.gx-servicio__pie { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--gx-linea-clara); }
.gx-servicio__ir { font-weight: 600; color: var(--gx-senal); }

/* ---------- Chips de plan ---------- */
.gx-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  font-family: var(--gx-mono); font-size: 0.74rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  color: var(--c, var(--gx-gris)); background: color-mix(in srgb, var(--c, var(--gx-gris)) 13%, transparent);
}
.gx-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gx-chip--todos { --c: #6f7d96; }
.gx--noche .gx-chip--todos { --c: #a9b4cb; }
.gx-chip--basico { --c: var(--gx-basico); }
.gx-chip--estandar { --c: var(--gx-estandar); }
.gx-chip--premium { --c: var(--gx-premium); }
.gx-chip--video { --c: var(--gx-video); }
.gx--noche .gx-chip--estandar { --c: #3fd39b; }
.gx--noche .gx-chip--video { --c: #ff6b9b; }

/* ---------- Las 12 funciones ---------- */
.gx-funciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gx-grupo { background: var(--gx-asfalto); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 22px; padding: 1.4rem 1.2rem 0.6rem; }
.gx-grupo__nombre { display: flex; align-items: center; gap: 0.6rem; font-family: var(--gx-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin: 0 0 0.4rem; }
.gx-grupo__nombre i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 184, 0, 0.12); color: var(--gx-via); font-size: 0.95rem; }
.gx-grupo__texto { color: var(--gx-gris-claro); font-size: 0.9rem; line-height: 1.45; margin: 0 0 0.6rem; }
.gx-fn { padding: 0.95rem 0; border-top: 1px solid var(--gx-linea-oscura); }
.gx-fn h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.02rem; font-weight: 600; color: #fff; margin: 0 0 0.3rem; }
.gx-fn h3 i { color: var(--gx-gris-claro); width: 18px; text-align: center; font-size: 0.92rem; }
.gx-fn p { color: var(--gx-gris-claro); font-size: 0.9rem; line-height: 1.45; margin: 0 0 0.55rem; }
.gx--papel .gx-grupo, .gx--blanco .gx-grupo { background: #fff; border-color: var(--gx-linea-clara); }
.gx--papel .gx-grupo__nombre, .gx--blanco .gx-grupo__nombre, .gx--papel .gx-fn h3, .gx--blanco .gx-fn h3 { color: var(--gx-tinta); }
.gx--papel .gx-grupo__nombre i, .gx--blanco .gx-grupo__nombre i { background: var(--gx-tinta); color: var(--gx-via); }
.gx--papel .gx-fn, .gx--blanco .gx-fn { border-color: var(--gx-linea-clara); }
.gx--papel .gx-fn p, .gx--papel .gx-grupo__texto, .gx--blanco .gx-fn p, .gx--blanco .gx-grupo__texto { color: var(--gx-gris); }
.gx--papel .gx-fn h3 i, .gx--blanco .gx-fn h3 i { color: var(--gx-senal); }
.gx-funciones--3 { grid-template-columns: repeat(3, 1fr); }
.gx-funciones--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Video de las alertas ---------- */
.gx-video { background-color: #101216; }
.gx--pegado { padding-top: 0; } /* sigue a otra sección oscura */
.gx-video__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gx-camaras { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.8rem; }
.gx-cam { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #050914; border: 1px solid rgba(255, 255, 255, 0.12); }
.gx-cam img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85) contrast(1.05); }
.gx-cam__rotulo { position: absolute; left: 10px; top: 10px; padding: 0.3rem 0.55rem; border-radius: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.78rem; display: flex; gap: 0.4rem; align-items: center; }
.gx-cam__rotulo i { color: #ff4d6d; font-size: 0.6rem; }
.gx-cam__hora { position: absolute; right: 10px; bottom: 10px; color: #fff; font-size: 0.78rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
.gx-cam--cabina { align-self: end; }
.gx-alerta-video {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.1rem; border-radius: 16px; background: #fff; color: var(--gx-tinta);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}
.gx-alerta-video__icono { width: 42px; height: 42px; border-radius: 12px; background: var(--gx-video); color: #fff; display: grid; place-items: center; flex: none; }
.gx-alerta-video strong { display: block; font-weight: 600; }
.gx-alerta-video small { color: var(--gx-gris); }
.gx-lista { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.gx-lista li { display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; line-height: 1.5; color: #d7dff0; }
.gx-lista li i { color: var(--gx-via); margin-top: 0.3rem; }
.gx-lista strong { color: #fff; font-weight: 600; }
.gx--papel .gx-lista li, .gx--blanco .gx-lista li { color: var(--gx-gris); }
.gx--papel .gx-lista strong, .gx--blanco .gx-lista strong { color: var(--gx-tinta); }
.gx--papel .gx-lista li i, .gx--blanco .gx-lista li i { color: var(--gx-tinta); }

/* ---------- Planes ---------- */
.gx-planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.gx-planes--3 { grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; }
.gx-planes--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.gx-planes--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.gx-plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; border: 1px solid var(--gx-linea-clara);
  padding: 1.5rem 1.3rem 1.4rem; border-top: 6px solid var(--c);
}
.gx-plan--recomendado { box-shadow: 0 0 0 2px var(--c), 0 28px 60px rgba(14, 22, 48, 0.14); }
.gx-plan__marca { position: absolute; top: -14px; right: 16px; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--c); color: #fff; font-size: 0.78rem; font-weight: 600; }
.gx-plan h3 { font-family: var(--gx-display); font-weight: 800; font-size: 1.75rem; margin: 0; color: var(--c); }
.gx-plan__para { color: var(--gx-gris); font-size: 0.93rem; line-height: 1.45; margin: 0.4rem 0 1rem; min-height: 4.35em; }
.gx-plan__historial { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.75rem 0; margin-bottom: 0.4rem; border-block: 1px solid var(--gx-linea-clara); }
.gx-plan__historial strong { font-family: var(--gx-display); font-size: 1.6rem; font-weight: 700; color: var(--gx-tinta); white-space: nowrap; }
.gx-plan__historial span { color: var(--gx-gris); font-size: 0.9rem; }
.gx-plan ul { list-style: none; margin: 0.5rem 0 1.4rem; padding: 0; display: grid; gap: 0.45rem; }
.gx-plan li { display: grid; grid-template-columns: 18px 1fr; gap: 0.5rem; font-size: 0.93rem; line-height: 1.35; }
.gx-plan li i { margin-top: 0.18rem; font-size: 0.82rem; }
.gx-plan li.si i { color: var(--gx-estandar); }
.gx-plan li.no { color: #9aa6bb; }
.gx-plan li.no i { color: #c3cbd9; }
.gx-plan .gx-btn { margin-top: auto; width: 100%; }
.gx-plan--basico { --c: var(--gx-basico); }
.gx-plan--estandar { --c: var(--gx-estandar); }
.gx-plan--premium { --c: var(--gx-premium); }
.gx-plan--video { --c: var(--gx-video); }
.gx-plan .gx-btn--linea { color: var(--gx-tinta); border-color: var(--gx-linea-clara); }
.gx-plan .gx-btn--linea:hover { border-color: var(--c); color: var(--c); }
.gx-nota { margin: 1.8rem auto 0; text-align: center; color: var(--gx-gris); font-size: 0.95rem; max-width: 70ch; line-height: 1.55; }

/* ---------- Pasos (son una secuencia de verdad) ---------- */
.gx-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: paso; }
.gx-pasos li { counter-increment: paso; position: relative; padding: 1.4rem 0 0; border-top: 3px solid var(--gx-linea-clara); }
.gx-pasos li::before { content: counter(paso); position: absolute; top: -1.05rem; left: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--gx-via); color: var(--gx-tinta); font-weight: 700; font-size: 0.95rem; }
.gx-pasos h3 { font-family: var(--gx-display); font-weight: 700; font-size: 1.35rem; margin: 0.6rem 0 0.4rem; }
.gx-pasos p { color: var(--gx-gris); line-height: 1.55; margin: 0; }
.gx--noche .gx-pasos li { border-color: var(--gx-linea-oscura); }
.gx--noche .gx-pasos p { color: var(--gx-gris-claro); }
.gx--noche .gx-pasos h3 { color: #fff; }

/* ---------- Preguntas ---------- */
.gx-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.7rem; }
.gx-faq details { background: #fff; border: 1px solid var(--gx-linea-clara); border-radius: 16px; padding: 0 1.3rem; }
.gx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem; }
.gx-faq summary::-webkit-details-marker { display: none; }
.gx-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gx-tinta); transition: transform 0.2s ease; }
.gx-faq details[open] summary::after { transform: rotate(45deg); }
.gx-faq p { color: var(--gx-gris); line-height: 1.6; margin: 0 0 1.2rem; max-width: 70ch; }

/* ---------- Páginas de servicio: hero con foto y tarjeta de la app ---------- */
.gx-shero { padding-top: clamp(7.5rem, 12vw, 9.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.gx-shero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gx-shero h1 { font-family: var(--gx-display); font-weight: 800; font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); line-height: 0.97; letter-spacing: -0.015em; margin: 0.9rem 0 1.3rem; color: #fff; text-wrap: balance; }
.gx-ruta-migas { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--gx-gris-claro); font-size: 0.92rem; text-decoration: none; }
.gx-ruta-migas i { color: var(--gx-via); }
.gx-ruta-migas:hover { color: #fff; }
.gx-foto { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4.2; background: #101a3d; }
.gx-foto > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 48, 0) 45%, rgba(11, 19, 48, 0.7)); }
.gx-widget {
  position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px;
  padding: 1rem 1.1rem; border-radius: 18px; background: #fff; color: var(--gx-tinta);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.gx-widget__cabeza { display: flex; align-items: center; gap: 0.7rem; }
.gx-widget__icono { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.gx-widget__cabeza strong { display: block; font-weight: 600; }
.gx-widget__cabeza small { color: var(--gx-gris); font-size: 0.85rem; }
.gx-widget__estado { margin-left: auto; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 999px; }
.gx-widget__filas { display: grid; gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--gx-linea-clara); font-size: 0.9rem; }
.gx-widget__fila { display: flex; justify-content: space-between; gap: 1rem; color: var(--gx-gris); }
.gx-widget__fila b { color: var(--gx-tinta); font-weight: 600; }
.gx-widget__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.85rem; }
.gx-widget__boton { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600; background: var(--gx-papel); color: var(--gx-tinta); }
.gx-widget__boton--rojo { background: #ffe8e4; color: #d63a22; }
.gx-unidades { display: grid; gap: 0.45rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--gx-linea-clara); }
.gx-unidad { display: grid; grid-template-columns: 10px 1fr auto; gap: 0.65rem; align-items: center; font-size: 0.9rem; }
.gx-unidad i { width: 10px; height: 10px; border-radius: 50%; }
.gx-unidad b { font-weight: 600; }
.gx-unidad small { color: var(--gx-gris); }

/* Recuadro destacado de cada servicio */
.gx-destacado { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gx-destacado--al-reves > :first-child { order: 2; }
.gx-pasos-v { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: pv; }
.gx-pasos-v li { counter-increment: pv; position: relative; padding: 0 0 1.6rem 3.4rem; }
.gx-pasos-v li::before { content: counter(pv); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--gx-via); color: var(--gx-tinta); font-weight: 700; }
.gx-pasos-v li::after { content: ""; position: absolute; left: 1.12rem; top: 2.5rem; bottom: 0.2rem; width: 2px; background: var(--gx-linea-clara); }
.gx-pasos-v li:last-child { padding-bottom: 0; }
.gx-pasos-v li:last-child::after { display: none; }
.gx-pasos-v h3 { font-family: var(--gx-display); font-weight: 700; font-size: 1.3rem; margin: 0.2rem 0 0.3rem; }
.gx-pasos-v p { color: var(--gx-gris); line-height: 1.55; margin: 0; }
.gx--noche .gx-pasos-v li::after { background: var(--gx-linea-oscura); }
.gx--noche .gx-pasos-v h3 { color: #fff; }
.gx--noche .gx-pasos-v p { color: var(--gx-gris-claro); }
.gx-tarjeta-foto { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.2; }
.gx-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cierre con WhatsApp */
.gx-cierre { padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--gx-pin); color: #fff; }
.gx-cierre__grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.gx-cierre h2 { font-family: var(--gx-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.02; margin: 0 0 0.5rem; max-width: 22ch; }
.gx-cierre p { margin: 0; color: #ffe1db; font-size: 1.05rem; max-width: 55ch; line-height: 1.55; }
.gx-cierre .gx-btn--claro { color: #fff; background: var(--gx-tinta); }
.gx-cierre .gx-btn--claro i { color: #25d366; font-size: 1.25rem; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 1060px) {
  .gx-funciones { grid-template-columns: repeat(2, 1fr); }
  .gx-planes { grid-template-columns: repeat(2, 1fr); }
  .gx-planes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-pasos { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
}
@media (max-width: 860px) {
  .gx-hero__grid, .gx-shero__grid, .gx-video__grid, .gx-destacado { grid-template-columns: 1fr; }
  .gx-destacado--al-reves > :first-child { order: 0; }
  .gx-servicios { grid-template-columns: 1fr; }
  .gx-funciones--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gx-funciones, .gx-funciones--3, .gx-funciones--2, .gx-planes, .gx-planes--2, .gx-planes--3, .gx-pasos { grid-template-columns: 1fr; }
  .gx-camaras { grid-template-columns: 1fr; }
  .gx-cam--cabina { display: none; }
  .gx-acciones .gx-btn { width: 100%; }
  .gx-mapa { aspect-ratio: 4 / 5.2; }
  .gx-tarjeta-app { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 0.85rem; }
  .gx-tarjeta-app__botones { grid-template-columns: repeat(3, 1fr); }
  .gx-tarjeta-app__botones span { flex-direction: column; text-align: center; gap: 0.3rem; padding: 0.5rem 0.3rem; font-size: 0.74rem; line-height: 1.15; }
  .gx-alerta-mapa { left: 12px; right: auto; top: 12px; font-size: 0.85rem; }
  .gx-plan__para { min-height: 0; }
  .gx-widget__botones { grid-template-columns: 1fr; }
}

/* Sin movimiento: todo en su estado final */
@media (prefers-reduced-motion: reduce) {
  .gx-mapa .ruta, .gx-mapa .ruta-sombra { animation: none; stroke-dashoffset: 0; }
  .gx-pin__halo { animation: none; }
  .gx-alerta-mapa { animation: none; opacity: 1; transform: none; }
  .gx-btn, .gx-servicio, .gx-servicio__foto img { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* style.css pone los títulos en mayúsculas (Oswald): aquí van en frase normal */
.gx h1, .gx h2, .gx h3, .gx-cierre h2 { text-transform: none; }

/* Tarjeta de la app suelta (fuera de una foto) */
.gx-widget--suelto { position: relative; left: auto; right: auto; bottom: auto; box-shadow: 0 30px 60px rgba(14, 22, 48, 0.16); border: 1px solid var(--gx-linea-clara); }
.gx--noche .gx-widget--suelto { border-color: transparent; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }

/* Marcas de equipos */
.gx-marcas-sec { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.gx-marcas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
.gx-titulo--chico { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.gx-marcas__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gx-marcas__logos img { width: 100%; height: 64px; object-fit: contain; padding: 0.8rem; border-radius: 14px; background: var(--gx-papel); }
.gx-marcas__logos img.gx-marcas__oscuro { background: var(--gx-noche); }
@media (max-width: 860px) { .gx-marcas { grid-template-columns: 1fr; } .gx-marcas__logos { grid-template-columns: repeat(2, 1fr); } }

/* style.css junta las letras de los títulos (-0.04em, pensado para Oswald): con Saira van normales */
:where(.gx, .gx-cierre) :is(h1, h2, h3, h4) { letter-spacing: 0; }
.gx-cierre h2 { font-family: var(--gx-display); letter-spacing: -0.005em; }

/* Tarjeta de la app oscura, como la de la imagen del usuario y la app de monitoreo */
.gx-widget { left: 18px; right: auto; width: min(360px, calc(100% - 36px)); background: var(--gx-asfalto); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.gx-widget__cabeza small, .gx-unidad small { color: var(--gx-gris-claro); font-family: var(--gx-mono); font-size: 0.78rem; }
.gx-widget__filas, .gx-unidades { border-top-color: rgba(255, 255, 255, 0.12); }
.gx-widget__fila { color: var(--gx-gris-claro); }
.gx-widget__fila b { color: #fff; font-family: var(--gx-mono); font-weight: 500; font-size: 0.85rem; }
.gx-widget__boton { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.gx-widget__boton--rojo { background: transparent; color: var(--gx-alerta); border-color: rgba(255, 90, 60, 0.5); }
.gx-widget__estado { font-family: var(--gx-mono); font-weight: 500; }
.gx-widget--suelto { width: auto; border-color: rgba(255, 255, 255, 0.15); }
.gx-foto { border: 1px solid rgba(255, 255, 255, 0.13); }
.gx-foto::after { background: linear-gradient(180deg, rgba(20, 22, 27, 0) 55%, rgba(20, 22, 27, 0.55)); }
@media (max-width: 620px) { .gx-widget { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- 2026-11-14: el mapa del inicio se puede probar (js/demo-mapa.js) y fotos reales en los servicios ----------
   La camioneta da vueltas por la ruta; la raya amarilla es lo que acaba de recorrer. Los tres botones de la tarjeta
   son botones de verdad: comparten, abren la cámara y bloquean el motor (con el segundo toque, como en la app). */
.gx-mapa .ruta-base { fill: none; stroke: rgba(245, 184, 0, 0.13); stroke-width: 22; stroke-linecap: round; }
.gx-mapa .ruta { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.gx-pin__halo { stroke: rgba(245, 184, 0, 0.5); animation: gx-halo 2.2s 0.4s ease-out infinite; transition: stroke 0.3s; }
.gx-pin__punto { fill: var(--gx-via); transition: fill 0.3s; }
.gx-mapa.is-bloqueada .gx-pin__halo { stroke: rgba(255, 90, 60, 0.6); }
.gx-mapa.is-bloqueada .gx-pin__punto { fill: var(--gx-alerta); }
.gx-mapa.is-bloqueada .ruta { stroke: var(--gx-alerta); }

/* El aviso de arriba cambia con lo que pasa: geocerca (turquesa), alerta (naranja) o listo (verde) */
.gx-alerta-mapa { animation-delay: 0.7s; max-width: min(300px, 62%); z-index: 2; }
.gx-alerta-mapa i { display: block; font-style: normal; }
.gx-alerta-mapa.is-nuevo { opacity: 0; transform: translateY(-8px); animation: gx-aviso-otro 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes gx-aviso-otro { to { opacity: 1; transform: none; } }
.gx-alerta-mapa.is-geo { border-color: rgba(34, 184, 176, 0.45); }
.gx-alerta-mapa.is-geo b { color: var(--gx-geo); }
.gx-alerta-mapa.is-geo .gx-alerta-mapa__punto { background: var(--gx-geo); }
.gx-alerta-mapa.is-ok { border-color: rgba(52, 211, 153, 0.45); }
.gx-alerta-mapa.is-ok b { color: var(--gx-vivo); }
.gx-alerta-mapa.is-ok .gx-alerta-mapa__punto { background: var(--gx-vivo); }

/* Botones de la tarjeta */
.gx-tarjeta-app { z-index: 2; }
.gx-tarjeta-app__botones button {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: none; color: inherit; font: inherit; font-size: 0.9rem; text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gx-mapa.is-lista .gx-tarjeta-app__botones button { cursor: pointer; }
.gx-mapa.is-lista .gx-tarjeta-app__botones button:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.34); }
.gx-tarjeta-app__botones button:focus-visible { outline: 2px solid var(--gx-via); outline-offset: 2px; }
.gx-tarjeta-app__botones button.is-activo { border-color: var(--gx-via); color: var(--gx-via); }
.gx-tarjeta-app__botones button.is-activo i { color: var(--gx-via); }
.gx-tarjeta-app__botones button.is-confirmar { background: var(--gx-alerta); border-color: var(--gx-alerta); color: #fff; }
.gx-tarjeta-app__botones button.is-confirmar i { color: #fff; }
.gx-mapa.is-lista .gx-tarjeta-app__botones button.is-confirmar:hover { background: #ff6d52; border-color: #ff6d52; }
.gx-tarjeta-app__botones button.is-ok { color: var(--gx-vivo); border-color: rgba(52, 211, 153, 0.5); }
.gx-tarjeta-app__botones button.is-ok i { color: var(--gx-vivo); }

/* Invitación a probarlo: se va con el primer toque */
.gx-demo-pista {
  position: absolute; z-index: 2; left: calc(4.5% + min(310px, 44%) + 14px); bottom: 7.5%;
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: var(--gx-via); color: #14161b; font-size: 0.84rem; font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.gx-demo-pista i { animation: gx-toque 1.6s ease-in-out infinite; }
@keyframes gx-toque { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.gx-mapa:not(.is-lista) .gx-demo-pista { display: none; }

/* La cámara: una ventana con lo que ve el vehículo */
.gx-camara {
  position: absolute; z-index: 1; left: 4.5%; top: 4.5%; width: 37%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: gx-aviso-otro 0.3s ease-out both;
}
.gx-camara[hidden] { display: none; }
.gx-camara img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 56% 60%; animation: gx-avance 7s ease-in-out infinite alternate; }
@keyframes gx-avance { from { transform: scale(1); } to { transform: scale(1.09); } }
.gx-mapa.is-detenida .gx-camara img { animation-play-state: paused; }
.gx-camara span { position: absolute; padding: 0.2rem 0.5rem; border-radius: 6px; background: rgba(12, 14, 18, 0.78); color: #fff; font-size: 0.68rem; line-height: 1.3; }
.gx-camara__vivo { left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 0.4rem; }
.gx-camara__vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; }
.gx-camara__hora { right: 8px; bottom: 8px; }

/* Fotos reales de los servicios: ya vienen oscurecidas y con sus rótulos (NO_SUBIR/herramientas/web_fotos.js) */
.gx-servicio__foto { background: var(--gx-noche); aspect-ratio: 16 / 9.6; }
.gx-servicio__foto img { object-position: 50% 32%; }
.gx-foto { background: var(--gx-noche); }
.gx-foto > img { object-position: 50% 22%; }

@media (max-width: 620px) {
  /* En el celular el mapa va arriba (cuadrado) y la tarjeta debajo, sin taparlo */
  .gx-mapa { aspect-ratio: auto; display: grid; }
  .gx-mapa svg { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; }
  .gx-tarjeta-app { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -14px 12px 12px; padding: 0.85rem; }
  .gx-tarjeta-app__botones button { flex-direction: column; justify-content: center; text-align: center; gap: 0.3rem; padding: 0.55rem 0.3rem; font-size: 0.74rem; line-height: 1.15; }
  .gx-alerta-mapa { max-width: calc(100% - 24px); }
  .gx-camara { left: 12px; top: 68px; width: 52%; }
  .gx-demo-pista { position: static; justify-content: center; margin: 0 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-pin__halo, .gx-demo-pista i, .gx-camara, .gx-camara img, .gx-alerta-mapa.is-nuevo { animation: none; }
  .gx-alerta-mapa.is-nuevo { opacity: 1; transform: none; }
  .gx-tarjeta-app__botones button { transition: none; }
}

.gx-demo-pista[hidden] { display: none; }

/* ---------- 2026-11-14: «¿No sabes cuál escoger?» (js/elige-plan.js), encima de los planes de la portada ---------- */
.gx-guia {
  display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(1.4rem, 3vw, 3rem); align-items: start;
  margin: 0 0 1.6rem; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 24px; background: var(--gx-noche); color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.gx-guia[hidden] { display: none; }
.gx-guia__cabeza h3 { font-family: var(--gx-display); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.02; margin: 0 0 0.6rem; color: #fff; }
.gx-guia__cabeza p { margin: 0; color: var(--gx-gris-claro); line-height: 1.5; max-width: 30ch; }
.gx-guia__cuerpo { min-height: 232px; }
.gx-guia__paso { margin: 0 0 0.5rem; color: var(--gx-via); font-size: 0.8rem; }
.gx-guia__pregunta { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.gx-guia__pregunta:focus, .gx-guia__plan:focus { outline: 0; }
.gx-guia__opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.gx-guia__opciones button {
  display: flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; background: var(--gx-asfalto);
  color: #fff; font: inherit; font-size: 0.98rem; line-height: 1.3; text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.gx-guia__opciones button i { width: 20px; color: var(--gx-via); text-align: center; flex: none; }
.gx-guia__opciones button:hover { border-color: var(--gx-via); background: var(--gx-asfalto-2); }
.gx-guia__opciones button:focus-visible, .gx-guia__atras:focus-visible { outline: 2px solid var(--gx-via); outline-offset: 2px; }
.gx-guia__atras {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.35rem 0;
  border: 0; background: none; color: var(--gx-gris-claro); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.gx-guia__atras:hover { color: #fff; }
.gx-guia__resultado { display: grid; gap: 0.5rem; }
.gx-guia__plan { margin: 0; font-family: var(--gx-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1; color: var(--c); }
.gx-guia__porque { margin: 0; color: var(--gx-gris-claro); }
.gx-guia__resultado ul { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.gx-guia__resultado li { display: grid; grid-template-columns: 20px 1fr; gap: 0.5rem; line-height: 1.4; }
.gx-guia__resultado li i { margin-top: 0.22rem; font-size: 0.82rem; color: var(--c); }
.gx-guia__acciones { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.3rem; }
.gx-guia__acciones .gx-btn--linea { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: none; cursor: pointer; font: inherit; font-weight: 600; }
.gx-guia__acciones .gx-btn--linea:hover { border-color: #fff; }
/* El plan que salió, marcado en la lista */
.gx-plan.is-elegido { box-shadow: 0 0 0 3px var(--c), 0 28px 60px rgba(14, 22, 48, 0.16); }

@media (max-width: 860px) {
  .gx-guia { grid-template-columns: 1fr; }
  .gx-guia__cabeza p { max-width: none; }
}
@media (max-width: 620px) {
  .gx-guia__opciones { grid-template-columns: 1fr; }
  .gx-guia__cuerpo { min-height: 0; }
  .gx-guia__acciones .gx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-guia__opciones button { transition: none; }
}
.gx-guia__pregunta { color: #fff; }
