/* ==========================================================================
   Soluciones, casos y el índice de casos con la plantilla de gumloop.com
   (components/soluciones/). Lo cargan /soluciones/<area>, /casos/<slug> y
   /casos.

   Todo lleva el prefijo `gs-` y se escribe aquí y no con utilidades: no hay
   paso de Tailwind (AGENTS.md), y esta plantilla necesita medidas que la hoja
   compilada nunca tuvo. Colores, radios y sombras salen de los tokens --ds-*
   de stripe-design-system.css.

   Movimiento. Dos gatillos:
     - el hero anima al cargar (.gs-palabra, .gs-in, .gs-funciona-app);
     - todo lo demás espera a que landing-page.js ponga `.is-visible` en su
       `[data-reveal]`. Lo que parte oculto lo hace sólo bajo
       `.landing-page-reveal-ready`, así que sin JavaScript se ve todo.
   Regla de la casa: el estado base de cada pieza es su estado final. La
   animación parte desde otro lado y llega ahí; con movimiento reducido se
   apaga y queda lo que tiene que quedar.
   ========================================================================== */

/* `.gs-vars` lleva sólo los tokens, sin fondo ni color: la usan las piezas de esta plantilla que
   viven dentro de una banda de la landing (el hero, la banda oscura de #security). */
.gs-page,
.gs-vars {
  --gs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gs-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gs-ink: var(--ds-ink);
  --gs-body: var(--ds-ink-body, #5e5e5e);
  --gs-mute: var(--ds-ink-caption, #717171);
  --gs-line: var(--ds-hairline);
  --gs-soft: var(--ds-canvas-soft);
  --gs-lift: 0 1px 2px rgba(13, 37, 61, 0.06), 0 2px 8px rgba(13, 37, 61, 0.05);
  --gs-ok: #12805c;
  --gs-ok-bg: #e3f6ec;
  --gs-wait: #b45309;
  --gs-wait-bg: #fff3df;
  --gs-bad: #d61f57;
  --gs-bad-bg: #fde8ef;
}
.gs-page { color: var(--gs-ink); background: var(--ds-canvas); }

.gs-page *,
.gs-page *::before,
.gs-page *::after,
.gs-vars *,
.gs-vars *::before,
.gs-vars *::after { box-sizing: border-box; }

.gs-wrap { width: 100%; max-width: 992px; margin: 0 auto; padding: 0 16px; }
.gs-wrap--ancho { max-width: 1392px; }
@media (min-width: 640px) { .gs-wrap { padding: 0 16px; } }

.gs-band { position: relative; padding: 48px 0; overflow-x: clip; }
@media (min-width: 1024px) { .gs-band { padding: 64px 0; } }
.gs-band--soft { background: linear-gradient(180deg, var(--ds-canvas) 0%, var(--gs-soft) 12%, var(--gs-soft) 88%, var(--ds-canvas) 100%); }

/* --- Tipografía ----------------------------------------------------------- */

.gs-h1 {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--gs-ink);
}
.gs-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--ds-weight-heading, 500);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.gs-h2--izq { text-align: left; }
.gs-h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: var(--ds-weight-heading, 500); line-height: 1.25; letter-spacing: -0.02em; }
.gs-lead { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--gs-body); text-wrap: pretty; }
.gs-link { color: var(--ds-primary); font-weight: 600; white-space: nowrap; }
.gs-link:hover { color: var(--ds-primary-deep); }

.gs-titulo { display: flex; flex-direction: column; gap: 12px; max-width: 960px; margin: 0 auto 40px; text-align: center; }


/* --- Botones -------------------------------------------------------------- */

.gs-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--gs-ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.gs-btn:active { transform: translateY(1px) scale(0.98); }
.gs-btn--fill { background: var(--ds-primary); color: #fff; box-shadow: 0 1px 2px rgba(46, 43, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.gs-btn--fill:hover { background: var(--ds-primary-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(83, 58, 253, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.gs-btn--line { background: var(--ds-canvas); border-color: var(--gs-line); color: var(--gs-ink); }
.gs-btn--line:hover { border-color: var(--ds-primary); color: var(--ds-primary); transform: translateY(-1px); }
.gs-btn--sm { height: 36px; padding: 0 18px; font-size: 0.875rem; }

/* --- Planos pastel -------------------------------------------------------
   El fondo sedoso de Gumloop, con la paleta de la marca: magenta, sherbet,
   índigo y un celeste, bajos y desplazándose despacio. Encima, vetas blancas
   en diagonal y desenfocadas, que son lo que lo hace leer como seda y no como
   un degradado. */
.gs-mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(55% 75% at 8% 18%, color-mix(in srgb, var(--ds-magenta) 26%, transparent), transparent 62%),
    radial-gradient(48% 70% at 92% 8%, color-mix(in srgb, var(--ds-sherbet) 26%, transparent), transparent 62%),
    radial-gradient(60% 80% at 82% 92%, color-mix(in srgb, var(--ds-primary) 20%, transparent), transparent 62%),
    radial-gradient(52% 64% at 18% 96%, color-mix(in srgb, #38bdf8 20%, transparent), transparent 62%),
    linear-gradient(135deg, #fdf8ff 0%, #f9f7f4 100%);
  background-size: 170% 170%, 170% 170%, 170% 170%, 170% 170%, 100% 100%;
  animation: gs-drift 22s ease-in-out infinite alternate;
}
.gs-mesh::after {
  content: '';
  position: absolute; inset: -20%;
  z-index: -1;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0) 0 46px, rgba(255, 255, 255, 0.5) 70px 96px, rgba(255, 255, 255, 0) 124px 170px);
  filter: blur(14px);
  pointer-events: none;
}
.gs-mesh--frio {
  background:
    radial-gradient(60% 80% at 10% 10%, color-mix(in srgb, #38bdf8 22%, transparent), transparent 62%),
    radial-gradient(60% 80% at 90% 90%, color-mix(in srgb, var(--ds-magenta) 20%, transparent), transparent 62%),
    radial-gradient(50% 60% at 90% 10%, color-mix(in srgb, var(--ds-primary) 14%, transparent), transparent 62%),
    linear-gradient(135deg, #f7fbff 0%, #fbf7ff 100%);
  background-size: 170% 170%, 170% 170%, 170% 170%, 100% 100%;
}
.gs-mesh--vivo {
  background:
    radial-gradient(55% 80% at 6% 30%, color-mix(in srgb, var(--ds-ruby) 34%, transparent), transparent 62%),
    radial-gradient(50% 70% at 94% 12%, color-mix(in srgb, var(--ds-sherbet) 36%, transparent), transparent 62%),
    radial-gradient(60% 80% at 70% 100%, color-mix(in srgb, var(--ds-primary) 30%, transparent), transparent 62%),
    radial-gradient(52% 64% at 30% 100%, color-mix(in srgb, #38bdf8 26%, transparent), transparent 62%),
    linear-gradient(135deg, #fff7fb 0%, #f4f2ff 100%);
  background-size: 170% 170%, 170% 170%, 170% 170%, 170% 170%, 100% 100%;
}
@keyframes gs-drift {
  0% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0 0; }
  100% { background-position: 30% 20%, 70% 30%, 60% 70%, 30% 60%, 0 0; }
}

.gs-dots {
  background-color: var(--ds-canvas);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ds-ink) 13%, transparent) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

/* --- Revelado ------------------------------------------------------------- */

.landing-page-reveal-ready [data-reveal]:not(.is-visible) :is(.gs-a-rise, .gs-a-pop, .gs-chip, .gs-log-row, .gs-mods-row, .gs-msg-in, .gs-skill) { opacity: 0; }
.is-visible .gs-a-rise { animation: gs-rise 0.7s var(--gs-ease) var(--d, 0ms) both; }
.is-visible .gs-a-pop { animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both; }

@keyframes gs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gs-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gs-spin { to { transform: rotate(360deg); } }
@keyframes gs-blur-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */

.gs-hero { position: relative; overflow: hidden; padding: 112px 0 40px; text-align: center; }
@media (min-width: 1024px) { .gs-hero { padding: 128px 0 48px; } }
/* Un halo pastel detrás del titular que respira, en vez de un fondo plano. */
.gs-hero::before {
  content: '';
  position: absolute; left: 50%; top: -10%;
  width: min(1100px, 140%); height: 620px;
  transform: translateX(-50%);
  z-index: 0;
  background:
    radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--ds-primary) 14%, transparent), transparent 70%),
    radial-gradient(36% 46% at 70% 36%, color-mix(in srgb, var(--ds-magenta) 16%, transparent), transparent 70%),
    radial-gradient(30% 40% at 52% 62%, color-mix(in srgb, var(--ds-sherbet) 12%, transparent), transparent 70%);
  filter: blur(20px);
  animation: gs-halo 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes gs-halo { from { transform: translateX(-50%) scale(1); opacity: 0.9; } to { transform: translateX(-48%) scale(1.08) rotate(3deg); opacity: 1; } }
.gs-hero-in { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.gs-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 4px 12px;
  border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gs-lift);
  font-size: 0.75rem; font-weight: 600; color: var(--ds-primary);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gs-hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 18%, transparent); }

.gs-palabra { display: inline-block; white-space: pre; animation: gs-blur-in 0.85s var(--gs-ease) var(--d, 0ms) both; }
.gs-in { animation: gs-rise 0.8s var(--gs-ease) var(--d, 0ms) both; }
.gs-hero-bajada { margin: 0; max-width: 672px; font-size: 1.125rem; line-height: 1.4; color: var(--gs-body); text-wrap: pretty; }

.gs-funciona { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 88px; }
.gs-funciona-k, .gs-funciona-mas { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--gs-mute); }
.gs-funciona-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 4px 0; padding: 0; list-style: none; }
.gs-funciona-app {
  position: relative;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both;
  transition: transform 0.3s var(--gs-spring), box-shadow 0.3s;
}
.gs-funciona-app:hover { transform: translateY(-3px) scale(1.12); }
.gs-funciona-app .gs-app-img { width: 24px; height: 24px; }
.gs-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  padding: 4px 8px; border-radius: 6px;
  background: var(--gs-ink); color: #fff; font-size: 0.6875rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--gs-ease);
}
.gs-funciona-app:hover .gs-tip { opacity: 1; transform: translate(-50%, 0); }

