/* CatMedia — portada (diseño aprobado "Pautas Digitales"). Generado por _tools/build-home-pautas.py; no editar a mano. */
:where(.nav) a { color: inherit; text-decoration: none; }
.nav__cta { margin-left: auto; }
.nav a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
:where(.ft__contact) a.ft__sel { color: inherit; text-decoration: none; }

/* Layout: escenario fijado (pin) con dos capas de texto y una capa de tarjetas que viaja entre ellas. */
@font-face { font-family: "Inter"; src: url(fonts/inter.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Gazpacho"; src: url(fonts/gazpacho-italic-heavy.woff) format("woff"); font-style: italic; font-weight: 800; font-display: swap; }
@font-face { font-family: "Gazpacho"; src: url(fonts/gazpacho-italic-regular.woff) format("woff"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  /* Tokens tomados del tema catmedia-custom */
  --navy: #080a2b;
  --text: #17182d;
  --muted: #5d6275;
  --purple: #5a45e7;
  --lavender: #6f7cf2;
  --lavender-soft: #c9cdfc;
  --yellow: #ffe836;
  --yellow-edge: #e0b400;
  --paper: #f3f4f8;
  --white: #ffffff;
  --line: rgba(23, 24, 45, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Gazpacho", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--text); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* ---------- Barra superior (igual al diseño) ---------- */
.nav {
  position: fixed; z-index: 50;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 26px;
  border-radius: 999px;
  background: rgba(8, 10, 43, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white);
}
.nav__logo img { display: block; width: 150px; height: auto; }
.nav__links { margin-left: auto; display: flex; gap: 22px; font-size: 13px; color: rgba(255,255,255,.78); }
.nav__cta {
  white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #dfe2ff; color: var(--navy); box-shadow: 0 0 0 3px rgba(111,124,242,.55);
}

/* ---------- Escenario animado ---------- */
.pin { position: relative; height: 290vh; }
.stage {
  position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden;
  background:
    radial-gradient(55% 75% at 92% 30%, var(--lavender-soft) 0%, rgba(201,205,252,0) 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(201,205,252,.55) 0%, rgba(201,205,252,0) 70%),
    linear-gradient(180deg, #eef0fb 0%, var(--paper) 100%);
}
.stage__inner {
  position: absolute; inset: 0;
  max-width: 1180px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.layer {
  position: absolute; top: 0; bottom: 0;
  left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.layer > * { pointer-events: auto; }
.layer--hero {
  padding-top: 90px; padding-bottom: 24px; justify-content: center; gap: 0;
  align-items: center; text-align: center;
}
.hero__top, .hero__bottom { display: flex; flex-direction: column; align-items: center; }
.hero__space { flex: 0 0 auto; height: clamp(280px, 46vh, 420px); margin-block: 18px 22px; pointer-events: none; }
.layer--hero .chip, .layer--hero .btn { align-self: center; }
.layer--vis { padding-top: 64px; padding-bottom: 12vh; max-width: 600px; gap: 0; }

.chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--white); font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(23,24,45,.06);
}
.chip__num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: #d0d7ff; border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 3px 6px rgba(103,113,179,.2);
  color: #6f7cf2; font-size: 11px; font-weight: 500;
}

.hero__title {
  margin: 16px 0 0; font-weight: 600; max-width: 22ch;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

.btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--yellow); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 0 0 3px rgba(224,180,0,.35), 0 10px 24px rgba(255,232,54,.35);
  transition: transform .2s ease;
}
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.75) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-3px) scale(1.02); background: #ffef5c; box-shadow: 0 0 0 4px rgba(224,180,0,.4), 0 16px 34px rgba(255,214,0,.45); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn:hover .btn__icon { transform: rotate(-12deg) scale(1.12); background: var(--navy); }
.btn:hover .btn__icon img { animation: mochiWiggle .6s ease; }
@keyframes mochiWiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } }
.btn__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #8a6a00; transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .3s ease; }
.btn__icon img { width: 15px; height: auto; }

.vis__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.vis__title {
  margin: 0; font-weight: 600; width: fit-content; max-width: 100%;
  font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance;
}
.vis__title em, .hero__title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.vis__text { margin: 0 0 26px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 560px; text-wrap: pretty; margin-bottom: 18px; }

.stats { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 560px; }
.stat { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 44px; white-space: nowrap; line-height: 1; color: var(--lavender); font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .6em; }
.stat__label { font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* ---------- Tarjetas ---------- */
.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; left: 0; top: 0;
  width: var(--cw, 180px); aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(23,24,45,.18), 0 2px 6px rgba(23,24,45,.08);
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  font-size: 11px; line-height: 1.25; opacity: 0;
}
.card__cap b { font-weight: 600; font-size: 12px; }
.card__cap span { color: var(--muted); }

