/* =====================================================================
   PÁGINAS CON PROPÓSITO — capa «Señal» (versión 7)
   Identidad propia: letra Archivo (ancha en titulares, angosta en los
   acentos), etiquetas en Martian Mono, esquinas finas, fotos a un tono,
   y la red de circuitos con señales de luz de fondo (pcp/red.js).
   Se carga después de styles.css y premium.css. Para quitarla, borra su
   línea del <head> de index.html.
   ===================================================================== */

:root {
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 6px;
  --r-sm: 4px;
  --tk: rgb(var(--tint-rgb) / .3);
}
body { font-stretch: 100%; letter-spacing: -.003em; }

/* ---------- Fondo: la red reemplaza a las luces y al grano ---------- */
.aurora, .grain, .ghost { display: none !important; }
.red { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; contain: strict; opacity: 0; transition: opacity 1.6s var(--ease); }
.red.is-on { opacity: 1; }
.red__base { position: absolute; left: 0; top: 0; will-change: transform; }
.red__live { position: absolute; left: 0; top: 0; }
/* el centro, donde va el texto, queda más tranquilo */
.red::after { content: ""; position: absolute; inset: 0; background: radial-gradient(72% 66% at 50% 48%, rgb(var(--bg-rgb) / .62), rgb(var(--bg-rgb) / 0) 82%); }
/* cajas que antes eran casi transparentes: ahora tapan la red para que el texto se lea limpio */
.faq details { background: rgb(var(--surface-rgb) / .88); }
.contact__next, .fondo__steps li { background: rgb(var(--surface-rgb) / .8); }
.calc__nums div { background: rgb(var(--deep-rgb) / .6); }

/* ---------- Titulares: ancho y firme, el acento angosto ---------- */
.sec__title, .hero__title, .slide__title {
  font-family: var(--display); font-weight: 760; font-stretch: 112%; font-variation-settings: normal;
  letter-spacing: -.038em; line-height: .98;
}
.sec__title { font-size: clamp(2rem, 4.2vw, 3.55rem); }
.slide__title { font-size: clamp(2.3rem, 5.1vw, 4.8rem); text-shadow: none; max-width: 14ch; }
.sec__title em, .hero__title em, .slide__title em,
.sec__title em .w, .hero__title em .w {
  font-style: normal; font-weight: 330; font-stretch: 75%; letter-spacing: -.025em;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--acc); -webkit-text-fill-color: currentColor; padding-right: 0;
}
/* las palabras entran sin desenfoque (el desenfoque animado pesa) */
.w { filter: none; transform: translateY(.42em); }
.slide__kicker, .slide__title, .slide__text, .slide__ctas { filter: none; }
.slide.is-active .slide__kicker, .slide.is-active .slide__title, .slide.is-active .slide__text, .slide.is-active .slide__ctas { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }

/* títulos chicos */
.sol__t, .card__t, .tile__t, .pain__t, .path__t, .step__t, .value h3, .ia__h, .quiz__t, .qr__t,
.chat__t, .composer__k, .plan__head h2, .viewer__title h2 {
  font-family: var(--display); font-weight: 680; font-stretch: 106%; font-variation-settings: normal; letter-spacing: -.022em;
}
.card__t, .tile__t { font-weight: 640; }
/* números grandes */
.dial__n, .calc__nums dd, .range output, .fondo__pct, .fondo__out span, .steps.is-stack .step__n {
  font-family: var(--display); font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.04em;
}
.pain__n { font-family: var(--mono); font-style: normal; font-size: .72rem; letter-spacing: .04em; }
.about__quote { font-family: var(--display); font-style: normal; font-weight: 500; font-stretch: 96%; letter-spacing: -.015em; border-left-width: 1px; }
.marquee__track span { font-family: var(--display); font-style: normal; font-weight: 600; font-stretch: 112%; }

/* ---------- Etiquetas en mono: «nodos» de la red ---------- */
.eyebrow, .slide__kicker, .sign__k {
  gap: 10px; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .05em;
}
.eyebrow::before, .sign__k::before {
  content: ""; flex: none; width: 36px; height: 9px;
  background:
    linear-gradient(currentColor, currentColor) left center / 27px 1px no-repeat,
    radial-gradient(circle, transparent 0 2px, currentColor 2.4px 3.6px, transparent 4px) right center / 9px 9px no-repeat;
}
.eyebrow span, .slide__kicker span {
  display: inline; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0;
  color: var(--ink); font-size: inherit; letter-spacing: inherit;
}
.eyebrow span::after, .slide__kicker span::after { content: " /"; color: var(--mute); }
.card__tag, .tile__tag, .sol__k, .path__n, .pain__k, .quiz__step, .qr__k, .chat__k, .foot__nav p,
.guide__menu p, .pal__head, .pal__k, .bubble__h, .sol__tag {
  font-family: var(--mono); font-weight: 500; letter-spacing: .05em; font-size: .64rem;
}
.sol__price, .qr__price, .planbtn b, .vnav__n, .live, .nav__search kbd, .pal kbd, .pal__x {
  font-family: var(--mono); font-weight: 500; letter-spacing: .02em;
}
.sol__price { font-size: .68rem; }

