/* ==========================================================================
   CHOLLOLOCURA STORIES / REELS 9:16 ENGINE
   Plantillas importadas del catálogo jsontovideo (SocialStoryLayoutCatalog,
   ChannelPromoLayoutCatalog, chollo-deal-card-9x16, lootbox-carta-legendaria-9x16)
   con animaciones CSS en vivo sobre lienzo 1080x1920 autoescalado.
   ========================================================================== */

/* ── Fullscreen Modal & 9:16 Viewport ────────────────────────────────────── */
.cl-story-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(4, 6, 14, 0.94);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.cl-story-modal[hidden] {
  display: none !important;
}

.cl-story-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  max-width: calc(100dvh * 9 / 16);
  max-height: 100dvh;
  background: #07060d;
  overflow: hidden;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.85);
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .cl-story-stage {
    height: min(94dvh, 920px);
    width: calc(min(94dvh, 920px) * 9 / 16);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Lienzo exacto 1080x1920 escalado por JS con --story-scale */
.cl-story-canvas-1080 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  transform-origin: top left;
  transform: scale(var(--story-scale, 0.35));
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--st-accent, #f43f5e) 32%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 16% 86%, color-mix(in srgb, var(--st-accent2, #fbbf24) 24%, transparent) 0%, transparent 48%),
    linear-gradient(155deg, var(--st-bg-start, #090408) 0%, var(--st-bg-mid, #1f0812) 48%, var(--st-bg-end, #3b0a1e) 100%);
}

.cl-story-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 82%);
  pointer-events: none;
}

/* Animaciones en vivo para que parezca un Reel/Story animado sin coste de vídeo */
@keyframes storyCardIn {
  0% { opacity: 0; transform: translateY(28px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes storyFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.2deg); }
}
@keyframes storyStampIn {
  0% { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  70% { opacity: 1; transform: scale(0.95) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@keyframes storyFoil {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes storyHeartPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-12deg); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(6deg); }
  70% { opacity: 1; transform: translate(-50%, -58%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -85%) scale(1.15); }
}

.cl-anim-enter {
  animation: storyCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cl-anim-float {
  animation: storyFloat 4.2s ease-in-out infinite;
}
.cl-anim-stamp {
  animation: storyStampIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Cuando el usuario mantiene pulsado (pause_hold), pausamos también las animaciones CSS */
.cl-story-stage.is-paused .cl-story-canvas-1080 * {
  animation-play-state: paused !important;
}

/* Feed caído o vacío: solo el aviso y la ✕ */
.cl-story-stage.is-error .cl-story-rail-right,
.cl-story-stage.is-error .cl-story-hud-bottom { display: none !important; }

/* ── HUD Superior: Barras de progreso + Cabecera ─────────────────────────── */
.cl-story-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 65%, transparent 100%);
}

.cl-story-progress-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.cl-story-progress-seg {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.cl-story-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ── Botonera lateral derecha estilo Reels / TikTok / Instagram ──────────── */
.cl-story-rail-right {
  position: absolute;
  right: 12px;
  bottom: 106px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cl-story-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease;
}
.cl-story-rail-btn:hover {
  transform: scale(1.08);
}
.cl-story-rail-btn:active {
  transform: scale(0.92);
}

.cl-story-rail-icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
}

.cl-story-rail-btn.is-liked .cl-story-rail-icon {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-color: #fda4af;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.55);
}

.cl-story-rail-label {
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.01em;
}

/* ── Barra inferior de Compra Directa (CTA siempre accesible) ────────────── */
.cl-story-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 70%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cl-story-cta-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--st-accent, #f43f5e) 0%, color-mix(in srgb, var(--st-accent, #f43f5e) 75%, #ff8a00) 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px -6px rgba(244, 63, 94, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.cl-story-cta-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cl-story-cta-primary:active {
  transform: scale(0.98);
}

/* ── Heart burst al hacer doble tap ──────────────────────────────────────── */
.cl-story-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 50;
  pointer-events: none;
  font-size: 96px;
  filter: drop-shadow(0 12px 28px rgba(244, 63, 94, 0.75));
  animation: storyHeartPop 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Bottom Sheets (Historial de precios, Comentarios, Registro rápido) ──── */