.tag {
  position: absolute; left: 0; top: 0; z-index: 5;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--white); box-shadow: 0 8px 18px rgba(23,24,45,.18);
}
.tag::after { content: ""; position: absolute; left: 14px; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.tag--meta { background: #1f6fe5; }
.tag--google { background: #1aa260; }
.tag--tiktok { background: #17182d; }
.tag--linkedin { background: #0a66c2; }



/* Cifras con brillo en bucle */
.stat__num {
  padding-right: .12em; overflow: visible;
  background: linear-gradient(100deg, var(--lavender) 0%, var(--lavender) 38%, #ffffff 50%, var(--lavender) 62%, var(--lavender) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: statShine 3.6s ease-in-out infinite, statGlow 3.6s ease-in-out infinite;
}
.stat:nth-child(2) .stat__num { animation-delay: .5s, .5s; }
.stat:nth-child(3) .stat__num { animation-delay: 1s, 1s; }
@keyframes statShine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }
@keyframes statGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(111,124,242,0)); } 50% { filter: drop-shadow(0 0 10px rgba(111,124,242,.55)); } }
@media (prefers-reduced-motion: reduce) { .stat__num { animation: none; } }

/* ---------- Beneficios ---------- */
.benefits {
  position: relative; z-index: 3; margin-top: -14vh;
  background: var(--paper); color: var(--text);
  padding-block: 96px 96px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.benefits__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.benefits__head { display: flex; }
.benefits__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.chip--onblue { color: var(--text); }
.benefits__title { margin: 0; font-weight: 600; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.benefits__title em { font-family: var(--serif); font-style: italic; font-weight: 800; letter-spacing: -.01em; color: var(--lavender); }
.benefits__intro { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 56ch; text-wrap: pretty; }

.benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 44px 22px 28px; border-radius: 18px; color: var(--white);
  background: radial-gradient(90% 60% at 100% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 60%), linear-gradient(160deg, var(--b1) 0%, var(--b2) 100%);
  box-shadow: 0 18px 40px rgba(60,50,180,.22);
  transition: transform .35s ease, box-shadow .35s ease;
}
.benefit:nth-child(1) { --b1: #8e98ee; --b2: #6f7cf2; }
.benefit:nth-child(2) { --b1: #7a6af0; --b2: #5a45e7; }
.benefit:nth-child(3) { --b1: #5a45e7; --b2: #3d2fc4; }
.benefit:nth-child(4) { --b1: #3d2fc4; --b2: #2a1f8f; }
.benefit { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
@media (hover: hover) { .benefit:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 28px 54px rgba(60,50,180,.36); } }
@media (hover: hover) { .benefit:hover .benefit__paw { animation: pawHop .5s cubic-bezier(.3,1.6,.5,1); } }
@keyframes pawHop { 0% { transform: translateY(0); } 40% { transform: translateY(-7px) rotate(-10deg); } 100% { transform: translateY(0); } }
.benefit__paw {
  position: absolute; top: -16px; left: 50%; translate: -50% 0;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #ffd23f; border: 2px solid #fff3b0; color: #9a6a00;
  box-shadow: 0 6px 14px rgba(36,40,120,.25);
}
.benefit__num { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(64px, 6.4vw, 92px); line-height: .95; letter-spacing: -.02em; margin-bottom: 18px; }
.benefit__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.benefit__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); }

/* Entrada al aparecer (solo si hay JS y movimiento permitido) */
.anim .benefits__titles, .anim .benefits__intro { opacity: 0; transform: translateY(28px); }
.anim .is-in .benefits__titles, .anim .is-in .benefits__intro { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.anim .is-in .benefits__intro { transition-delay: .12s; }
/* Las tarjetas se revelan con el scroll (anim.js usa las propiedades translate/scale/opacity) */
.benefit { backface-visibility: hidden; }


@media (max-width: 1000px) {
  .benefits__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 560px) {
  .benefits { padding-block: 64px 72px; margin-top: -8vh; border-radius: 28px 28px 0 0; }
  .benefits__inner { gap: 40px; }
  .benefits__scroller { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding: 34px 24px 24px; margin-top: -14px; scrollbar-width: none; }
  .benefits__scroller::-webkit-scrollbar { display: none; }
  .benefits__list { display: flex; gap: 14px; }
  .benefit { flex: 0 0 78%; scroll-snap-align: start; }
  .benefits__intro { font-size: 15px; }
}


/* ---------- Marcas ---------- */
.brands {
  background: var(--paper);
  padding-block: 64px 24px;
  overflow: hidden;
}
.brands__inner {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.brands__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brands__titles { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brands__title { margin: 0; font-weight: 600; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.brands__title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.brands__sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 58ch; }
.brands__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.brands__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.brands__arrow:hover { background: var(--navy); color: var(--white); }
.brands__arrow:active { transform: scale(.94); }
.brands__arrow:disabled { opacity: .35; cursor: default; background: var(--white); color: var(--text); }
.brands__arrow:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; }

.brands__viewport {
  margin-top: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.brands__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; will-change: transform; }
.brand { flex: 0 0 auto; display: grid; place-items: center; height: 72px; padding-inline: 34px; }
.brand img { width: auto; max-width: none; transition: transform .3s ease; }
.brand:hover img { transform: scale(1.06); }

/* Entrada */
.anim .brands .brands__nav, .anim .brands .brands__viewport { opacity: 0; transform: translateY(26px); }
.anim .brands.is-in .brands__nav { opacity: 1; transform: none; }
.anim .brands.is-in .brands__viewport { opacity: 1; transform: none; }
/* Cascada de palabras: cada palabra entra desenfocada, más clara y un poco abajo, y se asienta una tras otra */
.anim .brands .js-bw .w, .anim .brands .js-bs .w {
  opacity: 0; filter: blur(12px); transform: translateY(.45em);
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.anim .brands .js-bw .w { color: #b9bccb; }
.anim .brands.is-in .js-bw .w, .anim .brands.is-in .js-bs .w {
  opacity: 1; filter: blur(0); transform: none;
  transition:
    opacity 1s ease,
    filter 1.1s ease,
    transform 1.1s cubic-bezier(.2,.8,.2,1),
    color 1.2s ease;
  transition-delay: calc(var(--i) * 190ms);
}
.anim .brands.is-in .js-bw .w { color: var(--text); }
.anim .brands.is-in .js-bw em.w, .anim .brands.is-in .js-bw .w em { color: var(--lavender); }
.anim .brands.is-in .js-bs .w {
  transition-duration: .9s, 1s, 1s;
  transition-delay: calc(900ms + var(--i) * 75ms);
}
.anim .brands .brands__nav, .anim .brands .brands__viewport { transition: opacity .3s ease, transform .3s ease; }
.anim .brands.is-in .brands__nav { transition: opacity .9s ease .7s, transform .9s ease .7s; }
.anim .brands.is-in .brands__viewport { transition: opacity 1.4s ease .35s, transform 1.6s cubic-bezier(.2,.8,.2,1) .35s; }

@media (max-width: 760px) {
  .brands { padding-block: 52px 16px; }
  .brands__head { flex-direction: column; align-items: flex-start; }
  .brands__nav { display: none; }
  .brands__viewport { margin-top: 26px; }
  .brand { padding-inline: 22px; height: 56px; }
  .brand img { transform: scale(.78); }
  .brands__track--2 { margin-top: 6px; }
  .anim .brands.is-in .brands__viewport { transition: opacity .8s ease .2s, transform .9s cubic-bezier(.2,.8,.2,1) .2s; }
}


/* =========================================================
   HISTORIA: mensaje → despliegue → carpeta → miniaturas
   Escenario fijado de varias pantallas, todo ligado al scroll.
   ========================================================= */
.story { position: relative; height: 500vh; background: var(--paper); }
.st-stage { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; }

/* ---------- 1. Mensaje ---------- */
.st-msg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-top: 90px;
}
.st-msg__text {
  margin: 0; max-width: 21ch; text-align: center;
  font-weight: 600; font-size: clamp(30px, 3.9vw, 54px); line-height: 1.16; letter-spacing: -.03em;
  color: var(--text);
}
.st-msg__text .w { transition: none; }
.st-ic {
  display: inline-grid; place-items: center; vertical-align: -.08em;
  width: .9em; height: .9em; border-radius: .26em; margin-inline: .02em;
  color: var(--white);
}
.st-ic svg { width: 58%; height: 58%; }
.st-ic--y { background: #f5b800; }
.st-ic--p { background: var(--purple); }
.st-ic--b { background: #1f6fe5; }
.st-ic--g { background: #1aa260; }
.st-msg__dots { display: flex; gap: 10px; }
.st-msg__dots span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--text); box-shadow: 0 4px 12px rgba(23,24,45,.08);
}
.st-tag {
  position: absolute; left: 0; top: 0; z-index: 6;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(23,24,45,.16); will-change: transform, opacity;
}
.st-tag::after { content: ""; position: absolute; left: 16px; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.st-tag--dark { background: var(--navy); color: var(--white); }
.st-tag--blue { background: #1f6fe5; color: var(--white); }
.st-tag--yellow { background: var(--yellow); color: var(--text); }

/* ---------- Tarjetas que viajan ---------- */
.st-cards { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.st-card {
  position: absolute; left: 0; top: 0;
  width: var(--scw, 160px); aspect-ratio: 596 / 832;
  border-radius: 14px; overflow: hidden; background: var(--white);
  box-shadow: 0 16px 34px rgba(23,24,45,.16), 0 2px 6px rgba(23,24,45,.06);
  will-change: transform, opacity;
}
.st-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card--text { display: flex; }
.st-card__textin { display: flex; flex-direction: column; gap: 8px; padding: 14px; font-size: 11px; line-height: 1.35; }
.st-card__textin b { font-size: 15px; line-height: 1.15; letter-spacing: -.01em; }
.st-card__textin p { margin: auto 0 0; color: var(--muted); }
.st-card__meta { color: var(--muted); font-size: 10px; }
.st-card__badge { align-self: flex-end; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--yellow); }

/* ---------- 3. Carpeta + texto ---------- */
.st-folder { position: absolute; left: 0; top: 0; z-index: 3; will-change: transform, opacity; }
.st-folder__back, .st-folder__front {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-size: 15px; font-weight: 600;
}
.st-folder__back {
  top: -22px; height: 82px; align-items: flex-start; padding-top: 14px; border-radius: 14px 14px 0 0; background: var(--white); color: var(--text);
  box-shadow: 0 -2px 14px rgba(23,24,45,.05);
}
.st-folder__btn { font-size: 13px; padding: 7px 7px 7px 15px; gap: 8px; margin-top: -4px; }
.st-folder__btn .btn__icon { width: 24px; height: 24px; }
.st-folder__btn .btn__icon img { width: 13px; }
.st-folder__back > span { font-size: 17px; letter-spacing: -.01em; }
.st-folder { pointer-events: auto; }
.st-folder__front {
  top: 30px; height: 46px; width: 74%; right: auto;
  background: var(--navy); color: var(--white); border-radius: 12px 12px 0 0;
}
.st-folder__front::after {
  content: ""; position: absolute; left: 100%; bottom: 0; width: 60px; height: 30px;
  background: var(--navy); clip-path: path("M0 0 C24 0 28 30 60 30 L0 30 Z");
}
.st-folder__body {
  position: absolute; left: 0; right: 0; top: 76px; bottom: 0;
  background: var(--navy); border-radius: 0 14px 18px 18px;
  box-shadow: 0 24px 50px rgba(8,10,43,.22);
}

.st-vision {
  position: absolute; z-index: 2; top: 0; bottom: 0;
  left: max(24px, env(safe-area-inset-left, 0px), calc((100% - 1180px) / 2 + 24px));
  width: min(420px, 38vw);
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: 70px;
}
.st-vision__eye { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 12px rgba(23,24,45,.08); }
.st-vision__title { margin: 0; font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.st-vision__title span { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.st-vision__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.st-vision__more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.st-vision__more:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.st-bubbles { position: relative; height: 160px; margin-top: 14px; max-width: 260px; }
.st-bubble {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--text); box-shadow: 0 6px 16px rgba(23,24,45,.08);
  will-change: transform, opacity;
}
.st-bubble:nth-child(1) { left: 34%; top: 0; }
.st-bubble:nth-child(2) { left: 4%;  top: 44px; }
.st-bubble:nth-child(3) { left: 22%; top: 46px; }
.st-bubble:nth-child(4) { left: 54%; top: 56px; }
.st-bubble:nth-child(5) { left: 76%; top: 34px; }
.st-bubble:nth-child(6) { left: 10%; top: 100px; }
.st-bubble:nth-child(7) { left: 32%; top: 102px; }
.st-bubble:nth-child(8) { left: 64%; top: 108px; }

/* ---------- 4. Miniaturas ---------- */
.st-among {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-top: 40px;
}
.st-among__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); }
.st-among__title { margin: 0; max-width: 16ch; font-weight: 600; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.st-among__text { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.st-thumbs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.st-th {
  position: absolute; left: 0; top: 0; width: var(--tw, 64px); height: var(--tw, 64px);
  will-change: transform, opacity;
}
.st-th__in {
  display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 16px; background: var(--white);
  box-shadow: 0 10px 22px rgba(23,24,45,.14);
  animation: stFloat 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s);
}
.st-th--photo img { width: 100%; height: 100%; object-fit: cover; }
.st-th--mascot .st-th__in { background: var(--bg); }
.st-th--mascot img { width: 82%; height: 82%; object-fit: contain; }
.st-th--logo { width: calc(var(--tw, 64px) * 1.55); }
.st-th--plat { width: calc(var(--tw, 64px) * 1.9); height: calc(var(--tw, 64px) * .82); }
.st-th--plat .st-th__in { border-radius: 14px; }
.st-th--plat img { width: 76%; height: 46%; object-fit: contain; }
.st-th--logo img { width: 80%; height: 64%; object-fit: contain; }
@keyframes stFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (prefers-reduced-motion: reduce) { .st-th__in { animation: none; } }

@media (max-width: 760px) {
  .story { height: 490vh; }
  .st-msg { padding-top: 270px; justify-content: flex-start; gap: 22px; }
  .st-msg__text { font-size: 28px; max-width: 18ch; }
  .st-vision { width: auto; right: max(24px, env(safe-area-inset-right, 0px)); justify-content: flex-start; padding-top: 92px; gap: 10px; }
  .st-vision__title { font-size: 26px; }
  .st-vision__text { font-size: 13.5px; }
  .st-vision__more { display: none; }
  .st-bubbles { display: none; }
  .st-folder__back, .st-folder__front { font-size: 13px; padding: 0 12px; }
  .st-folder__btn { font-size: 11px; padding: 5px 5px 5px 11px; }
  .st-folder__btn .btn__icon { width: 20px; height: 20px; }
  .st-folder__back > span { font-size: 14px; }
  .st-among__title { font-size: 32px; }
  .st-among__text { font-size: 14px; }
  .st-tag { font-size: 11px; padding: 5px 10px; }
}

/* Mensaje: CatMedia destacado */
.st-msg__text em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--purple); letter-spacing: -.01em; }

/* Tarjetas de plataformas: la imagen ya trae su marco */
.st-card--art { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 14px 22px rgba(23,24,45,.18)); }
.st-card--art img { object-fit: contain; }
.st-card--art { aspect-ratio: 596 / 832; }

/* Tarjeta de vidrio */
.st-glass {
  position: absolute; left: 0; top: 0; z-index: 4; width: var(--gw, 160px); height: var(--gh, 220px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px;
  border-radius: 16px; overflow: hidden; color: var(--white);
  background:
    radial-gradient(70% 55% at 20% 15%, rgba(201,205,252,.55) 0%, rgba(201,205,252,0) 70%),
    radial-gradient(60% 50% at 90% 85%, rgba(255,232,54,.35) 0%, rgba(255,232,54,0) 70%),
    linear-gradient(160deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 100%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 36px rgba(8,10,43,.3);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; will-change: transform, opacity;
}
.st-glass { container-type: inline-size; }
.st-glass b { font-size: clamp(11px, 13cqi, 24px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.st-glass b em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--yellow); letter-spacing: -.01em; }
.st-glass__cat { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #8a6a00; box-shadow: 0 0 0 4px rgba(255,232,54,.35); margin-bottom: 6px; }
.st-glass__cat img { width: 22px; height: auto; }
.st-glass__dots { position: absolute; top: 16px; left: 16px; display: flex; gap: 5px; }
.st-glass__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.85); }
.st-glass__dots i:nth-child(1) { background: #1ed760; } .st-glass__dots i:nth-child(2) { background: #ff0050; }
.st-glass__dots i:nth-child(3) { background: #ff4f6d; } .st-glass__dots i:nth-child(4) { background: #0a66c2; }
.st-glass__dots i:nth-child(5) { background: #fbbc05; }
.st-glass__plus { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); font-size: 18px; line-height: 1; }
@media (max-width: 760px) { .st-glass { padding: 10px; gap: 4px; } .st-glass b { font-size: clamp(10px, 13cqi, 14px); } .st-glass__cat { width: 30px; height: 30px; } .st-glass__cat img { width: 16px; } .st-glass__plus { width: 22px; height: 22px; font-size: 14px; } }

.st-vision__btn { align-self: flex-start; margin-top: 8px; }
.st-vision__title span { display: inline; }

.st-card--art { pointer-events: auto; cursor: pointer; }
.st-card--art:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 16px; }
/* brillo que recorre la tarjeta de vidrio */
.st-glass::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%);
  transform: translateX(-60%); animation: stShine 4.5s ease-in-out infinite;
}
@keyframes stShine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .st-glass::after { animation: none; display: none; } }

.st-among__title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
/* Interacción con el mouse en los logos */
.st-th { pointer-events: auto; }
.st-th__in { transition: scale .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s ease; }
.st-th:hover { z-index: 5; }
.st-th:hover .st-th__in { scale: 1.12; box-shadow: 0 16px 30px rgba(23,24,45,.2); animation-play-state: paused; }

@media (max-width: 760px) {
  .st-vision { padding-top: 84px; gap: 8px; }
  .st-vision__title { font-size: clamp(22px, 7vw, 26px); }
  .st-vision__text { font-size: 13px; line-height: 1.45; }
  .st-vision__btn { font-size: 14px; padding: 8px 8px 8px 16px; white-space: nowrap; }
  .st-folder__front { top: 0; height: 44px; font-size: 12px; }
  .st-folder__body { top: 40px; }
}


/* ---------- Panel personalizado ---------- */
.panel { background: var(--paper); padding-block: 96px 100px; overflow: hidden; }
.panel__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(250px, 380px) minmax(0, 1fr); gap: 40px; align-items: center;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.panel__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.panel__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.panel__eyebrow b { color: var(--lavender); font-weight: 600; }
.panel__title { margin: 0; font-weight: 600; font-size: clamp(26px, 2.25vw, 32px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.panel__title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.panel__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.panel__cta {
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--purple); color: var(--white); box-shadow: 0 10px 22px rgba(90,69,231,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.panel__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(90,69,231,.38); }
.panel__cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.panel__arrows { display: flex; gap: 8px; margin-top: 18px; }

.panel__scroller {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 10px 2px 16px; margin: -10px -2px -16px;
}
.panel__scroller::-webkit-scrollbar { display: none; }
.panel__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.pcard { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcard h3 { margin: 0; font-size: 15px; font-weight: 600; }
.pcard__visual {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 14px 30px rgba(23,24,45,.12);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.pcard:hover .pcard__visual { transform: translateY(-6px); }
.pcard__visual--navy { background: radial-gradient(80% 70% at 100% 0%, #3227a8 0%, var(--navy) 70%); color: var(--white); }

.pcard__visual--yellow { background: linear-gradient(160deg, #fff3a0 0%, #ffd23f 100%); color: var(--text); }
.pcard__visual--light { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.pcard__visual--green { background: radial-gradient(80% 70% at 100% 0%, #8e98ee 0%, rgba(142,152,238,0) 60%), linear-gradient(160deg, #5a45e7 0%, #3227a8 100%); color: var(--white); }
.pcard__visual--green .pv-kpi i { color: var(--yellow); }

.pv-kpi { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.pv-kpi span { grid-column: 1 / -1; font-size: 12px; opacity: .75; }
.pv-kpi b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pv-kpi i { font-style: normal; font-size: 12px; font-weight: 600; color: #a9f5c9; font-variant-numeric: tabular-nums; }
.pv-kpi--big b { font-size: 42px; }
.pv-head { display: flex; flex-direction: column; gap: 1px; }
.pv-head span { font-size: 11px; color: var(--muted); }
.pv-head b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-head--dark span { color: rgba(23,24,45,.6); }
.pv-head--sm { margin-top: 2px; }

/* 1. Alcance */
.pv-linewrap { position: relative; flex: 1; min-height: 0; }
.pv-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-clip { transform-box: fill-box; transform-origin: left; transform: scaleX(var(--draw, 1)); }
.pv-cat {
  position: absolute; left: calc(var(--draw, 1) * 100%); top: calc(var(--cy, 15.5) * 1%);
  translate: -50% -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,232,54,.25), 0 6px 14px rgba(0,0,0,.3);
}
.pv-cat img { width: 17px; height: auto; filter: brightness(0) saturate(100%) invert(9%) sepia(37%) saturate(3500%) hue-rotate(232deg) brightness(70%); }
.pv-days { display: flex; justify-content: space-between; font-size: 10px; opacity: .6; }

/* 2. Medición de rendimiento */
.pv-donut { flex: 1; display: grid; grid-template-columns: 44% 1fr; gap: 10px; align-items: center; min-height: 0; }
.pv-donut__ring { position: relative; }
.pv-donut__ring svg { width: 100%; display: block; }
.pv-donut__ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pv-donut__ring b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-donut__ring span { font-size: 8.5px; color: var(--muted); line-height: 1.2; }

.pv-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; min-width: 0; }
.pv-legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 9.5px; }
.pv-legend li i { width: 8px; height: 8px; border-radius: 50%; }
.pv-legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pv-legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* 3. Anuncios */
.pv-ads { display: grid; gap: 7px; }
.pv-ad { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 9px; padding: 6px; border-radius: 11px; background: rgba(255,255,255,.8); box-shadow: 0 4px 10px rgba(120,90,0,.08); }
.pv-ad__img { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--c); overflow: hidden; }
.pv-ad__img img { width: 86%; height: 86%; object-fit: contain; }
.pv-ad__img em { position: absolute; left: 3px; top: 3px; font-style: normal; font-size: 7px; font-weight: 700; padding: 1px 3px; border-radius: 3px; background: rgba(23,24,45,.75); color: var(--white); }
.pv-ad b { display: block; font-size: 12px; font-weight: 600; }
.pv-ad div span { font-size: 10px; color: var(--muted); }
.pv-ad > i { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: #d4f5e2; color: #0e7a47; }

/* 4. Edad y género */
.pv-age { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; align-items: end; min-height: 0; }
.pv-age div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.pv-age b { font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-age i { width: 100%; height: calc(var(--v) * .78 * var(--grow, 1)); min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8e98ee, #5a45e7); }
.pv-age div:nth-child(2) i { background: linear-gradient(180deg, #5a45e7, #2f2399); }
.pv-age span { font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-gender { display: flex; border-radius: 999px; overflow: hidden; font-size: 10px; font-weight: 600; background: #ececf2; }
.pv-gender span { flex: 1; padding: 5px 9px; color: var(--muted); text-align: right; white-space: nowrap; }
.pv-gender span:first-child { flex: 0 0 calc(var(--v) * var(--grow, 1)); background: var(--yellow); color: var(--text); text-align: left; overflow: hidden; }
.pv-gender b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* 5. Meses */
.pv-months { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 0; }
.pv-months div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pv-months i { width: 100%; height: calc(var(--v) * .8 * var(--grow, 1)); border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.35); }
.pv-months div:last-child i { background: var(--yellow); }
.pv-months span { font-size: 9px; opacity: .8; }

/* Animación por tarjeta (la activa panel.js) */
.pcard .pv-age i, .pcard .pv-months i { transition: height 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 90ms); }
.pcard .pv-gender span:first-child { transition: flex-basis 1.2s cubic-bezier(.2,.8,.2,1) .5s; }
.pcard .pv-ad { opacity: 0; translate: 0 14px; filter: blur(4px); transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1), filter .6s ease; transition-delay: calc(var(--i) * 380ms); }
.pcard.is-play .pv-ad { opacity: 1; translate: 0 0; filter: blur(0); }
.pcard .pv-legend li { opacity: 0; translate: 8px 0; transition: opacity .4s ease, translate .4s ease; transition-delay: calc(300ms + var(--i) * 110ms); }
.pcard.is-play .pv-legend li { opacity: 1; translate: 0 0; }

.panel__progress { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.panel__progress span { display: block; height: 100%; width: 33%; background: var(--text); border-radius: 3px; transition: transform .45s cubic-bezier(.2,.8,.2,1), width .3s ease; }

/* Entrada: título en cascada, tarjetas entran desde la derecha y se enfocan */
.anim .panel .pn-fade { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.anim .panel.is-in .pn-fade { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
.anim .panel.is-in .panel__text { transition-delay: .55s; }
.anim .panel.is-in .panel__cta { transition-delay: .8s; }
.anim .panel .pn-words .w { opacity: 0; filter: blur(10px); transform: translateY(.4em); color: #b9bccb; transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.anim .panel.is-in .pn-words .w { opacity: 1; filter: blur(0); transform: none; color: var(--text); transition: opacity .9s ease, filter 1s ease, transform 1s cubic-bezier(.2,.8,.2,1), color 1.1s ease; transition-delay: calc(var(--i) * 130ms); }
.anim .panel.is-in .pn-words em.w, .anim .panel.is-in .pn-words .w em { color: var(--lavender); }
.anim .panel .pcard { opacity: 0; filter: blur(14px); transform: translateX(120px) scale(.94); transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.anim .panel.is-in .pcard { opacity: 1; filter: blur(0); transform: none; transition: opacity .9s ease, filter 1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1); }
.anim .panel.is-in .pcard:nth-child(1) { transition-delay: .25s; }
.anim .panel.is-in .pcard:nth-child(2) { transition-delay: .4s; }
.anim .panel.is-in .pcard:nth-child(3) { transition-delay: .55s; }
.anim .panel.is-in .pcard:nth-child(4) { transition-delay: .7s; }
.anim .panel.is-in .pcard:nth-child(5) { transition-delay: .85s; }
.anim .panel .pn-bar { opacity: 0; transition: opacity .3s ease; }
.anim .panel.is-in .pn-bar { opacity: 1; transition: opacity .8s ease 1.1s; }
.anim .panel.is-in .panel__arrows { transition-delay: 1s; }

@media (max-width: 1100px) {
  .panel__inner { grid-template-columns: 1fr; gap: 32px; }
  .panel__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 14px; align-items: end; }
  .panel__side > * { grid-column: 1; }
  .panel__cta { grid-column: 2; grid-row: 3; }
  .panel__arrows { grid-column: 2; grid-row: 2; margin-top: 0; justify-self: end; }
  .panel__text { max-width: 52ch; }
}
@media (max-width: 760px) {
  .panel { padding-block: 72px 76px; }
  .panel__side { display: flex; align-items: flex-start; }
  .panel__arrows { display: none; }
  .pcard { flex-basis: 78%; }
  .panel__title { font-size: clamp(24px, 7.4vw, 30px); }
}

.panel__scroller { cursor: grab; user-select: none; }
.panel__scroller.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.panel__scroller img { -webkit-user-drag: none; pointer-events: none; }

.panel__line { display: block; white-space: nowrap; }
.pv-ads { gap: 6px; }
.pv-ad { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 5px 6px; border-radius: 10px; }
.pv-ad__img { width: 32px; height: 32px; border-radius: 8px; }
.pv-ad b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-ad div { min-width: 0; }
.pv-ad div span { font-size: 9.5px; }
.pv-ad > i { font-size: 9px; padding: 2px 6px; }
.pv-donut { grid-template-columns: 48% 1fr; gap: 8px; }
.pv-donut__ring b { font-size: 17px; }
@media (max-width: 1100px) { .panel__title { font-size: clamp(28px, 4vw, 38px); } }
@media (max-width: 760px) { .panel__line { white-space: normal; display: inline; } }

.pcard__visual--yellow { justify-content: center; }
.pv-ads { gap: 7px; }
.pv-ad { padding: 6px 8px 6px 6px; }
.pv-ad__img { width: 34px; height: 34px; }
.pv-ad > i { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #1aa260; box-shadow: 0 0 0 3px rgba(26,162,96,.2); }
.pv-ad b { font-size: 11.5px; }

.pv-donut { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pv-donut__top { display: flex; align-items: center; gap: 12px; }
.pv-donut__ring { width: 76px; flex: 0 0 auto; }
.pv-donut__total { display: flex; flex-direction: column; }
.pv-donut__total b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pv-donut__total span { font-size: 10px; color: var(--muted); }
.pv-legend { gap: 4px; }
.pv-legend li { font-size: 10px; }

/* Celular: tarjetas más altas para que el contenido respire */
@media (max-width: 760px) {
  .pcard { flex-basis: 86%; }
  .pcard__visual { aspect-ratio: auto; min-height: 320px; padding: 18px; }
  .pv-donut__ring { width: 84px; }
  .pv-legend li { font-size: 10.5px; }
  .pv-ad b { font-size: 12px; }
  .pv-months span { font-size: 8.5px; }
}


/* ---------- Trust in the yellow Cat ---------- */
.trust {
  background: var(--paper);
  color: var(--text);
  padding-block: 56px 64px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.trust__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; justify-content: center; }
.trust__line {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: .26em; row-gap: .1em; min-height: 1.3em;
  font-size: clamp(40px, 7.2vw, 104px); line-height: 1.05; letter-spacing: -.035em; text-align: center;
}
.tw { display: inline-block; white-space: nowrap; transition: opacity .35s ease, filter .5s ease, color .6s ease; }
.tw--sans { font-family: var(--sans); font-weight: 500; }
.tw--serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-right: .06em; }
.tw--hl { position: relative; padding-inline: .08em .14em; }
.tw__hl { position: absolute; inset: .06em 0 .02em; background: var(--yellow); box-shadow: 0 0 0 2px rgba(224,180,0,.25); border-radius: .06em; transform: scaleX(0); transform-origin: right center; transition: transform .4s cubic-bezier(.7,0,.3,1); }
.tw__txt { position: relative; transition: color .3s ease .2s; }

.tdot {
  display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--lavender);
  margin-inline: -.1em; transition: margin .45s cubic-bezier(.2,.8,.2,1), opacity .2s ease, width .15s, height .15s, background .15s, border-radius .15s, transform .15s;
}
.tdot.s1 { background: var(--purple); width: .17em; height: .17em; }
.tdot.s2 { background: var(--purple); border-radius: 3px; transform: rotate(-12deg); }
.tdot.s3 { background: #f5c400; border-radius: 2px; transform: rotate(45deg); width: .15em; height: .15em; }
.tdot.s4 { background: #f5c400; border-radius: 2px; width: .03em; height: .2em; transform: rotate(-20deg); }
.tdot.s5 { background: #f5c400; border-radius: 2px; width: .2em; height: .04em; }
.tdot.s6 { background: var(--lavender); width: .12em; height: .12em; }
.tdot.blink { animation: tBlink .5s steps(1) infinite; }
@keyframes tBlink { 50% { opacity: 0; } }

/* Estados de la secuencia (data-step). El estado 8 es el final y es el que se ve sin animación. */
.trust__line[data-step="0"] .tw, .trust__line[data-step="0"] .tdot { display: none; }
.trust__line[data-step="1"] .tw { display: none; }
.trust__line[data-step="2"] .tw:not([data-w="trust"]) { display: none; }
.trust__line[data-step="3"] .tw[data-w="yellow"], .trust__line[data-step="3"] .tw[data-w="cat"],
.trust__line[data-step="4"] .tw[data-w="yellow"], .trust__line[data-step="4"] .tw[data-w="cat"],
.trust__line[data-step="5"] .tw[data-w="yellow"], .trust__line[data-step="5"] .tw[data-w="cat"] { display: none; }
.trust__line[data-step="3"] .tdot { order: 3; margin-inline: -.08em 0; }
.trust__line[data-step="4"] .tdot { margin-inline: .22em; }
.trust__line[data-step="5"] .tdot { opacity: 0; width: 0; margin-inline: -.13em; }
.trust__line[data-step="6"] .tw[data-w="trust"], .trust__line[data-step="6"] .tw[data-w="inthe"],
.trust__line[data-step="7"] .tw[data-w="trust"], .trust__line[data-step="7"] .tw[data-w="inthe"] { display: none; }
.trust__line[data-step="6"] .tdot, .trust__line[data-step="7"] .tdot, .trust__line[data-step="8"] .tdot { display: none; }
.trust__line.is-blur .tw[data-w="yellow"], .trust__line.is-blur .tw[data-w="cat"] { filter: blur(10px); color: var(--lavender); opacity: .35; }
.trust__line[data-step="7"] .tw__hl, .trust__line[data-step="8"] .tw__hl { transform: scaleX(1); }
.trust__line[data-step="7"] .tw__txt, .trust__line[data-step="8"] .tw__txt { color: var(--navy); }
.trust__line.is-fadein .tw[data-w="trust"], .trust__line.is-fadein .tw[data-w="inthe"] { opacity: 0; filter: blur(8px); }

.trust__btn { align-self: center; font-size: 16px; padding: 12px 12px 12px 24px; transition: opacity .7s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease; }
.trust.is-run .trust__btn { opacity: 0; transform: translateY(18px); }
.trust.is-run.is-done .trust__btn { opacity: 1; transform: none; }
.trust__btn:hover, .trust.is-run.is-done .trust__btn:hover { transform: translateY(-3px) scale(1.02); }

@media (max-width: 760px) {
  .trust { padding-block: 44px 52px; }
  .trust__line { font-size: clamp(34px, 11vw, 56px); }
}

/* Entrada suave de "Trust in the" al final */
.trust__line[data-step="8"] .tw[data-w="trust"], .trust__line[data-step="8"] .tw[data-w="inthe"] {
  transition: opacity 1s ease, filter 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.trust__line[data-step="8"] .tw[data-w="inthe"] { transition-delay: .15s; }
.trust__line.is-fadein .tw[data-w="trust"], .trust__line.is-fadein .tw[data-w="inthe"] { transform: translateX(-18px); }


/* ---------- Mosaico: tarjeta gigante que se reduce y aparecen las demás ---------- */
.mosaic { position: relative; height: 260vh; background: var(--paper); }
.mz-stage { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; }
.mz-cards { position: absolute; inset: 0; }
.mz-card {
  position: absolute; overflow: visible; left: 0; top: 0; width: var(--mw, 180px); height: var(--mh, 216px);
  border-radius: 20px; overflow: hidden; background: var(--white);
  box-shadow: 0 14px 30px rgba(23,24,45,.12);
  will-change: transform, opacity;
}
.mz-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.mz-card--mascot { background: var(--bg); }
.mz-card--mascot img { object-fit: contain; padding: 12%; }
.mz-center {
  position: absolute; left: 0; top: 0; z-index: 5; overflow: hidden;
  background: #ffffff; box-shadow: 0 30px 60px rgba(8,10,43,.28);
  will-change: transform, width, height, border-radius;
}
.mz-center__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #ffffff; }
.mz-center__cat { position: absolute; left: 50%; bottom: -4%; height: 86%; width: auto; max-width: none; transform: translateX(-50%); }
.mz-like, .mz-tag, .mz-cap { position: absolute; z-index: 2; opacity: 0; will-change: transform, opacity; }
.mz-like {
  top: -12px; right: -10px; display: inline-flex; white-space: nowrap; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px; background: var(--white); color: var(--text);
  font-size: 12px; font-weight: 600; box-shadow: 0 6px 14px rgba(8,10,43,.2);
}
.mz-like svg { color: #e5484d; }
.mz-tag {
  left: -14px; top: 30%; padding: 7px 14px; white-space: nowrap; border-radius: 999px; background: var(--yellow); color: var(--text);
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 18px rgba(8,10,43,.25);
}
.mz-tag::after { content: ""; position: absolute; left: 18px; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.mz-cap {
  left: 6%; bottom: 5%; display: inline-flex; align-items: center; gap: 6px; max-width: 88%;
  padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(8,10,43,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white); font-size: 12px; white-space: nowrap;
}
.mz-cap img { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #8a6a00; }
.mz-cap span { opacity: .75; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 760px) {
  .mosaic { height: 230vh; }
  .mz-card { border-radius: 14px; }
  .mz-like { font-size: 10px; padding: 4px 8px; }
  .mz-tag { font-size: 11px; padding: 5px 10px; }
  .mz-cap { font-size: 10px; }
  .mz-cap span { display: none; }
}

.mz-title {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6; margin: 0 auto; padding-inline: 24px;
  max-width: 900px; text-align: center; font-weight: 600; font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; will-change: opacity, transform;
}
.mz-title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.mz-btn { position: absolute; left: 50%; top: 0; z-index: 6; font-size: 16px; padding: 12px 12px 12px 24px; translate: -50% 0; }
@media (max-width: 760px) { .mz-title { font-size: 26px; } .mz-btn { font-size: 14px; } }

.mz-card:has(.mz-like), .mz-card:has(.mz-tag) { z-index: 2; }
.mz-btn { white-space: nowrap; }
.mz-card { overflow: visible; }


/* ---------- Cierre ---------- */
.closing {
  background: var(--paper);
  padding-block: 40px 110px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.closing__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.closing__title { margin: 0; max-width: 16ch; font-weight: 600; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.closing__title em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); letter-spacing: -.01em; }
.closing__btn { align-self: center; font-size: 16px; padding: 12px 12px 12px 24px; }
.anim .closing .cl-words .w { opacity: 0; filter: blur(10px); transform: translateY(.4em); color: #b9bccb; transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.anim .closing.is-in .cl-words .w { opacity: 1; filter: blur(0); transform: none; color: var(--text); transition: opacity .9s ease, filter 1s ease, transform 1s cubic-bezier(.2,.8,.2,1), color 1.1s ease; transition-delay: calc(var(--i) * 140ms); }
.anim .closing.is-in .cl-words em.w, .anim .closing.is-in .cl-words .w em { color: var(--lavender); }
.anim .closing .closing__btn { opacity: 0; translate: 0 18px; }
.anim .closing.is-in .closing__btn { opacity: 1; translate: 0 0; transition: opacity .8s ease 1.1s, translate .8s cubic-bezier(.2,.8,.2,1) 1.1s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease; }
@media (max-width: 760px) { .closing { padding-block: 24px 80px; } }


/* ---------- Footer ---------- */
.ft {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(40% 70% at 50% 100%, rgba(111,124,242,.75) 0%, rgba(90,69,231,.25) 45%, rgba(90,69,231,0) 75%),
    #080a2b;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.ft__inner { max-width: 1180px; margin: 0 auto; padding-block: 72px 0; }
.ft__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.7); }
.ft__brand { display: flex; flex-direction: column; gap: 22px; }
.ft__brand img { width: 150px; height: auto; }
.ft__brand p, .ft__contact p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.75); }
.ft__brand p { max-width: 32ch; }
.ft__links h2, .ft__contact h2 { margin: 0 0 22px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.ft__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); column-gap: 90px; row-gap: 10px; }
.ft__links a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.ft__links a:hover { color: var(--white); }
.ft__links a:focus-visible, .ft__social a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.ft__contact { display: flex; flex-direction: column; gap: 10px; }
.ft__contact h2 { margin-bottom: 12px; }
.ft__sel { user-select: all; }
.ft__social { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.ft__social span { margin-right: 8px; }
.ft__social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--white); transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease;
}
.ft__social a img { width: 22px; height: 22px; object-fit: contain; }
.ft__social a:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.ft__bottom { padding-block: 28px 40px; text-align: center; }
.ft__bottom p { margin: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.ft__mascot { display: flex; justify-content: center; height: 70px; overflow: hidden; }
.ft__mascot img { width: 110px; height: auto; transform: translateY(8px); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ft:hover .ft__mascot img { transform: translateY(-4px); }

@media (max-width: 860px) {
  .ft__grid { grid-template-columns: 1fr; gap: 32px; }
  .ft__links ul { column-gap: 60px; }
}

/* ---------- Sección siguiente (marcador) ---------- */
.next {
  background: var(--paper); color: var(--text);
  padding-block: 80px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.next__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.next__inner p { margin: 0; opacity: .8; font-size: 14px; }
.next__inner h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.next__inner h2 em { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--lavender); }
.spacer { height: 40vh; }

/* ---------- Botón de repetir (solo para revisión) ---------- */
.replay {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--navy); color: var(--white); font: 600 13px var(--sans); cursor: pointer;
  box-shadow: 0 8px 20px rgba(8,10,43,.3);
}
.replay:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.w { display: inline-block; will-change: transform, filter, opacity; }

@media (max-width: 1180px) and (min-width: 761px) {
  .layer--vis { max-width: 470px; }
  .vis__title { font-size: clamp(32px, 3.6vw, 42px); }
  .stat { grid-template-columns: 130px 1fr; gap: 14px; }
  .stat__num { font-size: 36px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { padding: 8px 8px 8px 20px; gap: 12px; min-height: 0; align-items: center; }
  .nav__logo { flex: 0 1 auto; min-width: 0; }
  .nav__logo img { width: clamp(96px, 30vw, 124px); }
  .nav__cta { margin-left: auto; flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; font-size: 13px; line-height: 1.2; box-shadow: 0 0 0 2px rgba(111,124,242,.55); }
  .hero__title { font-size: clamp(26px, 8.2vw, 34px); }
  .vis__title { font-size: clamp(24px, 7.6vw, 28px); }
  .vis__text { font-size: 13.5px; line-height: 1.45; }
  .stat { padding: 6px 0; }
  .stat__num { font-size: 24px; }
  .stat__label { font-size: 11.5px; line-height: 1.35; }
  .layer { justify-content: flex-start; }
  .layer--hero { padding-top: 96px; padding-bottom: 28px; justify-content: center; }
  .hero__space { height: clamp(200px, 34vh, 280px); margin-block: 14px 18px; }
  .layer--vis { padding-top: 100px; }
  .hero__title { font-size: 34px; }
  .hero__text { font-size: 14px; margin-bottom: 20px; }
  .vis__head { gap: 10px; margin-bottom: 14px; }
  .vis__title { font-size: 28px; }
  .vis__text { font-size: 14px; margin-bottom: 14px; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { grid-template-columns: 92px 1fr; gap: 12px; padding: 8px 0; align-items: center; }
  .stat__num { font-size: 28px; }
  .stat__label { font-size: 12px; }
  .tag { font-size: 11px; padding: 5px 10px; }
  .card__cap { display: none; }
  .layer--vis .tag, .cards .tag { visibility: hidden; }
  .replay { bottom: auto; top: calc(78px + env(safe-area-inset-top, 0px)); padding: 7px 12px; font-size: 11px; }
}
