/* ==========================================================
   /polaria/ — Landing de producto de PolarIA
   Todas las clases van prefijadas .pz- (PolarIA) y usan la
   identidad del producto (violeta/cian, Outfit), la misma del
   panel y del video promocional.

   Dos modos:
   - Estático (sin JS o con reduced-motion): cada escena es una
     sección normal y todo está en su estado final.
   - .pz.is-anim (lo pone el JS): cada escena ocupa exactamente
     una pantalla, la página encaja de a una (scroll snap) y
     assets/js/polaria.js las anima; hero, espera, chat,
     derivación y panel quedan fijados y avanzan con el scroll.
   ========================================================== */

@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url('../../fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url('../../fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url('../../fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url('../../fonts/outfit-latin-700-normal.woff2') format('woff2'); }

.pz {
  --pz-ink: #17132b; --pz-body: #4a4468; --pz-muted: #6c6689; --pz-subtle: #8a85a6;
  --pz-violet: #6b4dff; --pz-violet-strong: #5436e6; --pz-violet-soft: #ede8ff; --pz-violet-mid: #9d88ff; --pz-violet-light: #c9bdff;
  --pz-cyan: #3fc6e8; --pz-cyan-light: #7fdcf2; --pz-cyan-soft: #e2f4fb; --pz-cyan-ink: #1a6f8e;
  --pz-green: #22c38e; --pz-green-soft: #e3f7ee; --pz-green-ink: #159a6c;
  --pz-amber-soft: #fff3d6; --pz-amber-ink: #8a5f06;
  --pz-pink: #ff6b8a; --pz-pink-soft: #ffe6ec; --pz-pink-ink: #d6395f;
  --pz-chip: #f2effa; --pz-track: #ece8f8; --pz-line: #f0edf8;
  --pz-card: rgb(255 255 255 / .85);
  --pz-brand: linear-gradient(135deg, #6b4dff, #3fc6e8);
  --pz-hero: linear-gradient(140deg, #7a5cff, #5436e6 60%, #3fc6e8 140%);
  --pz-shadow: 0 30px 60px -30px rgb(76 52 190 / .35);
  --pz-shadow-pop: 0 24px 50px -14px rgb(40 20 110 / .30);
  --pz-top: 76px;   /* alto del header fijo */
  --pz-gutter: clamp(20px, 4vw, 56px);

  position: relative;
  isolation: isolate;
  /* Recorta el fondo fijo (.pz-bg) a los límites de la página. */
  clip-path: inset(0);
  font-family: Outfit, var(--font-sans);
  color: var(--pz-ink);
  background: linear-gradient(135deg, #dcd3ff 0%, #ece6ff 45%, #d4e9fb 100%);
}
@media (max-width: 900px) { .pz { --pz-top: 68px; } }
.pz *, .pz *::before, .pz *::after { box-sizing: border-box; }
:where(.pz) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.pz) :where(ul, ol) { list-style: none; padding: 0; }

.page-template-template-polaria .pl-header,
.page-template-page-templates-template-polaria .pl-header { background: rgb(247 245 255 / .72); }

/* ----- Fondo: manchas de color que derivan despacio ----- */
.pz-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pz-blob { position: absolute; border-radius: 50%; will-change: transform; }
.pz-blob--1 { width: 80vmax; height: 80vmax; left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgb(122 92 255 / .34), transparent); animation: pzDrift1 26s ease-in-out infinite alternate; }
.pz-blob--2 { width: 72vmax; height: 72vmax; right: -28vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgb(63 198 232 / .30), transparent); animation: pzDrift2 30s ease-in-out infinite alternate; }
.pz-blob--3 { width: 56vmax; height: 56vmax; left: 30vw; top: 10vh; background: radial-gradient(closest-side, rgb(255 255 255 / .6), transparent); animation: pzDrift3 34s ease-in-out infinite alternate; }
@keyframes pzDrift1 { to { transform: translate(14vw, 10vh); } }
@keyframes pzDrift2 { to { transform: translate(-12vw, -14vh); } }
@keyframes pzDrift3 { to { transform: translate(-20vw, 8vh); } }

/* ----- Escena genérica ----- */
.pz-scene { position: relative; }
.pz-stage {
  position: relative;
  min-height: 100svh;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--pz-top) + 40px) var(--pz-gutter) 64px;
}
.pz.is-anim .pz-scene { height: 100svh; overflow: hidden; }.pz.is-anim .pz-stage { height: 100svh; min-height: 0; padding-bottom: 28px; }