.gs-app-img { display: block; width: 20px; height: 20px; object-fit: contain; }
.gs-app-letra {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: color-mix(in srgb, var(--ds-primary) 12%, white); color: var(--ds-primary-deep);
  font-size: 0.75rem; font-weight: 700;
}
.gs-isotipo { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Pestañas en píldora (Conectores, ChatDemo)
   ========================================================================== */

.gs-tabs-wrap { display: flex; justify-content: flex-start; margin: 0 auto 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gs-tabs-wrap::-webkit-scrollbar { display: none; }
.gs-tabs-wrap--chico { margin: 0 auto 20px; }
.gs-tabs { position: relative; display: inline-flex; gap: 8px; margin: 0 auto; padding: 4px; }
/* Desde tablet las pestañas no se esconden tras un scroll lateral: bajan a una segunda fila,
   centradas. La píldora sigue a la activa en x e y (Pestanas mide offsetTop). */
@media (min-width: 768px) {
  .gs-tabs-wrap { width: min(100vw - 48px, 1200px); max-width: none; margin-left: calc(50% - min(50vw - 24px, 600px)); margin-right: 0; justify-content: center; overflow: visible; }
  .gs-tabs { flex-wrap: wrap; justify-content: center; max-width: 100%; }
}
.gs-tab {
  position: relative; z-index: 1;
  height: 36px; padding: 0 16px;
  border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill);
  background: var(--ds-canvas);
  font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--gs-body); white-space: nowrap; cursor: pointer;
  transition: color 0.35s, border-color 0.35s, background-color 0.35s;
}
.gs-tab:hover { color: var(--gs-ink); border-color: color-mix(in srgb, var(--ds-primary) 35%, var(--gs-line)); }
.gs-tab.is-on { color: #fff; border-color: transparent; background: transparent; }
.gs-tab.is-on.is-sinpill { background: var(--gs-ink); }
.gs-tab:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
.gs-tabs-pill {
  position: absolute; top: 0; left: 0; height: 36px;
  border-radius: var(--ds-radius-pill); background: var(--gs-ink);
  box-shadow: 0 6px 14px rgba(13, 37, 61, 0.22);
  transition: transform 0.5s cubic-bezier(0.5, 1.25, 0.4, 1), width 0.5s cubic-bezier(0.5, 1.25, 0.4, 1);
}
.gs-tabs-wrap--chico .gs-tab { height: 32px; padding: 0 14px; font-size: 0.8125rem; border-color: transparent; background: rgba(255, 255, 255, 0.55); }
.gs-tabs-wrap--chico .gs-tabs-pill { height: 32px; background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-tabs-wrap--chico .gs-tab.is-on { color: var(--gs-ink); background: transparent; }
.gs-tabs-wrap--chico .gs-tab.is-on.is-sinpill { background: var(--ds-canvas); }

/* ==========================================================================
   Conectores: el armador de Gumloop, en sus medidas
   Plano de 800 px con 16 de margen; panel de 368; teselas de 56 en 5
   columnas; órbita de 240 con Doroteo de 96 y satélites de 36 a 86 px del
   centro; pila de tarjetas con perspectiva de 600 px, cada una 48 px más
   atrás y 20 más arriba que la siguiente.
   ========================================================================== */

.gs-demo { position: relative; padding: 16px; border-radius: 10px; }
.gs-demo-in { display: flex; flex-direction: column-reverse; gap: 8px; }
@media (min-width: 900px) { .gs-demo { height: 800px; } .gs-demo-in { flex-direction: row; height: 100%; } }
.gs-demo[data-paso='3'] .gs-demo-in { filter: blur(6px); opacity: 0.55; pointer-events: none; transition: filter 0.3s, opacity 0.3s; }

.gs-picker {
  display: flex; flex-direction: column;
  max-height: 576px; min-height: 0;
  border: 0.5px solid var(--gs-line); border-radius: 6px; background: var(--ds-canvas);
  box-shadow: 0 1px 2px rgba(13, 37, 61, 0.05), 0 6px 18px rgba(13, 37, 61, 0.07);
  overflow: hidden;
}
@media (min-width: 900px) { .gs-picker { flex: none; width: 368px; max-height: none; } }
.gs-picker-paso { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 16px; padding-bottom: 16px; animation: gs-paso 0.35s var(--gs-ease); }
@keyframes gs-paso { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.gs-picker-top { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 0; }
.gs-picker-h { margin: 0; padding: 0 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.gs-search { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--gs-line); border-radius: 6px; transition: border-color 0.2s, box-shadow 0.2s; }
.gs-search:focus-within { border-color: color-mix(in srgb, var(--gs-ink) 40%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gs-ink) 8%, transparent); }
.gs-search svg { flex: none; width: 16px; height: 16px; color: var(--gs-mute); }
.gs-search input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 4px; border: 0; outline: 0; background: transparent; box-shadow: none; font: inherit; font-size: 0.875rem; color: var(--gs-ink); -webkit-appearance: none; appearance: none; }
.gs-search input::placeholder { color: var(--gs-mute); }
.gs-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.gs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 56px)); justify-content: space-between; align-content: start; gap: 8px; flex: 1; min-height: 0; padding: 4px 16px 8px; overflow-y: auto; scrollbar-width: thin; }
.gs-tile {
  --app: var(--ds-primary);
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: auto; aspect-ratio: 1; padding: 0;
  border: 1px solid var(--gs-line); border-radius: 6px; background: var(--ds-canvas);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--gs-spring), box-shadow 0.2s, opacity 0.2s;
}
.gs-tile .gs-app-img { width: 24px; height: 24px; pointer-events: none; -webkit-user-drag: none; }
.gs-tile:hover { background: color-mix(in srgb, var(--app) 7%, white); }
.gs-tile:active { transform: scale(0.94); cursor: grabbing; }
.gs-tile:focus-visible { outline: 2px solid var(--app); outline-offset: 2px; }
.gs-tile.is-on { cursor: default; background: color-mix(in srgb, var(--app) 14%, white); border-color: color-mix(in srgb, var(--app) 34%, white); animation: gs-tile-on 0.45s var(--gs-spring); }
.gs-tile.is-drag { opacity: 0.35; transform: scale(0.92); }
.gs-tile-badge {
  position: absolute; left: 50%; bottom: 0;
  display: grid; place-items: center;
  width: 16px; height: 16px; padding: 2px;
  border-radius: 50%; background: var(--app); color: #fff;
  box-shadow: 0 0 0 2px var(--ds-canvas);
  transform: translate(-50%, 33%) scale(0);
  transition: transform 0.35s var(--gs-spring);
}
.gs-tile-badge svg { width: 100%; height: 100%; }
.gs-tile.is-on .gs-tile-badge { transform: translate(-50%, 33%) scale(1); }
@keyframes gs-tile-on { 0% { transform: scale(1); } 35% { transform: scale(0.86); } 100% { transform: scale(1); } }
.gs-picker-foot { display: flex; justify-content: space-between; gap: 8px; padding: 0 16px; }

.gs-reglas { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; padding: 0 16px; overflow-y: auto; }
.gs-regla {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gs-line); border-radius: 6px; background: var(--ds-canvas);
  font: inherit; text-align: left; color: var(--gs-ink); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: gs-rise 0.4s var(--gs-ease) both;
}
.gs-regla:nth-child(2) { animation-delay: 60ms; }
.gs-regla:nth-child(3) { animation-delay: 120ms; }
.gs-regla:nth-child(4) { animation-delay: 180ms; }
.gs-regla:hover { background: var(--gs-soft); }
.gs-regla.is-on { background: color-mix(in srgb, var(--ds-primary) 5%, white); border-color: color-mix(in srgb, var(--ds-primary) 35%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 8%, transparent); }
.gs-regla-dot { position: relative; flex: none; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid color-mix(in srgb, var(--gs-ink) 25%, white); border-radius: 50%; transition: border-color 0.2s; }
.gs-regla-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ds-primary); transform: scale(0); transition: transform 0.3s var(--gs-spring); }
.gs-regla.is-on .gs-regla-dot { border-color: var(--ds-primary); }
.gs-regla.is-on .gs-regla-dot::after { transform: scale(1); }
.gs-regla-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-regla-t strong { font-size: 0.875rem; font-weight: 600; }
.gs-regla-t span { font-size: 0.75rem; line-height: 1.45; color: var(--gs-body); }

.gs-btn--dark { background: var(--gs-ink); color: #fff; }
.gs-btn--dark:hover { background: color-mix(in srgb, var(--gs-ink) 82%, white); }
.gs-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.gs-stage { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; min-width: 0; padding: 16px 0 24px; border-radius: 8px; transition: background-color 0.25s, box-shadow 0.25s; }
@media (min-width: 900px) { .gs-stage { padding: 0; } }
.gs-stage-in { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; }
.gs-stage.is-drop { background: rgba(255, 255, 255, 0.25); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.gs-stage.is-sobre { background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ds-primary) 40%, white); }
.gs-stage-hint { position: absolute; left: 50%; top: 16px; padding: 4px 10px; border-radius: var(--ds-radius-pill); background: var(--gs-ink); color: #fff; font-size: 0.75rem; font-weight: 600; opacity: 0; transform: translate(-50%, -4px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.gs-stage.is-drop .gs-stage-hint { opacity: 1; transform: translate(-50%, 0); }

.gs-orbit { position: relative; flex: none; width: 240px; height: 240px; }
.gs-orbit-drop { position: absolute; inset: 32px; border-radius: 50%; border: 1.5px dashed transparent; transition: border-color 0.2s, transform 0.3s var(--gs-spring); }
.gs-stage.is-drop .gs-orbit-drop { border-color: rgba(13, 37, 61, 0.2); }
.gs-stage.is-sobre .gs-orbit-drop { border-color: var(--ds-primary); transform: scale(1.06); }
.gs-orbit-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 96px; height: 96px; padding: 14px; transform: translate(-50%, -50%); }
.gs-orbit-core.is-pulse { animation: gs-core 0.5s var(--gs-spring); }
@keyframes gs-core { 0% { transform: translate(-50%, -50%) scale(1); } 35% { transform: translate(-50%, -50%) scale(0.88); } 100% { transform: translate(-50%, -50%) scale(1); } }
.gs-sat { position: absolute; left: 50%; top: 50%; z-index: 3; width: 36px; height: 36px; transition: transform 0.3s var(--gs-ease); }
.gs-sat-in { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--gs-line); border-radius: 50%; background: var(--ds-canvas); box-shadow: 0 1px 2px rgba(13, 37, 61, 0.08); animation: gs-sat-in 0.45s var(--gs-spring) both; }
.gs-sat-in .gs-app-img { width: 18px; height: 18px; }
.gs-sat-in .gs-app-letra { width: 20px; height: 20px; font-size: 0.6875rem; }
@keyframes gs-sat-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }

