/* =====================================================================
   CREDIRECTO (.credirecto-page + .cr-scrolly)
   ---------------------------------------------------------------------
   La página reutiliza el layout de Estacionamiento (.parking-page,
   clases pk-*). Aquí va SOLO lo propio de Credirecto:
   1. Hero: logo + fundido inferior.
   2. Lienzo (main-frame): anclas de la escena y nuevas posiciones.
   3. Escena (.cr-scrolly, FUERA del lienzo para usar sticky):
      mundo verde Credirecto, teléfono 3D (render + pantalla HTML en
      perspectiva), tarjeta Credirecto, avisos, tickets tipo talón,
      notificación de pago, créditos/débitos y textos por capítulo.
   4. Responsive (móvil + tablet).

   Posiciones de la escena: TODO está en px de un lienzo fijo que el JS
   escala al viewport. Horizontal = 1440 × 810 (desktop / pantallas
   anchas); vertical = 390 × 760 (teléfonos / tablets en vertical).
   Cada tabla de variables (--ph-*, --cd-*, --tk-*, --mv-*…) se puede
   ajustar sin tocar el JS: el JS lee --ph-* y --cd-* de aquí.
   ===================================================================== */

/* Comunes a todas las resoluciones */
.credirecto-page .cr-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* El lienzo deja ver el fondo compartido (hero + escena, en .cr-world) */
.credirecto-page.main-frame,
.rsp .credirecto-page.parking-page {
  background: transparent;
}

.credirecto-page .pk-white-band {
  display: none;
}

/* Desktop (≥ 1200px): lienzo de 1440 escalado. En móvil/tablet todo
   pasa a flujo normal (ver sección 4), por eso va dentro de esta media. */
@media (min-width: 1200px) {
  /* ═════════════ 1. HERO ═════════════ */
  .credirecto-page .cr-hero-logo {
    left: 50%;
    top: 118px;
    transform: translateX(-50%);
    width: 280px;
    z-index: 3;
  }

  /* Subtítulo y titular bajan para dejar espacio al logo.
     Ojo: el <p> del subtítulo trae 40px de margin-top por defecto. */
  .credirecto-page .pk-hero-subtitle { top: 170px; }
  .credirecto-page .pk-hero-title { top: 262px; }

  /* ═════════════ 2. LIENZO DESKTOP (1440) ═════════════
     La escena ocupa 4800px de lienzo desde el borde del hero (842).
     Todo lo que venía después baja 3792px. */
  .credirecto-page.parking-page { height: 7572px; }
  body.credirecto-body { min-height: calc(7572px * var(--scale)); }

  .credirecto-page .pk-phone-1.cr-phone-anchor {
    height: 628px;
    pointer-events: none;
  }

  .credirecto-page .cr-world-anchor {
    left: 0;
    top: 842px;
    width: 1440px;
    height: 4800px;
    pointer-events: none;
  }

  .credirecto-page .pk-vector-bottom { top: 5700px; }
  .credirecto-page .pk-description { top: 5812px; }
  .credirecto-page .pk-pill { top: 6223px; }
  .credirecto-page .pk-steps-title { top: 6310px; }
  .credirecto-page .pk-steps-list { top: 6572px; }
  .credirecto-page .pk-slider { top: 6297px; }
  /* El footer baja 120px para que la cinta verde termine antes y no lo toque;
     además queda por encima de la cinta (z-index) por si se cruzan. */
  .credirecto-page .footer { top: 7242px; z-index: 2; }

  /* El lienzo escalado no deja espacio en blanco al final (--scale < 1) */
  .rsp:has(.credirecto-page) {
    height: calc(7572px * var(--scale));
    overflow: clip;
  }
}

/* ═════════════ 3. ESCENA ═════════════ */
.cr-scrolly {
  --spring: cubic-bezier(0.25, 1.12, 0.35, 1); /* rebote de «Dos mundos» */
  --out: cubic-bezier(0.55, 0, 0.75, 0);
  --lima: #c6ef00;
  --magenta: #ff0060;
  --navy: #050b26;
  --u: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0; /* el JS la ajusta a su ancla */
  pointer-events: none; /* sin z-index: el fondo va DEBAJO del lienzo y el teléfono ENCIMA */
  font-family: "Outfit", sans-serif;
}

.rsp .cr-scrolly img,
.cr-scrolly img {
  max-width: none;
}

/* ── 3.1 Mundo magenta (fondo) ── */
.cr-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: clip;
  border-radius: 0 0 64px 64px;
  background: #111210;
  z-index: -1; /* debajo del texto del hero */
}