/* ----- Tipografía y piezas compartidas ----- */
.pz-kin { font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; color: var(--pz-ink); }
.pz-kin em, .pz-hl { font-style: normal; background: linear-gradient(100deg, #6b4dff 10%, #3fc6e8 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Palabras enmascaradas que suben (las arma el JS). */
.pz-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.pz-wi { display: inline-block; will-change: transform; }
.pz-kin em .pz-wi { background: linear-gradient(100deg, #6b4dff 10%, #3fc6e8 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pz-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgb(255 255 255 / .7); border: 1px solid rgb(255 255 255 / .9);
  color: var(--pz-violet-strong); font-weight: 600; font-size: clamp(12px, 1.2vw, 15px); letter-spacing: .01em;
}
.pz-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pz-violet); flex: none; animation: pzPulse 2s ease-in-out infinite; }
@keyframes pzPulse { 50% { box-shadow: 0 0 0 6px rgb(107 77 255 / .15); } }
.pz-lede { font-size: clamp(16px, 1.55vw, 21px); line-height: 1.5; color: var(--pz-body); max-width: 40ch; }

.pz-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 10px 0 28px; border-radius: 999px; background: var(--pz-ink); color: #fff;
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 24px 44px -22px rgb(23 19 43 / .7);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.pz-btn:hover { transform: translateY(-2px); box-shadow: 0 30px 50px -20px rgb(84 54 230 / .6); color: #fff; }
.pz-btn:focus-visible { outline: 3px solid var(--pz-violet-mid); outline-offset: 3px; }
.pz-btn__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--pz-brand); display: grid; place-items: center; transition: transform .3s; }
.pz-btn:hover .pz-btn__arrow { transform: translateX(3px); }
.pz-btn--lg { height: clamp(64px, 7vw, 88px); padding: 0 12px 0 clamp(28px, 3.4vw, 48px); font-size: clamp(19px, 2.2vw, 30px); gap: 18px; }
.pz-btn--lg .pz-btn__arrow { width: clamp(44px, 5vw, 60px); height: clamp(44px, 5vw, 60px); }
.pz-btn__shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); animation: pzShine 3.6s ease-in-out infinite 1s; }
@keyframes pzShine { 0% { left: -40%; } 45%, 100% { left: 120%; } }

.pz-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pz-pill--pink { background: var(--pz-pink-soft); color: var(--pz-pink-ink); }
.pz-pill--green { background: var(--pz-green-soft); color: var(--pz-green-ink); }
.pz-pill--violet { background: var(--pz-violet-soft); color: var(--pz-violet-strong); }
.pz-avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px; font-weight: 700; font-size: 17px; background: var(--pz-violet-soft); color: var(--pz-violet-strong); }
.pz-card { background: var(--pz-card); border: 1px solid rgb(255 255 255 / .9); border-radius: 26px; box-shadow: var(--pz-shadow); }

/* ==========================================================
   1 · HERO — los leads se acumulan
   ========================================================== */