.gs-stack { display: flex; flex-direction: column; width: 100%; max-width: 80%; perspective: 600px; }
@media (max-width: 899px) { .gs-stack { max-width: 92%; } }
.gs-stack-3d { position: relative; display: flex; flex-direction: column; transform-style: preserve-3d; }
.gs-card {
  --app: var(--ds-primary);
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  padding: 20px;
  border: 0.5px solid var(--gs-line); border-radius: 6px; background: var(--ds-canvas);
  box-shadow: 0 1px 2px rgba(13, 37, 61, 0.05), 0 6px 18px rgba(13, 37, 61, 0.07);
  transition: transform 0.5s var(--gs-ease);
}
.gs-card.is-front { position: relative; height: auto; animation: gs-card-in 0.5s var(--gs-ease) both; }
@keyframes gs-card-in { from { opacity: 0; transform: translateY(28px) scale(0.98); } }
.gs-card-head { display: flex; align-items: center; gap: 8px; }
.gs-card-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--app) 30%, white); border-radius: 8px; background: color-mix(in srgb, var(--app) 12%, white); }
.gs-card-ico .gs-app-img { width: 20px; height: 20px; }
.gs-card-ico--instr { --app: var(--ds-primary); color: var(--ds-primary); }
.gs-card-ico--instr svg { width: 18px; height: 18px; }
.gs-card-tt { display: flex; flex-direction: column; min-width: 0; }
.gs-card-tt strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.gs-card-tt span { font-size: 0.75rem; font-weight: 500; color: var(--gs-mute); }
.gs-card-tools { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.gs-card-tools li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; line-height: 1.4; animation: gs-rise 0.35s var(--gs-ease) calc(var(--j) * 50ms + 120ms) both; }
.gs-card-tools svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--app); }
.gs-instr { padding: 20px; border: 0.5px solid var(--gs-line); border-radius: 6px; background: var(--ds-canvas); box-shadow: 0 1px 2px rgba(13, 37, 61, 0.05), 0 6px 18px rgba(13, 37, 61, 0.07); animation: gs-card-in 0.45s var(--gs-ease) both; }
.gs-instr-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.gs-instr-list li { font-size: 0.875rem; line-height: 1.5; animation: gs-rise 0.35s var(--gs-ease) both; }
.gs-instr-vacio { margin: 12px 0 0; font-size: 0.875rem; color: var(--gs-mute); }

.gs-modal-wrap { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; animation: gs-fade 0.25s ease both; }
.gs-modal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 380px); padding: 28px 24px 22px; border: 0.5px solid var(--gs-line); border-radius: 10px; background: var(--ds-canvas); text-align: center; box-shadow: 0 24px 60px rgba(13, 37, 61, 0.18); animation: gs-modal 0.4s var(--gs-spring) both; }
@keyframes gs-modal { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.gs-modal-h { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.gs-modal-sub { margin: -6px 0 2px; font-size: 0.8125rem; color: var(--gs-mute); }
.gs-modal-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gs-modal-apps span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--gs-line); border-radius: 50%; background: var(--ds-canvas); }
.gs-modal-apps .gs-app-img { width: 16px; height: 16px; }
.gs-modal-mas { font-size: 0.6875rem; font-weight: 600; color: var(--gs-body); }
.gs-modal-p { margin: 4px 0 6px; font-size: 0.875rem; line-height: 1.5; color: var(--gs-body); }
.gs-modal-cta { width: 100%; }
.gs-modal-link { font-size: 0.8125rem; font-weight: 600; color: var(--ds-primary); }
.gs-modal-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--gs-mute); cursor: pointer; }
.gs-modal-x:hover { background: var(--gs-soft); color: var(--gs-ink); }

/* El ícono que se arrastra vive en <body> (un portal): fuera de .gs-page, así que no usa sus variables. */
.gs-ghost {
  position: fixed; z-index: 9999;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 1px solid color-mix(in srgb, var(--app) 34%, white); border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(13, 37, 61, 0.2);
  transform: translate(-50%, -50%) rotate(-4deg) scale(1.06);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.gs-ghost.is-sobre { transform: translate(-50%, -50%) rotate(0) scale(1.15); }
.gs-ghost img { width: 26px; height: 26px; }
.gs-ghost .gs-app-letra { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #eeebff; color: #4731d7; font: 700 0.8125rem/1 var(--font-sans); }

/* ==========================================================================
   Capacidades
   ========================================================================== */

/* Como gumloop.com hoy: una grilla de dos columnas donde cada pieza vive en un escenario beige del
   mismo tamaño, y el texto va afuera, debajo, sobre la banda blanca: el título en negrita y la
   descripción seguida, en la misma línea. Reemplaza las filas en zigzag, que en 992 px se salían de
   la grilla de la página y dejaban cada pieza flotando, de otro tamaño, sin nada que la enmarcara. */
.gs-wrap--capacidades { max-width: 1312px; }
.gs-filas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
@media (min-width: 900px) { .gs-filas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; } }
.gs-fila { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gs-fila-vis { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 24px; overflow: hidden; border-radius: 12px; background: var(--ds-canvas-soft); }
@media (min-width: 900px) { .gs-fila-vis { height: 440px; padding: 40px; } }
.gs-fila-copy { max-width: 600px; }
.gs-fila-copy .gs-h3 { display: inline; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.6; letter-spacing: 0; color: var(--gs-ink); }
.gs-fila-copy .gs-h3::after { content: ' '; }
.gs-fila-p { display: inline; margin: 0; font-size: 1rem; line-height: 1.6; color: var(--gs-body); text-wrap: pretty; }
.gs-fila-p strong { color: var(--gs-ink); font-weight: 600; }
/* Canales mide 500 px de alto; en el escenario de 440 se achica en vez de cortarse. */
@media (min-width: 900px) { .gs-fila-vis > .gs-canales { flex: none; transform: scale(0.74); } }

/* 1. Titilan ---------------------------------------------------------------- */
.gs-twinkle { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; width: min(100%, 520px); }
.gs-twinkle-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: color-mix(in srgb, #ffffff 55%, transparent); }
.gs-twinkle-cell.has-app { background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-twinkle-cell .gs-app-img { width: 52%; height: 52%; }
.is-visible .gs-twinkle-cell.has-app { animation: gs-twinkle var(--t, 6s) ease-in-out var(--d, 0ms) infinite both; }
@keyframes gs-twinkle {
  0% { opacity: 0; transform: scale(0.82); }
  14%, 62% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: scale(0.88); }
}

/* 2. Modelos ---------------------------------------------------------------- */
.gs-modelos { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.gs-modelos-row { display: flex; align-items: center; gap: 12px; }
.gs-modelo { position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-modelo svg { width: 48%; height: 48%; }
.gs-modelo--xs { width: 36px; height: 36px; }
.gs-modelo--s { width: 48px; height: 48px; }
.gs-modelo--m { width: 60px; height: 60px; }
.gs-modelo--core { width: 92px; height: 92px; padding: 22px; box-shadow: 0 16px 36px rgba(83, 58, 253, 0.2), 0 2px 6px rgba(13, 37, 61, 0.08); }
@media (max-width: 479px) {
  .gs-modelos-row { gap: 8px; }
  .gs-modelo--xs { width: 32px; height: 32px; }
  .gs-modelo--s { width: 42px; height: 42px; }
  .gs-modelo--m { width: 56px; height: 56px; }
  .gs-modelo--core { width: 88px; height: 88px; padding: 20px; }
}
.gs-modelo--mas { font-size: 1.125rem; font-weight: 600; color: var(--gs-mute); border: 1px dashed var(--gs-line); box-shadow: none; }
.gs-modelo-glow {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ds-primary), var(--ds-magenta), var(--ds-sherbet), #38bdf8, var(--ds-primary));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: gs-spin 5s linear infinite;
}
.is-visible .gs-modelo--u0 { animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both, gs-uso 9s ease-in-out 0.8s infinite; }
.is-visible .gs-modelo--u1 { animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both, gs-uso 9s ease-in-out -5.2s infinite; }
.is-visible .gs-modelo--u2 { animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both, gs-uso 9s ease-in-out -2.2s infinite; }
@keyframes gs-uso {
  0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 70%, transparent), 0 10px 24px rgba(83, 58, 253, 0.25); transform: translateY(-4px) scale(1.06); }
  36%, 100% { box-shadow: var(--gs-lift); transform: none; }
}
.gs-modelos-uso {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--ds-canvas);
  font-size: 0.8125rem; box-shadow: var(--gs-lift);
}
.gs-modelos-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); animation: gs-latido 1.6s ease-in-out infinite; }
.gs-modelos-k { color: var(--gs-mute); }
.gs-modelos-reel { display: inline-block; height: 1.3em; overflow: hidden; font-weight: 600; line-height: 1.3; }
.gs-modelos-reel-in { display: flex; flex-direction: column; }
.is-visible .gs-modelos-reel-in { animation: gs-reel 9s var(--gs-ease) 0.8s infinite; }
@keyframes gs-reel {
  0%, 30% { transform: translateY(0); }
  34%, 63% { transform: translateY(-25%); }
  67%, 96% { transform: translateY(-50%); }
  100% { transform: translateY(-75%); }
}
@keyframes gs-latido { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

/* 3. Habilidades ------------------------------------------------------------ */
.gs-skills { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(100%, 384px); padding: 8px 0; }
.gs-skill {
  padding: 14px 16px;
  border: 1px solid var(--gs-line); border-radius: 10px; background: var(--ds-canvas);
  box-shadow: var(--gs-lift);
}
.gs-skill-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.875rem; font-weight: 600; }
.gs-skill-h svg { flex: none; width: 16px; height: 16px; color: var(--ds-primary); }
.gs-skill-p { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--gs-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Las reglas se levantan con el hover de quien mira (antes las tocaban dos cursores animados,
   que salieron). La entrada usa `backwards` y no `both`: un relleno al final dejaría la
   animación pisando el transform del hover. */
.gs-skill { transition: transform 0.3s var(--gs-spring), border-color 0.25s, box-shadow 0.3s var(--gs-ease); }
.is-visible .gs-skill { animation: gs-rise 0.7s var(--gs-ease) var(--d, 0ms) backwards; }
.gs-skill:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ds-primary) 40%, var(--gs-line)); box-shadow: 0 10px 22px rgba(83, 58, 253, 0.12); }