.cr-world-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Fondo de marca (el mismo del hero) */
.cr-world-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Capa de la escena: aparece mientras el teléfono baja (--th de 0 a 1) */
.cr-world-bg {
  position: absolute;
  inset: 0;
  opacity: calc(var(--th, 0) * 0.9);
  will-change: opacity; /* capa propia: el degradado no se repinta en cada scroll */
  /* Paleta Credirecto: oscuro con brillos lima (como el fondo del hero) */
  background:
    radial-gradient(48% 58% at 92% 4%, rgba(198, 239, 0, 0.62) 0%, rgba(158, 199, 0, 0.26) 38%, rgba(158, 199, 0, 0) 72%),
    radial-gradient(62% 52% at 62% 108%, rgba(198, 239, 0, 0.55) 0%, rgba(120, 160, 0, 0.2) 45%, rgba(120, 160, 0, 0) 76%),
    radial-gradient(38% 46% at -4% 92%, rgba(158, 199, 0, 0.42) 0%, rgba(158, 199, 0, 0) 72%),
    radial-gradient(50% 40% at 40% 30%, rgba(40, 46, 34, 0.9) 0%, rgba(40, 46, 34, 0) 100%),
    linear-gradient(180deg, #171916 0%, #0f110e 55%, #131511 100%);
}

/* Luz suave arriba a la derecha (como el reel) */
.cr-bloom {
  position: absolute;
  right: -10%;
  top: -18%;
  width: 70%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220, 255, 110, 0.28), rgba(220, 255, 110, 0) 72%);
  transform: translate3d(calc(var(--u) * -8%), calc(var(--u) * 10%), 0);
  opacity: var(--th, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Cintas rosadas (se desplazan un poco con el scroll) */
.cr-ribbons {
  position: absolute;
  left: -10%;
  top: -10%;
  width: 120%;
  height: 120%;
  transform: translate3d(calc(var(--u) * -5%), calc(var(--u) * -6%), 0);
  opacity: var(--th, 0);
  overflow: visible;
  will-change: transform, opacity; /* las cintas (con sombra) se pintan una vez y se mueven en GPU */
}

.cr-rib {
  fill: none;
  stroke: url(#crRib);
  stroke-linecap: round;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.cr-rib-1 { stroke-width: 74; opacity: 0.5; }
.cr-rib-2 { stroke-width: 58; opacity: 0.3; }

/* Palabra gigante desenfocada (una por capítulo) */
.cr-words {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cr-word {
  position: absolute;
  left: 50%;
  top: 46%;
  font: 700 clamp(160px, 26vw, 460px) / 0.9 "Outfit", sans-serif;
  letter-spacing: -0.04em;
  color: rgba(214, 255, 120, 0.13);
  white-space: nowrap;
  opacity: 0;
  filter: blur(26px);
  transform: translate(-30%, -50%) scale(1.08);
  transition: opacity 700ms ease, filter 900ms ease, transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.cr-scrolly[data-ch="1"] .cr-word[data-i="1"],
.cr-scrolly[data-ch="2"] .cr-word[data-i="2"],
.cr-scrolly[data-ch="3"] .cr-word[data-i="3"],
.cr-scrolly[data-ch="4"] .cr-word[data-i="4"],
.cr-scrolly[data-ch="5"] .cr-word[data-i="5"] {
  opacity: 1;
  filter: blur(8px);
  transform: translate(-46%, -50%) translateX(calc(var(--u) * -14vw));
}

/* Grano de película */
.cr-grain {
  position: absolute;
  inset: 0;
  /* El fondo del hero viene liso (pesa 18 KB): este grano le da la textura */
  opacity: calc(0.3 + var(--th, 0) * 0.04);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  pointer-events: none;
}

/* ── 3.2 Capa fija (sticky) con el lienzo de la escena ── */
.cr-pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: clip;
  z-index: 6; /* teléfono y tarjeta por encima del texto del hero */
  opacity: 0;
  transition: opacity 600ms ease;
}

.cr-scrolly.is-ready .cr-pin { opacity: 1; }

/* Lienzo HORIZONTAL · 1440 × 810 — retícula de 12 columnas (margen 112,
   medianil 24). Texto: columnas 1–4 · elementos: columnas 5–8 (x 525–953)
   · teléfono 3/4: columnas 9–12. Todas las medidas en px del lienzo. */
.cr-canvas {
  --cw: 1440;
  --ch: 810;
  /* Teléfono en la escena: centro y alto */
  --ph-x: 1135;
  --ph-y: 446;
  --ph-h: 740;
  /* (el JS calcula --px / --py: centro de la pantalla, de donde salen las cosas) */
  --px: 1135;
  --py: 430;
  /* Tarjeta Credirecto (capítulo 1) */
  --cd-x: 739;
  --cd-y: 484;
  --cd-w: 320;
  --cd-ry: -6;
  --cd-rx: 3;
  /* Tarjeta: recorrido por capítulo (desplazamiento x/y y escala) */
  --cm-tk-x: 0;
  --cm-tk-y: -254;
  --cm-tk-s: 1;
  --cm-mv-x: -114;
  --cm-mv-y: -308;
  --cm-mv-s: 0.625;
  --cm-mv-op: 1;
  /* Tickets */
  --tk-w: 206;
  --tk-h: 100;
  --tk-notch: 75px;
  --tk1-x: 628;
  --tk2-x: 850;
  --tk-y: 426;
  --tk1-ox: 47;
  --tk2-ox: -118;
  --tk-oy: -155;
  --tk-os: 0.22;
  --tk1-mx: 181;
  --tk1-my: -294;
  --tk2-mx: -41;
  --tk2-my: -220;
  --tk-ms: 0.62;
  /* Avisos */
  --av-x: 739;
  --av-w: 400;
  --av-y0: 132;
  --av-dy: 60;
  /* Ticket pagado (notificación sobre la pantalla) */
  --pg-x: 985;
  --pg-y: 549;
  --pg-w: 360;
  /* Créditos y débitos */
  --mv-x: 739;
  --mv-w: 428;
  /* centros de las 3 piezas: 14px de aire entre fila, barra y fila */
  --mv-y1: 318;
  --mv-y2: 426;
  --mv-y3: 534;
  /* Textos */
  --cap-x: 112;
  --cap-y: 247;
  --cap-w: 400;

  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--cw) * 1px);
  height: calc(var(--ch) * 1px);
  transform-origin: 0 0;
}

/* Sombra y brillo bajo el teléfono flotante */
.cr-floor {
  position: absolute;
  left: calc(var(--ph-x) * 1px);
  top: calc((var(--ph-y) + var(--ph-h) * 0.47) * 1px);
  width: calc(var(--ph-h) * 0.62px);
  height: calc(var(--ph-h) * 0.11px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  filter: blur(10px);
  opacity: var(--th, 0);
  pointer-events: none;
  z-index: 1;
}

.cr-floor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -320%;
  width: 190%;
  height: 520%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 255, 90, 0.26), rgba(198, 239, 0, 0.08) 55%, rgba(198, 239, 0, 0));
}