/* ---------- Botones: planos y de esquina fina ---------- */
.btn { border-radius: 6px; font-weight: 650; font-stretch: 104%; letter-spacing: -.005em; }
.btn--gold { background: var(--acc); box-shadow: none; }
.btn--gold:hover { background: var(--acc-l); box-shadow: none; }
.btn--wa, .btn--wa:hover { box-shadow: none; }
.btn--glass { border-color: rgb(var(--ink-rgb) / .3); }
.btn--glass:hover { border-color: rgb(var(--ink-rgb) / .7); }
.filters button, .chat__tabs button, .composer__chips button, .phone__chips button,
.sol__add, .sol__price, .sol__tag, .qr__price, .planbtn, .planbtn b, .nav__search, .nav__search kbd,
.quiz__photo figcaption, .live, .card__img::after, .wall__hint, .iconbtn, .nav__burger, .slides__arrow,
.faq summary::after, .seg, .seg button, .pal kbd, .pal__x, .guide__close { border-radius: 4px; }
.nav__links a { border-radius: 4px; font-weight: 560; }
.nav__links a.is-active::after { height: 1px; border-radius: 0; background: var(--acc); }
.nav__in { border-radius: 8px; }
.ribbon { background: var(--deep); }
.ribbon p { font-size: .8rem; }
.prog i { box-shadow: none; }

/* ---------- Tarjetas: esquinas finas y marcas de corte ---------- */
.quiz__card, .calc__result, .chat, .composer, .viewer, .pal, .steps.is-stack .step { border-radius: 8px; }
.quiz__photo, .about__photo, .tile__card, .faq details, .contact__next, .fondo__sim, .fondo__badge,
.guide__bubble, .guide__menu, .quiz__opts button, .qr__item, .qr__no, .calc__nums div, .fondo__steps li,
.plan__list li, .composer input[type="text"], .pal__item, .ia__col, .value, .path, .sol { border-radius: 6px; }
.qr__ico, .pal__ico, .plan__list button { border-radius: 4px; }
@media (max-width: 640px) { .steps.is-stack .step { border-radius: 8px; } }

.sol, .pain__front, .value, .ia__col { background: rgb(var(--surface-rgb) / .84); }
.sol--ai { background: linear-gradient(170deg, rgb(var(--pos-rgb) / .08), rgb(var(--surface-rgb) / .86) 50%); }
.sol:hover { transform: none; border-color: rgb(var(--acc-rgb) / .35); }
.sol__ico { border-radius: 4px; background: transparent; border-color: rgb(var(--acc2-rgb) / .35); }
.sol--ai .sol__ico { background: transparent; }

.sol, .path, .value, .ia__col { position: relative; }
:is(.sol, .path, .value, .ia__col)::after {
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(var(--tk), var(--tk)) left top / 11px 1px,
    linear-gradient(var(--tk), var(--tk)) left top / 1px 11px,
    linear-gradient(var(--tk), var(--tk)) right top / 11px 1px,
    linear-gradient(var(--tk), var(--tk)) right top / 1px 11px,
    linear-gradient(var(--tk), var(--tk)) left bottom / 11px 1px,
    linear-gradient(var(--tk), var(--tk)) left bottom / 1px 11px,
    linear-gradient(var(--tk), var(--tk)) right bottom / 11px 1px,
    linear-gradient(var(--tk), var(--tk)) right bottom / 1px 11px;
  background-repeat: no-repeat;
  transition: opacity .3s;
}
:is(.sol, .path, .value, .ia__col):hover { --tk: rgb(var(--acc-rgb) / .8); }
.sol.is-hidden::after { display: none; }

/* ---------- Fotos a un tono: el color vuelve al pasar el mouse ---------- */
.quiz__photo img, .about__photo img, .fondo__photo { filter: grayscale(1) contrast(1.08) brightness(.9); }
.js-ok :is(.quiz__photo, .about__photo)[data-reveal] img { transition: clip-path 1.4s cubic-bezier(.77, 0, .18, 1) .15s, transform 1.4s var(--ease), filter .8s var(--ease); }
.fondo__photo { transition: transform 1.1s var(--ease), filter .8s var(--ease); }
@media (hover: hover) {
  .quiz__photo:hover img, .about__photo:hover img, .fondo__big:hover .fondo__photo { filter: none; }
}