.cl-story-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cl-story-sheet-backdrop[hidden] {
  display: none !important;
}

.cl-story-sheet {
  max-height: 82%;
  background: #0f172a;
  color: #f8fafc;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.65);
  animation: storyCardIn 0.25s ease-out;
}

.cl-story-sheet-body {
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Elementos internos del lienzo 1080x1920 (Plantillas importadas) ─────── */
.st-box {
  position: absolute;
  inset: 0;
  padding: 150px 140px 260px 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.st-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-accent, #f43f5e) 22%, rgba(15, 23, 42, 0.8));
  border: 2px solid color-mix(in srgb, var(--st-accent, #f43f5e) 68%, #ffffff);
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.st-title-xl {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.st-chip-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-chip-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.14);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.st-chip-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--st-accent, #f43f5e);
  color: var(--st-accent-text, #ffffff);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Plantillas de chollo (stories-templates.js). Lienzo 1080x1920; la zona segura
   la da el padding de .t (HUD arriba, botonera a la derecha, compra abajo).
   ========================================================================== */
.t {
  position: absolute; inset: 0;
  padding: 150px 140px 270px 72px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.t > * { flex-shrink: 0; }   /* nada se aplasta en silencio: si no cabe, se ve al revisar */
.t-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.t-row.t-top { align-items: flex-start; flex-wrap: nowrap; }
.t-row.t-center { justify-content: center; }
.t-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.t-ph { background: #fff; border-radius: 36px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 26px; box-shadow: 0 30px 60px -18px rgba(0,0,0,.7); }
.t-ph img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t-hero { height: 700px; }
.t-hero.t-sm { height: 520px; }
.t-sq { width: 330px; height: 330px; flex-shrink: 0; }
.t-flag { align-self: flex-start; padding: 14px 28px; border-radius: 999px; font-size: 25px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--st-accent) 24%, rgba(15,23,42,.82)); border: 2px solid color-mix(in srgb, var(--st-accent) 70%, #fff); }
.t-title { margin: 0; font-size: 54px; font-weight: 900; line-height: 1.07; letter-spacing: -.025em; text-shadow: 0 6px 24px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-title.t-sm { font-size: 42px; }
.t-title.t-xl { font-size: 70px; -webkit-line-clamp: 4; }
.t-title.t-hand { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 64px; font-weight: 700; transform: rotate(-2deg); }
.t-price { display: flex; align-items: flex-start; line-height: .86; color: var(--st-accent2); text-shadow: 0 10px 30px rgba(0,0,0,.6); font-weight: 900; letter-spacing: -.05em; }
.t-pi { font-size: 170px; }
.t-pd { font-size: 66px; margin-top: 14px; }
.t-price.t-md .t-pi { font-size: 112px; }
.t-price.t-md .t-pd { font-size: 46px; margin-top: 8px; }
.t-old { font-size: 42px; font-weight: 700; color: rgba(255,255,255,.55); text-decoration: line-through; }
.t-disc { align-self: flex-start; padding: 10px 24px; border-radius: 20px; font-size: 46px; font-weight: 900; background: var(--st-accent); color: var(--st-accent-text); }
.t-store { display: inline-flex; align-items: center; gap: 14px; padding: 12px 24px; border-radius: 999px; background: rgba(15,23,42,.8); border: 2px solid rgba(255,255,255,.2); font-size: 28px; font-weight: 800; align-self: flex-start; }
.t-store img { height: 34px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px 6px; }
.t-note { font-size: 30px; font-weight: 700; color: rgba(255,255,255,.8); max-width: 420px; line-height: 1.25; }
.t-save-bar { padding: 22px 30px; border-radius: 26px; background: rgba(16,185,129,.2); border: 2px solid #10b981; color: #6ee7b7; font-size: 34px; font-weight: 800; text-align: center; }

/* Animaciones (todas se paran con la pausa: .is-paused) */
@keyframes tFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes tPop { 0% { opacity: 0; transform: scale(.6) } 70% { transform: scale(1.05) } 100% { opacity: 1; transform: scale(1) } }
@keyframes tDrop { 0% { opacity: 0; transform: translateY(-40px) } 100% { opacity: 1; transform: none } }
@keyframes tSlideL { from { opacity: 0; transform: translateX(-120px) } to { opacity: 1; transform: none } }
@keyframes tSlideR { from { opacity: 0; transform: translateX(120px) } to { opacity: 1; transform: none } }
@keyframes tSwing { 0%,100% { transform: rotate(-7deg) } 50% { transform: rotate(5deg) } }
@keyframes tFlicker { 0%,19%,21%,60%,62%,100% { opacity: 1 } 20%,61% { opacity: .35 } }
@keyframes tSpinIn { from { opacity: 0; transform: rotate(-200deg) scale(.3) } to { opacity: 1; transform: rotate(12deg) scale(1) } }
@keyframes tFilm { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes tRays { to { transform: rotate(360deg) } }
@keyframes tGrow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
.t-float { animation: tFloat 4.5s ease-in-out infinite; }
.t-pop { animation: tPop .55s cubic-bezier(.22,1,.36,1) both; }
.t-drop { animation: tDrop .5s cubic-bezier(.22,1,.36,1) both; }
.t-slide-l { animation: tSlideL .6s cubic-bezier(.22,1,.36,1) both; }
.t-slide-r { animation: tSlideR .6s .1s cubic-bezier(.22,1,.36,1) both; }
.t-swing { transform-origin: 50% 0; animation: tSwing 3.2s ease-in-out infinite; }
.t-flicker { animation: tFlicker 3s linear infinite; }
.t-spin-in { animation: tSpinIn .8s cubic-bezier(.22,1,.36,1) both; }
.t-d0 { animation-delay: .1s } .t-d1 { animation-delay: .35s } .t-d2 { animation-delay: .6s } .t-d3 { animation-delay: .85s } .t-d4 { animation-delay: 1.1s }

/* polaroids */
.t-pol-wrap { position: relative; height: 820px; }
.t-pol { position: absolute; width: 470px; padding: 22px 22px 80px; background: #fdfcf7; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.6); animation: tDrop .6s cubic-bezier(.22,1,.36,1) both; }
.t-pol .t-ph { height: 420px; box-shadow: none; border-radius: 2px; padding: 16px; }
.t-pol span { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font: 700 42px 'Caveat','Segoe Print',cursive; color: #334155; }
.t-pol-1 { left: 0; top: 40px; rotate: -8deg; }
.t-pol-2 { left: 330px; top: 0; rotate: 6deg; animation-delay: .25s; }
.t-pol-3 { left: 160px; top: 330px; rotate: -2deg; animation-delay: .5s; z-index: 2; }

/* mosaico */
.t-mosaic { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; height: 860px; }
.t-mosaic .t-ph { border-radius: 28px; }
.t-mosaic-price { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 26px 40px; border-radius: 40px; background: rgba(10,10,20,.9); border: 4px solid var(--st-accent2); display: flex; align-items: center; gap: 22px; }
.t-mosaic-price .t-pi { font-size: 120px } .t-mosaic-price .t-pd { font-size: 48px }

/* duo */
.t-duo { position: relative; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 22px; height: 610px; }
.t-duo-amp { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 110px; height: 110px; border-radius: 50%; background: var(--st-accent); color: var(--st-accent-text); font-size: 80px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 8px solid #fff; }

/* carrusel: fundido entre fotos dentro de la historia */
.t-carousel { position: relative; height: 860px; border-radius: 44px; overflow: hidden; }
.t-carousel .t-ph { position: absolute; inset: 0; opacity: 0; border-radius: 44px; }
.t-carousel.t-n3 .t-cf { animation: tCf3 6s infinite; } .t-carousel.t-n4 .t-cf { animation: tCf4 6s infinite; }
.t-carousel.t-n3 .t-cf1, .t-carousel.t-n3 .t-dot1 { animation-delay: 2s } .t-carousel.t-n3 .t-cf2, .t-carousel.t-n3 .t-dot2 { animation-delay: 4s }
.t-carousel.t-n4 .t-cf1, .t-carousel.t-n4 .t-dot1 { animation-delay: 1.5s } .t-carousel.t-n4 .t-cf2, .t-carousel.t-n4 .t-dot2 { animation-delay: 3s } .t-carousel.t-n4 .t-cf3, .t-carousel.t-n4 .t-dot3 { animation-delay: 4.5s }
@keyframes tCf3 { 0% { opacity: 0; transform: scale(1.06) } 5%,30% { opacity: 1; transform: scale(1) } 36%,100% { opacity: 0 } }
@keyframes tCf4 { 0% { opacity: 0; transform: scale(1.06) } 4%,22% { opacity: 1; transform: scale(1) } 28%,100% { opacity: 0 } }
.t-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; z-index: 2; }
.t-dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(15,23,42,.3); }
.t-carousel.t-n3 .t-dot { animation: tDot3 6s infinite } .t-carousel.t-n4 .t-dot { animation: tDot4 6s infinite }
@keyframes tDot3 { 0%,33% { background: var(--st-accent) } 34%,100% { background: rgba(15,23,42,.3) } }
@keyframes tDot4 { 0%,25% { background: var(--st-accent) } 26%,100% { background: rgba(15,23,42,.3) } }

/* revista */
.tpl-revista { gap: 18px; }
.t-mag-top { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 4px solid #fff; padding-bottom: 10px; }
.t-mag-name { font: 900 150px/0.85 'Playfair Display', Georgia, serif; letter-spacing: -.04em; color: var(--st-accent2); }
.t-mag-issue { font-size: 22px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; max-width: 280px; text-align: right; }
.t-mag-photo { height: 700px; border-radius: 8px; }
.t-mag-lines p { margin: 0 0 10px; font: italic 700 34px/1.2 Georgia, serif; border-left: 8px solid var(--st-accent); padding-left: 18px; }
.t-mag-foot { position: relative; }
.t-mag-sticker { position: absolute; right: -40px; top: -250px; width: 280px; height: 280px; border-radius: 50%; background: var(--st-accent); display: flex; align-items: center; justify-content: center; rotate: -12deg; box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: tPop .6s .4s both; }
.t-mag-sticker .t-price { color: #fff } .t-mag-sticker .t-pi { font-size: 96px } .t-mag-sticker .t-pd { font-size: 38px }

/* ticket */
.tpl-ticket { justify-content: center; }
.t-tk { background: #fbfaf5; color: #1e293b; padding: 46px 50px 40px; font-family: 'Courier New', ui-monospace, monospace; border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,.6); animation: tDrop .7s both; }
.t-tk-head { text-align: center; font-size: 46px; font-weight: 900; letter-spacing: .1em; border-bottom: 3px dashed #94a3b8; padding-bottom: 16px; }
.t-tk-head small { display: block; font-size: 22px; letter-spacing: .04em; font-weight: 700; margin-top: 6px; }
.t-tk-photo { height: 420px; box-shadow: none; margin: 24px 0; }
.t-tk-item { font-size: 30px; font-weight: 700; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-tk-row { display: flex; justify-content: space-between; font-size: 32px; padding: 6px 0; }
.t-tk-neg { color: #dc2626; font-weight: 900; }
.t-tk-total { display: flex; justify-content: space-between; align-items: center; border-top: 3px dashed #94a3b8; margin-top: 14px; padding-top: 14px; font-size: 44px; font-weight: 900; }
.t-tk-total .t-price { color: #0f172a; text-shadow: none; } .t-tk-total .t-pi { font-size: 110px } .t-tk-total .t-pd { font-size: 44px }
.t-tk-save { text-align: center; font-size: 32px; font-weight: 900; color: #059669; margin: 10px 0; }
.t-tk-bar { height: 90px; margin-top: 10px; background: repeating-linear-gradient(90deg, #0f172a 0 4px, transparent 4px 9px, #0f172a 9px 11px, transparent 11px 17px); }

/* etiqueta colgante */
.t-tag-stage { position: relative; height: 940px; }
.t-tag-photo { position: absolute; inset: 0 140px 0 0; }
.t-tag { position: absolute; right: -40px; top: 0; width: 330px; padding: 90px 26px 34px; background: var(--st-accent2); color: #111; border-radius: 26px 26px 36px 36px; clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t-tag-hole { position: absolute; top: 40px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--st-bg-mid); }
.t-tag .t-price { color: #111; text-shadow: none; } .t-tag .t-pi { font-size: 110px } .t-tag .t-pd { font-size: 44px }
.t-tag .t-old { color: rgba(0,0,0,.55); font-size: 34px } .t-tag .t-disc { align-self: center; background: #111; color: #fff; }

/* neón */
.tpl-neon { text-align: center; }
.t-neon-sign { font: 900 160px/1 'Outfit', system-ui; letter-spacing: .08em; color: #fff; text-shadow: 0 0 10px var(--st-accent), 0 0 30px var(--st-accent), 0 0 70px var(--st-accent); }
.t-neon-photo { height: 620px; box-shadow: 0 0 0 6px var(--st-accent), 0 0 60px var(--st-accent); }
.t-neon-price { display: flex; justify-content: center; } .t-neon-price .t-price { color: #fff; text-shadow: 0 0 12px var(--st-accent2), 0 0 40px var(--st-accent2); }

/* checklist */
.t-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.t-check li { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 26px; background: rgba(15,23,42,.75); border: 2px solid rgba(255,255,255,.14); font-size: 34px; font-weight: 700; line-height: 1.2; animation: tSlideL .5s cubic-bezier(.22,1,.36,1) both; }
.t-check b { width: 62px; height: 62px; border-radius: 18px; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }

/* carrete de fotos */
.t-film { height: 620px; margin: 0 -140px 0 -72px; background: #0b0b0b; padding: 46px 0; overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.t-film::before, .t-film::after { content: ''; position: absolute; left: 0; right: 0; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 26px, #e5e7eb 26px 52px); opacity: .7; z-index: 1; }
.t-film::before { top: 12px } .t-film::after { bottom: 12px }
.t-film-track { display: flex; gap: 26px; width: max-content; animation: tFilm 14s linear infinite; }
.t-frame { width: 500px; height: 528px; border-radius: 10px; flex-shrink: 0; }

/* lupa */
.t-loupe { position: relative; height: 900px; }
.t-loupe-main { position: absolute; inset: 0 120px 120px 0; }
.t-loupe-c { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 12px solid var(--st-accent2); padding: 30px; }
.t-loupe-a { right: -40px; top: 60px; } .t-loupe-b { right: 60px; bottom: 0; }

/* versus */
.t-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; height: 420px; }
.t-vs-col { position: relative; border-radius: 30px; overflow: hidden; background: rgba(15,23,42,.8); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; text-align: center; }
.t-vs-col i { position: absolute; left: 0; right: 0; bottom: 0; transform-origin: bottom; animation: tGrow 1s cubic-bezier(.22,1,.36,1) both; }
.t-vs-before i { background: rgba(248,113,113,.35) } .t-vs-now i { background: color-mix(in srgb, var(--st-accent) 55%, transparent); animation-delay: .4s }
.t-vs-col small, .t-vs-col b { position: relative; z-index: 1; }
.t-vs-col small { font-size: 26px; font-weight: 900; letter-spacing: .1em; }
.t-vs-col b { font-size: 70px; font-weight: 900; }
.t-vs-before b { text-decoration: line-through; color: #fca5a5; }

/* porcentaje gigante */
.t-big-pct { font: 900 400px/.8 'Outfit', system-ui; letter-spacing: -.06em; color: var(--st-accent2); text-shadow: 0 30px 60px rgba(0,0,0,.6); }
.t-big-pct span { font-size: 200px; }

/* gráfica */
.t-chart { position: relative; display: flex; align-items: flex-end; gap: 30px; height: 820px; padding-top: 260px; }
.t-chart-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.t-chart-bar i { width: 100%; border-radius: 24px 24px 0 0; background: rgba(255,255,255,.18); transform-origin: bottom; animation: tGrow .9s cubic-bezier(.22,1,.36,1) both; }
.t-chart-mid i { animation-delay: .2s } .t-chart-now i { background: var(--st-accent); animation-delay: .4s; }
.t-chart-bar span { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 30px; font-weight: 900; }
.t-chart-photo { position: absolute; right: 0; top: 0; width: 320px; height: 320px; animation: tPop .6s .7s both; }

/* calendario de lanzamiento */
.t-cal { align-self: center; width: 420px; border-radius: 36px; overflow: hidden; background: #fff; color: #0f172a; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.t-cal-top { background: var(--st-accent); color: #fff; font-size: 44px; font-weight: 900; padding: 18px; letter-spacing: .1em; }
.t-cal-day { font: 900 220px/1 'Outfit', system-ui; }
.t-cal-foot { font-size: 26px; font-weight: 800; padding-bottom: 22px; letter-spacing: .08em; color: #64748b; }

/* recién llegado */
.t-sticker { position: absolute; right: 120px; top: 230px; z-index: 3; width: 300px; height: 300px; border-radius: 50%; background: var(--st-accent2); color: #111; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 50px; font-weight: 900; line-height: 1; box-shadow: 0 20px 40px rgba(0,0,0,.5); border: 8px dashed rgba(0,0,0,.25); }

/* medalla */
.t-medal { position: relative; align-self: center; width: 420px; height: 420px; }
.t-medal-rays { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(var(--st-accent2) 0 10deg, transparent 10deg 20deg); animation: tRays 14s linear infinite; opacity: .55; }
.t-medal-core { position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #b45309); color: #451a03; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 96px; box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 0 0 10px rgba(255,255,255,.35); }
.t-medal-core b { font-size: 50px; letter-spacing: .06em; } .t-medal-core small { font-size: 28px; font-weight: 900; letter-spacing: .1em; }

/* escaparate */
.t-awning { height: 90px; margin: -10px -140px 0 -72px; flex-shrink: 0; background: repeating-linear-gradient(90deg, var(--st-accent) 0 90px, #fff 90px 180px); border-radius: 0 0 40px 40px; }
.t-window { position: relative; height: 880px; border: 14px solid rgba(255,255,255,.85); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.35)); overflow: hidden; }
.t-spot { position: absolute; left: 50%; top: -120px; width: 700px; height: 900px; margin-left: -350px; background: radial-gradient(ellipse at top, rgba(255,250,220,.5), transparent 65%); }
.t-window-photo { position: absolute; left: 90px; right: 90px; bottom: 120px; height: 540px; }
.t-shelf { position: absolute; left: 0; right: 0; bottom: 80px; height: 40px; background: linear-gradient(#a16207, #713f12); }
.t-window-tag { position: absolute; right: 30px; top: 40px; padding: 18px 26px; border-radius: 22px; background: rgba(10,10,20,.88); border: 3px solid var(--st-accent2); animation: tSwing 3s ease-in-out infinite; transform-origin: 50% -40px; }

/* avisos de móvil */
.tpl-avisos { justify-content: flex-start; }
.t-lock-time { font: 300 190px/1 'Outfit', system-ui; text-align: center; letter-spacing: -.04em; margin-bottom: 10px; }
.t-notes { display: flex; flex-direction: column; gap: 20px; }
.t-note-card { padding: 26px 30px; border-radius: 36px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); }
.t-note-head { display: flex; justify-content: space-between; font-size: 26px; opacity: .85; margin-bottom: 8px; }
.t-note-card p { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.2; }
.tpl-avisos .t-row { margin-top: auto; }

/* chat */
.t-chat-head { display: flex; align-items: center; gap: 20px; padding: 20px 26px; border-radius: 30px; background: rgba(15,23,42,.8); font-size: 32px; }
.t-chat-head i { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--st-accent), var(--st-accent2)); }
.t-chat-head span { margin-left: auto; font-size: 24px; color: #4ade80; }
.t-chat { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: flex-end; }
.t-msg { max-width: 76%; padding: 24px 30px; border-radius: 36px; font-size: 36px; font-weight: 600; line-height: 1.25; }
.t-msg-in { align-self: flex-start; background: rgba(255,255,255,.95); color: #0f172a; border-bottom-left-radius: 8px; }
.t-msg-out { align-self: flex-end; background: var(--st-accent); color: var(--st-accent-text); border-bottom-right-radius: 8px; }
.t-chat-img { align-self: flex-end; width: 520px; height: 420px; }

/* periódico */
.tpl-periodico { justify-content: center; }
.t-paper { background: #f5f0e6; color: #1c1917; padding: 40px 44px; border-radius: 4px; box-shadow: 0 40px 80px rgba(0,0,0,.6); rotate: -1.5deg; font-family: Georgia, 'Times New Roman', serif; animation: tPop .6s both; }
.t-paper-name { text-align: center; font: 900 92px/1 'Playfair Display', Georgia, serif; letter-spacing: -.02em; }
.t-paper-meta { display: flex; justify-content: space-between; border-top: 3px solid #1c1917; border-bottom: 3px solid #1c1917; margin: 14px 0 20px; padding: 8px 0; font-size: 22px; text-transform: uppercase; letter-spacing: .08em; }
.t-paper-head { font: 900 76px/1 'Playfair Display', Georgia, serif; text-align: center; margin-bottom: 20px; }
.t-paper-photo { height: 470px; box-shadow: none; border-radius: 0; }
.t-paper-cols { columns: 2; column-gap: 34px; font-size: 26px; line-height: 1.35; margin-top: 18px; }
.t-paper-cols p { margin: 0 0 12px; }
.t-paper-price { display: flex; justify-content: center; } .t-paper-price .t-price { color: #b91c1c; text-shadow: none; }

/* entrada de evento */
.t-ticket2 { display: flex; height: 760px; border-radius: 40px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.6); animation: tSlideL .6s both; }
.t-ticket2-main { flex: 1; min-width: 0; background: #fff; color: #0f172a; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.t-ticket2-main small, .t-ticket2-stub small { font-size: 24px; font-weight: 900; letter-spacing: .14em; }
.t-ticket2-main .t-title { color: #0f172a; text-shadow: none; }
.t-ticket2-photo { flex: 1; box-shadow: none; padding: 10px; }
.t-ticket2-stub { width: 250px; background: var(--st-accent); border-left: 8px dashed rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; gap: 30px; writing-mode: vertical-rl; rotate: 180deg; }
.t-ticket2-stub .t-price { color: #fff; }

/* galería */
.t-gal-main { height: 620px; }
.t-thumbs { display: flex; gap: 20px; }
.t-thumb { flex: 1; height: 230px; border-radius: 24px; padding: 14px; }

/* diagonal */
.t-diag-bg { position: absolute; inset: 0; background: var(--st-accent); clip-path: polygon(0 0, 100% 0, 100% 34%, 0 58%); opacity: .9; }
.t-diag-photo { position: absolute; right: 150px; top: 170px; width: 620px; height: 620px; border-radius: 50%; rotate: -6deg; animation: tPop .7s both; }
.t-diag-text { margin-top: auto; display: flex; flex-direction: column; gap: 22px; position: relative; }

/* regalo */
.t-gift { position: relative; border-radius: 44px; overflow: hidden; background: linear-gradient(145deg, var(--st-accent), color-mix(in srgb, var(--st-accent) 50%, #000)); padding: 30px; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.t-gift-ribbon { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 46%, var(--st-accent2) 46% 54%, transparent 54%), linear-gradient(0deg, transparent 72%, var(--st-accent2) 72% 78%, transparent 78%); opacity: .9; }
.t-gift-photo { position: relative; height: 600px; }
.t-gift-foot { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.t-gift-foot small { font-size: 28px; font-weight: 900; letter-spacing: .14em; }

/* ficha con puntos alrededor */
.t-spec { position: relative; height: 860px; }
.t-spec-photo { position: absolute; left: 150px; right: 150px; top: 150px; bottom: 150px; border-radius: 50%; }
.t-spec-pt { position: absolute; width: 400px; padding: 18px 22px; border-radius: 24px; background: rgba(15,23,42,.88); border: 2px solid var(--st-accent); font-size: 28px; font-weight: 700; line-height: 1.2; display: flex; gap: 14px; }
.t-spec-pt span { font-size: 36px; }
.t-spec-0 { left: 0; top: 0 } .t-spec-1 { right: 0; top: 120px } .t-spec-2 { left: 0; bottom: 120px } .t-spec-3 { right: 0; bottom: 0 }

/* pila de fotos + pastillas */
.t-stack { position: relative; height: 740px; }
.t-stack-back { position: absolute; width: 560px; height: 600px; right: 0; top: 0; rotate: 7deg; opacity: .9; }
.t-stack-front { position: absolute; width: 600px; height: 640px; left: 0; bottom: 0; rotate: -4deg; animation: tSlideL .6s both; }
.t-pills { display: flex; flex-wrap: wrap; gap: 16px; }
.t-pill { padding: 16px 26px; border-radius: 999px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); font-size: 30px; font-weight: 700; }