/* ── Teléfono 3D: render (canvas) + pantalla HTML en perspectiva ── */
.cr-rig {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 2;
}

.cr-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cr-screen {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  overflow: hidden;
  /* mismas esquinas que el hueco de la pantalla del render (8,75 mm de 65,9 mm → 52 px de 390) */
  border-radius: 52px;
  background: #f5f6f9;
  backface-visibility: hidden;
}

.cr-scr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 500ms ease;
}

.cr-scr.is-on { opacity: 1; }

/* Reflejo del vidrio: se desplaza con el giro del teléfono (--gl) */
.cr-glare {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 47%, rgba(255, 255, 255, 0.06) 53%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(calc(var(--gl, 0) * -34%));
  pointer-events: none;
}

.cr-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

/* Home (390 px) dentro de la pantalla */
.cr-home {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 847px;
  overflow: hidden;
}

.cr-home-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 847px;
}

.cr-cell {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 18px;
  transition: box-shadow 400ms ease;
}

.cr-cell-face {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.cr-cell-face img {
  position: absolute;
  display: block;
}

.cr-cell-credirecto.is-focus {
  box-shadow: 0 0 0 4.7px #ffffff, 0 10px 22px rgba(5, 11, 38, 0.18);
}

/* Hueco que deja la tarjeta al salir (rayado, como en «Dos mundos») */
.cr-cell.is-out .cr-cell-face { visibility: hidden; }
.cr-cell.is-out {
  background: repeating-linear-gradient(135deg, #eef0f5 0 7px, #e6e9f1 7px 14px);
  box-shadow: inset 0 0 0 1.5px #d5d9e6;
}

/* ── Tarjeta Credirecto ── */
.cr-card {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--cd-w) * 1px);
  aspect-ratio: 260 / 196;
  transform-origin: 50% 50%;
  opacity: 0;
  z-index: 8;
  will-change: transform;
}

.cr-card.is-on { opacity: 1; }

.cr-card-move {
  width: 100%;
  height: 100%;
  transition: transform 1100ms var(--spring), opacity 500ms ease;
}

.cr-card-bob {
  width: 100%;
  height: 100%;
  container-type: inline-size;
  animation: crBob 5.6s ease-in-out infinite;
}

@keyframes crBob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -2.2cqw; rotate: -0.6deg; }
}

.cr-cardface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6.9cqw;
  overflow: hidden;
  box-shadow:
    0 9cqw 16cqw rgba(0, 0, 0, 0.55),
    0 2cqw 4cqw rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 12cqw rgba(198, 239, 0, 0.16);
}

.cr-cf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cr-cf-logo {
  position: absolute;
  left: 0.35cqw;
  top: 8.03cqw;
  width: 74.6cqw;
  height: auto;
  display: block;
}

.cr-cf-label {
  position: absolute;
  left: 8.5cqw;
  top: 34.47cqw;
  margin: 0;
  font: 400 5.38cqw / 1 "Outfit", sans-serif;
  color: #ffffff;
  white-space: nowrap;
}

.cr-cf-row {
  position: absolute;
  left: 8cqw;
  top: 42.28cqw;
  display: flex;
  align-items: center;
}

/* Contador que rueda: tira de dígitos 0·1·2 dentro de una ventana de 1em */
.cr-cf-num {
  display: block;
  height: 1em;
  overflow: hidden;
  font: 700 15.4cqw / 1 "Outfit", sans-serif;
  color: #ffffff;
  width: 10.6cqw;
}

.cr-cf-roll {
  display: flex;
  flex-direction: column;
  transition: transform 700ms var(--spring);
}

.cr-cf-roll span {
  display: block;
  height: 1em;
  line-height: 1;
}

.cr-cf-car {
  width: 14.4cqw;
  height: auto;
  margin-left: 3.7cqw;
  display: block;
  transition: opacity 500ms ease, transform 600ms var(--spring), filter 500ms ease;
}

.cr-cf-car-1 { margin-left: 4.3cqw; }

