/* ── PLATAFORMA ─────────────────────────────────────────────────────────────
   /product/the-platform · /es/producto/plataforma  (en claro, con el aura)

   El sistema de la home: titulares a dos tonos con la Forma DJR Banner,
   medios redondeados, filas con raya en vez de tarjetas y nada de iconos.
   La campaña se enseña paso a paso en un marco fijo.
   ──────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Regular-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Regular-Testing.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Medium-Testing.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Bold-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Bold-Testing.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Banner';
  src: url('/assets/fonts/FormaDJRBanner-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRBanner-Medium-Testing.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Tokens (los de home.css; la noche, la del globo) ── */
:root {
  --ink: #0a0a0a;
  --ink-2: #3c424e;
  --mute: #868c98;
  --mute-text: #5f6571;
  --line: rgba(10, 10, 10, 0.1);
  --line-2: rgba(10, 10, 10, 0.18);
  --paper: #fff;
  --soft: #f3f5f8;
  --blue: #2b5fd9;
  --blue-soft: #e8eefc;
  --night: #060b16;
  --night: oklch(0.135 0.025 252);
  --n-t1: rgba(255, 255, 255, 0.94);
  --n-t2: rgba(255, 255, 255, 0.7);
  --n-t3: rgba(255, 255, 255, 0.56);
  --n-mute: #7f8fb8;
  --n-line: rgba(255, 255, 255, 0.12);
  --bezel: #0c0e13;
  --gutter: clamp(16px, 4.4vw, 56px);
  --maxw: 1240px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Forma DJR Banner', 'Forma DJR Text', system-ui, sans-serif;
  --text: 'Forma DJR Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (min-width: 900px) { :root { --r-xl: 40px; --r-lg: 26px; --r-md: 20px; } }

/* ── Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* Sin fondo en html: así el de body llega al lienzo y el aura y las
   partículas (z-index -1) se pintan encima de él. */
html { overflow-x: clip; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; }
main img, main video { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.is-night :focus-visible, .in-launch-panel :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.a-skip {
  position: fixed; top: 12px; left: 12px; z-index: 4000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.a-skip:focus-visible { transform: none; outline-color: #fff; }
main > section { scroll-margin-top: 88px; }
.nw { white-space: nowrap; }

/* ── Piezas comunes ── */
.in-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.in-sec { padding-block: clamp(96px, 12vw, 176px); }
.in-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.15rem + 4.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.m { color: var(--mute); }
.is-night .m { color: var(--n-mute); }
.in-lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.in-lede a, .in-small a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.in-small { font-size: 0.875rem; line-height: 1.55; color: var(--mute-text); max-width: 60ch; }

.in-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  font-family: var(--text); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.in-btn:active { transform: scale(0.96); }
.in-btn-dark { background: var(--ink); color: #fff; }
.in-btn-light { background: #fff; color: var(--ink); }
.in-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36); }
@media (hover: hover) {
  .in-btn:hover { transform: translateY(-2px); }
  .in-btn:active { transform: scale(0.96); }
  .in-btn-dark:hover { background: #262a33; }
  .in-btn-light:hover { background: #eef1f6; }
  .in-btn-ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
}

/* Entrada suave, una vez, solo con JS (sin él todo se ve). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }


/* ════════════════════════════════════════════════════════════════════════
   6 · FAQ (el de la home)
   ════════════════════════════════════════════════════════════════════════ */
.h-faq-grid { display: grid; gap: clamp(32px, 4vw, 48px); }
.h-faq-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute; right: 6px; top: 50%;
  width: 14px; height: 1.6px; margin-top: -0.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq-item.is-closing summary::after { transform: rotate(90deg); opacity: 1; }
.faq-a { overflow: hidden; }
.faq-item summary:hover { color: var(--blue); }
.faq-item p { padding: 0 0 24px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.faq-item p a { color: var(--blue); text-underline-offset: 3px; }
.faq-q { font: inherit; margin: 0; letter-spacing: inherit; color: inherit; }
@media (min-width: 1024px) {
  .h-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 120px); }
  .h-faq-head { position: sticky; top: 112px; align-self: start; }
}

/* ════════════════════════════════════════════════════════════════════════
   7 · CIERRE (el panel azul de la home)
   ════════════════════════════════════════════════════════════════════════ */
.in-launch { padding: clamp(40px, 6vw, 96px) clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px); }
.in-launch-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  color: #fff;
  text-align: center;
  padding: clamp(88px, 12vw, 168px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 28px);
  background:
    url("/assets/images/home/launch-glow.svg") left center / 100% 100% no-repeat,
    linear-gradient(90deg, #1a62d8 0%, #1052cc 38%, #0c45c0 65%, #0a3ab2 100%);
}
@media (max-width: 767px) { .in-launch-panel { background-size: 62% 100%, auto; } }
.in-launch-panel::before,
.in-launch-panel::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.in-launch-panel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.in-launch-panel::after {
  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.in-launch-panel .in-display { color: #fff; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem); max-width: 16ch; }
.in-launch-panel p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 40ch; }
.in-launch-panel .in-fine { font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); max-width: 52ch; }
.in-launch-panel .in-fine a { color: #fff; text-underline-offset: 0.2em; }

/* ════════════════════════════════════════════════════════════════════════
   FOOTER (el de la home, sin cambios de diseño)
   ════════════════════════════════════════════════════════════════════════ */
#site-footer { position: relative; z-index: 1; background: #fff; color: #111; }
.ft-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.85) 22%, rgba(59, 130, 246, 0.55) 50%, rgba(37, 99, 235, 0.85) 78%, transparent 100%);
  background-size: 200% 100%;
  animation: ft-sep-shimmer 6s linear infinite;
}
@keyframes ft-sep-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ft-inner { max-width: 1100px; margin: 0 auto; padding: 64px 6% 48px; }
.ft-links-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 32px; margin-bottom: 52px; }
.ft-logo { height: 16px; opacity: 0.92; display: block; margin-bottom: 20px; }
.ft-tagline { font-size: 0.78rem; color: rgba(17, 17, 17, 0.52); line-height: 1.8; max-width: 220px; }
.ft-col-title { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(17, 17, 17, 0.38); margin-bottom: 18px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-links a { font-size: 0.82rem; color: rgba(17, 17, 17, 0.62); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; letter-spacing: -0.01em; }
.ft-links a:hover { color: #0c1442; }
.ft-socials { display: flex; gap: 8px; margin-top: 24px; }
.ft-social-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; color: rgba(17, 17, 17, 0.45); text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.ft-social-icon:hover { border-color: rgba(43, 95, 217, 0.35); color: #2b5fd9; background: rgba(43, 95, 217, 0.06); }
.ft-funding { display: flex; justify-content: center; padding: 8px 0 32px; }
.ft-funding img { max-width: 100%; width: 720px; height: auto; display: block; opacity: 0.92; }
.ft-tcf-badge { display: block; width: auto; height: 48px; margin-top: 18px; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, 0.08); flex-wrap: wrap; gap: 10px; }
.ft-copy, .ft-made { font-size: 0.71rem; color: rgba(17, 17, 17, 0.42); letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .ft-links-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ft-col:last-child { grid-column: span 3; }
}
@media (max-width: 640px) {
  .ft-inner { padding: 48px 5% 36px; }
  .ft-links-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ft-col-brand { grid-column: span 2; }
  .ft-col:last-child { grid-column: auto; }
  .ft-funding { padding: 4px 0 24px; }
  .ft-funding img { width: 100%; }
}
@media (max-width: 380px) {
  .ft-links-grid { gap: 24px 14px; }
  .ft-tagline { max-width: 100%; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ft-separator { animation: none; }
  .in-btn { transition: none; }
}


/* ── Aura de fondo: la de las páginas interiores (product, plataformas,
   recursos…), copiada tal cual. Un degradado azul pegado al perímetro, con el
   centro libre para que el texto nunca compita con el color; deriva sola y
   sube un poco al bajar por la página. ── */
body { position: relative; }
.bg-aura { position: absolute; inset: 0; height: 100%; z-index: -1; pointer-events: none; }
.bg-aura .aura-vp {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 54% 48% at 50% 46%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 54% 48% at 50% 46%, transparent 30%, #000 100%);
}
.bg-aura .aura-par { position: absolute; inset: 0; }
@supports (animation-timeline: scroll()) {
  .bg-aura .aura-par {
    animation: aura-parallax linear both; animation-timeline: scroll(root block); will-change: transform;
  }
}
@keyframes aura-parallax {
  from { transform: translate3d(0, 18%, 0); }
  to   { transform: translate3d(0, -18%, 0); }
}
.bg-aura span {
  position: absolute; inset: -28%; display: block; will-change: transform;
  /* Los mismos cinco degradados con blur(64px) saturate(118%), horneados en una
     imagen: el filtro en vivo sobre una capa de 1,5 pantallas que no para de
     moverse se recalculaba en cada fotograma (caro en móvil). Se ve igual. */
  background: url("/assets/images/aura/aura-desk.webp") center / 100% 100% no-repeat;
  animation: aura-drift 68s var(--ease-wander) infinite alternate;
}
@keyframes aura-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.6%, -2.2%, 0) scale(1.07); }
  100% { transform: translate3d(-2.2%, 2.6%, 0) scale(1.03); }
}
@media (max-width: 900px) {
  .bg-aura .aura-vp { -webkit-mask-image: radial-gradient(ellipse 62% 44% at 50% 46%, transparent 26%, #000 100%);
                              mask-image: radial-gradient(ellipse 62% 44% at 50% 46%, transparent 26%, #000 100%); }
  .bg-aura span { background-image: url("/assets/images/aura/aura-mob.webp"); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-aura span { animation: none; }
  .bg-aura .aura-par { animation: none; transform: none; }
}


/* ── Fondo de cada página ── */
body.pf-page { background: #f4f8fb; }
.is-light { color: var(--ink); }
.is-light .in-display { color: var(--ink); }
.is-light .in-lede { color: var(--ink-2); }
.is-light .in-small { color: var(--mute-text); }
.is-light :focus-visible { outline-color: var(--blue); }

.in-kicker { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--mute-text); }
.is-night .in-kicker { color: var(--n-t3); }
.in-head { display: grid; gap: 24px; }
@media (min-width: 1024px) { .in-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.in-head .in-display { margin-top: 14px; }

/* Filas con raya: número, título grande y texto. */
.in-rows { list-style: none; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.in-rows li { display: grid; gap: 8px 32px; padding: clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .in-rows li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.in-rows strong { font: 500 clamp(1.5rem, 1.15rem + 1vw, 2.125rem)/1.06 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.in-rows strong small { display: block; margin-top: 6px; font: 600 0.875rem/1.3 var(--text); letter-spacing: 0; color: var(--blue); }
.in-rows span { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
.in-rows a { color: inherit; text-decoration: underline; text-decoration-color: rgba(10, 10, 10, 0.3); text-underline-offset: 0.22em; }

/* Datos clave con raya arriba (los de About). */
.in-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); }
.in-keys div { padding: 16px 0 20px; border-top: 1px solid var(--line-2); }
.in-keys dt { font-size: 0.875rem; font-weight: 600; color: var(--mute-text); }
.in-keys dd { margin-top: 6px; font: 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem)/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.in-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ════════════════════════════════════════════════════════════════════════
   PLATAFORMA · portada
   ════════════════════════════════════════════════════════════════════════ */
.pf-hero { padding: clamp(136px, 12vw, 176px) 0 clamp(72px, 8vw, 120px); }
.pf-hero h1 {
  margin-top: 18px;
  font: 500 clamp(2.625rem, 1.2rem + 4.2vw, 5.25rem)/0.99 var(--display);
  letter-spacing: -0.02em;
  max-width: 17ch;
  text-wrap: balance;
}
.pf-hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); margin-top: clamp(40px, 4.6vw, 64px); }
@media (min-width: 900px) { .pf-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.pf-hero #ctv-answer { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ════════════════════════════════════════════════════════════════════════
   PLATAFORMA · la campaña paso a paso
   A la izquierda se lee cada paso; a la derecha, un marco fijo que enseña
   ese paso. El scroll es libre: el paso activo es el que cruza el centro.
   En móvil cada panel se coloca debajo de su paso (inside.js).
   ════════════════════════════════════════════════════════════════════════ */
.pf-build { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) { .pf-build { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); } }
.pf-steps { list-style: none; }
.pf-step { padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--line); transition: opacity 0.4s ease; }
@media (min-width: 1024px) {
  .pf-step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; border-top: 0; }
  html.js .pf-step { opacity: 0.32; }
  html.js .pf-step.is-on { opacity: 1; }
}
.pf-n { display: block; font-size: 0.875rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.pf-step h3 { margin-top: 12px; font: 500 clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem)/1.02 var(--display); letter-spacing: -0.016em; }
.pf-step > p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.pf-under {
  margin-top: 18px; padding: 14px 16px;
  border-radius: 14px;
  background: var(--blue-soft);
  font-size: 0.9375rem; line-height: 1.55; color: #213a7a;
  max-width: 46ch;
}
.pf-under b { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.pf-under a { color: inherit; text-underline-offset: 0.2em; }
.pf-step .pf-panel { margin-top: 22px; }

.pf-stage { display: none; }
@media (min-width: 1024px) {
  .pf-stage { display: block; }
  .pf-frame { position: sticky; top: calc(50svh - 290px); }
}
/* El marco: una ventana del dashboard, blanca, con su barra de pasos. */
.pf-frame {
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgba(12, 20, 66, 0.45), 0 12px 24px -16px rgba(12, 20, 66, 0.2);
  overflow: hidden;
}
.pf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pf-bar-t { font-weight: 600; font-size: 0.9375rem; }
.pf-tag { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 0.75rem; font-weight: 600; color: var(--mute-text); }
.pf-prog { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 22px 0; }
.pf-prog li { height: 4px; border-radius: 4px; background: var(--soft); transition: background-color 0.4s ease; }
.pf-prog li.is-done { background: var(--blue); }
.pf-panels { position: relative; height: 470px; }
.pf-panels .pf-panel { position: absolute; inset: 0; padding: 26px 26px 28px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.45s; }
.pf-panels .pf-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out); }

/* Paneles (en el marco o, en móvil, debajo de su paso). */
.pf-step .pf-panel { padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgba(12, 20, 66, 0.4); }
.pf-p-h { font: 500 1.375rem/1.1 var(--display); letter-spacing: -0.01em; }
.pf-p-s { margin-top: 4px; font-size: 0.875rem; color: var(--mute-text); }
.pf-lab { display: block; margin-top: 20px; font-size: 0.8125rem; font-weight: 600; color: var(--mute-text); }
.pf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.pf-tile { padding: 18px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 0.9375rem; text-align: center; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.pf-tile.is-sel { background: var(--ink); color: #fff; box-shadow: none; }
.pf-seg { display: inline-grid; grid-auto-flow: column; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--soft); }
.pf-seg span { padding: 8px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--mute-text); }
.pf-seg span.is-sel { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(12, 20, 66, 0.12); }
.pf-field { margin-top: 8px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; font-variant-numeric: tabular-nums; }
.pf-big { font: 500 2.25rem/1 var(--display); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.pf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); font-size: 0.875rem; color: #213a7a; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-chips span { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.pf-chips span.is-sel { background: var(--ink); color: #fff; box-shadow: none; }
.pf-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 8px; }
.pf-hours i { height: 22px; border-radius: 3px; background: var(--soft); }
.pf-hours i.is-sel { background: var(--blue); }
.pf-hours-l { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.6875rem; color: var(--mute-text); font-variant-numeric: tabular-nums; }
.pf-list { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.pf-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.pf-list img, .pf-list .pf-sq { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.pf-list .pf-sq { background: linear-gradient(135deg, #2b5fd9, #0c1442); }
.pf-list b { display: block; font-weight: 600; }
.pf-list small { display: block; font-size: 0.8125rem; color: var(--mute-text); }
.pf-share { width: 96px; height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; justify-self: end; }
.pf-share i { display: block; height: 100%; background: var(--blue); width: var(--w); transform-origin: 0 50%; }
.pf-panel.is-on .pf-share i { animation: pf-grow 0.9s var(--ease-out) both; }
@keyframes pf-grow { from { transform: scaleX(0); } }
.pf-right { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-ok { color: #157347; font-weight: 600; font-size: 0.8125rem; }
.pf-wait { color: #9a6700; font-weight: 600; font-size: 0.8125rem; }
.pf-thumb { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 180px; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(8, 9, 13, 0.6); color: #fff; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-sum { margin-top: 18px; border-top: 1px solid var(--line); }
.pf-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pf-sum div b { color: var(--ink); font-weight: 600; }
.pf-sum .pf-total { border-bottom: 0; font-size: 1.125rem; color: var(--ink); }
.pf-sum .pf-total b { font: 500 1.75rem/1 var(--display); }
.pf-go { display: inline-flex; margin-top: 14px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9375rem; }
.pf-chart { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 4px; height: 150px; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.pf-chart i { display: block; border-radius: 3px 3px 0 0; background: linear-gradient(to top, #2b5fd9, #7aa0ff); height: var(--h); transform-origin: 50% 100%; }
.pf-panel.is-on .pf-chart i { animation: pf-rise 0.8s var(--ease-out) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes pf-rise { from { transform: scaleY(0); } }
.pf-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-labels span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 0.8125rem; font-weight: 600; }
.pf-labels span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ════════════════════════════════════════════════════════════════════════
   PLATAFORMA · directo o programático
   ════════════════════════════════════════════════════════════════════════ */
.pf-modes { display: grid; gap: clamp(28px, 3vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .pf-modes { grid-template-columns: 1fr 1fr; } }
.pf-mode { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pf-mode.is-dark { background: var(--night); color: var(--n-t1); box-shadow: none; }
.pf-mode .in-kicker { color: var(--blue); }
.pf-mode.is-dark .in-kicker { color: #8fb0ff; }
.pf-mode h3 { margin-top: 10px; font: 500 clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem)/1.02 var(--display); letter-spacing: -0.014em; }
.pf-mode > p { margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.pf-mode.is-dark > p { color: var(--n-t2); }
.pf-mode ol { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); counter-reset: m; }
.pf-mode.is-dark ol { border-top-color: var(--n-line); }
.pf-mode ol li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.pf-mode.is-dark ol li { border-bottom-color: var(--n-line); color: var(--n-t2); }
.pf-mode ol li::before { content: counter(m, decimal-leading-zero); font-size: 0.8125rem; font-weight: 600; color: var(--mute-text); padding-top: 2px; font-variant-numeric: tabular-nums; }
.pf-mode.is-dark ol li::before { color: var(--n-t3); }
.pf-mode .pf-res { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-2); }
.pf-mode.is-dark .pf-res { color: var(--n-t2); }
.pf-mode .pf-res b { color: inherit; font-weight: 700; }
.pf-mode.is-dark a { color: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   PLATAFORMA · portada: la campaña en capas, en 3D
   Cuatro pantallas del panel apiladas en perspectiva (objetivo, presupuesto,
   audiencia y resumen). Flotan despacio; con el ratón la pila gira un poco
   y las capas se separan. Decorativo: el texto de al lado lo cuenta todo.
   ════════════════════════════════════════════════════════════════════════ */
.pf-hero-main { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .pf-hero-main { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.pf-hero-main h1 { max-width: 14ch; }
.pf-hero .in-keys { margin-top: clamp(36px, 4vw, 52px); }
.pf-stack {
  --rx: 50deg; --rz: -32deg; --gap: 56px;
  position: relative;
  height: clamp(380px, 46vw, 560px);
  perspective: 1800px;
  perspective-origin: 50% 30%;
}
.pf-stack-in {
  position: absolute; left: 50%;
  /* Con la inclinación, el centro visual de las cuatro capas queda por encima
     del centro de la caja, y más cuanto más pequeñas son las tarjetas (el
     abanico es de píxeles fijos). Medido a 1024, 1200 y 1440 px: 43, 35 y
     30 px. Esa recta baja la pila lo justo para que quede centrada de verdad. */
  --w: clamp(250px, 25vw, 330px);
  width: var(--w); aspect-ratio: 5 / 6;
  top: calc(50% + 87px - 0.18 * var(--w));
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform 0.9s var(--ease-out);
}
.pf-card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* En abanico: cada capa sube y se aparta un poco, para que se vea algo
     de todas y no solo el canto. */
  transform: translate3d(calc((var(--i) - 1.5) * 30px), calc((var(--i) - 1.5) * -56px), calc(var(--i) * var(--gap)));
  transition: transform 0.9s var(--ease-out);
}
/* La flotación va en la capa de dentro: así la separación (--gap) puede
   animarse sola al pasar el ratón sin pelearse con la flotación. */
.pf-card-in {
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 20, 66, 0.08), 0 30px 60px -30px rgba(12, 20, 66, 0.45), inset 0 1px 0 #fff;
  background: linear-gradient(160deg, #ffffff 55%, #f1f5ff);
  font-size: 12px;
  overflow: hidden;
  animation: pf-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.2s);
}
@keyframes pf-float {
  0%, 100% { transform: translateZ(0); }
  50% { transform: translateZ(12px); }
}
.pf-stack:hover { --gap: 84px; }
.pf-stack::after {
  /* La sombra de la pila en el suelo. */
  content: '';
  position: absolute; left: 50%; top: 62%;
  width: 60%; height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(12, 20, 66, 0.28), transparent);
  filter: blur(18px);
  z-index: -1;
}
.pf-card .pf-ct { font: 500 15px/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.pf-card .pf-cs { margin-top: 2px; font-size: 11px; color: var(--mute-text); }
.pf-card .pf-tiles { gap: 6px; margin-top: 12px; }
.pf-card .pf-tile { padding: 10px 6px; border-radius: 10px; font-size: 11px; }
.pf-card .pf-chips span { padding: 4px 9px; font-size: 10.5px; }
.pf-card .pf-hours { gap: 2px; }
.pf-card .pf-hours i { height: 16px; border-radius: 2px; }
.pf-card .pf-lab { margin-top: 12px; font-size: 10.5px; }
.pf-card .pf-big { font-size: 26px; }
.pf-card .pf-field { padding: 9px 12px; border-radius: 9px; font-size: 12px; }
.pf-card .pf-sum { margin-top: 10px; }
.pf-card .pf-sum div { padding: 8px 0; font-size: 12px; }
.pf-card .pf-sum .pf-total b { font-size: 22px; }
.pf-card .pf-go { margin-top: 10px; padding: 9px 16px; font-size: 12px; }
@media (max-width: 1023px) { .pf-stack { height: 420px; margin-top: -8px; } }
@media (prefers-reduced-motion: reduce) {
  .pf-card-in { animation: none; }
  .pf-stack-in, .pf-card { transition: none; }
}
.pf-hero-main h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.5rem); }
.pf-hero-main #ctv-answer { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 1023px) {
  .pf-stack { overflow: clip; height: 400px; margin-inline: calc(-1 * var(--gutter)); }
  .pf-stack-in { --w: 210px; top: calc(50% + 34px); }
  .pf-stack { --gap: 44px; }
}

/* La pila, centrada en vertical con el bloque del titular. */
@media (min-width: 1024px) {
  .pf-hero-main { align-items: center; }
  .pf-stack { margin-top: 0; }
}