/* 4. Canales ---------------------------------------------------------------- */
.gs-canales { width: min(100%, 548px); padding: 14px; border-radius: 16px; box-shadow: var(--ds-elevation-card); }
.gs-canales-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 12px; }
.gs-canal-tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--gs-body); cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.gs-canal-tab img { width: 15px; height: 15px; }
.gs-canal-tab:hover { background: rgba(255, 255, 255, 0.6); }
.gs-canal-tab.is-on { background: var(--ds-canvas); color: var(--gs-ink); box-shadow: var(--gs-lift); }
.gs-canal-prog { position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ds-primary); transform-origin: left; animation: gs-prog linear forwards; }
@keyframes gs-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gs-win { display: flex; flex-direction: column; overflow: hidden; min-height: 430px; border-radius: 12px; background: var(--ds-canvas); box-shadow: var(--ds-elevation-panel); animation: gs-win 0.45s var(--gs-ease); }
@keyframes gs-win { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.gs-win-head { padding: 12px 16px 0; border-bottom: 1px solid var(--gs-line); }
.gs-win-head strong { font-size: 0.9375rem; }
.gs-win-sub { display: flex; gap: 16px; margin-top: 8px; font-size: 0.75rem; color: var(--gs-mute); }
.gs-win-sub span { padding-bottom: 8px; border-bottom: 2px solid transparent; }
.gs-win-sub span.is-on { color: var(--gs-ink); border-color: var(--gs-ink); }
.gs-win--teams .gs-win-head { border-top: 3px solid #5b5fc7; }
.gs-win--teams .gs-win-sub span.is-on { border-color: #5b5fc7; color: #5b5fc7; }
.gs-win--correo .gs-win-sub span.is-on { border-color: #d93025; color: #d93025; }
.gs-win-body { flex: 1; padding: 6px 16px 14px; }
.gs-msg { display: flex; gap: 10px; padding: 10px 0; }
.gs-msg-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 7px; color: #fff; font-size: 0.6875rem; font-weight: 700; }
.gs-win--teams .gs-msg-av, .gs-win--correo .gs-msg-av { border-radius: 50%; }
.gs-msg-av--doro { padding: 6px; background: var(--ds-canvas); border: 1px solid var(--gs-line); }
.gs-msg-t { min-width: 0; }
.gs-msg-who { margin: 0; font-size: 0.8125rem; }
.gs-msg-who span { margin-left: 4px; font-size: 0.75rem; color: var(--gs-mute); }
.gs-msg-txt { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--gs-ink); }
.gs-mention { padding: 0 3px; border-radius: 4px; background: #e8f5fa; color: #1264a3; font-weight: 500; }
.gs-msg-react { display: flex; gap: 6px; margin: 6px 0 0; }
.gs-msg-react span { padding: 1px 8px; border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--gs-soft); font-size: 0.75rem; }
.gs-msg-thread { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 -6px; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; font-size: 0.75rem; color: var(--gs-mute); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.gs-msg-thread:hover { border-color: var(--gs-line); background: var(--ds-canvas); }
.gs-msg-thread:hover .gs-msg-link { text-decoration: underline; }
.gs-win-head--hilo { display: flex; align-items: center; gap: 8px; padding: 10px 12px; animation: gs-paso 0.3s var(--gs-ease); }
.gs-hilo-back { display: grid; place-items: center; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: var(--gs-body); cursor: pointer; }
.gs-hilo-back:hover { background: var(--gs-soft); color: var(--gs-ink); }
.gs-win-body--hilo .gs-msg + .gs-msg { border-top: 1px solid var(--gs-line); }
.gs-msg-mini { display: grid; place-items: center; width: 18px; height: 18px; padding: 2px; border: 1px solid var(--gs-line); border-radius: 4px; background: var(--ds-canvas); }
.gs-msg-link { color: #1264a3; font-weight: 600; }
.gs-post { margin: 10px 0; padding: 0 12px; border: 1px solid var(--gs-line); border-radius: 10px; }
.gs-msg--reply { margin-left: 22px; padding-left: 12px; border-top: 1px solid var(--gs-line); }
.gs-win-body--rows { padding-top: 0; }
.gs-mail { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--gs-line); }
.gs-mail-t { min-width: 0; flex: 1; }
.gs-mail-t p { margin: 0; font-size: 0.8125rem; }
.gs-mail-t p:first-child { display: flex; justify-content: space-between; }
.gs-mail-t p:first-child span { font-size: 0.75rem; color: var(--gs-mute); }
.gs-mail-subj { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-mail-snip { color: var(--gs-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-mail--leido .gs-mail-subj { font-weight: 500; color: var(--gs-body); }
.gs-mail-dot { position: absolute; right: 4px; bottom: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-primary); }
.gs-win-head--wa { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: #008069; color: #fff; }
.gs-win-head--wa > span:last-child { display: flex; flex-direction: column; }
.gs-win-head--wa > span:last-child span { font-size: 0.6875rem; opacity: 0.8; }
.gs-win-body--wa {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 320px; padding: 14px;
  background-color: #efeae2;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 37, 61, 0.06) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.gs-bubble { max-width: 82%; margin: 0; padding: 7px 10px; border-radius: 10px 10px 10px 2px; background: #fff; font-size: 0.875rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(13, 37, 61, 0.08); }
.gs-bubble span { float: right; margin: 6px 0 0 10px; font-size: 0.625rem; color: var(--gs-mute); }
.gs-bubble--yo { align-self: flex-end; border-radius: 10px 10px 2px 10px; background: #d9fdd3; }
.gs-bubble--typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 10px 12px; }
.gs-bubble--typing i, .gs-wave i { width: 6px; height: 6px; border-radius: 50%; background: var(--gs-mute); animation: gs-wave 1s ease-in-out infinite; }
.gs-bubble--typing i:nth-child(2), .gs-wave i:nth-child(2) { animation-delay: 0.15s; }
.gs-bubble--typing i:nth-child(3), .gs-wave i:nth-child(3) { animation-delay: 0.3s; }
@keyframes gs-wave { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.is-visible .gs-msg-in { animation: gs-rise 0.55s var(--gs-ease) var(--d, 0ms) both; }

/* 5. Corridas --------------------------------------------------------------- */
.gs-runs { display: grid; gap: 34px; width: min(100%, 520px); padding: 18px 14px 0 0; }
.gs-run { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
@media (min-width: 640px) { .gs-run { grid-template-columns: 160px 1fr; } }
.gs-run-k { display: flex; flex-direction: column; min-width: 0; }
.gs-run-k strong { font-size: 0.8125rem; font-weight: 600; }
.gs-run-k span { font-size: 0.6875rem; color: var(--gs-mute); }
.gs-run-track { position: relative; height: 26px; }
.gs-run-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed color-mix(in srgb, var(--ds-ink) 16%, transparent); }
.gs-run-tick { position: absolute; top: 50%; width: 9px; height: 9px; border: 1.5px solid color-mix(in srgb, var(--ds-ink) 16%, transparent); border-radius: 50%; background: var(--ds-canvas); transform: translate(-50%, -50%); }
.gs-run-dot { position: absolute; top: 50%; left: var(--x); z-index: 1; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.gs-run-dot--alerta { background: var(--gs-bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-bad) 20%, transparent); }
.gs-run-dot--espera { background: var(--ds-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-primary) 20%, transparent); }
.gs-run-dot--ok { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2); }
.gs-run-pill {
  position: absolute; bottom: calc(100% + 2px); left: var(--x);
  max-width: 230px; padding: 3px 9px;
  border-radius: var(--ds-radius-pill);
  font-size: 0.6875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateX(var(--tx, -50%));
}
.gs-run-pill--alerta { background: var(--gs-bad-bg); color: var(--gs-bad); }
.gs-run-pill--espera { background: color-mix(in srgb, var(--ds-primary) 10%, white); color: var(--ds-primary-deep); }
.gs-run-pill--ok { background: var(--gs-ok-bg); color: var(--gs-ok); }
.is-visible .gs-run-dot { animation: gs-run-dot 7.5s var(--gs-ease) var(--d, 0ms) infinite both; }
.is-visible .gs-run-pill { animation: gs-run-pill 7.5s var(--gs-ease) var(--d, 0ms) infinite both; }
@keyframes gs-run-dot {
  0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  6% { opacity: 1; transform: translate(-50%, -50%); }
  36% { left: var(--x); transform: translate(-50%, -50%); }
  40% { transform: translate(-50%, -50%) scale(1.35); }
  46%, 84% { left: var(--x); opacity: 1; transform: translate(-50%, -50%); }
  94%, 100% { left: var(--x); opacity: 0; transform: translate(-50%, -50%); }
}
@keyframes gs-run-pill {
  0%, 36% { opacity: 0; transform: translateX(var(--tx, -50%)) translateY(5px) scale(0.7); }
  43% { opacity: 1; transform: translateX(var(--tx, -50%)) scale(1.05); }
  48%, 84% { opacity: 1; transform: translateX(var(--tx, -50%)); }
  94%, 100% { opacity: 0; transform: translateX(var(--tx, -50%)) translateY(-3px); }
}
.gs-run--axis { padding-top: 0; }
.gs-run-axis { display: flex; justify-content: space-between; font-size: 0.625rem; color: var(--gs-mute); font-variant-numeric: tabular-nums; }
.gs-run-axis span { width: 0; display: flex; justify-content: center; }

/* 6. Cadena ----------------------------------------------------------------- */
/* Escalera: el paso i se corre (i / (n-1)) del espacio que sobra a la derecha del nodo. El codo
   que lo une al anterior sale de su borde izquierdo y sube hasta el centro del ícono de arriba. */
.gs-chain { --w: min(320px, 100cqw - 48px); --x: calc((100cqw - var(--w)) / max(var(--n) - 1, 1)); container-type: inline-size; display: flex; flex-direction: column; gap: 22px; width: min(100%, 540px); }
.gs-chain-step { position: relative; width: var(--w); margin-left: calc(var(--i) * var(--x)); }
.gs-chain-step + .gs-chain-step::before {
  content: ''; position: absolute; right: 100%; bottom: 50%;
  width: calc(var(--x) - 29px); height: calc(50% + 22px);
  border-left: 1.5px dashed color-mix(in srgb, var(--ds-ink) 28%, transparent);
  border-bottom: 1.5px dashed color-mix(in srgb, var(--ds-ink) 28%, transparent);
  border-bottom-left-radius: 10px;
}
/* En móvil no alcanza para la escalera: una columna, unida por una línea bajo los íconos. */
@media (max-width: 559px) {
  .gs-chain { --w: 100cqw; --x: 0px; }
  .gs-chain-step + .gs-chain-step::before { right: auto; left: 29px; bottom: 100%; width: 0; height: 22px; border-bottom: 0; border-radius: 0; }
}
.gs-chain-node {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 10px 12px;
  border: 1px solid var(--gs-line); border-radius: 12px; background: var(--ds-canvas);
  box-shadow: var(--gs-lift);
}
.gs-chain-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--gs-soft); }
.gs-chain-ico img { width: 18px; height: 18px; }
.gs-chain-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gs-chain-t strong { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.gs-chain-t span { font-size: 0.75rem; line-height: 1.35; color: var(--gs-mute); }
.gs-chain-hora { flex: none; align-self: flex-start; padding: 2px 7px; border-radius: var(--ds-radius-pill); background: var(--gs-soft); font-size: 0.6875rem; font-variant-numeric: tabular-nums; color: var(--gs-body); }
.is-visible .gs-chain-node { animation: gs-turno calc(var(--n) * 1.5s) ease-in-out calc(var(--i) * 1.5s + 1s) infinite; }
@keyframes gs-turno {
  0%, 26%, 100% { border-color: var(--gs-line); transform: none; box-shadow: var(--gs-lift); }
  6%, 20% { border-color: color-mix(in srgb, var(--ds-primary) 55%, white); transform: translateY(-3px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 12%, transparent), 0 12px 24px rgba(83, 58, 253, 0.14); }
}

/* 7. Equipo ----------------------------------------------------------------- */
.gs-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); }
@media (min-width: 520px) { .gs-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gs-person { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--gs-line); border-radius: 10px; background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-person-av { position: relative; flex: none; }
.gs-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; }
.gs-person-rol-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid var(--ds-canvas); border-radius: 50%; }
.gs-person-rol-dot--a { background: var(--ds-primary); }
.gs-person-rol-dot--e { background: #0ea5e9; }
.gs-person-rol-dot--u { background: #94a3b8; }
.gs-person-t { display: flex; flex-direction: column; min-width: 0; }
.gs-person-t strong { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-person-t > span { font-size: 0.6875rem; color: var(--gs-mute); }
.gs-person-swap { display: inline-grid; }
.gs-person-swap span { grid-area: 1 / 1; }
.gs-person-swap span:last-child { opacity: 0; color: #0284c7; font-weight: 600; }
.is-visible .gs-person-swap span:first-child { animation: gs-swap-a 6s ease-in-out 1.5s infinite; }
.is-visible .gs-person-swap span:last-child { animation: gs-swap-b 6s ease-in-out 1.5s infinite; }
.is-visible .gs-person--cambia { animation: gs-pop 0.6s var(--gs-spring) var(--d, 0ms) both, gs-cambia 6s ease-in-out 1.5s infinite; }
@keyframes gs-swap-a { 0%, 42% { opacity: 1; transform: none; } 48%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes gs-swap-b { 0%, 42% { opacity: 0; transform: translateY(6px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
@keyframes gs-cambia { 0%, 40%, 100% { border-color: var(--gs-line); } 46%, 60% { border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12); } }

/* 8. Aprende ---------------------------------------------------------------- */
.gs-learn { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gs-learn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--ds-canvas); box-shadow: var(--gs-lift); font-size: 0.8125rem; font-weight: 600; }
.gs-learn-pill svg { width: 15px; height: 15px; color: #16a34a; }
.is-visible .gs-learn-pill { animation: gs-rise 0.7s var(--gs-ease) both, gs-cuenta 0.5s var(--gs-spring) 1.6s; }
@keyframes gs-cuenta { 50% { transform: scale(1.08); } }
.gs-learn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 470px; }
.gs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--ds-radius-pill); font-size: 0.75rem; font-weight: 600; }
.gs-chip svg { width: 11px; height: 11px; }
.gs-chip--0 { background: #fde7ef; color: #be185d; }
.gs-chip--1 { background: #e0f2fe; color: #0369a1; }
.gs-chip--2 { background: #dcfce7; color: #15803d; }
.gs-chip--3 { background: #fef3c7; color: #b45309; }
.gs-chip--4 { background: #ede9fe; color: #6d28d9; }
.gs-chip--5 { background: #ffe4e6; color: #be123c; }
.is-visible .gs-chip { animation: gs-chip 0.6s var(--gs-spring) var(--d, 0ms) both; }
@keyframes gs-chip { from { opacity: 0; transform: translateY(10px) scale(0.7); } to { opacity: 1; transform: none; } }
.gs-learn-pie { margin: 0; font-size: 0.75rem; color: var(--gs-mute); }

/* ==========================================================================
   Seguridad
   ========================================================================== */

.gs-secs { display: grid; gap: 28px 24px; }
@media (min-width: 640px) { .gs-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gs-secs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gs-sec-vis { position: relative; display: grid; place-items: center; height: 240px; border: 1px solid var(--gs-line); border-radius: 12px; overflow: hidden; }
.gs-sec-h { margin: 16px 8px 6px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.gs-sec-p { margin: 0 8px; font-size: 0.875rem; line-height: 1.55; color: var(--gs-body); }

.gs-sw-list { display: flex; flex-direction: column; gap: 6px; width: 84%; }
.gs-sw-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--gs-line); border-radius: 8px; background: var(--ds-canvas); font-size: 0.75rem; color: var(--gs-mute); transition: opacity 0.4s; }
.gs-sw-row img { width: 15px; height: 15px; }
.gs-sw-row > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sw-row strong { color: var(--gs-ink); font-weight: 600; }
.gs-sw { position: relative; flex: none; width: 28px; height: 16px; border-radius: var(--ds-radius-pill); background: var(--ds-primary); }
.gs-sw::after { content: ''; position: absolute; top: 2px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.gs-sw-row--off { opacity: 0.6; }
.gs-sw-row--off .gs-sw { background: #cbd5e1; }
.gs-sw-row--off .gs-sw::after { left: 2px; }
.is-visible .gs-sw-row--off { animation: gs-off-row 0.4s ease 1.4s both; }
.is-visible .gs-sw-row--off .gs-sw { animation: gs-off-bg 0.35s ease 1.4s both; }
.is-visible .gs-sw-row--off .gs-sw::after { animation: gs-off-knob 0.35s var(--gs-spring) 1.4s both; }
@keyframes gs-off-row { from { opacity: 1; } to { opacity: 0.6; } }
@keyframes gs-off-bg { from { background: var(--ds-primary); } to { background: #cbd5e1; } }
@keyframes gs-off-knob { from { left: 14px; } to { left: 2px; } }

.gs-vm { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.gs-vm-ring { position: absolute; width: 200px; height: 200px; border: 1.5px dashed rgba(255, 255, 255, 0.95); border-radius: 50%; animation: gs-spin 40s linear infinite; }
.gs-vm-ring--2 { width: 280px; height: 280px; border-style: solid; border-color: rgba(255, 255, 255, 0.6); animation-direction: reverse; }
.gs-vm-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 160px; padding: 14px 12px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--ds-elevation-panel); }
.gs-vm-dots { position: absolute; top: 8px; left: 10px; display: flex; gap: 4px; }
.gs-vm-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ff7542; }
.gs-vm-dots i:nth-child(2) { background: #c0ffab; }
.gs-vm-dots i:nth-child(3) { background: #9aa2ff; }
.gs-vm-core { width: 40px; height: 40px; margin-top: 8px; }
.gs-vm-k { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.625rem; color: var(--gs-body); }
.gs-live { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: gs-latido 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }

.gs-mods { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gs-mods-row { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--ds-canvas); box-shadow: var(--gs-lift); font-size: 0.8125rem; font-weight: 600; }
.gs-mods-dot { width: 9px; height: 9px; border-radius: 50%; }
.gs-mods-st { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 0.625rem; font-weight: 700; }
.gs-mods-st--on { background: #16a34a; }
.gs-mods-st--off { background: var(--gs-bad); }
.is-visible .gs-mods-row { animation: gs-pop 0.5s var(--gs-spring) var(--d, 0ms) both; }

.gs-spend { width: 82%; padding: 12px; border-radius: 10px; background: var(--ds-canvas); box-shadow: var(--ds-elevation-panel); }
.gs-spend-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.gs-spend-h > span:last-child { display: flex; flex-direction: column; }
.gs-spend-h strong { font-size: 0.75rem; }
.gs-spend-h span span { font-size: 0.625rem; color: var(--gs-mute); }
.gs-spend-ico { display: grid; place-items: center; width: 24px; height: 24px; padding: 4px; border-radius: 6px; background: var(--gs-soft); }
.gs-spend-svg { display: block; width: 100%; height: 86px; overflow: visible; }
.gs-spend-zone { fill: color-mix(in srgb, var(--gs-bad) 8%, transparent); }
.gs-spend-lim { stroke: var(--gs-bad); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.gs-spend-lt { fill: var(--gs-bad); font-size: 7px; font-weight: 700; letter-spacing: 0.06em; }
.gs-spend-line { fill: none; stroke: var(--ds-primary); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.gs-spend-pt { fill: var(--gs-bad); }
.is-visible .gs-spend-line { animation: gs-dibuja 1.8s var(--gs-ease) 0.3s both; }
.is-visible .gs-spend-pt { transform-box: fill-box; transform-origin: center; animation: gs-pop 0.5s var(--gs-spring) 1.3s both, gs-pulso 1.8s ease-in-out 2s infinite; }
@keyframes gs-dibuja { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gs-pulso { 50% { transform: scale(1.5); opacity: 0.6; } }

.gs-log { width: 84%; }
.gs-log-k { margin: 6px 0 4px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gs-mute); }
.gs-log-row { display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin: 0 0 5px; padding: 3px 10px 3px 3px; border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--ds-canvas); font-size: 0.75rem; color: var(--gs-body); }
.gs-log-row .gs-avatar { width: 20px; height: 20px; font-size: 0.5rem; }
.gs-log-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-log-row strong { color: var(--gs-ink); font-weight: 600; }
.is-visible .gs-log-row { animation: gs-entra-der 0.55s var(--gs-ease) var(--d, 0ms) both; }
@keyframes gs-entra-der { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.gs-ok { width: 84%; padding: 12px; border-radius: 10px; background: var(--ds-canvas); box-shadow: var(--ds-elevation-panel); }
.gs-ok-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; font-weight: 600; }
.gs-ok-ico { display: grid; place-items: center; width: 22px; height: 22px; padding: 3px; border-radius: 6px; background: var(--gs-soft); }
.gs-ok-p { margin: 6px 0 10px; font-size: 0.75rem; line-height: 1.45; color: var(--gs-body); }
.gs-ok-btns { display: flex; justify-content: flex-end; gap: 6px; margin: 0; }
.gs-ok-btns span { padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.gs-ok-no { border: 1px solid var(--gs-line); color: var(--gs-body); }
.gs-ok-si { background: var(--ds-primary); color: #fff; }
.is-visible .gs-ok-si { animation: gs-espera 2.2s ease-in-out 1s infinite; }
@keyframes gs-espera { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-primary) 45%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ds-primary) 0%, transparent); } }

.gs-pass { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gs-pass-field { display: flex; gap: 8px; padding: 14px 20px; border: 1px solid var(--gs-line); border-radius: 10px; background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-pass-field i { width: 9px; height: 9px; border-radius: 50%; background: var(--gs-ink); }
.is-visible .gs-pass-field i { animation: gs-tecla 4s var(--gs-spring) var(--d, 0ms) infinite both; }
@keyframes gs-tecla { 0% { opacity: 0; transform: scale(0); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: scale(0.6); } }
.gs-pass-k { font-size: 0.6875rem; font-weight: 600; color: var(--gs-mute); }

.gs-zdr-frame { position: relative; display: grid; place-items: center; width: 120px; height: 120px; border: 1.5px dashed rgba(13, 37, 61, 0.22); border-radius: 18px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--ds-elevation-panel); }
.gs-zdr-lock { width: 56px; height: 56px; color: var(--gs-body); }
.gs-zdr-lock svg { width: 100%; height: 100%; overflow: visible; }
.is-visible .gs-zdr-shackle { animation: gs-cierra 3.4s var(--gs-spring) 0.6s infinite; }
@keyframes gs-cierra { 0%, 30% { transform: translateY(-3px); } 40%, 100% { transform: none; } }

.gs-ley { position: relative; display: grid; place-items: center; width: 140px; height: 140px; }
.gs-ley-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dotted color-mix(in srgb, var(--ds-primary) 40%, transparent); animation: gs-spin 30s linear infinite; }
.gs-ley-in { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border: 1px solid var(--gs-line); border-radius: 50%; background: var(--ds-canvas); box-shadow: var(--ds-elevation-panel); }
.gs-ley-in strong { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.gs-ley-in span { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ds-primary); }

/* ==========================================================================
   Tarjetas de caso
   ========================================================================== */

.gs-ucs { display: grid; gap: 16px; }
@media (min-width: 560px) and (max-width: 1023px) { .gs-ucs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gs-uc--ancha-md { grid-column: span 2; } }
@media (min-width: 1024px) { .gs-ucs { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } .gs-uc--ancha-lg { grid-column: span 2; } }
.gs-uc {
  --tint: #f3efff; --tint-ink: #7c3aed;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gs-line); border-radius: 12px; background: var(--ds-canvas);
  color: var(--gs-ink);
  transition: transform 0.4s var(--gs-spring), box-shadow 0.4s var(--gs-ease), border-color 0.3s;
}
.gs-uc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint-ink) 25%, var(--gs-line)); box-shadow: var(--ds-elevation-card-hover, 0 22px 48px rgba(23, 23, 23, 0.1)); }
.gs-uc:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 3px; }
.gs-uc--rosa { --tint: #fdecf3; --tint-ink: #db2777; }
.gs-uc--durazno { --tint: #fff1e6; --tint-ink: #ea580c; }
.gs-uc--lila { --tint: #f3efff; --tint-ink: #7c3aed; }
.gs-uc--cielo { --tint: #e8f2ff; --tint-ink: #2563eb; }
.gs-uc--menta { --tint: #e6f7f1; --tint-ink: #059669; }
.gs-uc--indigo { --tint: #eeebff; --tint-ink: #533afd; }
.gs-uc-head { position: relative; display: flex; align-items: center; height: 92px; padding: 0 16px; background: var(--tint); }
.gs-uc-head::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.7), transparent 60%); pointer-events: none; }
.gs-uc-apps { position: relative; z-index: 1; display: flex; gap: 6px; }
.gs-uc-app { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ds-canvas); box-shadow: 0 1px 3px rgba(13, 37, 61, 0.1); transition: transform 0.4s var(--gs-spring); }
.gs-uc-app .gs-app-img { width: 16px; height: 16px; }
.gs-uc-app .gs-app-letra { width: 18px; height: 18px; font-size: 0.625rem; }
.gs-uc-app--mas { font-size: 0.6875rem; font-weight: 600; color: var(--gs-body); }
.gs-uc:hover .gs-uc-app { transform: translateX(calc(var(--k) * 3px)) translateY(-2px); }
.gs-uc-arrow { position: absolute; top: 12px; right: 12px; z-index: 1; width: 18px; height: 18px; color: color-mix(in srgb, var(--tint-ink) 55%, white); transition: transform 0.35s var(--gs-spring), color 0.3s; }
.gs-uc:hover .gs-uc-arrow { transform: translate(3px, -3px); color: var(--tint-ink); }
.gs-uc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.gs-uc-h { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.gs-uc-p { font-size: 0.8125rem; line-height: 1.5; color: var(--gs-body); }

/* ==========================================================================
   Reloj y cierre
   ========================================================================== */

.gs-band--odo { padding-bottom: 8px; }
.gs-odo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gs-odo-k { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.875rem); font-weight: 500; color: var(--gs-mute); letter-spacing: -0.01em; }
.gs-odo-num {
  display: flex; align-items: center;
  margin: 0;
  font-family: var(--font-display); font-size: clamp(3.5rem, 13vw, 8.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ds-ink) 30%, white);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, 0.12) 100%);
  mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, 0.12) 100%);
}
.gs-odo-col { display: inline-block; height: 1.1em; overflow: hidden; }
.gs-odo-reel { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.2, 1); }
.gs-odo-reel span { display: block; height: 1.1em; }
.gs-odo-sep { margin: 0 0.02em; transform: translateY(-0.06em); color: color-mix(in srgb, var(--ds-ink) 18%, white); }
.gs-odo-pie { margin: 0; font-size: 1rem; color: var(--gs-body); }
/* La banda usa todo el ancho para las cintas; el texto vuelve a la columna con .gs-wrap. */
.gs-band--odo > .gs-odo { gap: 0; }
.gs-odo-nota { margin: 24px 0 0; padding: 0 16px; font-size: 0.75rem; color: var(--gs-mute); }
.gs-cintas { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 36px; }
.gs-cinta {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.gs-cinta-pista { display: flex; width: max-content; }
.gs-cinta-pista--izq { animation: gs-cinta 42s linear infinite; }
.gs-cinta-pista--der { animation: gs-cinta 48s linear infinite reverse; }
.gs-cinta:hover .gs-cinta-pista { animation-play-state: paused; }
@keyframes gs-cinta { to { transform: translateX(-50%); } }
.gs-cinta-lista { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.gs-cinta-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--ds-radius-pill, 999px);
  background: #fff; box-shadow: 0 0 0 1px #ebe7e0, 0 2px 6px rgba(18, 18, 18, 0.04);
  white-space: nowrap; font-size: 0.875rem;
}
.gs-cinta-item img { width: 18px; height: 18px; }
.gs-cinta-item b { font-weight: 500; color: var(--gs-ink); }
.gs-cinta-item em { font-style: normal; font-size: 0.75rem; color: var(--gs-mute); }
.gs-cinta-item--espera { background: #fffaf2; box-shadow: 0 0 0 1px #fcd9a8; }
.gs-cinta-item--espera em { color: #b45309; }
@media (prefers-reduced-motion: reduce) { .gs-cinta-pista { animation: none; } }

.gs-band--cierre { padding-top: 8px; }
.gs-cierre { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 20px; border-radius: 10px; text-align: center; box-shadow: var(--ds-elevation-card); }
@media (min-width: 640px) { .gs-cierre { padding: 72px 40px; } }
.gs-cierre .gs-lead { max-width: 560px; }
.gs-cierre-iso { display: grid; place-items: center; width: 60px; height: 60px; padding: 12px; border-radius: 18px; background: var(--ds-canvas); box-shadow: 0 12px 28px rgba(83, 58, 253, 0.2); }
.gs-cierre-dest { background: linear-gradient(90deg, var(--ds-primary), var(--ds-ruby)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gs-cierre--gris { background: var(--gs-soft); border: 1px solid var(--gs-line); box-shadow: none; }
.gs-blobs { display: flex; align-items: center; gap: 6px; height: 34px; }
.gs-blobs i { display: block; }
.gs-blobs i:nth-child(1) { width: 14px; height: 14px; border-radius: 50%; background: #ec4899; }
.gs-blobs i:nth-child(2) { width: 26px; height: 30px; border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%; background: #8b5cf6; }
.gs-blobs i:nth-child(3) { width: 26px; height: 26px; border-radius: 30%; background: #16a34a; transform: rotate(45deg); }
.gs-blobs i:nth-child(4) { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: #0ea5e9; }
.is-visible .gs-blobs i { animation: gs-bota 2.4s ease-in-out infinite; }
.is-visible .gs-blobs i:nth-child(2) { animation-delay: 0.15s; }
.is-visible .gs-blobs i:nth-child(3) { animation-delay: 0.3s; animation-name: gs-bota-rot; }
.is-visible .gs-blobs i:nth-child(4) { animation-delay: 0.45s; }
@keyframes gs-bota { 0%, 100% { transform: none; } 30% { transform: translateY(-8px); } 50% { transform: translateY(0) scale(1.06, 0.92); } }
@keyframes gs-bota-rot { 0%, 100% { transform: rotate(45deg); } 30% { transform: translateY(-8px) rotate(90deg); } 50% { transform: rotate(135deg) scale(1.06, 0.92); } }

/* ==========================================================================
   ChatDemo (hero de caso)
   ========================================================================== */

.gs-chatband { padding: 36px 12px 48px; }
@media (min-width: 640px) { .gs-chatband { padding: 48px 24px 64px; } }
.gs-chat { display: flex; flex-direction: column; width: 100%; max-width: 1280px; height: 620px; margin: 0 auto; padding: 18px 12px 14px; border-radius: 14px; background: var(--ds-canvas); box-shadow: var(--ds-elevation-card); }
@media (min-width: 640px) { .gs-chat { padding: 20px 28px 20px; } }
@media (min-width: 900px) { .gs-chat { height: 700px; } }
.gs-chat-title { margin: 0 0 14px; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--gs-body); }
/* El alto es fijo, como en Gumloop: la respuesta corre adentro y la ventana baja para seguirla. */
.gs-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gs-line) transparent; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.gs-chat-body { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; padding-bottom: 28px; }
/* El pedido queda fijo arriba mientras la respuesta pasa por debajo. */
.gs-chat-user { position: sticky; top: 0; z-index: 2; padding: 10px 14px; border-radius: 10px; background: var(--gs-soft); box-shadow: 0 0 0 6px var(--ds-canvas); font-size: 0.875rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity 0.45s, transform 0.5s var(--gs-ease); }
.gs-chat-user p { margin: 0; }
.gs-chat-user.is-on, .gs-chat-bot.is-on { opacity: 1; transform: none; }
.gs-chat-who { display: flex; align-items: center; gap: 6px; margin: 0 0 4px !important; font-size: 0.75rem; font-weight: 600; color: var(--gs-body); }
.gs-chat-av { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 0.5rem; font-weight: 700; }
.gs-chat-av--doro { padding: 2px; border: 1px solid var(--gs-line); background: var(--ds-canvas); }
.gs-chat-bot { margin-top: 4px; opacity: 0; transform: translateY(10px); transition: opacity 0.45s, transform 0.5s var(--gs-ease); }
.gs-chat-steps { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 3px 10px; border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); font-size: 0.75rem; color: var(--gs-mute); transition: background-color 0.3s; }
.gs-chat-steps svg { width: 12px; height: 12px; }
.gs-chat-steps.is-done { background: var(--gs-soft); }
.gs-wave { display: inline-flex; gap: 3px; }
.gs-wave i { width: 5px; height: 5px; background: var(--ds-primary); }
/* La respuesta: cada pieza se monta cuando le toca y entra con este movimiento. */
.gs-chat-lines { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; line-height: 1.55; color: var(--gs-ink); }
.gs-chat-lines p { margin: 0; }
.gs-chat-p { color: var(--gs-ink); }
.gs-chat-in { animation: gs-chat-in 0.45s var(--gs-ease) both; }
@keyframes gs-chat-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.gs-chat-lines code { padding: 1px 5px; border-radius: 4px; background: var(--gs-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: var(--gs-body); }
.gs-chat-h { margin-top: 6px !important; font-weight: 600; }
.gs-chat-ul { display: flex; flex-direction: column; gap: 5px; margin: 0; padding-left: 20px; list-style: disc; }
ol.gs-chat-ul { list-style: decimal; }
.gs-chat-ul li::marker { color: var(--gs-mute); }
.gs-chat-hr { width: 100%; height: 0; margin: 4px 0; border: 0; border-top: 1px solid var(--gs-line); }
.gs-chat-total { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ds-primary) 6%, var(--ds-canvas)); border: 1px solid color-mix(in srgb, var(--ds-primary) 16%, var(--gs-line)); }
.gs-chat-tabla { overflow-x: auto; border: 1px solid var(--gs-line); border-radius: 10px; }
.gs-chat-tabla table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.gs-chat-tabla th { padding: 8px 12px; background: var(--gs-soft); text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--gs-body); white-space: nowrap; }
.gs-chat-tabla td { padding: 8px 12px; border-top: 1px solid var(--gs-line); vertical-align: top; }
.gs-chat-tabla td:not(:first-child) { white-space: nowrap; }
.gs-chat-suma td { font-weight: 600; background: color-mix(in srgb, var(--gs-soft) 60%, transparent); }
.gs-chat-input { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; width: 100%; max-width: 740px; min-height: 84px; margin: 22px auto 0; padding: 12px 14px 10px; border: 1px solid var(--gs-line); border-radius: 12px; box-shadow: var(--gs-lift); font-size: 0.875rem; color: var(--gs-mute); }
.gs-chat-send { align-self: flex-end; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: conic-gradient(from 210deg, var(--ds-primary), var(--ds-magenta), var(--ds-sherbet), #38bdf8, var(--ds-primary)); }
.gs-chat-send svg { width: 14px; height: 14px; }

/* ==========================================================================
   Índice (/casos)
   ========================================================================== */

.gs-hero--indice { padding-bottom: 48px; }
.gs-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.gs-rol {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--gs-line); border-radius: var(--ds-radius-pill); background: var(--ds-canvas);
  box-shadow: var(--gs-lift);
  font-size: 0.875rem; font-weight: 500; color: var(--gs-ink);
  animation: gs-rise 0.7s var(--gs-ease) var(--d, 0ms) both;
  transition: transform 0.3s var(--gs-spring), border-color 0.3s;
}
.gs-rol:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ds-primary) 40%, var(--gs-line)); }
.gs-rol--rosa, .gs-eq--rosa { --c: #ec4899; }
.gs-rol--durazno, .gs-eq--durazno { --c: #f97316; }
.gs-rol--lila, .gs-eq--lila { --c: #8b5cf6; }
.gs-rol--cielo, .gs-eq--cielo { --c: #3b82f6; }
.gs-rol--menta, .gs-eq--menta { --c: #10b981; }
.gs-rol--indigo, .gs-eq--indigo { --c: #533afd; }
.gs-band--grupo { scroll-margin-top: 72px; padding-top: 40px; }
@media (min-width: 1024px) { .gs-band--grupo { padding-top: 56px; padding-bottom: 72px; } }

.gs-dark {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background: var(--ds-band-dark, #121212);
  color: #fff;
}
@media (min-width: 1024px) { .gs-dark { padding: 120px 0 128px; } }
.gs-dark::before { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ds-primary) 35%, transparent), transparent); filter: blur(30px); pointer-events: none; }
.gs-dark .gs-wrap { position: relative; }
.gs-dark .gs-h2 { color: #fff; margin: 8px 0 32px; }
.gs-dark-k { margin: 0; font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.gs-dark-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .gs-dark-grid { grid-template-columns: 1.15fr 1fr; } }
.gs-dcard--big { display: flex; flex-direction: column; }
.gs-dcol { display: flex; flex-direction: column; gap: 16px; }
.gs-dcard { padding: 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.gs-dcard h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; color: #fff; }
.gs-dcard p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: rgba(255, 255, 255, 0.64); }
.gs-dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-dstats p { display: flex; flex-direction: column; gap: 4px; }
.gs-dstats span { font-size: 0.75rem; }
.gs-dstats strong { font-size: clamp(1.25rem, 2.6vw, 1.875rem); font-weight: 500; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gs-dchart { position: relative; height: 190px; margin: 18px 0 40px; }
.gs-dchart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gs-dchart-lim { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.gs-dchart-prev { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.gs-dchart-line { fill: none; stroke: var(--ds-magenta); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-visible .gs-dchart-line { animation: gs-dibuja 2s var(--gs-ease) 0.3s both; }
.gs-dchart-pt { position: absolute; width: 10px; height: 10px; border: 2px solid var(--ds-magenta); border-radius: 50%; background: var(--ds-band-dark, #121212); transform: translate(-50%, -50%); }
.is-visible .gs-dchart-pt { animation: gs-pop-c 0.5s var(--gs-spring) var(--d, 0ms) both; }
@keyframes gs-pop-c { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } to { opacity: 1; transform: translate(-50%, -50%); } }
.gs-dchart-tip { position: absolute; left: 36%; top: 4%; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(13, 23, 56, 0.85); font-size: 0.6875rem; color: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gs-dchart-tip strong { color: #ff8fb1; }
.is-visible .gs-dchart-tip { animation: gs-rise 0.6s var(--gs-ease) 1.9s both; }
.gs-dchart-lt { position: absolute; right: 0; top: calc(22% - 18px); font-size: 0.625rem; color: rgba(255, 255, 255, 0.5); }
.gs-dchart-x { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; justify-content: space-between; margin: 0; font-size: 0.625rem !important; }
.gs-dcard--log { display: grid; gap: 16px; }
@media (min-width: 560px) { .gs-dcard--log { grid-template-columns: 1fr 1fr; } }
.gs-capt { position: relative; }
.gs-capt-k { display: flex; align-items: center; gap: 6px; margin-bottom: 8px !important; font-size: 0.75rem !important; }
.gs-capt-spin { width: 12px; height: 12px; border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 50%; animation: gs-spin 2.4s linear infinite; }
.gs-capt-row { margin: 0 0 7px !important; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.8125rem !important; color: rgba(255, 255, 255, 0.9) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-capt-row:nth-child(4) { opacity: 0.7; }
.gs-capt-row:nth-child(5) { opacity: 0.45; filter: blur(0.6px); }
.gs-capt-row:nth-child(6) { opacity: 0.25; filter: blur(1.4px); }
.is-visible .gs-capt-row { animation: gs-capt 0.5s var(--gs-ease) calc(var(--i) * 0.35s + 0.3s) both; }
@keyframes gs-capt { from { opacity: 0; transform: translateY(-8px); } }
.gs-dcard--vm { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gs-dvm { position: relative; display: grid; place-items: center; flex: none; width: 110px; height: 110px; }
.gs-dvm-ring { position: absolute; inset: 0; border: 1.5px dashed rgba(255, 255, 255, 0.25); border-radius: 50%; animation: gs-spin 30s linear infinite; }
.gs-dvm-ring--2 { inset: 16px; border-style: solid; border-color: rgba(255, 255, 255, 0.12); animation-direction: reverse; }
.gs-dvm-core { width: 54px; height: 54px; padding: 11px; border-radius: 16px; background: #fff; box-shadow: 0 0 30px color-mix(in srgb, var(--ds-primary) 60%, transparent); }

.gs-dmini { display: grid; gap: 44px 28px; margin-top: 48px; }
@media (min-width: 560px) { .gs-dmini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gs-dmini { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gs-dm > p { margin: 18px 0 0; font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.gs-dm > p strong { color: #fff; font-weight: 600; }
/* Las piezas se dibujan a su tamaño chico y se agrandan aquí, todas por igual. */
.gs-dm-vis { display: grid; place-items: center; height: 168px; }
.gs-dm-vis > * { transform: scale(1.15); }
.gs-dm-admin { width: 158px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.04); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.6875rem; color: rgba(255, 255, 255, 0.8); }
.gs-dm-admin p { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin: 0 0 2px; font-weight: 600; color: #fff; }
.gs-dm-admin > span { display: flex; align-items: center; gap: 5px; }
.gs-dm-admin img { width: 12px; height: 12px; }
.gs-dm-avs { display: flex; }
.gs-dm-avs .gs-avatar { width: 18px; height: 18px; font-size: 0.4375rem; border: 1.5px solid var(--ds-band-dark, #121212); margin-left: -5px; }
.gs-dm-models { display: flex; flex-direction: column; gap: 5px; width: 150px; }
.gs-dm-models span { display: flex; justify-content: space-between; align-items: center; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.04); font-size: 0.75rem; color: #fff; }
.gs-dm-models i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--gs-bad); font-size: 0.5625rem; font-style: normal; font-weight: 700; }
.gs-dm-models i.is-on { background: #16a34a; }
.gs-dm-shield { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; }
.gs-dm-shield::before { content: ''; position: absolute; inset: 0; border: 1.5px dashed rgba(255, 255, 255, 0.3); border-radius: 50%; animation: gs-spin 18s linear infinite; }
.gs-dm-shield svg { width: 30px; height: 30px; }
.gs-dm-lock { position: relative; display: grid; place-items: center; width: 84px; height: 84px; color: #fff; }
.gs-dm-lock i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; transform: rotate(var(--a)) translateY(-38px); opacity: 0.6; }
.is-visible .gs-dm-lock i { animation: gs-estrella 2.4s ease-in-out infinite; animation-delay: calc(var(--a) / 360deg * 2.4s); }
@keyframes gs-estrella { 50% { opacity: 0.15; } }
.gs-dm-lock svg { width: 28px; height: 28px; }
.gs-dm-req { width: 176px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 0.6875rem; }
.gs-dm-req p { margin: 0; display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, 0.7); }
.gs-dm-req strong { color: #fff; }
.gs-dm-req-b { flex-direction: row !important; justify-content: flex-end; gap: 6px !important; margin-top: 8px !important; }
.gs-dm-req-b span { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; font-weight: 600; }
.gs-dm-req-b .is-si { background: #fff; color: var(--gs-ink); }
.gs-dm-pass { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gs-dm-pass span { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--ds-radius-pill); background: rgba(255, 255, 255, 0.05); font-size: 1rem; letter-spacing: 0.18em; color: #fff; }
.gs-dm-pass i { font-size: 0.625rem; font-style: normal; color: rgba(255, 255, 255, 0.5); }
.gs-dm-reglas, .gs-dm-roles, .gs-dm-uso { display: flex; flex-direction: column; gap: 6px; width: 176px; }
.gs-dm-reglas p, .gs-dm-roles p { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.04); font-size: 0.6875rem; color: rgba(255, 255, 255, 0.85); }
.gs-dm-reglas i, .gs-dm-roles i { flex: none; padding: 1px 6px; border-radius: var(--ds-radius-pill); font-size: 0.5625rem; font-style: normal; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
.gs-dm-reglas i.is-si { background: rgba(22, 163, 74, 0.25); color: #86efac; }
.gs-dm-reglas i.is-espera { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.gs-dm-reglas i.is-no { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.gs-dm-roles p { justify-content: flex-start; }
.gs-dm-roles p > span:not(.gs-avatar) { flex: 1; }
.gs-dm-roles .gs-avatar { flex: none; width: 18px; height: 18px; font-size: 0.4375rem; }
.gs-dm-traza { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.625rem; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.gs-dm-traza p { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.gs-dm-traza p > img, .gs-dm-traza-ico { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #fff; }
.gs-dm-traza-ico { display: grid; place-items: center; }
.gs-dm-traza-ico img { width: 100%; height: 100%; }
.gs-dm-traza-l { width: 56px; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, 0.4); }
.gs-dm-uso p { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 8px; margin: 0; font-size: 0.6875rem; color: rgba(255, 255, 255, 0.75); }
.gs-dm-uso i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.gs-dm-uso i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, var(--ds-primary), var(--ds-magenta)); transform-origin: left; }
.is-visible .gs-dm-uso i::after { animation: gs-crece 1.1s var(--gs-ease) both; }
@keyframes gs-crece { from { transform: scaleX(0); } }

.gs-faq { margin-top: 24px; border-top: 1px solid var(--gs-line); interpolate-size: allow-keywords; }
.gs-faq-it { border-bottom: 1px solid var(--gs-line); }
.gs-faq-it summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; list-style: none; cursor: pointer; font-size: 1.0625rem; font-weight: 500; transition: color 0.2s; }
.gs-faq-it summary::-webkit-details-marker { display: none; }
.gs-faq-it summary:hover { color: var(--ds-primary); }
.gs-faq-it summary svg { flex: none; width: 16px; height: 16px; color: var(--gs-mute); transition: transform 0.35s var(--gs-spring); }
.gs-faq-it[open] summary svg { transform: rotate(90deg); color: var(--ds-primary); }
.gs-faq-it::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--gs-ease), content-visibility 0.4s allow-discrete; }
.gs-faq-it[open]::details-content { block-size: auto; }
.gs-faq-a p { margin: 0; padding: 0 2px 22px; max-width: 72ch; font-size: 0.9375rem; line-height: 1.65; color: var(--gs-body); }
.gs-faq-it[open] .gs-faq-a p { animation: gs-rise 0.4s var(--gs-ease) both; }

/* ==========================================================================
   Landing (app/page.tsx): las piezas de esta plantilla que la landing reusa
   ========================================================================== */

.gs-eyebrow { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ds-primary); }

/* "Hecho para cada equipo" (components/sections/Equipos.tsx). */
.gs-band--equipos { padding-top: 72px; }
@media (min-width: 1024px) { .gs-band--equipos { padding: 96px 0 80px; } }
.gs-wrap--eq { max-width: 1216px; }
.gs-ancla { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 64px; }
.gs-eq-wrap { margin-top: 4px; }
.gs-eq-panel:not([hidden]) .gs-eq { animation: gs-eq-in 0.5s var(--gs-ease) both; }
@keyframes gs-eq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gs-eq { display: grid; gap: 28px; padding: 24px 16px; border-radius: 18px; box-shadow: var(--ds-elevation-card); }
@media (min-width: 640px) { .gs-eq { padding: 32px; } }
@media (min-width: 1024px) { .gs-eq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 48px; } }
.gs-eq-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gs-eq-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: var(--ds-radius-pill); background: rgba(255, 255, 255, 0.75); box-shadow: var(--gs-lift); font-size: 0.8125rem; font-weight: 600; color: var(--gs-body); }
.gs-eq-h { margin: 0; font-family: var(--font-display); font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; color: var(--gs-ink); text-wrap: balance; }
.gs-eq-p { margin: 0; max-width: 46ch; font-size: 1rem; line-height: 1.55; color: var(--gs-body); text-wrap: pretty; }
.gs-eq-apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.gs-eq-apps li { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ds-canvas); box-shadow: var(--gs-lift); }
.gs-eq-apps .gs-app-img { width: 20px; height: 20px; }
.gs-eq-apps .gs-app-letra { width: 20px; height: 20px; font-size: 0.6875rem; }
.gs-eq-botones { justify-content: flex-start; margin-top: 8px; }
.gs-eq-casos { display: grid; gap: 12px; }
/* En móvil las cuatro tarjetas, una bajo otra, eran una pantalla entera: pasan a una fila que
   se desliza con el dedo, con la siguiente asomándose para que se note. */
@media (max-width: 559px) {
  .gs-eq-casos { grid-auto-flow: column; grid-auto-columns: 82%; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .gs-eq-casos::-webkit-scrollbar { display: none; }
  .gs-eq-casos .gs-uc { scroll-snap-align: start; }
  .gs-eq-botones { width: 100%; }
  .gs-eq-botones .gs-btn { flex: 1 1 auto; }
}
@media (min-width: 560px) { .gs-eq-casos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gs-eq-casos .gs-uc { box-shadow: var(--gs-lift); border-color: transparent; }
.gs-eq-casos .gs-uc-head { height: 76px; }

/* El hero de la landing: las fichas por equipo y "Funciona con", bajo la caja del prompt. */
.gs-hero-extra { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
.gs-hero-extra .gs-roles { margin-top: 0; }
.gs-hero-extra .gs-roles-k { margin: 0 4px 0 0; align-self: center; font-size: 0.875rem; font-weight: 500; color: var(--gs-mute); }
.gs-hero-extra .gs-funciona { width: 100%; margin-top: 0; }
.gs-mq {
  width: min(100%, 680px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.gs-mq-pista { display: flex; width: max-content; animation: gs-mq 110s linear infinite; }
.gs-mq:hover .gs-mq-pista { animation-play-state: paused; }
.gs-mq-lista { display: flex; align-items: center; gap: 12px; margin: 0; padding: 6px 12px 6px 0; list-style: none; }
.gs-mq-app { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, 0.85); box-shadow: var(--gs-lift); transition: transform 0.3s var(--gs-spring); }
.gs-mq-app:hover { transform: translateY(-2px) scale(1.08); }
.gs-mq-app .gs-app-img { width: 22px; height: 22px; }
@keyframes gs-mq { to { transform: translateX(-50%); } }

/* Las fichas de equipo: el ícono del rol en un círculo teñido con su color, en vez del punto. */
.gs-rol { padding: 5px 14px 5px 5px; gap: 8px; }
.gs-rol:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--gs-line)); }
.gs-rol-ico { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--ds-primary)) 13%, white); color: var(--c, var(--ds-primary)); transition: transform 0.3s var(--gs-spring); }
.gs-rol-ico svg { width: 13px; height: 13px; }
.gs-rol:hover .gs-rol-ico { transform: rotate(-8deg) scale(1.08); }
.gs-eq-k { padding-left: 5px; }
/* Las fichas "Para …" del hero salieron en nov 2026, y con ellas la regla de móvil que les
   hacía lugar (y que bajaba el hero 120px). El centrado ahora es .ds-hero-centrado. */

/* #security: los diez controles bajo el texto, sobre la banda oscura. */
.gs-vars--security .gs-dmini { margin-top: 24px; }
/* En móvil los controles van de a dos, con la pieza más chica: en una columna los diez eran
   más de dos pantallas. En la landing van seis; en /casos, la banda es el tema, van los diez. */
@media (max-width: 559px) {
  .gs-dmini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .gs-dm-vis { height: 116px; }
  .gs-dm-vis > * { transform: scale(0.8); }
  .gs-dm > p { margin-top: 10px; font-size: 0.8125rem; line-height: 1.5; }
  .gs-vars--security .gs-dm:nth-child(n + 7) { display: none; }
}

/* ==========================================================================
   Movimiento reducido: nada se mueve y todo queda en su estado final.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gs-page *,
  .gs-page *::before,
  .gs-page *::after,
  .gs-page.gs-mesh,
  .gs-page .gs-mesh,
  .gs-vars *,
  .gs-vars *::before,
  .gs-vars *::after { animation: none !important; transition: none !important; }
}