/* Al salir los tickets, los carros de la tarjeta laten una vez */
.cr-pin.is-tk .cr-cf-car { animation: crCarPulse 700ms var(--spring) 1 both; }
.cr-pin.is-tk .cr-cf-car-2 { animation-delay: 90ms; }
@keyframes crCarPulse { 0% { transform: scale(1); } 40% { transform: scale(1.22); filter: drop-shadow(0 0 6px rgba(198, 239, 0, 0.9)); } 100% { transform: scale(1); } }

.cr-pin.is-use:not(.is-renew) .cr-cf-car-2 { opacity: 0.22; transform: scale(0.88); }

/* Brillo que barre la tarjeta al salir (y al renovarse) */
.cr-cardface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 47%, rgba(255, 255, 255, 0.15) 52%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}

.cr-card.is-shine .cr-cardface::after { animation: crSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards; }
.cr-pin.is-renew .cr-card.is-shine .cr-cardface::after { animation: crSweep2 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s 1 both; }

@keyframes crSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes crSweep2 { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Recorrido de la tarjeta por capítulo */
.cr-pin.is-tk .cr-card-move { transform: translate(calc(var(--cm-tk-x) * 1px), calc(var(--cm-tk-y) * 1px)) scale(var(--cm-tk-s)); }
.cr-pin.is-movs .cr-card-move {
  transform: translate(calc(var(--cm-mv-x) * 1px), calc(var(--cm-mv-y) * 1px)) scale(var(--cm-mv-s));
  opacity: var(--cm-mv-op);
}
.cr-pin.is-renew .cr-card-move { transform: translate(calc(var(--cm-tk-x) * 1px), calc(var(--cm-tk-y) * 1px)) scale(var(--cm-tk-s)); opacity: 1; }

/* ── Elementos que SALEN de la pantalla del teléfono ──
   Estado base = dentro de la pantalla (pequeño, desenfocado, invisible).
   Al activarse su paso viajan a su lugar con rebote; al irse, salen rápido. */
.cr-emerge {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  opacity: 0;
  filter: blur(8px);
  transform: translate(-50%, -50%) translate(calc((var(--px) - var(--x)) * 1px), calc((var(--py) - var(--y)) * 1px)) scale(0.28);
  transition:
    transform 380ms var(--out),
    opacity 260ms ease-in,
    filter 300ms ease-in;
  z-index: 7;
}

/* ── Avisos (capítulo 1) ── */
.cr-avisos {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-aviso {
  position: absolute;
  left: calc(var(--av-x) * 1px);
  top: calc(var(--y) * 1px);
  width: calc(var(--av-w) * 1px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px 9px 9px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 236, 0.9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 14px 30px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(198, 239, 0, 0.12);
  opacity: 0;
  filter: blur(8px);
  transform: translate(-50%, -50%) translate(calc((var(--px) - var(--av-x)) * 1px), calc((var(--py) - var(--y)) * 1px)) scale(0.3);
  transition: transform 380ms var(--out), opacity 260ms ease-in, filter 300ms ease-in;
  z-index: 7;
}

.cr-aviso-1 { --y: calc(var(--av-y0) + var(--av-dy) * 0); --ex: 0ms; }
.cr-aviso-2 { --y: calc(var(--av-y0) + var(--av-dy) * 1); --ex: 50ms; }
.cr-aviso-3 { --y: calc(var(--av-y0) + var(--av-dy) * 2); --ex: 100ms; }
.cr-aviso-4 { --y: calc(var(--av-y0) + var(--av-dy) * 3); --ex: 150ms; }

.cr-pin.is-n1 .cr-aviso-1,
.cr-pin.is-n2 .cr-aviso-2,
.cr-pin.is-n3 .cr-aviso-3,
.cr-pin.is-n4 .cr-aviso-4 {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  transition: transform 950ms var(--spring), opacity 360ms ease-out, filter 650ms ease-out;
}

/* Al pasar a los tickets, los avisos suben y se desvanecen */
.cr-pin.is-tk .cr-aviso {
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, -50%) translateY(-110px) scale(0.92);
  transition: transform 700ms cubic-bezier(0.5, 0, 0.75, 0) var(--ex, 0ms), opacity 500ms ease var(--ex, 0ms), filter 500ms ease var(--ex, 0ms);
}

.cr-aviso-icono {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff2b78, #ff0060);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(255, 0, 96, 0.35);
}

/* Medida fija (no en %): en un grid el % de alto no se resuelve y el
   isotipo quedaba más grande y caído hacia abajo */
.cr-aviso-icono img {
  height: 19px;
  width: auto;
  display: block;
}

.cr-aviso-texto {
  font: 600 17px / 1.2 "Outfit", sans-serif;
  color: #050b26;
  white-space: nowrap;
}

/* ── Tickets tipo talón ── */
.cr-tk {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--tk-y) * 1px);
  width: calc(var(--tk-w) * 1px);
  height: calc(var(--tk-h) * 1px);
  opacity: 0;
  filter: blur(4px);
  transform: translate(-50%, -50%) translate(calc(var(--ox) * 1px), calc(var(--tk-oy) * 1px)) scale(var(--tk-os));
  transition: transform 420ms var(--out), opacity 300ms ease-in, filter 300ms ease-in;
  z-index: 6;
}