.pz-hero .pz-stage { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pz-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vh, 28px); }
.pz-hero__titles { position: relative; }
.pz-hero__t1, .pz-hero__t2 { font-size: clamp(38px, 5.3vw, 84px); }
.pz-hero__t2 { margin-top: .3em; }
.pz-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.pz-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pz-muted); }
.pz-hint i { width: 20px; height: 32px; border-radius: 999px; border: 2px solid var(--pz-violet-light); position: relative; }
.pz-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 4px; background: var(--pz-violet); animation: pzScroll 1.8s ease-in-out infinite; }
@keyframes pzScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.pz-hero__visual { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; width: 100%; max-width: 560px; justify-self: end; }
.pz-count {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px;
  background: var(--pz-ink); color: #fff; font-size: 16px; font-weight: 600; box-shadow: var(--pz-shadow-pop);
}
.pz-count b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: var(--pz-pink); font-size: 18px; font-variant-numeric: tabular-nums; }
.pz-stack { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.pz-notif {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; width: 100%;
  background: rgb(255 255 255 / .9); border: 1px solid #fff; box-shadow: 0 20px 40px -22px rgb(40 20 110 / .35);
}
.pz-notif .pz-avatar { width: 48px; height: 48px; font-size: 16px; }
.pz-notif__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pz-notif__top { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.pz-notif__src { font-size: 12px; font-weight: 600; color: var(--pz-muted); background: var(--pz-chip); padding: 2px 9px; border-radius: 999px; }
.pz-notif__msg { font-size: 14px; color: var(--pz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-notif__time { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--pz-subtle); }
.pz-notif__time .pz-pill { font-size: 11px; padding: 3px 9px; }
/* Estático: las cuatro más recientes. */
.pz:not(.is-anim) .pz-notif:nth-child(n+5) { display: none; }

.pz.is-anim .pz-hero__titles { display: grid; }
.pz.is-anim .pz-hero__t1, .pz.is-anim .pz-hero__t2 { grid-area: 1 / 1; margin: 0; }
.pz.is-anim .pz-stack { position: relative; height: min(560px, calc(100svh - var(--pz-top) - 170px)); display: block; }
.pz.is-anim .pz-notif { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
/* Hasta que polaria.js pinte el primer cuadro, el hero no se ve. */
.pz.is-anim:not(.is-ready) .pz-hero .pz-stage > * { opacity: 0; }

@media (max-width: 900px) {
  .pz-hero .pz-stage { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: calc(var(--pz-top) + 20px); }
  .pz-hero__visual { max-width: none; justify-self: stretch; gap: 12px; }
  .pz-hero__copy { gap: 14px; }
  .pz-hint { display: none; }
  .pz-btn { height: 52px; font-size: 16px; padding-left: 22px; }
  .pz-btn__arrow { width: 36px; height: 36px; }
  .pz-notif { padding: 12px 14px; gap: 12px; border-radius: 18px; }
  .pz-notif .pz-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .pz-count { font-size: 14px; padding: 6px 14px 6px 7px; }
  .pz-count b { min-width: 30px; height: 30px; font-size: 15px; }
  .pz.is-anim .pz-stack { height: max(180px, calc(100svh - var(--pz-top) - 400px)); }
}

/* ==========================================================
   2 · ESPERA — el lead se enfría
   ========================================================== */
.pz-wait .pz-stage { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pz-wait__copy { display: flex; flex-direction: column; gap: 24px; }
.pz-wait__title { font-size: clamp(36px, 5vw, 80px); }
.pz-ring { position: relative; width: min(100%, 560px, calc(100svh - var(--pz-top) - 120px)); aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.pz-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pz-ring__inner { position: absolute; inset: 17%; border-radius: 50%; background: rgb(255 255 255 / .86); box-shadow: var(--pz-shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pz-ring__temp { font-size: 4.6cqw; font-weight: 700; padding: .35em .9em; border-radius: 999px; background: var(--pz-cyan-soft); color: var(--pz-cyan-ink); }
.pz-ring__temp.is-hot { background: var(--pz-pink-soft); color: var(--pz-pink-ink); }
.pz-ring__temp.is-warm { background: var(--pz-amber-soft); color: var(--pz-amber-ink); }
.pz-ring__clock { font-size: 15cqw; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: .12em; font-variant-numeric: tabular-nums; }
.pz-ring__label { font-size: 3.6cqw; color: var(--pz-muted); margin-top: .4em; }
@media (max-width: 900px) {
  .pz-wait .pz-stage { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .pz-ring { width: min(78vw, 400px, calc(100svh - var(--pz-top) - 300px)); }
}

/* ==========================================================
   3 · MARCA
   ========================================================== */
.pz-brand { overflow: hidden; color: #fff; }
.pz-brand__wipe { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; border-radius: 50%; background: var(--pz-hero); will-change: transform; }
.pz-brand__rings { position: absolute; left: 50%; top: 50%; }
.pz-brand__rings i { position: absolute; border-radius: 50%; border: 2px solid rgb(255 255 255 / .22); opacity: 0; }
.pz-brand .pz-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(14px, 2.4vh, 26px); }
.pz-brand__logo { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-bottom: clamp(8px, 2vh, 24px); }
.pz-brand__tile { width: clamp(76px, 9vw, 150px); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; font-size: clamp(46px, 5.6vw, 92px); font-weight: 700; background: rgb(255 255 255 / .2); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .45), 0 30px 60px -20px rgb(20 10 80 / .5); }
.pz-brand__word { font-size: clamp(64px, 10vw, 168px); font-weight: 600; letter-spacing: .005em; line-height: 1; color: #fff; display: flex; }
.pz-brand__word span, .pz-brand__word .pz-ch { display: inline-block; }
.pz-brand__word .pz-ia, .pz-brand__word .pz-ia .pz-ch { color: var(--pz-cyan-light); }
.pz-brand__tag { font-size: clamp(28px, 4vw, 60px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.pz-brand__desc { font-size: clamp(16px, 1.9vw, 26px); color: rgb(255 255 255 / .84); max-width: 34ch; line-height: 1.45; }
.pz-brand__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pz-brand__chips li { padding: 9px 18px; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3); font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); backdrop-filter: blur(6px); }

/* ==========================================================
   4 · CHAT — la conversación
   ========================================================== */
.pz-chat .pz-stage {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
  grid-template-areas: "device title" "device feats";
  column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(24px, 4vh, 48px); align-items: start;
}
.pz-chat__title { grid-area: title; align-self: end; font-size: clamp(34px, 4.4vw, 70px); }
.pz-chat__device { grid-area: device; position: relative; display: flex; justify-content: center; align-self: center; }
.pz-feats { grid-area: feats; display: flex; flex-direction: column; gap: clamp(16px, 3vh, 34px); }
.pz-feat { display: flex; gap: 20px; align-items: flex-start; }
.pz-feat__ico { width: 62px; height: 62px; flex: none; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: var(--pz-shadow); }
.pz-feat h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 4px; }
.pz-feat p { font-size: clamp(15px, 1.4vw, 19px); color: var(--pz-muted); line-height: 1.4; }

/* Teléfono: todo se mide en --u para escalarlo al alto de la pantalla. */
.pz-phone {
  --u: clamp(5px, calc((100svh - var(--pz-top) - 90px) / 94), 8.6px);
  width: calc(var(--u) * 47); height: calc(var(--u) * 94); flex: none;
  border-radius: calc(var(--u) * 6.8); background: #17132b; padding: calc(var(--u) * 1.4);
  box-shadow: 0 60px 90px -40px rgb(40 20 110 / .55), inset 0 0 0 2px #3a3358;
}
.pz-phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--u) * 5.6); overflow: hidden; background: #f5f3fc; display: flex; flex-direction: column; }
.pz-phone__notch { position: absolute; left: 50%; top: calc(var(--u) * 1.4); width: calc(var(--u) * 12); height: calc(var(--u) * 3.4); transform: translateX(-50%); border-radius: 99px; background: #17132b; z-index: 3; }
.pz-phone__head { padding: calc(var(--u) * 6.4) calc(var(--u) * 2.2) calc(var(--u) * 1.6); display: flex; align-items: center; gap: calc(var(--u) * 1.4); background: #fff; border-bottom: 1px solid var(--pz-line); }
.pz-phone__avatar { width: calc(var(--u) * 5.2); height: calc(var(--u) * 5.2); border-radius: 50%; background: var(--pz-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: calc(var(--u) * 2); flex: none; }
.pz-phone__head b { display: block; font-size: calc(var(--u) * 2.1); }
.pz-phone__head small { font-size: calc(var(--u) * 1.6); color: var(--pz-green-ink); font-weight: 500; }
.pz-thread {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 calc(var(--u) * 1.6) calc(var(--u) * 1.4); overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgb(107 77 255 / .06), transparent 40%), radial-gradient(circle at 90% 80%, rgb(63 198 232 / .08), transparent 40%), #f5f3fc;
}
.pz-m { flex: none; overflow: hidden; }
.pz-m__in { padding-top: calc(var(--u) * 1.2); display: flex; flex-direction: column; align-items: flex-start; }
.pz-m__b { max-width: calc(var(--u) * 34); padding: calc(var(--u) * 1.3) calc(var(--u) * 1.6); border-radius: calc(var(--u) * 2); font-size: calc(var(--u) * 1.8); line-height: 1.36; background: #fff; box-shadow: 0 1px 2px rgb(40 20 110 / .06); transform-origin: bottom left; }
.pz-m--lead .pz-m__b { border-bottom-left-radius: calc(var(--u) * .6); }
.pz-m--bot .pz-m__in { align-items: flex-end; }
.pz-m--bot .pz-m__b { background: var(--pz-violet); color: #fff; border-bottom-right-radius: calc(var(--u) * .6); transform-origin: bottom right; }
.pz-m__t { font-size: calc(var(--u) * 1.3); color: var(--pz-subtle); margin-top: calc(var(--u) * .5); display: flex; align-items: center; gap: calc(var(--u) * .6); }
.pz-m__t em { font-style: normal; font-weight: 700; font-size: calc(var(--u) * 1.1); color: var(--pz-violet-strong); background: var(--pz-violet-soft); padding: 1px calc(var(--u) * .7); border-radius: 999px; }
.pz-m--sys .pz-m__in { align-items: center; }
.pz-m--sys .pz-m__b { background: var(--pz-cyan-soft); color: var(--pz-cyan-ink); font-size: calc(var(--u) * 1.5); font-weight: 600; padding: calc(var(--u) * .7) calc(var(--u) * 1.4); border-radius: 999px; box-shadow: none; }
.pz-m--typing .pz-m__b { display: flex; gap: calc(var(--u) * .7); padding: calc(var(--u) * 1.7) calc(var(--u) * 2); }
.pz-m--typing.pz-m--bot .pz-m__b { background: var(--pz-violet-soft); }
.pz-m--typing i { width: calc(var(--u) * 1); height: calc(var(--u) * 1); border-radius: 50%; background: var(--pz-violet-mid); animation: pzDot 1s ease-in-out infinite; }
.pz-m--typing i:nth-child(2) { animation-delay: .15s; } .pz-m--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pzDot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.pz-phone__composer { padding: calc(var(--u) * 1.2) calc(var(--u) * 1.6) calc(var(--u) * 2.6); background: #fff; display: flex; gap: calc(var(--u) * 1); align-items: center; }
.pz-phone__composer span { flex: 1; height: calc(var(--u) * 4.6); border-radius: 999px; background: var(--pz-chip); color: var(--pz-subtle); font-size: calc(var(--u) * 1.7); display: flex; align-items: center; padding: 0 calc(var(--u) * 1.8); }
.pz-phone__composer i { width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); border-radius: 50%; background: var(--pz-violet); }

.pz-score {
  position: absolute; left: calc(50% + clamp(5px, calc((100svh - var(--pz-top) - 90px) / 94), 8.6px) * 13); top: 32%;
  width: max-content; padding: 16px 22px 16px 16px; display: flex; align-items: center; gap: 16px; border-radius: 24px; background: #fff; box-shadow: var(--pz-shadow-pop);
}
.pz-score__ring { position: relative; width: 78px; height: 78px; flex: none; }
.pz-score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.pz-score__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 25px; font-weight: 700; }
.pz-score small { display: block; font-size: 13px; color: var(--pz-muted); }
.pz-score strong { display: block; font-size: 21px; font-weight: 700; }
.pz-score em { display: block; font-style: normal; font-size: 13px; color: var(--pz-green-ink); font-weight: 600; margin-top: 2px; }

@media (max-width: 900px) {
  .pz-chat .pz-stage { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "device" "feats"; row-gap: 18px; padding-top: calc(var(--pz-top) + 18px); }
  .pz-chat__title { font-size: clamp(28px, 7.4vw, 40px); text-align: center; align-self: auto; }
  .pz-phone { --u: clamp(4.4px, calc((100svh - var(--pz-top) - 250px) / 94), 7px); }
  .pz-m__b { font-size: calc(var(--u) * 2.05); }
  .pz-score { left: auto; right: 0; top: 40%; padding: 10px 14px 10px 10px; gap: 10px; border-radius: 18px; }
  .pz-score__ring { width: 54px; height: 54px; }
  .pz-score__num { font-size: 18px; }
  .pz-score strong { font-size: 16px; }
  .pz-score small, .pz-score em { font-size: 11px; }
  .pz-feat__ico { width: 46px; height: 46px; border-radius: 14px; }
  .pz-feat__ico svg { width: 24px; height: 24px; }
  .pz-feat { gap: 14px; }
  .pz-feat h3 { font-size: 18px; }
  .pz-feat p { font-size: 14px; }
  /* Animado: las tres ocupan el mismo lugar bajo el teléfono y se reemplazan. */
  .pz.is-anim .pz-feats { display: grid; }
  .pz.is-anim .pz-feat { grid-area: 1 / 1; }
}

/* ==========================================================
   5 · DERIVACIÓN
   ========================================================== */
.pz-hand .pz-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); }
.pz-hand__title { font-size: clamp(32px, 4.2vw, 64px); text-align: center; }
.pz-hand__row { display: grid; grid-template-columns: 1fr clamp(80px, 11vw, 180px) 1fr; align-items: center; }
.pz-sum { padding: clamp(24px, 2.6vw, 38px); }
.pz-sum__title { display: flex; align-items: center; gap: 10px; font-size: clamp(19px, 1.8vw, 25px); font-weight: 600; margin-bottom: 14px; }
.pz-sum__text { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; color: var(--pz-body); min-height: 4.5em; }
.pz-sum__text .pz-caret { display: inline-block; width: 3px; height: 1em; background: var(--pz-violet); vertical-align: -3px; margin-left: 2px; }
.pz-sum__checks { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pz-chk { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; }
.pz-chk i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pz-green); flex: none; }
.pz-chk i svg { width: 16px; height: 16px; }
.pz-hand__path { width: 100%; height: auto; overflow: visible; }
.pz-agent { position: relative; padding: clamp(24px, 2.6vw, 36px); }
.pz-agent__ping { position: absolute; left: clamp(20px, 2.2vw, 32px); top: clamp(20px, 2.2vw, 32px); width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--pz-green); opacity: 0; pointer-events: none; }
.pz-agent__who { display: flex; align-items: center; gap: 16px; }
.pz-avatar--round { width: 64px; height: 64px; border-radius: 50%; font-size: 22px; background: var(--pz-green-soft); color: var(--pz-green-ink); }
.pz-agent__who b { display: block; font-size: clamp(20px, 2vw, 27px); }
.pz-agent__who small { font-size: clamp(14px, 1.3vw, 18px); color: var(--pz-muted); }
.pz-agent__msg { margin-top: 20px; padding: 18px 20px; border-radius: 20px; background: var(--pz-chip); display: flex; flex-direction: column; gap: 8px; }
.pz-agent__alert { font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; color: var(--pz-violet-strong); display: flex; align-items: center; gap: 8px; }
.pz-agent__lead { font-size: clamp(15px, 1.4vw, 19px); color: var(--pz-body); }
.pz-agent__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-agent__btn { margin-top: 18px; height: 52px; border-radius: 999px; background: var(--pz-ink); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 600; }
.pz-hand__foot { text-align: center; font-size: clamp(15px, 1.4vw, 19px); color: var(--pz-muted); }
@media (max-width: 900px) {
  .pz-hand .pz-stage { justify-content: flex-start; padding-top: calc(var(--pz-top) + 28px); gap: 24px; }
  .pz-hand__title { font-size: clamp(27px, 7vw, 38px); }
  .pz-hand__row { grid-template-columns: 1fr; gap: 16px; }
  .pz-hand__path { display: none; }
  .pz.is-anim .pz-hand__row { flex: 1; align-content: center; padding-bottom: 40px; }
  .pz.is-anim .pz-hand__row > .pz-card { grid-area: 1 / 1; }
  .pz.is-anim .pz-hand__foot { display: none; }
}

/* ==========================================================
   6 · EMBUDO
   ========================================================== */
.pz-funnel .pz-stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pz-funnel__copy { display: flex; flex-direction: column; gap: 22px; }
.pz-funnel__title { font-size: clamp(38px, 5.4vw, 88px); }
.pz-funnel__points { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pz-funnel__points li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: rgb(255 255 255 / .75); border: 1px solid #fff; box-shadow: 0 16px 34px -22px rgb(40 20 110 / .35); font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; }
.pz-funnel__points i { width: 26px; height: 26px; border-radius: 50%; background: var(--pz-violet); display: grid; place-items: center; flex: none; }
.pz-funnel__points i svg { width: 15px; height: 15px; }
.pz-fcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  height: min(660px, calc(100svh - var(--pz-top) - 110px)); min-height: 440px;
  border-radius: 34px; background: var(--pz-hero); color: #fff; padding: clamp(28px, 3.4vw, 52px);
  box-shadow: 0 50px 90px -40px rgb(76 52 190 / .7);
}
.pz-fcard__deco { position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .18); }
.pz-fcard__deco--2 { width: 260px; height: 260px; right: 40px; top: -40px; }
.pz-fcard__label { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.5vw, 21px); font-weight: 500; opacity: .92; }
.pz-fcard__label svg { width: 22px; height: 22px; }
.pz-fcard__big { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.pz-fcard__big b { font-size: clamp(72px, 9vw, 140px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pz-fcard__big span { font-size: clamp(15px, 1.5vw, 22px); font-weight: 700; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .22); }
.pz-fcard__note { font-size: clamp(15px, 1.4vw, 20px); opacity: .88; margin-top: 8px; }
.pz-bars { flex: 1; min-height: 150px; margin-top: 24px; display: flex; gap: clamp(8px, 1.4vw, 20px); align-items: stretch; }
.pz-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.pz-bar b { font-size: clamp(16px, 2vw, 30px); font-weight: 700; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pz-bar i { display: block; height: calc((100% - 70px) * var(--hf, 1)); border-radius: 14px 14px 8px 8px; background: rgb(255 255 255 / .28); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); transform-origin: bottom; }
.pz-bar:nth-child(n+4) i { background: rgb(255 255 255 / .44); }
.pz-bar span { font-size: clamp(10px, 1.05vw, 15px); line-height: 1.2; min-height: 2.4em; margin-top: 10px; opacity: .9; overflow-wrap: anywhere; }
.pz-funnel__fine { position: absolute; right: var(--pz-gutter); bottom: 22px; font-size: 13px; color: var(--pz-subtle); }
@media (max-width: 900px) {
  .pz-funnel .pz-stage { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: calc(var(--pz-top) + 28px); }
  .pz-funnel__copy { gap: 12px; }
  .pz-funnel__title { font-size: clamp(34px, 9vw, 52px); }
  .pz-fcard { height: max(330px, calc(100svh - var(--pz-top) - 330px)); min-height: 0; border-radius: 26px; }
  .pz-fcard__deco { display: none; }
  .pz-bar span { font-size: 10px; }
  .pz-bars { margin-top: 14px; }
  .pz.is-anim .pz-funnel__points { display: none; }
  .pz-funnel__fine { bottom: 10px; }
}

/* ==========================================================
   7 · PANEL
   ========================================================== */
.pz-panel .pz-stage { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.pz-panel__copy { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 44px); position: relative; z-index: 2; }
.pz-panel__title { font-size: clamp(36px, 4.6vw, 76px); }
.pz-panel__list { display: flex; flex-direction: column; gap: 10px; }
.pz-li { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 20px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; background: rgb(255 255 255 / .7); transition: none; }
.pz-li > i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.pz-shots { display: flex; flex-direction: column; gap: 56px; perspective: 2200px; }
.pz-shot { position: relative; width: 100%; }
.pz-shot__frame { display: block; width: 100%; aspect-ratio: var(--ar); border-radius: 22px; overflow: hidden; background: #f3f0ff; box-shadow: 0 60px 100px -40px rgb(40 20 110 / .55), 0 0 0 1px rgb(255 255 255 / .9); }
/* Las capturas traen 36 px de margen: se recortan. */
.pz-shot__frame img { display: block; width: calc(100% * 1280 / 1208); max-width: none; height: auto; margin: calc(-100% * 36 / 1208) 0 0 calc(-100% * 36 / 1208); }
.pz-tag { position: absolute; left: 6%; bottom: -20px; padding: 11px 18px; border-radius: 16px; background: #fff; box-shadow: var(--pz-shadow-pop); font-size: clamp(14px, 1.3vw, 18px); font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pz-tag i { width: 10px; height: 10px; border-radius: 50%; }

.pz.is-anim .pz-shots { position: relative; display: block; height: 100%; max-height: 760px; }
.pz.is-anim .pz-shot { position: absolute; left: 4%; right: 4%; top: 50%; transform-style: preserve-3d; will-change: transform, opacity; }
@media (max-width: 900px) {
  .pz-panel .pz-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-top: calc(var(--pz-top) + 24px); }
  .pz-panel__copy { gap: 16px; }
  .pz-panel__title { font-size: clamp(30px, 8vw, 44px); }
  .pz-li { padding: 9px 14px; font-size: 15px; gap: 12px; border-radius: 14px; }
  .pz-li > i { width: 34px; height: 34px; border-radius: 10px; }
  .pz-li > i svg { width: 20px; height: 20px; }
  .pz.is-anim .pz-panel__list { gap: 6px; }
  .pz.is-anim .pz-panel .pz-stage { grid-template-rows: auto minmax(0, 1fr); }
  .pz.is-anim .pz-panel__copy { order: 0; }
  .pz.is-anim .pz-shot { left: 0; right: 0; }
  .pz-tag { font-size: 13px; padding: 8px 12px; bottom: -14px; }
}

/* ==========================================================
   8 · CIERRE
   ========================================================== */
.pz-close { overflow: hidden; }
.pz-close__glow { position: absolute; left: 50%; top: 50%; width: 120vmin; height: 120vmin; margin: -60vmin 0 0 -60vmin; border-radius: 50%; background: radial-gradient(closest-side, rgb(122 92 255 / .35), rgb(63 198 232 / .12) 60%, transparent); animation: pzBreath 6s ease-in-out infinite; }
@keyframes pzBreath { 50% { transform: scale(1.05); } }
.pz-close .pz-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(18px, 3vh, 32px); }
.pz.is-anim .pz-close { height: auto; }
.pz.is-anim .pz-close .pz-stage { height: auto; min-height: 100svh; }
.pz-close__logo { display: flex; align-items: center; gap: 18px; }
.pz-close__tile { width: clamp(62px, 6vw, 100px); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; font-size: clamp(36px, 3.6vw, 60px); font-weight: 700; color: #fff; background: var(--pz-brand); box-shadow: 0 24px 50px -18px rgb(76 52 190 / .6); }
.pz-close__word { font-size: clamp(52px, 6.4vw, 104px); font-weight: 600; line-height: 1; }
.pz-close__word .pz-ia { color: var(--pz-violet); }
.pz-close__title { font-size: clamp(42px, 7vw, 108px); }
.pz-close__points { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; font-size: clamp(16px, 1.9vw, 26px); color: var(--pz-body); }
.pz-close__points li { display: flex; align-items: center; gap: 22px; }
.pz-close__points li + li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pz-violet-mid); }
.pz-close__cta { margin-top: clamp(8px, 2vh, 20px); }
.pz-close__fine { font-size: clamp(14px, 1.3vw, 17px); color: var(--pz-muted); }
@media (max-width: 700px) {
  .pz-close__points { flex-direction: column; }
  .pz-close__points li + li::before { display: none; }
}

/* ----- Formulario (componente del theme, con el acento de PolarIA) ----- */
.pz-form { --accent: #6b4dff; --accent-hover: #5436e6; --accent-soft: rgb(107 77 255 / .1); position: relative; }
.pz-form #formulario { padding-top: 0 !important; scroll-margin-top: 96px; }
.pz-form .pl-contact-form { margin-top: 0; background: rgb(255 255 255 / .82); border-color: #fff; box-shadow: var(--pz-shadow); font-family: var(--font-sans); }
@media (max-width: 900px) {
  .pz-form #formulario { padding-left: 16px !important; padding-right: 16px !important; }
  .pz-form .pl-contact-form { padding: 36px 22px; }
}
