/* =====================================================================
   GEXIA — Plantilla de páginas internas
   Componentes reutilizables sobre los tokens de gexia.css.
   La navegación usa los estilos de hero.css (.gx-nav).
   ===================================================================== */

/* ---------- Cabecera de página (oscura, como el hero) ---------- */
.pg-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) 0 calc(clamp(3rem, 7vw, 5rem) + var(--sheet-r));
  background:
    radial-gradient(50% 70% at 78% 40%, rgba(54, 108, 230, 0.32), transparent 70%),
    radial-gradient(35% 40% at 8% 100%, rgba(60, 207, 122, 0.08), transparent 70%),
    var(--night);
}
.pg-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .pg-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 4.5rem); } }
.pg-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.pg-eyebrow b { padding: 0.3em 0.6em; border-radius: 4px; background: rgba(106, 161, 255, 0.16); color: var(--blue-bright); font-weight: 700; }
.pg-hero h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; color: var(--fg); max-width: 15ch; }
.pg-hero .t-lead { margin-top: 1.1rem; max-width: 34rem; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Marco para capturas reales de la plataforma */
.pg-shot {
  margin: 0; overflow: hidden; border-radius: 14px; background: #eef0f4;
  box-shadow: 0 0 0 1px var(--hair-2), 0 50px 100px -45px rgba(5, 11, 26, 0.65);
}
.pg-shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0b1530; }
.pg-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(238, 242, 250, 0.2); }
.pg-shot img { display: block; width: 100%; height: auto; }
.pg-hero .pg-shot { box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }

/* ---------- Encabezado de sección ---------- */
.pg-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pg-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Pasos numerados (proceso real) ---------- */
.pg-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .pg-steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.25rem; } }
.pg-step {
  display: grid; align-content: start; gap: 0.6rem; padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--r-l);
  background: var(--surface); box-shadow: 0 0 0 1px var(--hair), 0 24px 50px -38px rgba(5, 11, 26, 0.35);
}
.on-light .pg-step { background: var(--paper); }
.pg-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.pg-step-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--c, var(--blue)); opacity: 0.22; }
.pg-step h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pg-step p { font-size: var(--fs-small); color: var(--fg-2); }
.pg-step ul { display: grid; gap: 0.35rem; }
.pg-step li { position: relative; padding-left: 1rem; font-size: var(--fs-small); color: var(--fg-2); }
.pg-step li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--blue)); }
.pg-step.is-core { box-shadow: 0 0 0 1.5px rgba(0, 71, 179, 0.4), 0 30px 60px -36px rgba(0, 71, 179, 0.45); }

/* Icono en círculo de color */
.pg-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--c, var(--blue)); box-shadow: 0 10px 24px -10px var(--c, var(--blue)); }
.pg-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-o { --c: var(--event); } .c-b { --c: var(--blue); } .c-g { --c: var(--action-ink); } .c-n { --c: #0c1f4d; }

/* Etiquetas (protocolos, capacidades) */
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips li { padding: 5px 11px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); }
.on-dark .pg-chips li { background: rgba(238, 242, 250, 0.06); }
.pg-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; padding: 1.1rem 1.4rem; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-strip .t-label { color: var(--fg-3); }

/* ---------- Texto + captura ---------- */
.pg-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) {
  .pg-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .pg-split.is-rev > :first-child { order: 2; }
}
.pg-split + .pg-split { margin-top: clamp(4rem, 8vw, 6rem); }
.pg-copy { display: grid; gap: 1rem; }
.pg-list { display: grid; border-top: 1px solid var(--hair); margin-top: 0.5rem; }
.pg-list li { position: relative; padding: 0.8rem 0 0.8rem 1.6rem; border-bottom: 1px solid var(--hair); font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 6px;
  border-left: 2px solid var(--action-ink); border-bottom: 2px solid var(--action-ink); transform: rotate(-45deg);
}
.on-dark .pg-list li::before { border-color: var(--action); }
.pg-list strong { color: var(--fg); font-weight: 600; }

/* ---------- Tarjetas de funcionalidades ---------- */
.pg-cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-cards { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.pg-card { display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-card .pg-icon { width: 42px; height: 42px; margin-bottom: 0.5rem; }
.pg-card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.pg-card p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

/* ---------- Galería de capturas ---------- */
.pg-gallery { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-gallery { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.pg-gallery figure { margin: 0; }
.pg-gallery .pg-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.pg-gallery figcaption { margin-top: 0.85rem; }
.pg-gallery figcaption strong { display: block; font-size: 1rem; font-weight: 600; color: var(--fg); }
.pg-gallery figcaption span { font-size: var(--fs-small); color: var(--fg-2); }

/* ---------- Cierre (CTA) ---------- */
.pg-cta {
  position: relative; overflow: hidden; display: grid; gap: 1.5rem; justify-items: start;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: clamp(20px, 3vw, 32px);
  background: radial-gradient(55% 80% at 85% 20%, rgba(54, 108, 230, 0.35), transparent 70%), var(--night);
  box-shadow: 0 50px 100px -50px rgba(5, 11, 26, 0.7);
}
.pg-cta h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); max-width: 22ch; }
.pg-cta .t-lead { max-width: 36rem; }

@media (prefers-reduced-motion: reduce) { .pg-shot, .pg-card, .pg-step { transition: none; } }

/* ---------- Pregunta clave de un paso ---------- */
.pg-step:has(.pg-step-q) { grid-template-rows: auto auto auto 1fr auto; }
.pg-step-q { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--hair); font-size: var(--fs-small); font-weight: 600; color: var(--c, var(--blue)); }


/* ---------- Asistente: capacidades + conversación de ejemplo ---------- */
.pg-duo { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .pg-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); } }
.pg-duo .pg-cards { --n: 1; }
.pg-duo .pg-card { grid-template-columns: auto 1fr; column-gap: 1rem; }
.pg-duo .pg-card .pg-icon { grid-row: span 2; margin: 0; }

.pg-chat { display: grid; gap: 0.9rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-l); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-chat > .t-label { color: var(--fg-3); }
.pg-msg { max-width: 88%; padding: 0.85rem 1.05rem; border-radius: 16px; font-size: var(--fs-small); line-height: 1.5; }
.pg-msg.is-user { justify-self: end; border-bottom-right-radius: 4px; background: var(--blue); color: #fff; }
.pg-msg.is-gia { border-bottom-left-radius: 4px; background: rgba(238, 242, 250, 0.08); color: var(--fg-2); }
.pg-msg.is-gia strong { color: var(--fg); }
.pg-msg-who { display: block; margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--blue-bright); }
.pg-health { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.6rem; }
.pg-health span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(238, 242, 250, 0.06); font-weight: 600; color: var(--fg); }
.pg-health span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pg-health .ok { --c: var(--action); } .pg-health .al { --c: #f5b83d; } .pg-health .fa { --c: var(--event); }

/* Texto + tarjetas (sin captura) */
.pg-pair { display: grid; gap: 2rem; align-items: center; margin-top: clamp(4rem, 8vw, 6rem); }
@media (min-width: 64rem) { .pg-pair { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); } }
.on-paper .pg-card { background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }

/* Sello de certificación junto a los botones */
.pg-seal { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hair-2); }
.pg-seal img { width: 46px; height: 46px; }
.pg-actions:has(.pg-seal) { align-items: center; }