/* ---------- Inicio: la foto se disuelve en la red ---------- */
.slides { background: transparent; }
.slide__media img { filter: grayscale(1) contrast(1.1) brightness(.82); }
.slide__media::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--acc2-xd) 34%, transparent); }
.slide__shade {
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / .28) 46%, rgb(var(--bg-rgb) / 0) 72%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .72) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
@media (min-width: 761px) {
  .slide__media {
    -webkit-mask-image: linear-gradient(90deg, transparent 6%, rgba(0, 0, 0, .5) 36%, #000 62%), linear-gradient(0deg, transparent 0%, #000 34%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 6%, rgba(0, 0, 0, .5) 36%, #000 62%), linear-gradient(0deg, transparent 0%, #000 34%);
    mask-composite: intersect;
  }
  .slide--right .slide__media {
    -webkit-mask-image: linear-gradient(270deg, transparent 6%, rgba(0, 0, 0, .5) 36%, #000 62%), linear-gradient(0deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(270deg, transparent 6%, rgba(0, 0, 0, .5) 36%, #000 62%), linear-gradient(0deg, transparent 0%, #000 34%);
  }
  .slide--right .slide__shade {
    background:
      linear-gradient(270deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / .28) 46%, rgb(var(--bg-rgb) / 0) 72%),
      linear-gradient(180deg, rgb(var(--bg-rgb) / .72) 0%, rgb(var(--bg-rgb) / 0) 22%);
  }
}
@media (max-width: 760px) {
  .slide__media {
    -webkit-mask-image: linear-gradient(180deg, #000 28%, rgba(0, 0, 0, .45) 54%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 28%, rgba(0, 0, 0, .45) 54%, transparent 78%);
  }
  .slide__shade { background: linear-gradient(0deg, rgb(var(--bg-rgb) / .72) 0%, rgb(var(--bg-rgb) / .4) 42%, rgb(var(--bg-rgb) / 0) 66%), linear-gradient(180deg, rgb(var(--bg-rgb) / .6), rgb(var(--bg-rgb) / 0) 20%); }
  .slide__title { font-size: clamp(2rem, 8.6vw, 2.5rem); max-width: 15ch; }
}
.slides__bar { height: 2px; border-radius: 0; }
.slides__bar i { border-radius: 0; background: var(--acc); }
.slides__tabs button { font-family: var(--mono); font-weight: 500; font-size: .66rem; letter-spacing: .03em; }

/* hora de Guatemala: el punto parpadea sin repintar */
.live { padding: 7px 12px; font-size: .62rem; letter-spacing: .05em; background: rgb(var(--bg-rgb) / .8); }
.live i { width: 6px; height: 6px; border-radius: 1px; animation: liveBlink 1.8s steps(1, end) infinite; box-shadow: none; }
@keyframes liveBlink { 50% { opacity: .2; } }

/* ---------- Guía: un nodo en vez de una esfera brillante ---------- */
.guide__orb { border-radius: 50%; background: rgb(var(--surface-rgb) / .96); box-shadow: 0 0 0 1px var(--line-2); }
.guide__core { inset: 20px; border-radius: 2px; background: var(--acc); box-shadow: none; animation: none; transform: rotate(45deg); }
@media (max-width: 600px) { .guide__core { inset: 17px; } }

/* ---------- Firma final ---------- */
.bigword { font-weight: 800; font-stretch: 116%; font-variation-settings: normal; font-size: clamp(2.4rem, 9vw, 8.2rem); line-height: .86; letter-spacing: -.055em; }
.bigword > em { font-style: normal; font-weight: 280; font-stretch: 75%; letter-spacing: -.035em; padding-left: .5em; }
.sign__side { max-width: 320px; }
.sign__cta {
  display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 14px;
  width: auto; height: auto; min-height: 60px; padding: 0 26px; border-radius: 6px;
  background: var(--acc); box-shadow: none; font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
.sign__cta .ico { width: 20px; height: 20px; }
.sign__cta:hover { background: var(--acc-l); box-shadow: none; }
@media (max-width: 760px) { .sign__cta { width: auto; height: auto; min-height: 56px; font-size: .74rem; } }

/* ---------- Proceso ---------- */
.steps.is-stack .step::before { height: 1px; background: linear-gradient(90deg, var(--acc2), var(--acc), var(--pos)); }
.steps.is-stack .step__n, .steps.is-stack .step.is-lit .step__n { -webkit-text-stroke-width: 1px; }

@media (prefers-reduced-motion: reduce) {
  .live i { animation: none; }
  .red { transition: none; }
}