.cr-tk-1 { --x: var(--tk1-x); --ox: var(--tk1-ox); --mx: var(--tk1-mx); --my: var(--tk1-my); --dl: 380ms; }
.cr-tk-2 { --x: var(--tk2-x); --ox: var(--tk2-ox); --mx: var(--tk2-mx); --my: var(--tk2-my); --dl: 480ms; }

/* Salen de los carros de la tarjeta y crecen */
.cr-pin.is-tk .cr-tk {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  transition: transform 1100ms var(--spring) var(--dl), opacity 300ms ease-out var(--dl), filter 600ms ease-out var(--dl);
}

/* Se usa: el ticket 1 entra a la pantalla del teléfono… */
.cr-pin.is-use .cr-tk-1 {
  opacity: 0;
  filter: blur(6px);
  transform: translate(-50%, -50%) translate(calc((var(--px) - var(--tk1-x)) * 1px), calc((var(--py) - var(--tk-y)) * 1px)) scale(0.24) rotate(-8deg);
  transition: transform 720ms cubic-bezier(0.6, 0, 0.8, 0.4), opacity 500ms ease-in 220ms, filter 500ms ease-in;
}

/* …y vuelve como «Usado» */
.cr-pin.is-paid .cr-tk-1 {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  transition: transform 1050ms var(--spring), opacity 300ms ease-out, filter 500ms ease-out;
}

/* Créditos/débitos: los tickets se compactan junto a la tarjeta */
.cr-pin.is-movs .cr-tk {
  transform: translate(-50%, -50%) translate(calc(var(--mx) * 1px), calc(var(--my) * 1px)) scale(var(--tk-ms));
  transition: transform 1050ms var(--spring) var(--mdl, 0ms), opacity 300ms ease-out, filter 500ms ease-out;
}

.cr-tk-2 { --mdl: 70ms; }

/* Se renueva: vuelven a su fila */
.cr-pin.is-renew .cr-tk { transform: translate(-50%, -50%); }

.cr-tk-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.3, 1.25, 0.4, 1);
}

/* Renovado: el talón da una vuelta completa */
.cr-pin.is-renew .cr-tk-1 .cr-tk-flip { transform: perspective(700px) rotateY(360deg); transition-delay: 250ms; }

.cr-tk-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 12px 0 calc(var(--tk-h) * 0.16px);
  border-radius: calc(var(--tk-h) * 0.22px);
  overflow: hidden;
  background: rgba(10, 12, 8, 0.55);
  box-shadow: inset 0 0 0 1.5px rgba(198, 239, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Muescas del talón arriba y abajo de la línea punteada */
  -webkit-mask:
    radial-gradient(circle at var(--tk-notch) 0, #0000 10px, #000 10.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--tk-notch) 100%, #0000 10px, #000 10.5px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at var(--tk-notch) 0, #0000 10px, #000 10.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--tk-notch) 100%, #0000 10px, #000 10.5px) bottom / 100% 51% no-repeat;
  color: #ffffff;
  transition: color 500ms ease, box-shadow 500ms ease;
}

/* Relleno que «barre» de izquierda a derecha al activarse */
.cr-tk-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dcff4a 0%, #c6ef00 45%, #9ec700 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 650ms cubic-bezier(0.25, 1, 0.3, 1), background 500ms ease;
}

.cr-tk-ic {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--tk-h) * 0.48px);
  height: calc(var(--tk-h) * 0.48px);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  transition: background 500ms ease;
}

.cr-tk-car {
  grid-area: 1 / 1;
  width: 56%;
  height: auto;
  transition: opacity 400ms ease;
}

.cr-tk-car-osc { opacity: 0; }

.cr-tk-chk {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5d616e;
  box-shadow: 0 0 0 3px #e9ebf0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 250ms ease, transform 500ms var(--spring);
}

.cr-tk-chk svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-tk-sep {
  position: relative;
  align-self: stretch;
  margin: calc(var(--tk-h) * 0.16px) calc(var(--tk-h) * 0.12px) calc(var(--tk-h) * 0.16px) calc(var(--tk-h) * 0.1px);
  border-left: 2px dashed rgba(198, 239, 0, 0.5);
  transition: border-color 500ms ease;
}

.cr-tk-tx {
  position: relative;
  min-width: 0;
}

.cr-tk-tx small {
  display: block;
  font: 500 13px / 1 "Outfit", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

.cr-tk-tx b {
  display: grid;
  margin-top: 7px;
}

.cr-tk-tx b i {
  grid-area: 1 / 1;
  font: 700 19px / 1.05 "Outfit", sans-serif;
  font-style: normal;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 480ms var(--spring);
}

.cr-tk-tx b .cr-tk-l-off { opacity: 1; transform: none; }

/* Anillo que late al activarse / renovarse */
.cr-tk-ring {
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--tk-h) * 0.28px);
  border: 2px solid var(--lima);
  opacity: 0;
  pointer-events: none;
}

@keyframes crRing {
  0% { opacity: 0.9; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.16, 1.3); }
}

@keyframes crRing2 {
  0% { opacity: 0.9; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.16, 1.3); }
}