/* ---------- Escalera de niveles ---------- */
.pg-ladder { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: lvl; }
.pg-ladder li {
  position: relative; display: grid; align-content: start; gap: 0.45rem; padding: 1.3rem 1.3rem 1.4rem;
  border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35);
}
.pg-ladder li::before {
  counter-increment: lvl; content: counter(lvl);
  display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 0.35rem; border-radius: 50%;
  font-size: 0.875rem; font-weight: 700; color: #fff; background: var(--c, var(--blue));
}
.pg-ladder h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.pg-ladder p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-ladder li:nth-child(1) { --c: #8a94a8; } .pg-ladder li:nth-child(2) { --c: #4f78c4; } .pg-ladder li:nth-child(3) { --c: var(--blue); }
.pg-ladder li:nth-child(4) { --c: var(--event); } .pg-ladder li:nth-child(5) { --c: var(--action-ink); }
@media (min-width: 64rem) {
  .pg-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
  .pg-ladder li:nth-child(1) { min-height: 15rem; } .pg-ladder li:nth-child(2) { min-height: 17rem; }
  .pg-ladder li:nth-child(3) { min-height: 19rem; } .pg-ladder li:nth-child(4) { min-height: 21rem; }
  .pg-ladder li:nth-child(5) { min-height: 23rem; box-shadow: inset 0 0 0 1.5px rgba(2, 125, 56, 0.45), 0 30px 60px -36px rgba(2, 125, 56, 0.4); }
}
.pg-ladder-axis { display: flex; justify-content: space-between; margin-top: 1rem; font-size: var(--fs-small); font-weight: 600; color: var(--fg-3); }
.pg-ladder-axis span:last-child::after { content: " →"; }

/* ---------- Captura de la app en marco de teléfono ---------- */
.pg-phone { justify-self: center; width: min(300px, 80%); margin: 0; padding: 10px; border-radius: 40px; background: #0b1530; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.14), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }
.pg-phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.pg-seal.is-dark { background: rgba(238, 242, 250, 0.08); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pg-seal.is-dark img { width: 34px; height: auto; }
.pg-pair:first-child { margin-top: 0; }
.pg-steps + .pg-gallery { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pg-source { display: flex; align-items: center; gap: 6px; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--hair); font-size: 0.75rem; font-weight: 600; color: var(--blue-bright); }
.pg-source::before { content: ""; flex: none; width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }

/* =====================================================================
   Identidad por módulo: un color de acento (body[data-mod])
   --acc: color sólido · --acc-b: versión clara para fondos oscuros · --acc-g: RGB del brillo
   ===================================================================== */
[data-mod]            { --acc: #0047b3; --acc-b: #6aa1ff; --acc-g: 54, 108, 230; }
[data-mod="ia"]       { --acc: #6a3fd4; --acc-b: #b49cff; --acc-g: 124, 77, 255; }
[data-mod="gam"]      { --acc: #e2560f; --acc-b: #ff9d62; --acc-g: 246, 95, 24; }
[data-mod="gef"]      { --acc: #027d38; --acc-b: #4fd68a; --acc-g: 40, 190, 110; }
[data-mod="ged"]      { --acc: #3d48cf; --acc-b: #949cff; --acc-g: 79, 90, 235; }

[data-mod] .pg-hero {
  background:
    radial-gradient(50% 70% at 78% 40%, rgba(var(--acc-g), 0.32), transparent 70%),
    radial-gradient(35% 40% at 8% 100%, rgba(var(--acc-g), 0.1), transparent 70%),
    var(--night);
}
[data-mod] .pg-eyebrow b { background: rgba(var(--acc-g), 0.18); color: var(--acc-b); }
[data-mod] .pg-step, [data-mod] .pg-card { --c: var(--acc); }
[data-mod] .pg-step.is-core { box-shadow: 0 0 0 1.5px rgba(var(--acc-g), 0.5), 0 30px 60px -36px rgba(var(--acc-g), 0.5); }
[data-mod] .pg-cta { background: radial-gradient(55% 80% at 85% 20%, rgba(var(--acc-g), 0.35), transparent 70%), var(--night); }
[data-mod] .pg-msg.is-user { background: var(--acc); }
[data-mod] .pg-msg-who, [data-mod] .pg-source { color: var(--acc-b); }

/* ---------- Variante de cabecera: texto centrado y captura grande debajo ---------- */
.pg-hero.is-stacked { padding-bottom: var(--sheet-r); }
.pg-hero.is-stacked .pg-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.pg-hero.is-stacked h1 { max-width: 20ch; margin-inline: auto; }
.pg-hero.is-stacked .t-lead { margin-inline: auto; max-width: 40rem; }
.pg-hero.is-stacked .pg-actions { justify-content: center; }
.pg-hero.is-stacked .pg-shot { width: min(100%, 64rem); max-height: clamp(14rem, 38vw, 34rem); border-radius: 14px 14px 0 0; }

/* Captura destacada a todo el ancho */
.pg-feature { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.pg-feature figcaption { max-width: 40rem; margin: 1rem auto 0; text-align: center; font-size: var(--fs-small); color: var(--fg-2); }
.pg-feature figcaption strong { color: var(--fg); font-weight: 600; }
[data-mod] .pg-hero.is-stacked {
  background:
    radial-gradient(45% 55% at 50% 45%, rgba(var(--acc-g), 0.3), transparent 70%),
    var(--night);
}

/* =====================================================================
   Conexiones con otros módulos (antes del cierre)
   ===================================================================== */
.pg-links { display: grid; gap: 2rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
@media (min-width: 64rem) { .pg-links { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; } }
.pg-links ul { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.pg-links a {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--hair); color: var(--fg-2); text-decoration: none;
  font-size: var(--fs-small); line-height: 1.5; transition: background-color 200ms var(--ease);
}
.pg-links a:hover { background: rgba(10, 16, 34, 0.025); }
.pg-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.pg-links a > svg { width: 18px; height: 18px; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease), stroke 200ms; }
.pg-links a:hover > svg { transform: translateX(3px); stroke: var(--fg); }
.pg-links strong { display: block; color: var(--fg); font-weight: 600; }
.pg-mod { justify-self: start; padding: 0.3em 0.6em; border-radius: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: var(--m, var(--blue)); }
.m-mon { --m: #0047b3; } .m-ia { --m: #6a3fd4; } .m-gam { --m: #e2560f; } .m-gef { --m: #027d38; }
.m-ged { --m: #3d48cf; } .m-gep { --m: #0b7f86; } .m-gap { --m: #b4236b; }
.pg-links:not(:first-child) { margin-top: clamp(4rem, 8vw, 6rem); }
.pg-head .pg-chips { margin-top: 0.5rem; }
[data-mod="gep"]      { --acc: #0b7f86; --acc-b: #4fd1d9; --acc-g: 20, 170, 180; }

/* ---------- Antes / después ---------- */
.pg-vs { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .pg-vs { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.pg-vs > div { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-vs > .is-after { background: var(--night); color: var(--snow); --fg: var(--snow); --fg-2: var(--snow-2); box-shadow: 0 30px 60px -36px rgba(var(--acc-g, 0, 71, 179), 0.6); }
.pg-vs h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pg-vs ul { display: grid; gap: 0.7rem; }
.pg-vs li { position: relative; padding-left: 1.75rem; font-size: var(--fs-small); color: var(--fg-2); }
.pg-vs li::before { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; font-size: 0.7rem; font-weight: 800; }
.pg-vs .is-before li::before { content: "✕"; color: var(--event-ink, #b8410c); background: rgba(246, 95, 24, 0.12); }
.pg-vs .is-after li::before { content: "✓"; color: var(--night); background: var(--acc-b, var(--action)); }
.pg-vs .t-label { color: var(--fg-3); }
.pg-vs .is-after .t-label { color: var(--acc-b, var(--blue-bright)); }

/* Listas dentro de tarjetas */
.pg-card .pg-list { margin-top: 0.25rem; }
.pg-card .pg-list li { padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* ---------- Cadena entre módulos (ejemplo de punta a punta) ---------- */
.pg-chain { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.pg-chain li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 0 0 1.75rem 0; }
.pg-chain li::after { content: ""; position: absolute; left: 1.4rem; top: 2.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--hair-2), transparent); }
.pg-chain li:last-child::after { display: none; }
.pg-chain .pg-mod { grid-row: span 2; align-self: start; min-width: 2.8rem; text-align: center; padding: 0.55em 0.5em; }
.pg-chain strong { font-size: 1rem; font-weight: 600; color: var(--fg); }
.pg-chain span:not(.pg-mod) { font-size: var(--fs-small); color: var(--fg-2); }
@media (min-width: 64rem) {
  .pg-chain { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
  .pg-chain li { grid-template-columns: 1fr; align-content: start; gap: 0.5rem; padding: 0; }
  .pg-chain .pg-mod { grid-row: auto; justify-self: start; margin-bottom: 0.6rem; }
  .pg-chain li::after { left: 3.6rem; right: 0; top: 1rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--hair-2), transparent); }
}
.pg-chain-note { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--hair); font-size: 1.0625rem; font-weight: 600; color: var(--fg); }
.pg-chain .pg-mod { font-size: 0.875rem; }
.pg-chain strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 64rem) { .pg-chain li::after { left: 4rem; top: 1.15rem; } }
.pg-chain .pg-mod { min-width: 3.4rem; }
[data-mod="gap"]      { --acc: #b4236b; --acc-b: #ff7fb8; --acc-g: 220, 50, 130; }

/* ---------- Ciclo con decisión final ---------- */
.pg-loop { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .pg-loop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pg-loop li { position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.pg-loop-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.4rem; border-radius: 50%; font-size: 0.9375rem; font-weight: 800; color: #fff; background: var(--acc, var(--blue)); }
.pg-loop h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pg-loop p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-loop .pg-mod { position: absolute; top: 1.5rem; right: 1.4rem; }
@media (min-width: 56rem) {
  .pg-loop li:not(:last-child)::after {
    content: ""; position: absolute; top: 2.45rem; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--acc, var(--blue)); opacity: 0.45;
  }
}
.pg-decide { display: grid; gap: 1rem; margin-top: 1.25rem; padding: clamp(1.4rem, 3vw, 1.75rem); border-radius: var(--r-l); background: var(--night); color: var(--snow); box-shadow: 0 30px 60px -36px rgba(var(--acc-g, 0, 71, 179), 0.55); }
@media (min-width: 56rem) { .pg-decide { grid-template-columns: 1fr auto auto; align-items: center; gap: 1.25rem; } }
.pg-decide h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.pg-decide p { margin-top: 0.25rem; font-size: var(--fs-small); color: var(--snow-2); }
.pg-out { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-radius: 14px; background: rgba(238, 242, 250, 0.06); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); font-size: var(--fs-small); color: var(--snow-2); }
.pg-out b { display: grid; place-items: center; min-width: 2.6rem; padding: 0.3em 0.55em; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; color: var(--night); }
.pg-out strong { display: block; color: var(--snow); font-weight: 600; }
.pg-out.is-yes b { background: var(--action); }
.pg-out.is-no b { background: #ffb37a; }

/* ---------- Vistas de proyecto (iconos, no interfaz) ---------- */
.pg-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.pg-views li { display: grid; gap: 0.35rem; padding: 1.25rem; border-radius: var(--r-m); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-views svg { width: 30px; height: 30px; margin-bottom: 0.5rem; fill: none; stroke: var(--acc-b, var(--blue-bright)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pg-views strong { font-size: 1rem; font-weight: 600; color: var(--fg); }
.pg-views span { font-size: var(--fs-small); color: var(--fg-2); }
.pg-copy .pg-chips { margin-top: 0.25rem; }

/* =====================================================================
   Secciones propias (pasada de nivelación)
   ===================================================================== */

/* Monitoreo: fuentes → MIA → destinos */
.pg-fan { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 60rem) { .pg-fan { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 2.5rem; } }
.pg-fan-col { display: grid; gap: 0.75rem; }
.pg-fan-col .t-label { color: var(--fg-3); }
.pg-fan-col ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pg-fan-col li { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.pg-fan-col.is-out li { padding: 1rem 1.1rem; font-size: 1rem; }
.pg-fan-col.is-out li span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--fg-2); }
.pg-fan-col li svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-fan-core {
  position: relative; display: grid; justify-items: center; gap: 0.6rem; padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem; border-radius: var(--r-l); text-align: center;
  background: radial-gradient(80% 80% at 50% 0%, rgba(var(--acc-g, 54, 108, 230), 0.4), transparent 70%), var(--night); color: var(--snow);
  box-shadow: 0 40px 80px -40px rgba(var(--acc-g, 54, 108, 230), 0.7);
}
.pg-fan-core img { width: 56px; height: 56px; }
.pg-fan-core strong { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.pg-fan-core span { font-size: var(--fs-small); color: var(--snow-2); }
@media (min-width: 60rem) {
  .pg-fan-core::before, .pg-fan-core::after { content: ""; position: absolute; top: 50%; width: 2.5rem; height: 2px; background: var(--acc, var(--blue)); opacity: 0.5; }
  .pg-fan-core::before { right: 100%; } .pg-fan-core::after { left: 100%; }
}
.pg-fan-note { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }

/* IA y GED: pasos numerados compactos */
.pg-how { display: grid; gap: 0.9rem; margin: 0.5rem 0 0; padding: 0; list-style: none; counter-reset: how; }
.pg-how li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.9rem; font-size: var(--fs-small); color: var(--fg-2); }
.pg-how li::before { counter-increment: how; content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 0.875rem; font-weight: 800; color: #fff; background: var(--acc, var(--blue)); }
.pg-how strong { font-size: 1rem; font-weight: 600; color: var(--fg); }

/* Activos: jerarquía por ubicación */
.pg-tree { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.pg-tree li { position: relative; display: flex; align-items: baseline; gap: 0.75rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 20px 40px -34px rgba(5, 11, 26, 0.35); }
.pg-tree li:nth-child(2) { margin-left: 1.5rem; } .pg-tree li:nth-child(3) { margin-left: 3rem; } .pg-tree li:nth-child(4) { margin-left: 4.5rem; }
.pg-tree li:not(:first-child)::before { content: ""; position: absolute; left: -0.9rem; top: -0.6rem; width: 0.9rem; height: calc(50% + 0.6rem); border-left: 2px solid var(--hair-2); border-bottom: 2px solid var(--hair-2); border-bottom-left-radius: 8px; }
.pg-tree strong { font-size: 1rem; font-weight: 700; color: var(--fg); }
.pg-tree span { font-size: var(--fs-small); color: var(--fg-2); }
.pg-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.pg-kpis li { display: grid; gap: 0.3rem; padding: 1.4rem 1.3rem; border-radius: var(--r-m); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-kpis b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--acc, var(--blue)); }
.pg-kpis span { font-size: var(--fs-small); color: var(--fg-2); }
.pg-kpis-cap { margin-top: 1rem; font-size: var(--fs-small); color: var(--fg-3); }

/* Energía: ciclo del sistema de gestión */
.pg-cycle { position: relative; display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.pg-cycle li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: start; }
.pg-cycle-dot { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--acc, var(--blue)); box-shadow: inset 0 0 0 2px var(--acc, var(--blue)), 0 14px 30px -16px rgba(var(--acc-g, 54, 108, 230), 0.6); }
.pg-cycle-dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-cycle h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.pg-cycle p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
@media (min-width: 64rem) {
  .pg-cycle { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .pg-cycle::before { content: ""; position: absolute; top: 26px; left: 26px; right: calc((100% - 6.25rem) / 6 - 26px); height: 2px; background: var(--acc, var(--blue)); opacity: 0.35; }
  .pg-cycle li { position: relative; grid-template-columns: 1fr; justify-items: start; gap: 0.5rem; }
  .pg-cycle-dot { grid-row: auto; margin-bottom: 0.5rem; }
}
.pg-cycle-back { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 2rem; padding: 0.85rem 1rem; border: 2px dashed rgba(var(--acc-g, 54, 108, 230), 0.4); border-radius: 999px; font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.pg-cycle-back svg { width: 18px; height: 18px; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-mod="frm"]      { --acc: #b45309; --acc-b: #fbbf5a; --acc-g: 245, 158, 11; }
.m-frm { --m: #b45309; }

/* ---------- Recorrido en etapas con capacidades ---------- */
.pg-journey { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: jr; }
@media (min-width: 64rem) { .pg-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pg-journey > li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.pg-journey > li::before { counter-increment: jr; content: "0" counter(jr); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; color: var(--acc, var(--blue)); }
.pg-journey h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.pg-journey p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-journey .pg-chips { margin-top: 0.4rem; }
.pg-journey .pg-chips li { background: var(--paper-2); }
.pg-journey > li:last-child { background: var(--night); --fg: var(--snow); --fg-2: var(--snow-2); box-shadow: 0 30px 60px -36px rgba(var(--acc-g, 0, 71, 179), 0.55); }
.pg-journey > li:last-child::before { color: var(--acc-b, var(--blue-bright)); }
.pg-journey > li:last-child .pg-chips li { background: rgba(238, 242, 250, 0.08); color: var(--snow); box-shadow: none; }
@media (min-width: 64rem) {
  .pg-journey > li:not(:last-child)::after { content: ""; position: absolute; top: 1.95rem; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--acc, var(--blue)); opacity: 0.45; }
}

/* ---------- Familia de productos (logos enlazados) ---------- */
.pg-brands { display: grid; gap: 0.75rem; width: 100%; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.pg-brands a {
  display: grid; justify-items: center; gap: 0.9rem; padding: 1.75rem 1.25rem 1.4rem; border-radius: var(--r-l); text-decoration: none;
  background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.pg-brands a:hover { background: rgba(238, 242, 250, 0.08); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.22); transform: translateY(-2px); }
.pg-brands a:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.pg-brands img { height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.pg-brands span { font-size: var(--fs-small); color: var(--snow-2); text-align: center; }
.pg-hero.is-stacked .pg-brands { max-width: 64rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Foto de producto */
.pg-photo { margin: 0; overflow: hidden; border-radius: var(--r-l); box-shadow: 0 40px 80px -45px rgba(5, 11, 26, 0.55); }
.pg-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pg-copy .btn, .pg-copy .link { justify-self: start; margin-top: 0.5rem; }
[data-mod="rdx"]      { --acc: #1d5bd8; --acc-b: #7fa8ff; --acc-g: 40, 110, 255; }

/* Logo de producto como cabecera */
.pg-logo { display: block; height: clamp(40px, 5vw, 56px); width: auto; margin-bottom: 1.25rem; }
.pg-hero .pg-chips li { background: rgba(238, 242, 250, 0.06); color: var(--snow); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.14); }
.pg-hero .pg-chips { margin-top: 1.25rem; }
.pg-hero .pg-photo { box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }

/* Cifras grandes (solo datos confirmados del producto) */
.pg-stats { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-stats li { display: grid; gap: 0.35rem; padding: 1.6rem 1.5rem; border-radius: var(--r-l); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-stats b { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.pg-stats b small { font-size: 0.45em; font-weight: 700; letter-spacing: -0.01em; color: var(--acc-b, var(--blue-bright)); }
.pg-stats span { font-size: var(--fs-small); color: var(--fg-2); }

/* Fuentes de energía */
.pg-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-sources { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.pg-sources li { display: grid; justify-items: start; gap: 0.75rem; padding: 1.4rem 1.3rem; border-radius: var(--r-m); background: radial-gradient(120% 120% at 0% 0%, rgba(var(--acc-g, 54, 108, 230), 0.22), transparent 60%), rgba(238, 242, 250, 0.03); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; color: var(--fg); }
.pg-sources svg { width: 26px; height: 26px; fill: none; stroke: var(--acc-b, var(--blue-bright)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Portafolio de productos */
.pg-prods { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .pg-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pg-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pg-prods a { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: var(--r-l); text-decoration: none; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.pg-prods a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hair-2), 0 34px 60px -38px rgba(5, 11, 26, 0.45); }
.pg-prods a:focus-visible { outline: 2px solid var(--acc, var(--blue)); outline-offset: 3px; }
.pg-prods figure { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0.75rem; background: var(--paper-2); }
.pg-prods img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.pg-prods div { display: grid; align-content: start; gap: 0.4rem; padding: 1.1rem 1.2rem 1.3rem; }
.pg-prods em { font-style: normal; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc, var(--blue)); }
.pg-prods strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.pg-prods p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-prods .more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: var(--fs-small); font-weight: 600; color: var(--acc, var(--blue)); }
.pg-prods .more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 56rem) { .pg-loop[style*="--cols"] { --cols: 3; } }
.pg-prods figure { position: relative; display: block; height: 0; padding: 75% 0 0; aspect-ratio: auto; overflow: hidden; }
.pg-prods img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; transition: transform 400ms var(--ease); }
.pg-prods img.is-contain { inset: 0.75rem; width: calc(100% - 1.5rem); height: calc(100% - 1.5rem); object-fit: contain; }
.pg-prods a:hover img:not(.is-contain) { transform: scale(1.04); }
@media (max-width: 39.99rem) {
  .pg-prods { gap: 0.75rem; }
  .pg-prods a { grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: auto; }
  .pg-prods figure { height: 100%; min-height: 7rem; padding: 0; }
  .pg-prods div { padding: 0.9rem 1rem; gap: 0.25rem; }
  .pg-prods p { font-size: 0.8125rem; }
}
@media (min-width: 48rem) { .pg-sources.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-sources.is-two li { grid-template-columns: auto 1fr; align-items: center; padding: 1.6rem 1.5rem; font-size: 1.125rem; }

/* Qué mide (cabecera de producto) */
.pg-measures { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-size: var(--fs-small); font-weight: 600; color: var(--fg-3); }
.pg-measures span { padding: 0.45em 0.85em; border-radius: 999px; font-weight: 600; color: var(--snow); background: rgba(var(--acc-g, 54, 108, 230), 0.18); box-shadow: inset 0 0 0 1px rgba(var(--acc-g, 54, 108, 230), 0.4); }

/* =====================================================================
   Fichas de sensor (RADEXA y familia)
   ===================================================================== */
.pg-crumb { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: var(--fs-small); font-weight: 600; color: var(--fg-3); text-decoration: none; }
.pg-crumb:hover { color: var(--fg); }
.pg-crumb img { height: 18px; width: auto; }
.pg-crumb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-sub { margin-top: 0.75rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; letter-spacing: -0.015em; color: var(--acc-b, var(--blue-bright)); }

/* Tecnología: tarjeta de autoalimentación */
.pg-power { display: grid; align-content: start; gap: 0.9rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-l); background: radial-gradient(100% 100% at 0% 0%, rgba(var(--acc-g, 54, 108, 230), 0.28), transparent 65%), rgba(238, 242, 250, 0.03); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-power svg { width: 34px; height: 34px; fill: none; stroke: var(--acc-b, var(--blue-bright)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pg-power h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pg-power p { font-size: var(--fs-small); line-height: 1.6; color: var(--fg-2); }
.pg-power .pg-req { padding: 0.8rem 1rem; border-radius: 12px; background: rgba(238, 242, 250, 0.05); color: var(--fg); font-weight: 500; }
.pg-power .pg-req b { display: block; margin-bottom: 0.15rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-b, var(--blue-bright)); }

/* Aplicaciones: activo + ubicación del sensor */
.pg-apps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .pg-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pg-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.pg-apps > li { display: grid; align-content: start; gap: 0.75rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.pg-apps h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.pg-apps h3 em { font-style: normal; padding: 0.2em 0.5em; border-radius: 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; color: var(--acc, var(--blue)); background: rgba(var(--acc-g, 54, 108, 230), 0.12); }
.pg-apps p { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.pg-apps ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pg-apps ul li { position: relative; padding-left: 1.3rem; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
.pg-apps ul li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--acc, var(--blue)); }

/* Otros productos de la familia */
.pg-family { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pg-family a { display: inline-flex; padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: var(--fs-small); font-weight: 600; color: var(--fg); text-decoration: none; transition: background-color 200ms, box-shadow 200ms; }
.pg-family a:hover { box-shadow: inset 0 0 0 1px var(--acc, var(--blue)); color: var(--acc, var(--blue)); }
.pg-family-wrap { display: grid; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.pg-family-wrap .t-label { color: var(--fg-3); }

/* ---------- Escaparate de producto (cabecera de fichas de sensor) ---------- */
.pg-hero.is-product { padding-bottom: calc(clamp(3rem, 6vw, 4.5rem) + var(--sheet-r)); text-align: center; }
.pg-hero.is-product .pg-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.pg-hero.is-product h1 { max-width: none; margin-inline: auto; font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.25rem); }
.pg-hero.is-product .t-lead { margin-inline: auto; max-width: 40rem; }
.pg-hero.is-product .pg-actions { justify-content: center; }
.pg-hero.is-product .pg-sub { margin-top: 0.5rem; }
.pg-stage { display: grid; gap: 1.5rem; width: 100%; max-width: 72rem; align-items: center; }
.pg-stage-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.pg-stage-photo::before { content: ""; position: absolute; inset: -18% -22%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--acc-g, 54, 108, 230), 0.45), transparent 75%); }
.pg-stage-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.12), 0 50px 100px -40px rgba(0, 0, 0, 0.85); }
.pg-stage-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.pg-stage-specs li { display: grid; gap: 0.3rem; padding-top: 0.9rem; border-top: 1px solid rgba(238, 242, 250, 0.16); }
.pg-stage-specs span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-b, var(--blue-bright)); }
.pg-stage-specs strong { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--snow); }
@media (min-width: 60rem) {
  .pg-stage { grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .pg-stage-specs { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pg-stage-specs.is-left { text-align: right; }
  .pg-stage-specs.is-left li { justify-items: end; }
}
@media (max-width: 59.99rem) { .pg-stage-photo { order: -1; } }
.pg-stage-photo.is-contain img { object-fit: contain; padding: 1.5rem; background: var(--paper-2); }
@media (min-width: 64rem) { .pg-apps.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-mod="mb"]       { --acc: #c81e2d; --acc-b: #ff8089; --acc-g: 230, 40, 60; }
.pg-hero.is-product .pg-logo { margin: 0 auto 1.25rem; }

/* Comparativa con cifras (antes / después) */
.pg-compare { overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -45px rgba(5, 11, 26, 0.4); }
.pg-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--hair); }
.pg-compare-row > * { padding: 1.25rem clamp(1rem, 3vw, 1.75rem); }
.pg-compare-row .lab { grid-column: 1 / -1; padding-bottom: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.pg-compare-row .old, .pg-compare-row .new { display: grid; gap: 0.25rem; align-content: start; }
.pg-compare-row b { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.pg-compare-row .old b { color: var(--fg-3); }
.pg-compare-row .new b { color: var(--acc, var(--blue)); }
.pg-compare-row span { font-size: var(--fs-small); color: var(--fg-2); }
.pg-compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pg-compare-head > * { padding: 1.1rem clamp(1rem, 3vw, 1.75rem); font-size: var(--fs-small); font-weight: 700; color: var(--fg-2); }
.pg-compare-head .new { color: #fff; background: var(--acc, var(--blue)); }
@media (min-width: 56rem) {
  .pg-compare-head, .pg-compare-row { grid-template-columns: 14rem minmax(0, 1fr) minmax(0, 1fr); }
  .pg-compare-head::before { content: ""; }
  .pg-compare-row .lab { grid-column: auto; padding-bottom: 1.25rem; align-self: center; }
}
.pg-compare-row .new { background: rgba(var(--acc-g, 54, 108, 230), 0.05); }
.pg-compare-note { margin-top: 1rem; font-size: var(--fs-small); color: var(--fg-3); }

/* Tarjetas de producto sin enlace */
.pg-prods .pg-prod { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
@media (min-width: 64rem) { .pg-prods.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 39.99rem) { .pg-prods .pg-prod { grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: auto; } }
[data-mod="es"]       { --acc: #23439c; --acc-b: #9cb3ff; --acc-g: 60, 100, 230; }

/* Cita destacada */
.pg-quote { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 40rem; text-align: center; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); text-wrap: balance; }
.pg-quote::before, .pg-quote::after { color: var(--acc, var(--blue)); }
.pg-quote::before { content: "«"; } .pg-quote::after { content: "»"; }

/* Dos sistemas lado a lado */
.pg-systems { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .pg-systems { grid-template-columns: 1fr 1fr; } }
.pg-system { display: grid; align-content: start; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); background: radial-gradient(90% 70% at 100% 0%, rgba(var(--acc-g, 54, 108, 230), 0.22), transparent 65%), rgba(238, 242, 250, 0.03); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-system > header { display: grid; gap: 0.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--hair); }
.pg-system .t-label { color: var(--acc-b, var(--blue-bright)); }
.pg-system h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.pg-system header p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.pg-system h4 { margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.pg-system .pg-list { margin-top: 0; }
.pg-system .pg-chips li { background: rgba(238, 242, 250, 0.06); color: var(--snow); box-shadow: none; }
.pg-comp { margin: 0.5rem 0 0; overflow: hidden; border-radius: var(--r-m); background: #fff; }
.pg-comp img { display: block; width: 100%; height: auto; }

/* Video de YouTube (se carga al reproducir) */
.pg-video { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.pg-video-play, .pg-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; border-radius: var(--r-l); background: #000; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.12), 0 50px 100px -45px rgba(0, 0, 0, 0.8); cursor: pointer; }
.pg-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 300ms var(--ease), transform 600ms var(--ease); }
.pg-video-play:hover img { opacity: 1; transform: scale(1.02); }
.pg-video-play span { position: absolute; inset: 0; display: grid; place-items: center; }
.pg-video-play span svg { width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); padding: 22%; border-radius: 50%; fill: var(--night); background: rgba(255, 255, 255, 0.92); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); transition: transform 200ms var(--ease); }
.pg-video-play:hover span svg { transform: scale(1.06); }
.pg-video-play:focus-visible { outline: 2px solid var(--acc-b, var(--blue-bright)); outline-offset: 4px; }
.pg-video figcaption { margin-top: 1rem; text-align: center; font-size: var(--fs-small); color: var(--fg-2); }
.pg-video figcaption strong { color: var(--fg); font-weight: 600; }
.pg-video { max-width: 60rem; margin-inline: auto; }
.pg-video-play > span { pointer-events: none; }
.pg-video-play > span > svg { flex: none; width: 76px !important; height: 76px !important; max-width: none; padding: 20px; }
.pg-video-play img { position: absolute; inset: 0; }
.pg-system .pg-video { max-width: none; margin: 0.5rem 0 0; }
.pg-system .pg-video-play { border-radius: var(--r-m); }

/* Producto recortado sobre fondo oscuro (render sin foto) */
.pg-stage-photo.is-cutout::before { inset: -10% -15%; }
.pg-stage-photo.is-cutout img { aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }

/* Sensores usados en una aplicación */
.pg-apps .pg-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--hair); }
.pg-apps .pg-uses span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-right: 0.25rem; }
.pg-apps .pg-uses a { padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: #fff; background: var(--acc, var(--blue)); }
.pg-apps .pg-uses a:hover { filter: brightness(1.12); }
@media (min-width: 64rem) { .pg-prods.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-banner { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; margin-top: 1.25rem; padding: 1rem 1.5rem 1rem 1rem; border-radius: var(--r-l); text-decoration: none; color: var(--snow-2); background: radial-gradient(70% 140% at 0% 50%, rgba(var(--acc-g, 54, 108, 230), 0.4), transparent 70%), var(--night); box-shadow: 0 30px 60px -40px rgba(5, 11, 26, 0.6); transition: transform 220ms var(--ease); font-size: var(--fs-small); }
.pg-banner:hover { transform: translateY(-2px); }
.pg-banner img { width: 5rem; height: 5rem; object-fit: contain; }
.pg-banner em { display: block; font-style: normal; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-b, var(--blue-bright)); }
.pg-banner strong { display: block; margin: 0.15rem 0 0.2rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; color: var(--snow); }
.pg-banner > svg { width: 22px; height: 22px; fill: none; stroke: var(--snow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================================
   Páginas legales
   ===================================================================== */
.pg-hero.is-legal { padding-bottom: calc(clamp(2.5rem, 5vw, 3.5rem) + var(--sheet-r)); }
.pg-hero.is-legal h1 { max-width: 20ch; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
.pg-hero.is-legal .pg-updated { margin-top: 1rem; font-size: var(--fs-small); color: var(--fg-3); }
.lg { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .lg { grid-template-columns: 15rem minmax(0, 46rem); gap: 4rem; justify-content: center; } }
.lg-toc { align-self: start; }
@media (min-width: 64rem) { .lg-toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }
.lg-toc p { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.lg-toc ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lg-toc a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; font-size: var(--fs-small); color: var(--fg-2); text-decoration: none; }
.lg-toc a:hover { background: var(--paper-2); color: var(--fg); }
.lg-body { counter-reset: lgs; font-size: 1rem; line-height: 1.7; color: var(--fg-2); }
.lg-body h2 { counter-increment: lgs; margin: 2.75rem 0 0.9rem; scroll-margin-top: calc(var(--nav-h) + 1.5rem); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.lg-body h2::before { content: counter(lgs) ". "; color: var(--blue); }
.lg-body h2:first-child { margin-top: 0; }
.lg-body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--fg); }
.lg-body p, .lg-body ul, .lg-body table { margin: 0 0 1rem; }
.lg-body ul { padding-left: 1.25rem; list-style: disc; }
.lg-body li { margin-bottom: 0.4rem; }
.lg-body li::marker { color: var(--blue); }
.lg-body strong { color: var(--fg); font-weight: 600; }
.lg-body a { color: var(--blue); text-underline-offset: 3px; }
.lg-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.lg-body th, .lg-body td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.lg-body th { font-weight: 600; color: var(--fg); background: var(--paper-2); }
.lg-table { overflow-x: auto; margin-bottom: 1rem; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--hair); }
.lg-table table { margin: 0; }
.lg-box { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--r-m); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--fs-small); }
.lg-box p:last-child { margin: 0; }
mark.pend { padding: 0.05em 0.35em; border-radius: 4px; background: #fff1a8; color: #5a4300; font-weight: 600; }

/* Pie: enlaces legales */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--fg); }
.pg-video .pg-video-note { margin-top: 0.6rem; text-align: left; font-size: 0.75rem; color: var(--fg-3); }
.pg-video .pg-video-note a { color: inherit; text-underline-offset: 2px; }

/* =====================================================================
   Solicitar demo
   ===================================================================== */
.pg-hero.is-form { padding-bottom: calc(clamp(3rem, 6vw, 5rem) + var(--sheet-r)); }
.pg-hero.is-form .pg-hero-grid { align-items: start; }
@media (min-width: 64rem) { .pg-hero.is-form .pg-hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.pg-hero.is-form h1 { max-width: 13ch; }
.pg-perks { display: grid; gap: 1.1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pg-perks li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1rem; }
.pg-perks .pg-icon { grid-row: span 2; width: 40px; height: 40px; }
.pg-perks .pg-icon svg { width: 18px; height: 18px; }
.pg-perks strong { font-size: 1rem; font-weight: 600; color: var(--fg); }
.pg-perks span { font-size: var(--fs-small); color: var(--fg-2); }
.pg-formcard { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: clamp(20px, 3vw, 28px); background: #fff; color: var(--ink); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8); }
.pg-formcard h2 { margin-bottom: 0.35rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pg-formcard > p { margin-bottom: 1.25rem; font-size: var(--fs-small); color: var(--ink-2); }
.pg-formcard .hbspt-form, .pg-formcard #hs-form { min-height: 420px; }
.pg-formcard .hbspt-form iframe { width: 100% !important; min-height: 500px; }
.pg-form-fallback { font-size: var(--fs-small); color: var(--ink-2); }
.pg-form-fallback a { color: var(--blue); }
.pg-consent { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(10, 16, 34, 0.1); font-size: 0.75rem; line-height: 1.6; color: var(--ink-3, #5b6478); }
.pg-consent a { color: var(--blue); text-underline-offset: 2px; }
.lg > * { min-width: 0; }
.lg-body { overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  .lg-table thead { display: none; }
  .lg-table tr { display: grid; gap: 0.3rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--hair); }
  .lg-table tr:last-child { border-bottom: 0; }
  .lg-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0; border: 0; }
  .lg-table td::before { content: attr(data-label); font-weight: 600; color: var(--fg); }
}
@media (max-width: 47.99rem) {
  .lg-table td { display: block; }
  .lg-table td::before { display: block; margin-bottom: 0.1rem; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }
}
/* Alineación con normas (texto, no sello de certificación) */
.pg-norm { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.25rem; font-size: var(--fs-small); font-weight: 500; color: var(--fg-2); }
.pg-norm svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--acc-b, var(--blue-bright)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-hero.is-stacked .pg-norm { justify-content: center; }

/* =====================================================================
   Nosotros
   ===================================================================== */
.pg-hero.is-brand { padding-bottom: calc(clamp(4rem, 9vw, 7rem) + var(--sheet-r)); text-align: center;
  background: radial-gradient(45% 60% at 50% 55%, rgba(54, 108, 230, 0.32), transparent 70%), var(--night); }
.pg-hero.is-brand .wrap { display: grid; justify-items: center; }
.pg-hero.is-brand .pg-mark { width: clamp(64px, 8vw, 88px); height: auto; margin-bottom: 1.75rem; filter: drop-shadow(0 20px 40px rgba(54, 108, 230, 0.5)); }
.pg-hero.is-brand h1 { max-width: 18ch; font-size: clamp(2.5rem, 1.6rem + 4.5vw, 5rem); }
.pg-hero.is-brand .t-lead { max-width: 42rem; margin-inline: auto; }

/* Cambio de modelo: de → a */
.pg-shift { display: grid; gap: 1rem; align-items: center; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
@media (min-width: 56rem) { .pg-shift { grid-template-columns: 1fr auto 1fr; gap: 1.5rem; } }
.pg-shift > div { display: grid; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); }
.pg-shift .from { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-shift .to { background: radial-gradient(90% 90% at 100% 0%, rgba(54, 108, 230, 0.4), transparent 65%), var(--night); color: var(--snow); box-shadow: 0 30px 60px -36px rgba(0, 71, 179, 0.6); }
.pg-shift b { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pg-shift .from b { color: var(--fg-3); }
.pg-shift .to b { color: #fff; }
.pg-shift .t-label { color: var(--fg-3); }
.pg-shift .to .t-label { color: var(--blue-bright); }
.pg-shift ul { display: grid; gap: 0.4rem; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--fg-2); }
.pg-shift ul li::before { content: "– "; color: var(--event); }
.pg-shift .to p { font-size: var(--fs-small); line-height: 1.6; color: var(--snow-2); }
.pg-shift-arrow { justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 71, 179, 0.7); }
.pg-shift-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 55.99rem) { .pg-shift-arrow svg { transform: rotate(90deg); } }

/* Cita grande */
.pg-bigquote { margin: 0; max-width: 52rem; }
.pg-bigquote p { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg); text-wrap: balance; }
.pg-bigquote p em { font-style: normal; color: var(--blue-bright); }
.pg-bigquote footer { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--fg-3); }
.on-light .pg-bigquote p em { color: var(--blue); }

/* =====================================================================
   404
   ===================================================================== */
.pg-404 { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 calc(4rem + var(--sheet-r)); text-align: center;
  background: radial-gradient(40% 50% at 50% 42%, rgba(54, 108, 230, 0.3), transparent 70%), var(--night); }
.pg-404 .wrap { display: grid; justify-items: center; }
.pg-404-code { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(0.25rem, 1vw, 0.75rem); margin-bottom: 1.5rem; font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--snow); }
.pg-404-code img { width: 0.78em; height: 0.78em; animation: pg404 5s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(54, 108, 230, 0.55)); }
@keyframes pg404 { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0.25; } 55% { opacity: 1; } 62% { opacity: 0.4; } 68% { opacity: 1; } }
.pg-404 h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; color: var(--fg); }
.pg-404 .t-lead { max-width: 34rem; margin: 0.9rem auto 0; }
.pg-404 .pg-actions { justify-content: center; }
.pg-404-links { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pg-404-links > p { margin-bottom: 0.9rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.pg-404-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 48rem; margin: 0 auto; padding: 0; list-style: none; }
.pg-404-links a { display: inline-flex; padding: 0.55rem 0.95rem; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; color: var(--snow); text-decoration: none; background: rgba(238, 242, 250, 0.06); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.14); transition: background-color 200ms; }
.pg-404-links a:hover { background: rgba(238, 242, 250, 0.14); }
@media (prefers-reduced-motion: reduce) { .pg-404-code img { animation: none; } }

/* =====================================================================
   Casos de éxito
   ===================================================================== */
.pg-cases { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .pg-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .pg-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-case { display: grid; align-content: start; gap: 1rem; padding: 1.5rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.pg-case-who { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.pg-case h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pg-case dl { display: grid; gap: 0.75rem; margin: 0; }
.pg-case dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.pg-case dd { margin: 0.15rem 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.pg-case-mods { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pg-case-result { padding-top: 1rem; border-top: 1px solid var(--hair); }
.pg-case-result b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.pg-case-result span { font-size: var(--fs-small); color: var(--fg-2); }

/* Estado «próximamente» */
.pg-soon { display: grid; justify-items: center; gap: 1rem; max-width: 40rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-l); text-align: center; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pg-soon .pg-icon { width: 56px; height: 56px; }
.pg-soon h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.pg-soon p { color: var(--fg-2); }
.pg-soon .pg-actions { justify-content: center; margin-top: 0.5rem; }

/* =====================================================================
   Cabecera con foto real de fondo (estilo de la portada)
   Uso: <section class="pg-hero has-photo" style="--bg-img: url('../../Images/…')">
   ===================================================================== */
.pg-hero.has-photo { isolation: isolate; background: #060c1c; }
.pg-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg-img) center / cover no-repeat; }
.pg-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, #060c1c 0%, rgba(6, 12, 28, 0.9) 38%, rgba(6, 12, 28, 0.6) 70%, rgba(6, 12, 28, 0.45) 100%),
  radial-gradient(50% 60% at 78% 45%, rgba(var(--acc-g, 54, 108, 230), 0.28), transparent 70%),
  linear-gradient(180deg, rgba(6, 12, 28, 0.85) 0%, rgba(6, 12, 28, 0) 22%),
  linear-gradient(0deg, #060c1c 0%, rgba(6, 12, 28, 0) 30%); }
.pg-hero.has-photo.is-stacked::after { background:
  linear-gradient(180deg, rgba(6, 12, 28, 0.88) 0%, rgba(6, 12, 28, 0.72) 40%, #060c1c 85%),
  radial-gradient(45% 55% at 50% 45%, rgba(var(--acc-g, 54, 108, 230), 0.25), transparent 70%); }
@media (max-width: 63.99rem) { .pg-hero.has-photo::after { background: linear-gradient(180deg, rgba(6, 12, 28, 0.85) 0%, rgba(6, 12, 28, 0.78) 45%, #060c1c 90%); } }
.pg-hero.has-photo::after { background:
  linear-gradient(90deg, #060c1c 0%, rgba(6, 12, 28, 0.86) 32%, rgba(6, 12, 28, 0.35) 62%, rgba(6, 12, 28, 0.2) 100%),
  linear-gradient(180deg, rgba(6, 12, 28, 0.8) 0%, rgba(6, 12, 28, 0) 22%),
  linear-gradient(0deg, #060c1c 0%, rgba(6, 12, 28, 0) 32%); }
@media (max-width: 63.99rem) { .pg-hero.has-photo::after { background: linear-gradient(180deg, rgba(6, 12, 28, 0.72) 0%, rgba(6, 12, 28, 0.62) 40%, rgba(6, 12, 28, 0.9) 70%, #060c1c 92%); } }

/* =====================================================================
   Prueba social compartida (partials/prueba.html)
   ===================================================================== */
.proof { padding-block: clamp(3rem, 6vw, 4.5rem) calc(clamp(3rem, 6vw, 4.5rem) + var(--sheet-r)); }
.proof-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .proof-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy stats" "logos logos"; column-gap: 3rem; } .proof-copy { grid-area: copy; } .proof-stats { grid-area: stats; } .proof-logos { grid-area: logos; } }
.proof-title { margin-top: 0.6rem; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--fg); }
.proof-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.proof-stats li { display: grid; gap: 0.3rem; }
.proof-stats b { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.proof-stats span { font-size: var(--fs-small); color: var(--fg-2); max-width: 15rem; }
.proof-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin: 0; padding: 1.75rem 0 0; list-style: none; border-top: 1px solid var(--hair); }
.proof-logos img { height: 26px; width: auto; max-width: 110px; object-fit: contain; filter: brightness(0); opacity: 0.55; transition: opacity 200ms; }
.proof-logos img:hover { opacity: 0.9; }

/* Nota de diferencial bajo los botones del encabezado */
.pg-hero .pg-norm { margin-top: 1.4rem; color: var(--snow-2); }
.pg-hero .pg-norm strong { color: var(--snow); font-weight: 600; }

/* Recuadro destacado (p. ej. GIA) */
.pg-feature-box { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: start; margin-top: 0.5rem; padding: 1.1rem 1.2rem; border-radius: var(--r-m); background: linear-gradient(135deg, rgba(106, 63, 212, 0.1), rgba(0, 71, 179, 0.08)); box-shadow: inset 0 0 0 1px rgba(106, 63, 212, 0.25); }
.pg-feature-box > span { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: #6a3fd4; }
.pg-feature-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-feature-box strong { font-size: 1rem; font-weight: 700; color: var(--fg); }
.pg-feature-box p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

/* Cadena de 4 pasos */
@media (min-width: 64rem) { .pg-chain.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-chain-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.pg-chain-actions .t-label { color: var(--fg-3); }
/* Cadena vertical (dentro de una columna) */
.pg-chain.is-stack { grid-template-columns: 1fr !important; gap: 0; }
.pg-chain.is-stack li { grid-template-columns: auto 1fr !important; gap: 0.3rem 1rem !important; padding: 0 0 1.4rem !important; justify-items: stretch; }
.pg-chain.is-stack .pg-mod { grid-row: span 2; margin: 0 !important; }
.pg-chain.is-stack li::after { left: 1.4rem !important; top: 2.4rem !important; bottom: 0.4rem !important; right: auto !important; width: 2px !important; height: auto !important; background: linear-gradient(var(--hair-2), transparent) !important; }
.pg-chain.is-stack strong { font-size: 1.0625rem; }
/* Datos de GIA en dos filas de etiquetas */
.pg-gia-facts { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--hair); }
@media (min-width: 64rem) { .pg-gia-facts { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.pg-gia-facts .t-label { margin-bottom: 0.7rem; color: var(--fg-3); }

/* =====================================================================
   GAM v2 — secciones propias (QR, salud, OT, normativos, licencias)
   ===================================================================== */
/* QR en campo */
.gm-qr-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .gm-qr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gm-scan { display: grid; gap: 0; margin: 0.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.gm-scan li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--hair); font-size: var(--fs-small); color: var(--fg-2); }
.gm-scan li svg { width: 20px; height: 20px; fill: none; stroke: var(--acc-b, var(--blue-bright)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gm-scan strong { color: var(--fg); font-weight: 600; }
.gm-note { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.5rem; padding: 1rem 1.1rem; border-radius: var(--r-m); background: rgba(var(--acc-g, 54, 108, 230), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--acc-g, 54, 108, 230), 0.35); font-size: var(--fs-small); color: var(--fg-2); }
.gm-note svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--acc-b); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gm-note strong { color: var(--fg); }
.gm-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.gm-stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--acc-g, 54, 108, 230), 0.4), transparent 75%); }
.gm-stage .pg-phone { position: relative; width: min(270px, 70%); }
.gm-qrcard { position: absolute; left: 2%; bottom: 12%; display: grid; gap: 0.6rem; width: 168px; padding: 0.9rem; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); }
.gm-qrcard img { width: 100%; height: auto; }
.gm-qrcard span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; color: var(--ink); }
.gm-qrcard .gm-beam { position: absolute; left: 0.9rem; right: 0.9rem; top: 0.9rem; height: 2px; background: var(--acc, #e2560f); box-shadow: 0 0 12px 2px rgba(var(--acc-g), 0.8); animation: gmScan 2.4s ease-in-out infinite; }
@keyframes gmScan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(132px); } }
@media (prefers-reduced-motion: reduce) { .gm-qrcard .gm-beam { animation: none; display: none; } }
@media (max-width: 47.99rem) { .gm-stage { min-height: 440px; } .gm-qrcard { width: 132px; left: 0; } @keyframes gmScan { 50% { transform: translateY(100px); } } }

/* Salud del activo */
.gm-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.gm-health li { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.gm-health b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; color: var(--acc, var(--blue)); }
.gm-health span { font-size: 0.8125rem; color: var(--fg-2); }

/* OT con evidencia (foto + cadena) */
.gm-ot { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; background: #060c1c; }
.gm-ot > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gm-ot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 12, 28, 0.96) 0%, rgba(6, 12, 28, 0.85) 50%, rgba(6, 12, 28, 0.55) 100%), linear-gradient(0deg, rgba(6, 12, 28, 0.95) 0%, rgba(6, 12, 28, 0) 60%); }
.gm-ot .pg-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gm-ot .pg-chain { margin-top: 0; }
@media (min-width: 64rem) { .pg-chain.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gm-ot-types { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: 0; list-style: none; }
.gm-ot-types li { padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--snow); background: rgba(238, 242, 250, 0.08); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.16); }

/* Normativos y alarmas */
.gm-norm { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .gm-norm { grid-template-columns: 1.15fr 1fr; gap: 1.25rem; } }
.gm-norm > div { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.gm-norm h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.gm-norm p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.gm-cal { display: grid; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.gm-cal li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--paper-2); font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.gm-cal li svg { width: 20px; height: 20px; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gm-cal em { font-style: normal; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--action-ink); background: rgba(2, 125, 56, 0.1); }

/* Usuarios */
.gm-users { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .gm-users { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.gm-user { display: grid; align-content: start; gap: 0.8rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.gm-user.is-hero { background: radial-gradient(90% 90% at 100% 0%, rgba(var(--acc-g), 0.35), transparent 65%), rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(var(--acc-g), 0.45); }
.gm-user .t-label { color: var(--acc-b); }
.gm-user b { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--snow); }
.gm-user p { font-size: var(--fs-small); line-height: 1.55; color: var(--snow-2); }

/* ---------- Monitoreo v2 ---------- */
.mn-src { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .mn-src { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mn-src { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mn-src > li { display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.mn-src h3 { margin-top: 0.4rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.mn-src p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.mn-src .pg-chips { margin-top: 0.25rem; }
.mn-src-foot { display: flex; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 1.75rem; font-size: var(--fs-small); color: var(--fg-2); text-align: center; }
.mn-src-foot svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.mn-views { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .mn-views { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.mn-views figure { display: grid; gap: 0.9rem; margin: 0; }
.mn-views figcaption { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.mn-views figcaption strong { color: var(--fg); }

.mn-formula { display: grid; gap: 1.25rem; align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 56rem) { .mn-formula { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; } }
.mn-formula h3 { margin: 0.4rem 0 0.5rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.mn-formula p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.mn-eq { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.mn-eq span { padding: 0.55rem 0.85rem; border-radius: 10px; background: var(--paper-2); font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.mn-eq span:first-child { background: var(--acc, var(--blue)); color: #fff; }
.mn-eq i { font-style: normal; font-size: 1.25rem; font-weight: 700; color: var(--fg-3, var(--fg-2)); }
.mn-formula + .pg-feature-box { margin-top: 1rem; }

.mn-rule { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 64rem) { .mn-rule { grid-template-columns: 14rem 1fr 14rem; gap: 2rem; } }
.mn-rule-col ul { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.mn-rule-col li { padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: var(--fs-small); font-weight: 600; color: #fff; }
.mn-rule-col.is-out li { background: color-mix(in srgb, var(--acc, var(--blue)) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, var(--blue)) 45%, transparent); }
.mn-eg { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; }

.mn-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .mn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mn-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mn-steps li { display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.mn-steps b { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.5rem; border-radius: 50%; background: var(--acc, var(--blue)); font-size: 0.875rem; color: #fff; }
.mn-steps h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.mn-steps p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
@media (max-width: 39.99rem) { .mn-eq { flex-direction: column; gap: 0.35rem; } }

/* ---------- IA v2 ---------- */
.ia-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; }
@media (min-width: 56rem) { .ia-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ia-stats li { display: grid; gap: 0.35rem; padding: 1.25rem 0 0; border-top: 2px solid var(--acc, var(--blue)); }
.ia-stats b { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.ia-stats span { font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
.ia-pred { align-items: center; }

.ia-gia { align-items: start; }
.ia-knows ul { display: grid; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.ia-knows li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.ia-knows svg { width: 22px; height: 22px; margin-top: 0.1rem; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ia-knows strong { display: block; font-size: 1rem; color: #fff; }
.ia-knows span { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.ia-does { display: grid; gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .ia-does { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ia-does li { padding: 1.4rem 1.5rem; border-radius: var(--r-l); background: color-mix(in srgb, var(--acc, var(--blue)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, var(--blue)) 35%, transparent); }
.ia-does h3 { margin-bottom: 0.4rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ia-does p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }

/* Ciclo de mejora continua (IA) */
.ia-loop { position: relative; display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 56rem) { .ia-loop { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
.ia-loop li { position: relative; display: grid; align-content: start; gap: 0.45rem; padding: 1.4rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.ia-loop li:last-child { background: color-mix(in srgb, var(--acc, var(--blue)) 8%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc, var(--blue)) 45%, transparent); }
.ia-loop b { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.35rem; border-radius: 50%; background: var(--acc, var(--blue)); font-size: 0.875rem; color: #fff; }
.ia-loop h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.ia-loop p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
@media (min-width: 56rem) {
  .ia-loop li:not(:last-child)::after { content: ""; position: absolute; top: 2.4rem; right: -0.85rem; z-index: 1; width: 0.7rem; height: 0.7rem; border-top: 2px solid var(--acc, var(--blue)); border-right: 2px solid var(--acc, var(--blue)); transform: rotate(45deg); }
}
.ia-loop-back { display: flex; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 1.5rem; font-size: var(--fs-small); font-weight: 600; color: var(--fg-2); text-align: center; }
.ia-loop-back svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--acc, var(--blue)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- GEF v2 ---------- */
.gf-trio { display: grid; gap: 1rem; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .gf-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gf-trio li { display: grid; gap: 0.3rem; padding-top: 1rem; border-top: 2px solid var(--acc, var(--blue)); }
.gf-trio strong { font-size: 1.0625rem; color: var(--fg); }
.gf-trio span { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

/* ---------- Monitoreo: portada amplia + hub de conexión ---------- */
@media (min-width: 64rem) {
  .pg-hero.is-wide { min-height: min(46rem, 88vh); display: grid; align-items: center; }
  .pg-hero.is-wide .pg-hero-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr); }
  .pg-hero.is-wide h1 { max-width: 16ch; }
}
.mn-hubsec { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: calc(clamp(4rem, 8vw, 6rem) + var(--sheet-r)); }
.mn-hub { --wire: rgba(var(--acc-g, 54, 108, 230), 0.5); display: grid; gap: 1.25rem; align-items: center; }
.mn-hub ul { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.mn-hub li { display: flex; align-items: center; }
.mn-hub li > div, .mn-hub li > a { flex: 1 1 auto; display: grid; gap: 0.15rem; padding: 0.85rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: inherit; text-decoration: none; transition: background 0.2s, box-shadow 0.2s; }
.mn-hub strong { font-size: 1rem; font-weight: 700; color: #fff; }
.mn-hub span { font-size: 0.8125rem; color: var(--fg-2); }
.mn-hub-out a { background: rgba(var(--acc-g, 54, 108, 230), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--acc-g, 54, 108, 230), 0.4); }
.mn-hub-out a:hover { background: rgba(var(--acc-g, 54, 108, 230), 0.28); }
.mn-hub-core { position: relative; display: grid; justify-items: center; gap: 0.5rem; padding: 1.5rem; }
.mn-hub-core img { position: relative; z-index: 1; width: 64px; height: 64px; }
.mn-hub-core strong { position: relative; z-index: 1; font-size: 0.875rem; letter-spacing: 0.12em; }
.mn-hub-core::before, .mn-hub-core::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9rem; height: 9rem; margin: -4.5rem 0 0 -4.5rem; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-g, 54, 108, 230), 0.35), transparent 70%); }
.mn-hub-core::after { background: none; box-shadow: 0 0 0 1px rgba(var(--acc-g, 54, 108, 230), 0.45); animation: mnPulse 2.8s ease-out infinite; }
@keyframes mnPulse { from { transform: scale(0.55); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.mn-wire { display: none; }
@media (min-width: 64rem) {
  .mn-hub { grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 0.8fr); gap: 0; }
  .mn-wire { position: relative; display: block; flex: 0 0 3.5rem; align-self: stretch; }
  .mn-wire::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px;
    background: linear-gradient(90deg, transparent 0 30%, var(--acc-b, #6aa1ff) 50%, transparent 70% 100%) 0 0 / 300% 100%, var(--wire);
    animation: mnFlow 2.4s linear infinite; }
  .mn-hub li:nth-child(2) .mn-wire::before { animation-delay: -0.5s; }
  .mn-hub li:nth-child(3) .mn-wire::before { animation-delay: -1s; }
  .mn-hub li:nth-child(4) .mn-wire::before { animation-delay: -1.5s; }
  .mn-hub li:nth-child(5) .mn-wire::before { animation-delay: -2s; }
  .mn-hub-in, .mn-hub-out { position: relative; }
  .mn-hub-in::after, .mn-hub-out::before { content: ""; position: absolute; top: 2.1rem; bottom: 2.1rem; width: 2px; background: var(--wire); }
  .mn-hub-in::after { right: 0; }
  .mn-hub-out::before { left: 0; }
  .mn-hub-core::before { width: 11rem; height: 11rem; margin: -5.5rem 0 0 -5.5rem; }
  .mn-hub-core { background: linear-gradient(var(--wire), var(--wire)) center / 100% 2px no-repeat; }
}
@keyframes mnFlow { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@media (max-width: 63.99rem) {
  .mn-hub-core { padding: 2rem 0; background: linear-gradient(var(--wire), var(--wire)) center / 2px 100% no-repeat; }
  .mn-hub-in { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .mn-hub-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mn-wire::before, .mn-hub-core::after { animation: none; } }
.mn-hubsec .mn-src-foot { color: var(--fg-2); }

/* ---------- IA: página oscura, cifras en portada y ciclo en órbita ---------- */
[data-mod="ia"] .sec.on-dark.is-alt { --bg: #0c0a24; --surface: #16123a; }
.pg-hero .ia-stats { width: min(100%, 60rem); margin: clamp(2.5rem, 5vw, 3.5rem) auto clamp(2.5rem, 5vw, 4rem); text-align: left; }
.pg-hero .ia-stats li { border-top-color: var(--acc-b, #b49cff); }
.pg-hero .ia-stats b { color: #fff; }

.ia-orbit-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .ia-orbit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ia-orbit-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.ia-orbit-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 0.8rem 1rem; border-radius: 14px; animation: iaOn 10s infinite; animation-delay: calc(var(--i) * 2s); }
.ia-orbit-list b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(var(--acc-g), 0.22); font-size: 0.875rem; color: var(--acc-b); }
.ia-orbit-list h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; }
.ia-orbit-list p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
@keyframes iaOn { 0%, 20% { background: rgba(var(--acc-g), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--acc-g), 0.45); } 22%, 100% { background: transparent; box-shadow: none; } }

.ia-orbit { --r: min(40vw, 11.5rem); position: relative; display: grid; place-items: center; width: calc(var(--r) * 2 + 6rem); aspect-ratio: 1; margin-inline: auto; }
.ia-orbit::before { content: ""; position: absolute; inset: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(var(--acc-g), 0.25); }
.ia-orbit::after { content: ""; position: absolute; inset: 3rem; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, transparent 0 70%, var(--acc-b) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: iaSpin 10s linear infinite; }
@keyframes iaSpin { from { transform: rotate(-72deg); } to { transform: rotate(288deg); } }
.ia-orbit ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ia-orbit li { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; gap: 0.35rem; width: 7rem; margin: -1.6rem 0 0 -3.5rem;
  transform: rotate(calc(var(--i) * 72deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -72deg)); }
.ia-orbit li b { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #16123a; box-shadow: inset 0 0 0 1.5px rgba(var(--acc-g), 0.5); font-size: 1rem; color: #fff; animation: iaNode 10s infinite; animation-delay: calc(var(--i) * 2s); }
.ia-orbit li span { font-size: 0.875rem; font-weight: 700; color: #fff; text-align: center; }
@keyframes iaNode { 0%, 20% { background: var(--acc); box-shadow: 0 0 0 6px rgba(var(--acc-g), 0.25), 0 0 40px rgba(var(--acc-g), 0.6); } 22%, 100% { background: #16123a; box-shadow: inset 0 0 0 1.5px rgba(var(--acc-g), 0.5); } }
.ia-orbit > p { position: relative; max-width: 12rem; text-align: center; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
.ia-orbit > p strong { display: block; margin-bottom: 0.2rem; font-size: 1.125rem; color: #fff; }
@media (prefers-reduced-motion: reduce) { .ia-orbit::after, .ia-orbit li b, .ia-orbit-list li { animation: none; } }
.ia-orbit { --r: min(28vw, 11.5rem); max-width: 100%; }
.ia-orbit-grid > * { min-width: 0; }
@media (max-width: 39.99rem) { .ia-orbit li { width: 5.5rem; margin-left: -2.75rem; } .ia-orbit li span { font-size: 0.75rem; } .ia-orbit li b { width: 2.6rem; height: 2.6rem; } .ia-orbit > p { max-width: 9rem; } }

/* ---------- GAM: portada partida y ficha montada sobre el borde ---------- */
.pg-hero.is-split { padding-bottom: calc(clamp(9rem, 16vw, 14rem) + var(--sheet-r)); }
@media (min-width: 64rem) { .pg-hero.is-split .pg-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gm-heroph { position: relative; margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 3.4; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.1), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }
.gm-heroph img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.gm-heroph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(var(--acc-g), 0.25), transparent 45%); }
.gm-salud { position: relative; z-index: 2; }
.gm-lift { position: relative; width: min(100%, 60rem); margin: calc(-1 * clamp(10rem, 18vw, 16rem)) auto clamp(3rem, 6vw, 4.5rem); }
.gm-salud-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .gm-salud-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; } .gm-salud-grid .gm-health { margin-top: 1.75rem; } }
@media (max-width: 63.99rem) { .gm-heroph { aspect-ratio: 16 / 10; } .pg-hero.is-split { padding-bottom: calc(6rem + var(--sheet-r)); } .gm-lift { margin-top: -6rem; } }

/* ---------- GEF: Sankey como imagen de portada y cifras protagonistas ---------- */
.pg-hero.is-showcase .gf-heroshot { width: min(100%, 68rem); max-height: none; margin-top: 0.5rem; margin-bottom: calc(-1 * var(--sheet-r) - 1px); border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.14), 0 -30px 120px -20px rgba(var(--acc-g), 0.45); }
.pg-hero.is-showcase .gf-heroshot img { max-height: clamp(16rem, 42vw, 36rem); object-fit: cover; object-position: top; }
.pg-hero.is-showcase { padding-bottom: 0; }
.pg-hero.is-showcase + .sec.sheet { position: relative; z-index: 2; }
.gf-big { display: grid; gap: 1rem; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0; list-style: none; }
@media (min-width: 48rem) { .gf-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gf-big li { display: grid; gap: 0.4rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.gf-big b { font-size: clamp(2.75rem, 2rem + 3.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--acc); }
.gf-big span { font-size: 1rem; font-weight: 600; color: var(--fg); }

/* ---------- GAP: portada cinematográfica y bifurcación ---------- */
.pg-hero.is-cine { padding-bottom: 0; }
.gp-cine-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 64rem) { .gp-cine-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 4rem; } .gp-cine-head .t-lead { margin-top: 0; } }
.pg-hero.is-cine h1 { max-width: 16ch; }
.gp-cine { position: relative; margin-bottom: calc(-1 * var(--sheet-r) - 1px); }
.gp-cine-photo { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 35%; border-radius: 28px 28px 0 0; }
.gp-cine::after { content: ""; position: absolute; inset: 0; border-radius: 28px 28px 0 0; background: linear-gradient(90deg, rgba(var(--acc-g), 0.25), transparent 50%); pointer-events: none; }
.gp-cine-shot { position: absolute; z-index: 1; right: clamp(1rem, 4vw, 3.5rem); bottom: calc(var(--sheet-r) + clamp(1rem, 3vw, 2.5rem)); width: min(46%, 34rem); }
@media (max-width: 47.99rem) { .gp-cine-photo { aspect-ratio: 4 / 3; } .gp-cine-shot { width: 70%; right: 1rem; } }

.gp-flow { display: grid; gap: 1.5rem; }
@media (min-width: 72rem) { .gp-flow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 0; } }
.gp-track { position: relative; display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .gp-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gp-track li { position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1.25rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.gp-track .pg-mod { justify-self: start; margin-bottom: 0.25rem; }
.gp-track h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.gp-track p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.gp-fork { position: relative; display: grid; gap: 0.75rem; }
@media (min-width: 72rem) { .gp-fork { padding-left: 4.5rem; } .gp-fork::before { content: ""; position: absolute; left: 0.75rem; top: 50%; width: 3rem; height: 2px; background: var(--acc); }
  .gp-fork::after { content: ""; position: absolute; left: 3.75rem; top: 22%; bottom: 22%; width: 2px; background: var(--acc); } }
.gp-q { justify-self: start; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--acc); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
@media (min-width: 72rem) { .gp-q { position: absolute; left: -2.5rem; top: 50%; transform: translateY(-50%); z-index: 1; padding: 0.5rem 0.9rem; font-size: 1rem; } }
.gp-branch { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.25rem 1.35rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.gp-branch b { display: grid; place-items: center; min-width: 2.75rem; height: 2rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 800; color: var(--night); }
.gp-branch.is-yes { background: color-mix(in srgb, var(--action) 10%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--action) 50%, transparent), 0 30px 60px -40px rgba(60, 207, 122, 0.6); }
.gp-branch.is-yes b { background: var(--action); }
.gp-branch.is-no b { background: #ffb37a; }
.gp-branch h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.gp-branch p { margin-top: 0.3rem; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.gp-branch .pg-mod { font-size: 0.6875rem; padding: 0.2em 0.45em; vertical-align: 1px; }

.gp-proof { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .gp-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gp-proof li { display: grid; align-content: start; gap: 0.5rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); border-top: 4px solid var(--acc); }
.gp-proof span { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); }
.gp-proof h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--fg); }
.gp-proof p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
@media (min-width: 72rem) {
  .gp-fork { padding-left: 9rem; }
  .gp-fork::before { left: 0; width: 8rem; }
  .gp-fork::after { left: 8rem; top: 25%; bottom: 25%; }
  .gp-q { left: 1.25rem; }
  .gp-branch { position: relative; }
  .gp-branch::before { content: ""; position: absolute; left: -1rem; top: 50%; width: 1rem; height: 2px; background: var(--acc); }
}

/* ---------- GED: conversación en portada y pila de versiones ---------- */
@media (min-width: 64rem) { .pg-hero.is-ask .pg-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.pg-hero.is-ask h1 { max-width: 17ch; }
.ged-herochat { background: rgba(6, 12, 28, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.14), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }
.ged-herochat .pg-msg { font-size: 1rem; }

.ged-ver { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .ged-ver { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ged-stack { position: relative; height: clamp(17rem, 34vw, 22rem); max-width: 30rem; width: 100%; margin-inline: auto; }
.ged-stack > div { position: absolute; left: 0; right: 0; display: grid; align-content: start; gap: 0.9rem; height: 78%; padding: 1.25rem 1.4rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2), 0 30px 60px -40px rgba(5, 11, 26, 0.45); }
.ged-stack > div > span { font-size: 0.9375rem; font-weight: 700; color: var(--fg); }
.ged-stack > div > b { position: absolute; top: 1.1rem; right: 1.2rem; padding: 0.25em 0.7em; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ged-stack .is-old2 { top: 0; transform: translateX(-6%) rotate(-6deg); opacity: 0.45; }
.ged-stack .is-old1 { top: 6%; transform: translateX(-3%) rotate(-3deg); opacity: 0.7; }
.ged-stack .is-old2 > span, .ged-stack .is-old1 > span { text-decoration: line-through; color: var(--fg-3); }
.ged-stack .is-old2 > b, .ged-stack .is-old1 > b { background: rgba(10, 16, 34, 0.08); color: var(--fg-3); }
.ged-stack .is-now { top: 18%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 55%, transparent), 0 40px 80px -40px rgba(var(--acc-g), 0.6); }
.ged-stack .is-now > b { background: var(--action); color: var(--night); }
.ged-stack .is-now i { display: block; height: 0.6rem; border-radius: 4px; background: var(--paper-2); }
.ged-stack .is-now i:nth-of-type(2) { width: 88%; } .ged-stack .is-now i:nth-of-type(3) { width: 94%; } .ged-stack .is-now i:nth-of-type(4) { width: 62%; }

.ged-how { grid-template-columns: 1fr; gap: 1rem; max-width: 64rem; margin-inline: auto; }
@media (min-width: 56rem) { .ged-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ged-how li { padding: 1.5rem; border-radius: var(--r-l); background: rgba(var(--acc-g), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--acc-g), 0.35); font-size: var(--fs-small); line-height: 1.55; }
.ged-how strong { font-size: 1.25rem; font-weight: 700; color: #fff; }
.ged-stack .is-old2 { top: 0; transform: translateX(-5%) rotate(-4deg); }
.ged-stack .is-old1 { top: 12%; transform: translateX(-2.5%) rotate(-2deg); }
.ged-stack .is-now { top: 24%; }
@media (max-width: 39.99rem) {
  .ged-stack { height: 16rem; }
  .ged-stack > div { padding: 1rem 1.1rem; }
  .ged-stack > div > span { font-size: 0.8125rem; }
  .ged-stack > div > b { top: 0.9rem; font-size: 0.625rem; }
  .ged-stack .is-old2 { top: 0; transform: scale(0.9); }
  .ged-stack .is-old1 { top: 2.6rem; transform: scale(0.95); }
  .ged-stack .is-now { top: 5.2rem; }
}

/* ---------- GEP: lienzo en portada, disparadores y casos por área ---------- */
.pg-hero.is-canvas { padding-bottom: 0; background:
  radial-gradient(circle, rgba(var(--acc-g), 0.22) 1px, transparent 1.5px) 0 0 / 22px 22px,
  radial-gradient(50% 60% at 50% 30%, rgba(var(--acc-g), 0.28), transparent 70%), var(--night); }
.gp-canvas-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.gp-canvas-head h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.25rem); }
.gp-canvas-head .t-lead { max-width: 42rem; margin-inline: auto; }
.gp-canvas-head .pg-actions { justify-content: center; }
.gp-tilt { width: min(100%, 70rem); margin: 0 auto calc(-1 * var(--sheet-r) - 1px); border-radius: 16px 16px 0 0; transform: perspective(2000px) rotateX(14deg); transform-origin: 50% 100%; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.14), 0 -40px 140px -30px rgba(var(--acc-g), 0.55); }
@media (prefers-reduced-motion: no-preference) { .gp-tilt { transition: transform 0.9s ease; } .gp-tilt:hover { transform: perspective(2000px) rotateX(4deg); } }
.pg-hero.is-canvas + .sec.sheet { position: relative; z-index: 2; }

.gc-trig { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: trg; }
@media (min-width: 40rem) { .gc-trig { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .gc-trig { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gc-trig li:last-child { grid-column: span 1; } }
.gc-trig li { display: grid; align-content: start; gap: 0.35rem; padding: 1.25rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.gc-trig li::before { counter-increment: trg; content: counter(trg); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-bottom: 0.4rem; border-radius: 50%; background: var(--acc); font-size: 0.8125rem; font-weight: 800; color: #fff; }
.gc-trig strong { font-size: 1.0625rem; color: var(--fg); }
.gc-trig span { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

.gc-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.gc-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.gc-nav label { padding: 0.6rem 1.1rem; border-radius: 999px; background: rgba(238, 242, 250, 0.06); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.14); font-size: var(--fs-small); font-weight: 600; color: var(--fg-2); cursor: pointer; transition: background 0.2s, color 0.2s; }
.gc-nav label:hover { color: #fff; }
.gc-panel { display: none; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); animation: gcIn 0.4s ease; }
@keyframes gcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gc-title { margin-bottom: 1.5rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
@media (min-width: 64rem) { .pg-chain.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
#gc-mant:checked ~ .gc-panels .gc-mant { display: block; }
#gc-mant:checked ~ .gc-nav label[for="gc-mant"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-mant:focus-visible ~ .gc-nav label[for="gc-mant"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-iot:checked ~ .gc-panels .gc-iot { display: block; }
#gc-iot:checked ~ .gc-nav label[for="gc-iot"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-iot:focus-visible ~ .gc-nav label[for="gc-iot"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-fin:checked ~ .gc-panels .gc-fin { display: block; }
#gc-fin:checked ~ .gc-nav label[for="gc-fin"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-fin:focus-visible ~ .gc-nav label[for="gc-fin"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-com:checked ~ .gc-panels .gc-com { display: block; }
#gc-com:checked ~ .gc-nav label[for="gc-com"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-com:focus-visible ~ .gc-nav label[for="gc-com"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-rh:checked ~ .gc-panels .gc-rh { display: block; }
#gc-rh:checked ~ .gc-nav label[for="gc-rh"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-rh:focus-visible ~ .gc-nav label[for="gc-rh"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-cli:checked ~ .gc-panels .gc-cli { display: block; }
#gc-cli:checked ~ .gc-nav label[for="gc-cli"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-cli:focus-visible ~ .gc-nav label[for="gc-cli"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
#gc-ti:checked ~ .gc-panels .gc-ti { display: block; }
#gc-ti:checked ~ .gc-nav label[for="gc-ti"] { background: var(--acc); color: #fff; box-shadow: none; }
#gc-ti:focus-visible ~ .gc-nav label[for="gc-ti"] { outline: 2px solid var(--acc-b); outline-offset: 2px; }
.gc-lib { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .gc-lib { grid-template-columns: 1fr 2fr 1.2fr 1fr; } }
.gc-lib > div { display: grid; align-content: start; gap: 0.75rem; padding: 1.25rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.gc-lib .t-label { color: var(--acc); }
.gc-perks { display: grid; gap: 1rem; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .gc-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gc-perks li { padding-top: 1rem; border-top: 2px solid var(--acc); font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.gc-perks strong { display: block; margin-bottom: 0.2rem; font-size: 1.0625rem; color: var(--fg); }

/* ---------- Formularios: antes y después en portada, bento ---------- */
.pg-hero.is-swap { padding-bottom: calc(clamp(3rem, 6vw, 4.5rem) + var(--sheet-r)); }
.fm-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.fm-head h1 { max-width: 16ch; margin-inline: auto; }
.fm-head .t-lead { max-width: 42rem; margin-inline: auto; }
.fm-head .pg-actions { justify-content: center; }
.fm-swap { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 64rem) { .fm-swap { grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr); gap: 1.5rem; } }
.fm-swap figure { position: relative; margin: 0; }
.fm-before { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3.2; }
.fm-before img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.05) brightness(0.8); }
.fm-swap figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35em 0.8em; border-radius: 999px; background: rgba(6, 12, 28, 0.75); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fm-after figcaption { background: var(--acc); }
.fm-after { box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.14), 0 60px 120px -40px rgba(var(--acc-g), 0.5); }
.fm-arrow { display: grid; place-items: center; justify-self: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--acc); }
.fm-arrow svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 63.99rem) { .fm-arrow { transform: rotate(90deg); } }

.fm-bento { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .fm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .fm-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fm-bento .is-wide { grid-column: span 2; grid-row: span 2; } }
.fm-bento > li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); overflow: hidden; }
.fm-bento .t-label { color: var(--acc); }
.fm-bento h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg); }
.fm-bento p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.fm-bento .is-dark { background: radial-gradient(70% 80% at 90% 100%, rgba(var(--acc-g), 0.35), transparent 70%), var(--night); box-shadow: none; }
.fm-bento .is-dark h3 { max-width: 18ch; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); color: #fff; }
.fm-bento .is-dark p:not(.t-label) { max-width: 34rem; color: var(--snow-2); }
.fm-bento .is-dark .t-label { color: var(--acc-b); }
.fm-reading { display: grid; gap: 0.3rem; justify-self: start; margin-top: 1rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: rgba(238, 242, 250, 0.06); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.14); }
.fm-reading span { font-size: 0.8125rem; color: var(--snow-2); }
.fm-reading b { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.fm-reading i { font-style: normal; font-size: 0.8125rem; font-weight: 700; color: var(--acc-b); }
.fm-score { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.4rem; }
.fm-score b { font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--acc); }
.fm-score span { font-size: 1rem; font-weight: 600; color: var(--fg-3); }
.fm-comp { display: grid; gap: 0.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.fm-who { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.fm-who li { display: grid; gap: 0.25rem; padding: 1.25rem 1.4rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); border-left: 4px solid var(--acc); }
.fm-who b { font-size: 1.125rem; color: var(--fg); }
.fm-who span { font-size: var(--fs-small); color: var(--fg-2); }
/* Comparativa de texto */
.pg-compare.is-text .pg-compare-row span:not(.lab) { font-size: var(--fs-small); line-height: 1.55; }
.pg-compare.is-text .old span { color: var(--fg-3); }
.pg-compare.is-text .new span { color: var(--fg); font-weight: 500; }
.pg-compare.is-text .pg-compare-row .lab { color: var(--fg); font-size: 0.8125rem; }
.pg-compare.is-text .pg-compare-row .new { background: color-mix(in srgb, var(--acc) 5%, transparent); }

/* ---------- Soluciones: mosaico por necesidad ---------- */
[data-mod="sol"] { --acc: #0a66c2; --acc-b: #7cc0ff; --acc-g: 30, 140, 255; }
.m-sol { --m: #0a66c2; }
.sl-tiles { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) { .sl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.sl-tiles a { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(30rem, 48vw, 38rem); overflow: hidden; border-radius: 26px; color: #fff; text-decoration: none; background: #060c1c; }
.sl-tiles a > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.8s ease; }
.sl-tiles a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 12, 28, 0.05) 0%, rgba(6, 12, 28, 0.55) 40%, rgba(6, 12, 28, 0.96) 72%); }
.sl-tiles a:hover > img { transform: scale(1.05); }
.sl-tiles a > div { display: grid; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2rem); }
.sl-q { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-b); }
.sl-tiles h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
.sl-tiles p:not(.sl-q) { font-size: var(--fs-small); line-height: 1.55; color: rgba(238, 242, 250, 0.78); }
.sl-brand { display: block; margin-top: 0.4rem; }
.sl-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.sl-go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: var(--fs-small); font-weight: 700; color: #fff; }
.sl-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.sl-tiles a:hover .sl-go svg { transform: translateX(4px); }


/* ---------- RADEXA: tríptico, cifras grandes y filtro ---------- */
.pg-hero.is-tri { padding-bottom: 0; }
.rx-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.rx-head h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.25rem); }
.rx-head .t-lead { max-width: 40rem; margin-inline: auto; }
.rx-head .pg-actions { justify-content: center; }
.rx-head .pg-logo { margin: 0 auto 1.25rem; }
.rx-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 1.5vw, 1rem); width: min(100%, 64rem); margin: 0 auto calc(-1 * var(--sheet-r) - 1px); padding: 0; list-style: none; }
.rx-tri li { overflow: hidden; border-radius: 22px 22px 0 0; aspect-ratio: 3 / 4.2; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.1), 0 -30px 100px -40px rgba(var(--acc-g), 0.6); }
.rx-tri li:nth-child(2) { transform: translateY(-1.5rem); }
.rx-tri img { width: 100%; height: 100%; object-fit: cover; }
.pg-hero.is-tri + .sec.sheet { position: relative; z-index: 2; }

.rx-prob { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .rx-prob { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }
.rx-pains { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rx-pains li { display: grid; gap: 0.2rem; padding: 1.1rem 0; border-top: 1px solid var(--hair-2); }
.rx-pains li:last-child { border-bottom: 1px solid var(--hair-2); }
.rx-pains b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.rx-pains span { font-size: var(--fs-small); color: var(--fg-2); }

.rx-tech { background: radial-gradient(50% 60% at 50% 100%, rgba(var(--acc-g), 0.3), transparent 70%), var(--night); }
.rx-big { display: grid; gap: 2rem; margin: clamp(1rem, 3vw, 2rem) 0 0; padding: 0; list-style: none; text-align: center; }
@media (min-width: 56rem) { .rx-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rx-big b { display: block; font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(180deg, #fff, var(--acc-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-big span { display: block; max-width: 16rem; margin: 0.75rem auto 0; font-size: var(--fs-small); line-height: 1.5; color: var(--snow-2); }

.rx-flow { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .rx-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } .rx-flow li { position: relative; } .rx-flow li:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -2rem; width: 1.5rem; height: 2px; background: var(--acc); } }
.rx-flow li { display: grid; gap: 0.4rem; padding: 1.4rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.rx-flow b { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.3rem; border-radius: 50%; background: var(--acc); font-size: 0.875rem; color: #fff; }
.rx-flow h3 { font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.rx-flow p { font-size: var(--fs-small); color: var(--fg-2); }

.rx-filter > input { position: absolute; opacity: 0; pointer-events: none; }
.rx-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.rx-nav label { padding: 0.55rem 1rem; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--fs-small); font-weight: 600; color: var(--fg-2); cursor: pointer; }
.rx-nav label:hover { color: var(--fg); }
#rx-all:checked ~ .rx-nav label[for="rx-all"] { background: var(--acc); color: #fff; box-shadow: none; }
.rx-grid > li { animation: gcIn 0.35s ease; }
#rx-at:checked ~ .rx-nav label[for="rx-at"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-at:checked ~ .rx-grid > li:not(.f-at) { display: none; }
#rx-mt:checked ~ .rx-nav label[for="rx-mt"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-mt:checked ~ .rx-grid > li:not(.f-mt) { display: none; }
#rx-bt:checked ~ .rx-nav label[for="rx-bt"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-bt:checked ~ .rx-grid > li:not(.f-bt) { display: none; }
#rx-gas:checked ~ .rx-nav label[for="rx-gas"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-gas:checked ~ .rx-grid > li:not(.f-gas) { display: none; }
#rx-amb:checked ~ .rx-nav label[for="rx-amb"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-amb:checked ~ .rx-grid > li:not(.f-amb) { display: none; }
#rx-ind:checked ~ .rx-nav label[for="rx-ind"] { background: var(--acc); color: #fff; box-shadow: none; }
#rx-ind:checked ~ .rx-grid > li:not(.f-ind) { display: none; }
.rx-filter > input:focus-visible + * , .rx-filter > input:focus-visible ~ .rx-nav { outline: none; }

/* ---------- Transformadores: puntos críticos sobre el equipo ---------- */
@media (min-width: 64rem) { .pg-hero.is-pins .pg-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pg-hero.is-pins h1 { max-width: 16ch; font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem); }
.tf-pins { position: relative; width: min(100%, 30rem); margin-inline: auto; }
.tf-pins::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-g), 0.4), transparent 65%); filter: blur(10px); }
.tf-pins figure { position: relative; margin: 0; }
.tf-pins img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); }
.tf-pins ul { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.tf-pins li { position: absolute; left: var(--x); top: var(--y); }
.tf-pins i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #ff6b3d; box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.3); }
.tf-pins i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ff6b3d; animation: tfPing 2s ease-out infinite; }
@keyframes tfPing { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.tf-pins span { position: absolute; right: 1.4rem; top: -1.6rem; display: grid; gap: 0.1rem; width: max-content; max-width: 13rem; padding: 0.6rem 0.85rem; border-radius: 12px; background: rgba(6, 12, 28, 0.85); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.16); font-size: 0.75rem; color: var(--acc-b); text-align: left; }
.tf-pins span strong { font-size: 0.875rem; color: #fff; }
.tf-pins .is-r span { right: auto; left: 1.4rem; top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .tf-pins i::after { animation: none; } }

/* ---------- ES2+: portada partida con la foto de las llaves ---------- */
@media (min-width: 64rem) { .pg-hero.is-keys .pg-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.pg-hero.is-keys h1 { max-width: 15ch; font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem); }
.pg-hero.is-keys .pg-logo { margin-bottom: 1.25rem; }
.es-heroph { margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 4.4; max-height: 36rem; box-shadow: 0 0 0 1px rgba(238, 242, 250, 0.1), 0 60px 120px -40px rgba(var(--acc-g), 0.55); }
.es-heroph img { width: 100%; height: 100%; object-fit: cover; }
.es-facts { display: grid; gap: 0; max-width: 30rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.es-facts li { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 0; border-top: 1px solid rgba(238, 242, 250, 0.12); font-size: var(--fs-small); color: var(--fg-2); }
.es-facts b { color: #fff; }
@media (max-width: 47.99rem) {
  .tf-pins { counter-reset: pin; }
  .tf-pins li { counter-increment: pin; }
  .tf-pins ul { position: static; display: grid; gap: 0.5rem; margin-top: 1rem; }
  .tf-pins li { position: static; display: flex; gap: 0.75rem; align-items: center; }
  .tf-pins li::before { content: counter(pin); display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #ff6b3d; font-size: 0.8125rem; font-weight: 800; color: #fff; }
  .tf-pins i { display: none; }
  .tf-pins span, .tf-pins .is-r span { position: static; max-width: none; width: auto; flex: 1; }
  .tf-pins figure { counter-reset: dot; }
  .tf-pins figure::after { content: ""; }
}
.tf-dot { display: none; }
@media (max-width: 47.99rem) { .tf-dot { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: -0.8rem 0 0 -0.8rem; border-radius: 50%; background: #ff6b3d; box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.3); font-size: 0.8125rem; font-weight: 800; color: #fff; } }

/* ---------- Nosotros: mosaico, manifiesto y mapa de la plataforma ---------- */
.pg-hero.is-mosaic { padding-bottom: 0; }
.ns-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ns-head h1 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.25rem); }
.ns-head .t-lead { max-width: 40rem; margin-inline: auto; }
.ns-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: clamp(0.5rem, 1.2vw, 1rem); margin: 0 0 calc(-1 * var(--sheet-r) - 1px); padding: 0; list-style: none; }
.ns-mosaic li { overflow: hidden; border-radius: 22px 22px 0 0; height: clamp(12rem, 26vw, 22rem); }
.ns-mosaic li:nth-child(2), .ns-mosaic li:nth-child(3) { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.ns-mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .ns-mosaic { grid-template-columns: 1fr 1fr; } .ns-mosaic li:nth-child(n+3) { display: none; } .ns-mosaic li:nth-child(2) { margin-top: 1.5rem; } }
.pg-hero.is-mosaic + .sec.sheet { position: relative; z-index: 2; }

.ns-manifest { max-width: 62rem; }
.ns-manifest h2 { margin-top: 1rem; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.18; color: var(--fg-3); }
.ns-manifest h2 span, .ns-manifest h2 em { font-style: normal; color: var(--fg); }

.ns-mods { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .ns-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ns-mods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ns-mods a { display: grid; gap: 0.35rem; height: 100%; padding: 1.25rem; border-radius: var(--r-m); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); color: inherit; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.ns-mods a:hover { background: rgba(238, 242, 250, 0.08); transform: translateY(-2px); }
.ns-mods .pg-mod { justify-self: start; margin-bottom: 0.5rem; }
.ns-mods strong { font-size: 1.0625rem; color: #fff; }
.ns-mods span:not(.pg-mod) { font-size: var(--fs-small); color: var(--fg-2); }
.ns-hw { display: grid; gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .ns-hw { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ns-hw a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-m); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); color: var(--fg-2); font-size: var(--fs-small); text-decoration: none; }
.ns-hw a:hover { background: rgba(238, 242, 250, 0.08); }
.ns-hw img { height: 24px; width: auto; filter: brightness(0) invert(1); }

.ns-rules { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .ns-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ns-rules li { display: grid; align-content: start; gap: 0.5rem; padding-top: 1.25rem; border-top: 2px solid var(--fg); }
.ns-rules b { font-size: 0.875rem; font-weight: 800; color: var(--fg-3); }
.ns-rules h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.ns-rules p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.ns-legal { margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.8125rem; color: var(--fg-3); }
.ns-close { margin-top: 0; border-radius: 0; padding-top: 0; }

/* ---------- Casos de éxito: usos por industria ---------- */
.cs-uses { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .cs-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cs-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.cs-uses li { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.cs-uses img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cs-uses li > div { display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem 1.5rem 1.6rem; }
.cs-sec { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.cs-uses h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.cs-uses p:not(.cs-sec) { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.cs-mods { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }

/* ---------- Casos: instalaciones RADEXA ---------- */
.cx-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 64rem) { .cx-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 4rem; } }
.cx-cases { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.cx-case { display: grid; overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
@media (min-width: 56rem) { .cx-case { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .cx-case:nth-child(even) .cx-pics { order: 2; } }
.cx-pics { display: grid; gap: 4px; background: var(--night); }
.cx-pics.is-2 { grid-template-columns: 1fr 1fr; }
.cx-pics.is-3 { grid-template-columns: 1fr 1fr 1fr; }
.cx-pics img { width: 100%; height: clamp(16rem, 30vw, 24rem); object-fit: cover; }
.cx-body { display: grid; align-content: center; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.cx-body h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); }
.cx-body > p:not(.cs-sec) { font-size: var(--fs-small); line-height: 1.6; color: var(--fg-2); }
.cx-body .pg-chips { margin-top: 0.4rem; }
.cx-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.75rem; font-weight: 700; color: var(--acc, var(--blue)); text-decoration: none; }
.cx-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rx-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .rx-field { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rx-field li { overflow: hidden; border-radius: 18px; aspect-ratio: 3 / 4; }
.rx-field img { width: 100%; height: 100%; object-fit: cover; }
.on-dark .cx-more { color: var(--acc-b); }
/* Casos: índice por producto, subgrupos y galerías */
.cx-nav { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid rgba(10, 16, 34, 0.08); }
.cx-nav .wrap { display: flex; gap: 0.4rem; overflow-x: auto; padding-block: 0.6rem; scrollbar-width: none; }
.cx-nav a { flex: none; padding: 0.45rem 0.95rem; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.cx-nav a:hover { background: var(--paper-2); color: var(--ink); }
.cx-logo { height: 34px; width: auto; margin-bottom: 1rem; filter: brightness(0); }
.cx-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hair-2); font-size: 1.125rem; font-weight: 600; color: var(--fg-2); }
.cx-head + .cx-sub { margin-top: 0; }
.cx-sub span { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); }
.cx-gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .cx-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cx-gallery figure:nth-child(3) { grid-column: span 2; } .cx-gallery figure:nth-child(4) { grid-column: span 2; } }
.cx-gallery figure, .cx-sf6 figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--night); }
.cx-gallery img { width: 100%; height: clamp(11rem, 20vw, 16rem); object-fit: cover; }
.cx-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.85rem; background: linear-gradient(0deg, rgba(6, 12, 28, 0.85), transparent); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: #fff; }
.cx-sf6 { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr 1.4fr; }
.cx-sf6 img { width: 100%; height: clamp(14rem, 34vw, 26rem); object-fit: cover; }
@media (max-width: 39.99rem) { .cx-sf6 { grid-template-columns: 1fr 1fr; } .cx-sf6 figure:last-child { grid-column: span 2; } }
@media (min-width: 64rem) { .cx-gallery figure:nth-child(7), .cx-gallery figure:nth-child(8) { grid-column: span 2; } }
/* Casos: MIBAT+ y ES2+ */
.cx-split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 64rem) { .cx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cx-split.is-rev .cx-photo { order: 2; } }
.cx-split .t-h2 { margin-bottom: 1rem; }
.cx-photo { margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3; }
.cx-photo img { width: 100%; height: 100%; object-fit: cover; }
.cx-logo.is-light { filter: brightness(0) invert(1); }
.cx-mb { --acc: #c81e2d; --acc-b: #ff8089; background: radial-gradient(45% 60% at 85% 20%, rgba(230, 40, 60, 0.22), transparent 70%), var(--night); }
.cx-sectors { display: grid; gap: 0.75rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .cx-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cx-sectors { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cx-sectors li { display: grid; gap: 0.35rem; padding: 1.25rem; border-radius: var(--r-m); background: rgba(238, 242, 250, 0.05); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); }
.cx-sectors svg { width: 24px; height: 24px; margin-bottom: 0.5rem; fill: none; stroke: var(--acc-b); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-sectors strong { font-size: 1.0625rem; color: #fff; }
.cx-sectors span { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.cx-facts { display: grid; gap: 0; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cx-facts li { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 0; border-top: 1px solid var(--hair-2); font-size: var(--fs-small); color: var(--fg-2); }
.cx-facts b { color: var(--fg); }
.cx-split .cx-more { margin-top: 1.25rem; }
/* Casos: logos de clientes */
.cx-client { margin-bottom: 0.25rem; }
.cx-client img { height: 30px; width: auto; }
.cx-clients { display: grid; gap: 0.75rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .cx-clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cx-clients { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cx-clients li { display: grid; justify-items: center; align-content: center; gap: 0.6rem; min-height: 8rem; padding: 1.25rem 1rem; border-radius: var(--r-m); background: #fff; text-align: center; }
.cx-clients img { max-width: 80%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.cx-word { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.cx-clients small { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.cx-clients.is-small { margin-top: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-clients.is-small li { min-height: 5.5rem; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.cx-clients.is-small .cx-word { font-size: 1.0625rem; }
.cx-note { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--fg-3); }
/* Casos: portada con cifras e historias con resultados */
.cx-hero { padding-bottom: calc(clamp(3rem, 6vw, 4.5rem) + var(--sheet-r)); }
.cx-hero-copy h1 { max-width: 14ch; }
.cx-hero-copy .t-lead { max-width: 38rem; }
.cx-hero-stats { display: grid; gap: 1px; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: 20px; background: rgba(238, 242, 250, 0.12); }
@media (min-width: 64rem) { .cx-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cx-hero-stats li { display: grid; align-content: start; gap: 0.35rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); background: rgba(6, 12, 28, 0.78); backdrop-filter: blur(10px); }
.cx-hero-stats b { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.cx-hero-stats span { font-size: 0.8125rem; line-height: 1.45; color: var(--snow-2); }
.cx-hero-stats em { margin-top: 0.3rem; font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-bright); }

.cx-story { display: grid; overflow: hidden; margin-top: 1.25rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -45px rgba(5, 11, 26, 0.4); }
.cx-head + .cx-story { margin-top: 0; }
@media (min-width: 64rem) { .cx-story { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .cx-story.is-rev .cx-story-stats { order: -1; } }
.cx-story-main { display: grid; align-content: start; gap: 0.9rem; padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.cx-story-main h3 { font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.375rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--fg); }
.cx-story-main > p:not(.cx-client) { font-size: var(--fs-small); line-height: 1.65; color: var(--fg-2); }
.cx-story-main .cx-client img { height: 36px; }
.cx-story-main .cx-word { font-size: 1.5rem; }
.cx-story-stats { display: grid; align-content: center; gap: 0; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); list-style: none; background: var(--night); }
.cx-story-stats li { display: grid; gap: 0.3rem; padding: 1.1rem 0; border-top: 1px solid rgba(238, 242, 250, 0.12); }
.cx-story-stats li:first-child { border-top: 0; }
.cx-story-stats b { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.cx-story-stats span { font-size: var(--fs-small); line-height: 1.45; color: var(--snow-2); }
.cx-story.is-compact .cx-story-stats b { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.cx-hw { display: inline-flex; align-items: center; padding: 0.3em 0.6em; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.75rem; font-weight: 700; color: var(--fg); }
.cx-bars { display: grid; gap: 0.6rem; margin: 0.5rem 0; }
.cx-bars > div { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--paper-2); font-size: 0.8125rem; color: var(--fg-2); overflow: hidden; isolation: isolate; }
.cx-bars > div::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--w); background: rgba(226, 86, 15, 0.18); }
.cx-bars > div.is-ok::before { width: 1.5%; background: var(--action); }
.cx-bars > div.is-ok { box-shadow: inset 0 0 0 1.5px var(--action); color: var(--fg); font-weight: 600; }
.cx-bars b { flex: none; color: var(--fg); }
@media (min-width: 72rem) { .cx-clients.is-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 48rem) and (max-width: 71.99rem) { .cx-clients.is-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Prueba social: más clientes en cuadrícula y enlace a casos */
.proof-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: var(--fs-small); font-weight: 700; color: var(--blue); text-decoration: none; }
.proof-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.proof-link:hover svg { transform: translateX(3px); }
.proof-stats span { max-width: 13rem; }
.proof-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; justify-items: center; }
@media (min-width: 48rem) { .proof-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
.proof-logos li { display: grid; place-items: center; width: 100%; height: 44px; }
.proof-logos img { max-height: 30px; max-width: min(110px, 90%); height: auto; width: auto; }
.cx-clients.is-small img { max-height: 52px; max-width: 70%; }
/* Casos: carruseles con desplazamiento nativo */
.cx-rail { position: relative; }
.cx-rail-track { display: flex !important; gap: 1rem !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 0.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.cx-rail-track::-webkit-scrollbar { display: none; }
.cx-rail-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.cx-cases.cx-rail-track > .cx-case { width: min(86%, 26rem); grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; }
.cx-cases.cx-rail-track .cx-pics { order: 0 !important; }
.cx-cases.cx-rail-track .cx-pics img { height: clamp(13rem, 22vw, 16rem); }
.cx-cases.cx-rail-track .cx-body { align-content: start; padding: 1.4rem 1.5rem 1.6rem; }
.cx-cases.cx-rail-track .cx-body h3 { font-size: 1.375rem; }
.cx-gallery.cx-rail-track > figure { width: min(78%, 22rem); grid-column: auto !important; }
.cx-gallery.cx-rail-track img { height: clamp(14rem, 24vw, 18rem); }
.cx-rail-nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.cx-rail-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--fg); cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.cx-rail-btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.cx-rail-btn:disabled { opacity: 0.35; cursor: default; }
.cx-rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Solicitar demo ---------- */
.pg-hero.is-form.has-photo { padding-bottom: clamp(4rem, 8vw, 6rem); }
.dm-steps { display: grid; gap: 0; max-width: 32rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.dm-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(238, 242, 250, 0.12); }
.dm-steps b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(106, 161, 255, 0.18); font-size: 0.875rem; color: var(--blue-bright); }
.dm-steps strong { display: block; font-size: 1rem; color: #fff; }
.dm-steps span { font-size: var(--fs-small); line-height: 1.5; color: var(--snow-2); }
.dm-proof { max-width: 32rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(238, 242, 250, 0.12); }
.dm-proof p { font-size: var(--fs-small); color: var(--snow-2); }
.dm-proof p b { color: #fff; }
.dm-proof ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.dm-proof img { height: 22px; width: auto; max-width: 90px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.7; }
@media (max-width: 63.99rem) {
  .pg-hero.is-form .pg-hero-grid > div:first-child { display: contents; }
  .pg-hero.is-form .pg-formcard { order: 1; }
  .pg-hero.is-form .dm-steps, .pg-hero.is-form .dm-proof { order: 2; }
  .pg-hero.is-form .pg-hero-grid { gap: 1.25rem; }
  .pg-hero.is-form .dm-steps { margin-top: 1.5rem; }
}

/* =====================================================================
   Páginas por sector (energia, centros-de-datos, industria, mineria)
   ===================================================================== */
[data-mod="en"] { --acc: #c47a00; --acc-b: #ffc155; --acc-g: 245, 166, 35; }
[data-mod="dc"] { --acc: #0f72c8; --acc-b: #6fc3ff; --acc-g: 40, 150, 240; }
[data-mod="in"] { --acc: #d1491a; --acc-b: #ff9a6b; --acc-g: 235, 95, 40; }
[data-mod="mi"] { --acc: #a35f2b; --acc-b: #e6a571; --acc-g: 200, 120, 60; }
[data-mod="en"] .pg-eyebrow b, [data-mod="dc"] .pg-eyebrow b, [data-mod="in"] .pg-eyebrow b, [data-mod="mi"] .pg-eyebrow b { background: rgba(var(--acc-g), 0.2); color: var(--acc-b); }

/* Recorrido por zonas (pestañas) */
.sz > input { position: absolute; opacity: 0; pointer-events: none; }
.sz { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .sz { grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; } }
.sz-nav { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter, 1rem)); padding: 0 var(--gutter, 1rem) 0.25rem; }
.sz-nav::-webkit-scrollbar { display: none; }
@media (min-width: 64rem) { .sz-nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; } }
.sz-nav label { display: flex; flex: none; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: 14px; background: rgba(238, 242, 250, 0.05); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); font-size: var(--fs-small); font-weight: 600; color: var(--snow-2); cursor: pointer; transition: background 0.2s, color 0.2s; }
.sz-nav label:hover { color: #fff; background: rgba(238, 242, 250, 0.09); }
.sz-nav label b { font-size: 0.75rem; font-weight: 800; color: var(--acc-b); }
.sz-panel { display: none; overflow: hidden; border-radius: var(--r-l); background: rgba(238, 242, 250, 0.04); box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1); animation: gcIn 0.4s ease; }
@media (min-width: 56rem) { .sz-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.sz-photo { margin: 0; min-height: 15rem; background: #0b1530; }
.sz-photo img { width: 100%; height: 100%; max-height: 30rem; object-fit: cover; }
.sz-photo.is-contain { display: grid; place-items: center; padding: 2rem; background: radial-gradient(60% 60% at 50% 50%, rgba(var(--acc-g), 0.25), transparent 70%), #0b1530; }
.sz-photo.is-contain img { width: auto; max-width: 80%; max-height: 18rem; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.sz-body { display: grid; align-content: start; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.sz-body .t-label { color: var(--acc-b); }
.sz-body h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
.sz-body > p:not(.t-label) { font-size: var(--fs-small); line-height: 1.6; color: var(--snow-2); }
.sz-list { display: grid; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.sz-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: var(--fs-small); line-height: 1.5; color: var(--snow); }
.sz-list svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--acc-b); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sz-prods { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.sz-prod { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--acc); font-size: 0.8125rem; font-weight: 700; color: #fff; text-decoration: none; }
span.sz-prod { background: rgba(238, 242, 250, 0.1); }
.sz-prod svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
a.sz-prod:hover { filter: brightness(1.1); }

/* Arquitectura sensor → SCADA */
.sx-arch { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) { .sx-arch { grid-template-columns: 1fr 0.8fr 1fr 0.8fr 1fr; align-items: center; gap: 0.75rem; } }
.sx-arch li { display: grid; gap: 0.3rem; padding: 1.25rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.sx-arch b { font-size: 1.125rem; color: var(--fg); }
.sx-arch li > span { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.sx-arch .is-link { position: relative; padding: 1rem; background: none; box-shadow: none; text-align: center; }
.sx-arch .is-link::before { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--acc) 0 8px, transparent 8px 14px); opacity: 0.6; }
@media (max-width: 63.99rem) { .sx-arch .is-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--acc) 0 8px, transparent 8px 14px); } }
.sx-arch .is-link span { position: relative; display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--acc); font-size: 0.8125rem; font-weight: 700; color: #fff; }
.sx-arch .is-link em { position: relative; display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.75rem; line-height: 1.4; color: var(--fg-3); background: var(--bg); }
.sx-arch .is-end { background: var(--night); box-shadow: 0 30px 60px -40px rgba(var(--acc-g), 0.7); }
.sx-arch .is-end b { color: #fff; } .sx-arch .is-end > span { color: var(--snow-2); }

/* Puntos críticos del chiller */
.sx-points { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .sx-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .sx-points { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sx-points li { display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem; border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.sx-points b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--acc); font-size: 0.875rem; color: #fff; }
.sx-points h3 { font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.sx-points p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.sx-points strong { color: var(--acc); }

/* Clientes del sector */
.sx-clients { display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.sx-clients ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.sx-clients img { height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.sx-range b { background: linear-gradient(180deg, var(--fg), var(--acc)); -webkit-background-clip: text; background-clip: text; }
.sx-range span { color: var(--fg-2); }
.sx-field figcaption em { display: block; margin-bottom: 0.15rem; font-style: normal; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-b, #ffc155); }