/* Activo (disponible) */
.cr-pin.is-on1 .cr-tk-1 .cr-tk-fill,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-fill { transform: scaleX(1); }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-face,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-face { color: #1b1f0c; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 0 30px rgba(198, 239, 0, 0.45); }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-ic,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-ic { background: #1b1f0c; }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-sep,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-sep { border-color: rgba(27, 31, 12, 0.3); }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-ring,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-ring { animation: crRing 1.2s cubic-bezier(0, 0, 0.4, 1) 300ms 2; }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-l-off,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-l-off { opacity: 0; transform: translateY(-8px); }

.cr-pin.is-on1 .cr-tk-1 .cr-tk-l-on,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-l-on { opacity: 1; transform: none; transition-delay: 200ms; }

/* Usado (gris, con check) */
.cr-pin.is-paid .cr-tk-1 .cr-tk-fill { background: linear-gradient(135deg, #f3f4f7, #d9dce3); }
.cr-pin.is-paid .cr-tk-1 .cr-tk-face { color: #5d616e; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.cr-pin.is-paid .cr-tk-1 .cr-tk-ic { background: #c9ccd5; }
.cr-pin.is-paid .cr-tk-1 .cr-tk-car-lima { opacity: 0; }
.cr-pin.is-paid .cr-tk-1 .cr-tk-car-osc { opacity: 1; }
.cr-pin.is-paid .cr-tk-1 .cr-tk-sep { border-color: rgba(60, 64, 75, 0.22); }
.cr-pin.is-paid .cr-tk-1 .cr-tk-chk { opacity: 1; transform: scale(1); transition-delay: 500ms; }
.cr-pin.is-paid .cr-tk-1 .cr-tk-l-on { opacity: 0; transform: translateY(-8px); }
.cr-pin.is-paid .cr-tk-1 .cr-tk-l-used { opacity: 1; transform: none; transition-delay: 350ms; }

/* Renovado (lima otra vez, con vuelta y pulso) */
.cr-pin.is-renew .cr-tk-1 .cr-tk-fill { background: linear-gradient(135deg, #dcff4a 0%, #c6ef00 45%, #9ec700 100%); transition-delay: 500ms; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-face { color: #1b1f0c; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 0 30px rgba(198, 239, 0, 0.45); }
.cr-pin.is-renew .cr-tk-1 .cr-tk-ic { background: #1b1f0c; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-car-lima { opacity: 1; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-car-osc { opacity: 0; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-chk { opacity: 0; transform: scale(0.3); transition-delay: 0ms; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-ring { animation: crRing2 1.2s cubic-bezier(0, 0, 0.4, 1) 900ms 2; }
.cr-pin.is-renew .cr-tk-1 .cr-tk-l-used { opacity: 0; transform: translateY(-8px); }
.cr-pin.is-renew .cr-tk-1 .cr-tk-l-new { opacity: 1; transform: none; transition-delay: 650ms; }

/* En el estado activo, el carro va lima sobre el círculo oscuro */
.cr-pin.is-on1 .cr-tk-1 .cr-tk-car-lima,
.cr-pin.is-on2 .cr-tk-2 .cr-tk-car-lima { opacity: 1; }

/* ── Ticket pagado: notificación que sale de la pantalla ── */
.cr-pagado {
  --x: var(--pg-x);
  --y: var(--pg-y);
  width: calc(var(--pg-w) * 1px);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px 13px 13px;
  border-radius: 22px;
  background: rgba(250, 251, 248, 0.95);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9;
}

.cr-pagado-app {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff2b78, #ff0060);
  display: grid;
  place-items: center;
}

.cr-pagado-app img { height: 23px; width: auto; display: block; }

.cr-pagado-txt { min-width: 0; }

.cr-pagado-txt b {
  display: block;
  font: 700 17px / 1.1 "Outfit", sans-serif;
  color: var(--navy);
}

.cr-pagado-txt small {
  display: block;
  margin-top: 3px;
  font: 400 14px / 1.2 "Outfit", sans-serif;
  color: #5d616e;
  white-space: nowrap;
}

.cr-pagado-ok {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  display: grid;
  place-items: center;
}

.cr-pagado-ok svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-pagado-hora {
  position: absolute;
  right: 56px;
  top: 12px;
  font: 400 11.5px / 1 "Outfit", sans-serif;
  color: #8a8d99;
}

/* ── Créditos y débitos (capítulo 4) ── */
.cr-mov,
.cr-plazo {
  --x: var(--mv-x);
  width: calc(var(--mv-w) * 1px);
}

.cr-mov-credito { --y: var(--mv-y1); }
.cr-plazo { --y: var(--mv-y2); }
.cr-mov-debito { --y: var(--mv-y3); }

.cr-mov {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.cr-mov-ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cr-mov-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-mov-credito .cr-mov-ic { background: #eaf6d6; }
.cr-mov-credito .cr-mov-ic svg { stroke: #3d8a00; }
.cr-mov-debito .cr-mov-ic { background: #ffe6ee; }
.cr-mov-debito .cr-mov-ic svg { stroke: #ff2463; }

.cr-mov-txt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cr-mov-txt img {
  width: 104px;
  height: auto;
  display: block;
  margin-bottom: 2px;
}

.cr-mov-txt span {
  font: 400 15px / 1.15 "Outfit", sans-serif;
  color: #3b3e48;
}

.cr-mov-txt small {
  font: 400 12.5px / 1.2 "Outfit", sans-serif;
  color: #8a8d99;
}

.cr-mov-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.cr-mov-amt em {
  font: 700 11.5px / 1 "Outfit", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
  padding: 5px 9px;
  border-radius: 999px;
}

.cr-mov-amt b { font: 700 21px / 1 "Outfit", sans-serif; }

.cr-mov-credito .cr-mov-amt em { background: #eaf6d6; color: #3d8a00; }
.cr-mov-credito .cr-mov-amt b { color: #3d8a00; }
.cr-mov-debito .cr-mov-amt em { background: #ffe6ee; color: #ff2463; }
.cr-mov-debito .cr-mov-amt b { color: #ff2463; }

/* Barra de 7 días (avanza con el scroll: --plazo de 0 a 1) */
.cr-plazo {
  padding: 16px 20px 14px;
  border-radius: 20px;
  background: rgba(14, 16, 12, 0.62);
  border: 1px solid rgba(198, 239, 0, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
}

.cr-plazo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cr-plazo-top b { font: 700 18px / 1.1 "Outfit", sans-serif; }

.cr-plazo-dia {
  font: 500 14px / 1 "Outfit", sans-serif;
  color: var(--lima);
  font-variant-numeric: tabular-nums;
}

.cr-plazo-bar {
  position: relative;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.cr-plazo-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ec700, var(--lima));
  transform-origin: 0 50%;
  transform: scaleX(var(--plazo, 0));
}

.cr-plazo-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.cr-plazo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lima);
  opacity: clamp(0.22, calc(var(--plazo, 0) * 7 - var(--d) + 0.2), 1);
}

/* Qué sale y cuándo */
.cr-pin.is-paid .cr-pagado,
.cr-pin.is-cred .cr-mov-credito,
.cr-pin.is-plazo .cr-plazo,
.cr-pin.is-deb .cr-mov-debito {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  transition: transform 950ms var(--spring), opacity 360ms ease-out, filter 650ms ease-out;
}

/* Salidas */
.cr-pin.is-movs .cr-pagado,
.cr-pin.is-renew .cr-mov,
.cr-pin.is-renew .cr-plazo {
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, -50%) translateY(-90px) scale(0.92);
  transition: transform 700ms cubic-bezier(0.5, 0, 0.75, 0), opacity 500ms ease, filter 500ms ease;
}

/* ── Textos por capítulo ── */
.cr-caps {
  position: absolute;
  left: calc(var(--cap-x) * 1px);
  top: calc(var(--cap-y) * 1px);
  width: calc(var(--cap-w) * 1px);
  z-index: 9;
  color: #ffffff;
}

.cr-cap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 380ms ease, transform 500ms cubic-bezier(0.5, 0, 0.75, 0), filter 380ms ease;
}

.cr-scrolly[data-ch="1"] .cr-cap[data-i="1"],
.cr-scrolly[data-ch="2"] .cr-cap[data-i="2"],
.cr-scrolly[data-ch="3"] .cr-cap[data-i="3"],
.cr-scrolly[data-ch="4"] .cr-cap[data-i="4"],
.cr-scrolly[data-ch="5"] .cr-cap[data-i="5"] {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 600ms ease 120ms, transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms, filter 600ms ease 120ms;
}

.cr-cap-n {
  display: inline-block;
  font: 600 16px / 1 "Outfit", sans-serif;
  letter-spacing: 0.12em;
  color: var(--lima);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(198, 239, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
}

.cr-cap-t {
  margin: 20px 0 0;
  font: 700 52px / 1.02 "Outfit", sans-serif;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.cr-cap-p {
  margin: 16px 0 0;
  font: 400 21px / 1.4 "Outfit", sans-serif;
  color: rgba(238, 244, 230, 0.86);
}

.cr-prog {
  position: absolute;
  left: 0;
  top: 300px;
  display: flex;
  gap: 8px;
  transition: opacity 400ms ease;
}

.cr-prog i {
  display: block;
  width: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 500ms var(--spring), background-color 400ms ease;
}

.cr-scrolly[data-ch="1"] .cr-prog i[data-i="1"],
.cr-scrolly[data-ch="2"] .cr-prog i[data-i="2"],
.cr-scrolly[data-ch="3"] .cr-prog i[data-i="3"],
.cr-scrolly[data-ch="4"] .cr-prog i[data-i="4"],
.cr-scrolly[data-ch="5"] .cr-prog i[data-i="5"] {
  width: 38px;
  background: var(--lima);
}

.cr-scrolly[data-ch="0"] .cr-prog { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .cr-scrolly *,
  .cr-scrolly *::before,
  .cr-scrolly *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

/* ═════════════ LIENZO VERTICAL (teléfonos y tablets en vertical) · 390 × 760 ═════════════
   Texto arriba; elementos en el centro; teléfono 3/4 abajo a la derecha. */
@media (max-aspect-ratio: 1/1) {
  .cr-canvas {
    --cw: 390;
    --ch: 760;
    --ph-x: 284;
    --ph-y: 642;
    --ph-h: 372;
    --cd-x: 112;
    --cd-y: 478;
    --cd-w: 186;
    --cd-ry: -6;
    --cd-rx: 3;
    --cm-tk-x: 83;
    --cm-tk-y: -188;
    --cm-tk-s: 1.12;
    --cm-mv-x: -23;
    --cm-mv-y: -224;
    --cm-mv-s: 0.7;
    --cm-mv-op: 1;
    --tk-w: 165;
    --tk-h: 78;
    --tk-notch: 59px;
    --tk1-x: 106.5;
    --tk2-x: 283.5;
    --tk-y: 426;
    --tk1-ox: 46;
    --tk2-ox: -93;
    --tk-oy: -108;
    --tk-os: 0.18;
    --tk1-mx: 113;
    --tk1-my: -196;
    --tk2-mx: -64;
    --tk2-my: -144;
    --tk-ms: 0.55;
    --av-x: 195;
    --av-w: 330;
    --av-y0: 226;
    --av-dy: 45;
    --pg-x: 195;
    --pg-y: 520;
    --pg-w: 318;
    --mv-x: 195;
    --mv-w: 342;
    --mv-y1: 352;
    --mv-y2: 444;
    --mv-y3: 536;
    --cap-x: 24;
    --cap-y: 96;
    --cap-w: 342;
  }

  .cr-aviso { gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; }
  .cr-aviso-icono { width: 28px; height: 28px; border-radius: 8px; }
  .cr-aviso-icono img { height: 16px; }
  .cr-aviso-texto { font-size: 14px; }

  .cr-tk-tx small { font-size: 10.5px; }
  .cr-tk-tx b { margin-top: 5px; }
  .cr-tk-tx b i { font-size: 15px; }
  .cr-tk-face { padding-right: 10px; }
  .cr-tk-chk { width: 18px; height: 18px; right: -4px; top: -4px; }
  .cr-tk-chk svg { width: 11px; height: 11px; }

  .cr-pagado { gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; }
  .cr-pagado-app { width: 36px; height: 36px; border-radius: 9px; }
  .cr-pagado-app img { height: 20px; }
  .cr-pagado-txt b { font-size: 15px; }
  .cr-pagado-txt small { font-size: 12px; }
  .cr-pagado-ok { width: 24px; height: 24px; }
  .cr-pagado-hora { display: none; }

  .cr-mov { gap: 10px; padding: 11px 13px 11px 11px; border-radius: 16px; }
  .cr-mov-ic { width: 38px; height: 38px; }
  .cr-mov-ic svg { width: 18px; height: 18px; }
  .cr-mov-txt img { width: 84px; }
  .cr-mov-txt span { font-size: 13px; }
  .cr-mov-txt small { font-size: 11px; }
  .cr-mov-amt em { font-size: 10px; padding: 4px 7px; }
  .cr-mov-amt b { font-size: 16.5px; }

  .cr-plazo { padding: 12px 15px 11px; border-radius: 16px; }
  .cr-plazo-top b { font-size: 15px; }
  .cr-plazo-dia { font-size: 12px; }

  .cr-cap-n { display: none; }
  .cr-cap-t { margin: 0; font-size: 27px; line-height: 1.08; }
  .cr-cap-p { margin-top: 8px; font-size: 14.5px; line-height: 1.38; }
  .cr-prog { display: none; }
}

/* ═════════════ 4. RESPONSIVE (móvil + tablet · lienzo en flujo) ═════════════ */
@media (max-width: 1199.98px) {
  .rsp .credirecto-page .cr-hero-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-self: center;
    z-index: 2;
  }

  /* Ancla del teléfono: solo reserva la parte de arriba del teléfono
     (el resto queda encima del inicio de la escena) */
  .rsp .credirecto-page .pk-phone-1.cr-phone-anchor {
    position: relative;
    left: auto;
    top: auto;
    align-self: center;
  }

  .rsp .credirecto-page .cr-world-anchor {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 620vh;
    height: 620svh;
  }

  .cr-world { border-radius: 0 0 40px 40px; }
  .cr-world-sticky,
  .cr-pin { height: 100vh; height: 100svh; }

  .rsp .credirecto-page .pk-description { margin-top: 96px; }

  /* Las imágenes de los pasos se ven completas (texto + teléfono) */
  .rsp .credirecto-page .pk-step-card-img {
    height: auto;
    aspect-ratio: 1200 / 947;
  }
}

/* Móvil (< 768px) */
@media (max-width: 767.98px) {
  .rsp .credirecto-page .cr-hero-logo {
    width: min(170px, 46vw);
    margin: 112px auto 0;
  }

  .rsp .credirecto-page .pk-hero-subtitle { margin-top: 22px; }

  .rsp .credirecto-page .pk-phone-1.cr-phone-anchor {
    width: min(270px, 70vw);
    height: calc(min(270px, 70vw) * 0.95);
    margin-top: 36px;
  }

  .cr-word { font-size: 46vw; }
}

/* Tablet (768px – 1199.98px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .rsp .credirecto-page .cr-hero-logo {
    width: 210px;
    margin: 132px auto 0;
  }

  .rsp .credirecto-page .pk-hero-subtitle { margin-top: 26px; }

  .rsp .credirecto-page .pk-phone-1.cr-phone-anchor {
    width: 320px;
    height: 300px;
    margin-top: 48px;
  }
}
