/* ============================================================
   TIERRA STICKERS — SISTEMA DE DISEÑO Y ESTILOS
   Archivo: css/stickers.css
   ============================================================ */

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes spinDegrade {
  to {
    --a: 360deg;
  }
}

:root {
  /* Paleta vibrante y divertida */
  --ts-primary: #ff4d6d;
  --ts-primary-hover: #ff2a51;
  --ts-secondary: #ffb703;
  --ts-accent-cyan: #06d6a0;
  --ts-accent-purple: #8338ec;
  --ts-accent-blue: #3a86ff;

  /* Superficie del catálogo (Dark Mode inmersivo de alto contraste) */
  --bg-dark-base: #0c0a14;
  --bg-dark-card: #151122;
  --bg-dark-elevated: #1e1933;
  --bg-dark-border: rgba(255, 255, 255, 0.08);
  --bg-dark-border-hover: rgba(255, 77, 109, 0.5);

  /* Superficie clara (Hero / landing) */
  --bg-light-cream: #fffaf0;
  --text-dark: #1f1b2e;
  --text-muted: #736d85;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  /* Tipografías */
  --font-display: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y acabados */
  --shadow-diecut: 0 4px 10px rgba(0, 0, 0, 0.4), 0 12px 24px rgba(0, 0, 0, 0.45);
  --shadow-diecut-hover: 0 10px 20px rgba(0, 0, 0, 0.5), 0 20px 35px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 77, 109, 0.35);

  /* Radio de bordes */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Transición */
  --spring-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-dark-base);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   BARRA DE NAVEGACIÓN MODERNA
   ══════════════════════════════════════════ */
.ts-header {
  position: sticky;
  top: 16px;
  z-index: 1000;
  padding: 0 16px;
  margin-bottom: 24px;
}

.ts-nav-pill {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(21, 17, 34, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.ts-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
  min-width: 0;
  flex-shrink: 1;
}

.ts-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ts-primary);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.ts-brand:hover img {
  transform: rotate(18deg) scale(1.15);
}

.ts-brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffb703, #ff4d6d, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.ts-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ts-nav-link {
  color: var(--text-light-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.ts-nav-link:hover,
.ts-nav-link.active {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.ts-btn-cart-nav {
  position: relative;
  background: linear-gradient(180deg, #ff6b8b 0%, var(--ts-primary) 50%, var(--ts-accent-purple) 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 77, 109, 0.6);
  transition: all 150ms ease;
  flex-shrink: 0;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-cart-nav::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para 2px de gap negro y 3px de borde degradado) */
  inset: -5px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #ff4d6d, #eecb47, #6d6ff4, #ff4d6d);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
}

.ts-btn-cart-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ff6b8b 0%, var(--ts-primary) 50%, var(--ts-accent-purple) 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 3px #000000;
  z-index: -1;
}

.ts-cart-star {
  display: inline;
}

.ts-btn-cart-nav:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(255, 77, 109, 0.75);
}

.ts-btn-cart-nav:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-cart-badge {
  background: #ffb703;
  color: #120d1c;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   HERO INTERACTIVO Y FIESTA DE STICKERS
   ══════════════════════════════════════════ */
.ts-hero-section {
  position: relative;
  padding: 40px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.ts-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #ffb703;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 20px;
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.ts-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 20px;
}

.ts-hero-title span.grad {
  background: linear-gradient(135deg, #ff4d6d, #ffb703, #06d6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ts-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-light-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 600;
}

.ts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.ts-btn-primary {
  position: relative;
  background: linear-gradient(180deg, #ff758f 0%, #ff4d6d 50%, #ff2a51 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 77, 109, 0.6);
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-primary::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para 2px de gap negro y 3px de borde degradado) */
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #ff4d6d, #eecb47, #6d6ff4, #ff4d6d);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ff758f 0%, #ff4d6d 50%, #ff2a51 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 2px #000000;
  z-index: -1;
}

.ts-btn-primary:hover:not(:disabled) {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(255, 77, 109, 0.75);
}

.ts-btn-primary:hover:not(:disabled)::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.5);
}

.ts-btn-blue {
  position: relative;
  background: linear-gradient(180deg, #4492e6 0%, #277CD0 55%, #1a64b0 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(39, 124, 208, 0.6);
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-blue::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para 2px de gap negro y 3px de borde degradado) */
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #3a86ff, #06d6a0, #8338ec, #3a86ff);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #4492e6 0%, #277CD0 55%, #1a64b0 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 2px #000000;
  z-index: -1;
}

.ts-btn-blue:hover:not(:disabled) {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(39, 124, 208, 0.75);
  color: #fff;
}

.ts-btn-blue:hover:not(:disabled)::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-blue:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-lila {
  position: relative;
  background: linear-gradient(180deg, #cd5ecb 0%, #B841B7 55%, #992898 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(184, 65, 183, 0.6);
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-lila::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para 2px de gap negro y 3px de borde degradado) */
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #8338ec, #ff4d6d, #ffb703, #8338ec);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-lila::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #cd5ecb 0%, #B841B7 55%, #992898 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 2px #000000;
  z-index: -1;
}

.ts-btn-lila:hover:not(:disabled) {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(184, 65, 183, 0.75);
  color: #fff;
}

.ts-btn-lila:hover:not(:disabled)::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-lila:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-orange {
  position: relative;
  background: linear-gradient(180deg, #ffbb33 0%, #f97316 50%, #ea580c 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(249, 115, 22, 0.6);
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-orange::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #ffc300, #ff9100, #f75c03, #ffb703, #ffc300);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-orange::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ffbb33 0%, #f97316 50%, #ea580c 100%);
  box-shadow: 0 0 0 2px #000000;
  z-index: -1;
}

.ts-btn-orange:hover:not(:disabled) {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(249, 115, 22, 0.75);
  color: #fff;
}

.ts-btn-orange:hover:not(:disabled)::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-orange:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-orange:hover:not(:disabled)::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: var(--spring-transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ts-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.ts-btn-back-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 20px -6px rgba(0, 0, 0, 0.5);
  transition: all 150ms ease;
  margin-bottom: 24px;
}

.ts-btn-back-footer:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 26px -4px rgba(0, 0, 0, 0.65);
  color: #fff;
}

.ts-btn-back-footer:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Marquee / Cinta deslizante de muestras */
.ts-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.ts-marquee-track {
  display: inline-flex;
  gap: 24px;
  animation: marqueeScroll 70s linear infinite;
}

.ts-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ts-marquee-item {
  width: 135px;
  height: 135px;
  background: #181427;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.ts-marquee-item:hover {
  transform: scale(1.2) rotate(6deg);
  border-color: var(--ts-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ts-marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* ══════════════════════════════════════════
   SIMULADOR INTERACTIVO
   ══════════════════════════════════════════ */
.ts-simulator-section {
  max-width: 1240px;
  margin: 60px auto;
  padding: 0 20px;
}

.ts-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.ts-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.ts-section-title .ts-title-suffix {
  display: inline;
}

@media (orientation: portrait) {
  .ts-section-title .ts-title-suffix {
    display: none;
  }
}

.ts-section-subtitle {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.ts-sim-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ts-sim-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ts-control-group {
  background: var(--bg-dark-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ts-control-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffb703;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Selector de Objetos */
.ts-object-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ts-obj-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ts-obj-btn span.emoji {
  font-size: 1.6rem;
}

.ts-obj-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ts-obj-btn.active {
  background: rgba(255, 77, 109, 0.15);
  border-color: var(--ts-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.3);
}

/* Bandeja rápida de stickers para arrastrar al simulador interactivo */
.ts-sim-sticker-tray {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: thin;
}

.ts-sim-tray-item {
  width: 60px;
  height: 60px;
  /*background: #110e1b;*/
  /*border: 1px solid rgba(255, 255, 255, 0.1);*/
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: grab;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ts-sim-tray-item:hover {
  transform: scale(1.1);
  border-color: var(--ts-secondary);
}

.ts-sim-tray-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Controles de sticker seleccionado en el simulador interactivo */
.ts-sticker-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

.ts-tool-slider {
  flex: 1;
  accent-color: var(--ts-primary);
  cursor: pointer;
}

/* Switch de dos posiciones Chico / Grande en el simulador interactivo */
.ts-size-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.ts-size-switch .ts-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-light-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-size-switch.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ts-size-switch .ts-switch-btn:hover:not(:disabled) {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

.ts-size-switch .ts-switch-btn.active:not(:disabled) {
  background: linear-gradient(135deg, var(--ts-primary) 0%, #ff758f 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.4);
}

.ts-size-switch .ts-switch-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-light-muted);
  box-shadow: none;
}

.ts-sim-action-btns {
  display: flex;
  gap: 8px;
}

.ts-btn-sim-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-btn-sim-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.ts-btn-sim-action.active {
  background: linear-gradient(135deg, var(--ts-primary) 0%, #ff758f 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(255, 77, 109, 0.4);
}

.ts-btn-sim-action:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.9);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.ts-btn-sim-action.danger {
  color: #ff4d6d;
}

.ts-btn-sim-action.danger:hover {
  background: rgba(255, 77, 109, 0.15);
}

/* Canvas o Escenario del Mockup */
.ts-mockup-stage-wrap {
  position: relative;
  background: radial-gradient(circle at center, #1b152b 0%, #0d0a17 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

/* Objeto renderizado en el mockup (Termo, Laptop, etc.) */
.ts-mockup-object {
  position: relative;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

/* Termo Deportivo Estilo Montagne */
.ts-obj-thermos {
  width: 176px;
  height: 400px;
  margin-top: 72px;
  /* Compensa la tapa superior para centrado óptico perfecto */
  background: linear-gradient(90deg,
      #461017 0%,
      #6c1824 10%,
      #8f2130 22%,
      #b02a3d 38%,
      #d4495e 46%,
      #be2f44 54%,
      #8d1f2e 74%,
      #5c141f 90%,
      #3d0d14 100%);
  border-radius: 6px 6px 18px 18px;
  box-shadow:
    /* Ranura sutil de la base */
    inset 0 -24px 0 #7b1a27,
    inset 0 -25px 0 #2e080e,
    /* Sombra interna de encastre superior */
    inset 0 4px 6px rgba(0, 0, 0, 0.5),
    /* Sombra 3D proyectada */
    0 25px 50px -10px rgba(0, 0, 0, 0.75),
    0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  border: none;
}

/* Tapa roja superior y tapón de pico negro */
.ts-obj-thermos::before {
  content: '';
  position: absolute;
  top: -122px;
  left: 50%;
  transform: translateX(-50%);
  width: 166px;
  height: 98px;
  border-radius: 28px 28px 2px 2px;
  background:
    /* Botón / tapón negro en la cima */
    radial-gradient(ellipse at 50% 100%, #2a2931 0%, #131216 75%) no-repeat top center / 106px 14px,
    /* Cuerpo del vaso rojo */
    linear-gradient(90deg,
      #461017 0%,
      #6c1824 10%,
      #8f2130 22%,
      #b02a3d 38%,
      #d4495e 46%,
      #be2f44 54%,
      #8d1f2e 74%,
      #5c141f 90%,
      #3d0d14 100%) no-repeat bottom center / 100% 84px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.22),
    inset 0 -4px 6px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Cuello / Aro intermedio negro de silicona */
.ts-obj-thermos::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 176px;
  height: 24px;
  background: linear-gradient(90deg,
      #111113 0%,
      #1e1d23 12%,
      #33313b 36%,
      #474552 46%,
      #35333d 54%,
      #1e1d23 78%,
      #0e0e10 100%);
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.18),
    inset 0 -2px 3px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Laptop */
.ts-obj-laptop {
  width: 440px;
  height: 300px;
  background: linear-gradient(135deg, #232733 0%, #171922 100%);
  border-radius: 18px;
  border: 3px solid #3b4254;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
}

.ts-obj-laptop::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  pointer-events: none;
  opacity: 0.38;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='silverGrad' x1='15%25' y1='10%25' x2='85%25' y2='90%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.95'/%3E%3Cstop offset='45%25' stop-color='%23cbd5e1' stop-opacity='0.8'/%3E%3Cstop offset='75%25' stop-color='%2364748b' stop-opacity='0.5'/%3E%3Cstop offset='100%25' stop-color='%2394a3b8' stop-opacity='0.9'/%3E%3C/linearGradient%3E%3CradialGradient id='silverGlow' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.12'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='42' stroke='url(%23silverGrad)' stroke-width='3.2' fill='url(%23silverGlow)'/%3E%3Cpath d='M34 65 L43 35' stroke='url(%23silverGrad)' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M44 65 L53 35' stroke='url(%23silverGrad)' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M54 65 L63 35' stroke='url(%23silverGrad)' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M64 65 L68 51' stroke='url(%23silverGrad)' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Celular */
.ts-obj-phone {
  width: 220px;
  height: 420px;
  background: linear-gradient(145deg, #1e1b2e 0%, #0d0b14 100%);
  border-radius: 36px;
  border: 4px solid #3b3353;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

.ts-obj-phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #110e1a;
  border-radius: 18px;
  border: 2px solid #302944;
}

/* Auto — Frente de Cola / Tapa del Baúl Gris Plomo con Patente TIERRA */
.ts-obj-car {
  width: 720px;
  height: 480px;
  max-width: 96%;
  background-color: transparent;
  background-image: url('../images/auto_baul.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.85));
  border-radius: 0;
  flex-shrink: 0;
}

/* Sticker colocado en el Mockup */
.ts-placed-sticker {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 10;
  transition: filter 0.2s ease, outline 0.15s ease;
}

.ts-placed-sticker:active {
  cursor: grabbing;
}

.ts-placed-sticker.selected {
  outline: 2px dashed #ff4d6d;
  outline-offset: 4px;
}

.ts-placed-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  animation: stickerImgPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stickerImgPop {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0.2;
  }

  70% {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Indicador ✨ (destello) sobre esquina superior derecha de stickers glitter */
.ts-holo-star {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
  user-select: none;
}

/* ══════════════════════════════════════════
   CATÁLOGO DE STICKERS (FONDO OSCURO DE ALTO CONTRASTE)
   ══════════════════════════════════════════ */
.ts-catalog-section {
  max-width: 1340px;
  margin: 60px auto;
  padding: 0 20px;
}

.ts-catalog-toolbar {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ts-search-and-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ts-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.ts-search-box input {
  width: 100%;
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 46px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ts-search-box input:focus {
  outline: none;
  border-color: var(--ts-primary);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
  background: #231c38;
}

.ts-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light-muted);
  pointer-events: none;
}

.ts-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.ts-search-clear.visible {
  display: block;
}

.ts-catalog-stats {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-catalog-stats strong {
  color: #ffb703;
  font-size: 1.2rem;
}

.ts-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ts-cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.ts-cat-pill.active {
  background: linear-gradient(180deg, #ff6b8b 0%, var(--ts-primary) 50%, var(--ts-accent-purple) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 77, 109, 0.6);
  transform: translateY(-2px);
}

.ts-cat-pill.active:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(255, 77, 109, 0.75);
}

.ts-cat-pill:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-cat-pill .count {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Destacado especial para la categoría "Novedades" */
.ts-cat-pill[data-cat="NEW"] {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
  color: #fff;
}

.ts-cat-pill[data-cat="NEW"]:hover {
  background: rgba(255, 77, 109, 0.22);
  border-color: rgba(255, 77, 109, 0.6);
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.3);
}

.ts-cat-pill[data-cat="NEW"].active {
  background: linear-gradient(135deg, #ff4d6d, #7928ca);
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.5);
}

.ts-cat-pill[data-cat="NEW"] .count {
  background: rgba(255, 255, 255, 0.25);
  font-weight: 800;
}

/* Selector Desplegable de Categorías (Dropdown estilizado alternativo y Modelo Híbrido) */
.ts-category-hybrid-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ts-quick-pills {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ts-category-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 165px;
  max-width: 210px;
}

.ts-category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 32px 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-category-select:hover,
.ts-category-select:focus {
  border-color: var(--ts-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.ts-category-select.active {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.3), rgba(121, 40, 202, 0.4));
  border-color: var(--ts-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 77, 109, 0.4);
}

.ts-category-select option {
  background: #181528;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 600;
}

.ts-category-select-icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--ts-primary);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .ts-category-hybrid-wrap {
    gap: 8px;
  }
  .ts-quick-pills {
    display: inline-flex;
    gap: 8px;
  }
  .ts-category-select-wrap {
    min-width: 155px;
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/* Cuadrícula de Stickers */
.ts-stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  min-height: 400px;
}

@media (min-width: 768px) {
  .ts-stickers-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
  }
}

/* Tarjeta individual de Sticker (con efecto Peel 3D) */
.ts-sticker-card {
  position: relative;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  perspective: 800px;
  transform-style: preserve-3d;
}

.ts-sticker-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 77, 109, 0.2);
}

.ts-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ts-code-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.275rem;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.ts-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light-muted);
}

/* Pedestal con fondo de textura para el PNG */
.ts-card-img-pedestal {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1a;
  background-image: url('../images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

.ts-card-img-pedestal::after {
  content: '🔍';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(13, 10, 23, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 4;
}

.ts-card-img-pedestal:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Indicador de tamaño Grande abajo a la derecha sobre el pedestal */
.ts-large-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff4d6d 0%, #d90429 100%);
  color: #ffffff;
  font-family: var(--font-display, var(--font-body, sans-serif));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 77, 109, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 6;
  user-select: none;
  display: none;
  align-items: center;
  gap: 3px;
  animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ts-large-indicator.active,
.ts-sticker-card:has(.ts-size-btn[data-size="XL"].active) .ts-large-indicator {
  display: inline-flex;
}

.ts-card-img-pedestal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  user-select: none;
}

/* Contracción del 5% al seleccionar tamaño Chico */
.ts-sticker-card.is-size-std .ts-card-img-pedestal img,
.ts-sticker-card:has(.ts-size-btn[data-size="STD"].active) .ts-card-img-pedestal img {
  transform: scale(0.95);
}

.ts-sticker-card:hover .ts-card-img-pedestal img {
  transform: scale(1.12) rotate(3deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.6));
}

.ts-sticker-card.is-size-std:hover .ts-card-img-pedestal img,
.ts-sticker-card:has(.ts-size-btn[data-size="STD"].active):hover .ts-card-img-pedestal img {
  transform: scale(1.064) rotate(3deg);
}

/* Selector de tamaño para variantes XL */
.ts-size-selector {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ts-size-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-size-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ts-size-btn.active {
  background: #ffb703;
  color: #120d1c;
  border-color: #ffb703;
  font-weight: 800;
}

/* Botones de acción en la tarjeta */
.ts-card-actions {
  display: flex;
  gap: 8px;
}

.ts-btn-add,
.ts-btn-preview-sim {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, #4492e6 0%, #277CD0 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(39, 124, 208, 0.6);
  transition: all 150ms ease;
  text-decoration: none;
}

.ts-btn-add:hover,
.ts-btn-preview-sim:hover {
  background: linear-gradient(180deg, #4f9bf0 0%, #2985df 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(39, 124, 208, 0.75);
}

.ts-btn-add:active,
.ts-btn-preview-sim:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-add.in-cart {
  background: linear-gradient(180deg, #ffb833 0%, #FFA000 100%);
  color: #120d1c;
  font-weight: 850;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 160, 0, 0.6);
}

.ts-btn-add.in-cart:hover {
  background: linear-gradient(180deg, #ffc04d 0%, #ffa81a 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(255, 160, 0, 0.75);
}

.ts-btn-add.in-cart:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════════
   PARTÍCULAS FLOTANTES DE FAVORITOS (FIREWORKS BURST)
   ══════════════════════════════════════════════ */
.like,
.ts-btn-add,
.ts-btn-add-modal {
  position: relative;
}

.note {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  user-select: none;
  font-size: 1.25rem;
  line-height: 1;
  z-index: 999;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  animation:
    float-move var(--d, 0.75s) cubic-bezier(0.16, 1, 0.3, 1) forwards,
    float-fade var(--d, 0.75s) linear forwards;
}

@keyframes float-move {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  100% {
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, -85px))) scale(0.85) rotate(var(--r, 0deg));
  }
}

@keyframes float-fade {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note {
    display: none !important;
  }
}

/* Estado de carga y vacío */
.ts-catalog-empty,
.ts-catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light-muted);
}

.ts-catalog-empty span.emoji,
.ts-catalog-loading span.emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

/* Paginación del Catálogo (Máximo 20 por página) */
.ts-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.ts-page-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.ts-page-btn:hover:not(:disabled):not(.active) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.ts-page-btn.active {
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent-purple));
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
  cursor: default;
  transform: scale(1.05);
  opacity: 1;
}

.ts-page-btn.active:hover {
  box-shadow: 0 8px 25px rgba(255, 77, 109, 0.6);
}

.ts-page-btn:disabled:not(.active) {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ts-page-btn.active:disabled {
  opacity: 1;
  cursor: default;
  pointer-events: auto;
}

.ts-page-ellipsis {
  color: var(--text-light-muted);
  font-weight: 800;
  padding: 0 6px;
  user-select: none;
}

.ts-page-nav-btn {
  padding: 0 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.ts-page-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

/* ══════════════════════════════════════════
   DRAWER
   ══════════════════════════════════════════ */
.ts-order-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ts-order-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.ts-order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #151122;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2001;
}

.ts-order-drawer-backdrop.open .ts-order-drawer {
  transform: translateX(0);
}

.ts-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-drawer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-btn-close-drawer {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ts-btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.ts-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Ítem en favoritos */
.ts-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1d182e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.ts-cart-thumb {
  width: 50px;
  height: 50px;
  background: #110d1c;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-cart-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ts-cart-info {
  flex: 1;
}

.ts-cart-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #ffb703;
}

.ts-cart-cat {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.ts-cart-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 6px;
  border-radius: var(--radius-full);
}

.ts-stepper-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ts-stepper-qty {
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.ts-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #110d1c;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.ts-order-summary-row span.count {
  color: #ffb703;
  font-size: 1.3rem;
}

.ts-btn-copy-order {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: none;
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 20px -6px rgba(0, 0, 0, 0.5);
  transition: all 150ms ease;
  text-decoration: none;
}

.ts-btn-copy-order:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 26px -4px rgba(0, 0, 0, 0.65);
  color: #fff;
}

.ts-btn-copy-order:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}



/* ══════════════════════════════════════════
   TOASTS Y MICROFEEDBACK
   ══════════════════════════════════════════ */
.ts-toast-container {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ts-toast {
  background: #1e1933;
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

@keyframes toastPop {
  0% {
    transform: scale(0.6) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   MODAL / CUADRO DE DIÁLOGO DETALLE STICKER
   ══════════════════════════════════════════ */
body.ts-modal-open {
  overflow: hidden;
}

.ts-sticker-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-sticker-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ts-sticker-modal {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 25px 60px -10px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(255, 77, 109, 0.15);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.ts-sticker-modal-backdrop.active .ts-sticker-modal {
  transform: scale(1) translateY(0);
}

.ts-sticker-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-modal-close:hover {
  background: rgba(255, 77, 109, 0.25);
  color: #ff4d6d;
  transform: rotate(90deg);
}

.ts-sticker-modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Pedestal central en el modal con textura fondo.jpg */
.ts-modal-pedestal {
  position: relative;
  width: 100%;
  min-height: 340px;
  max-height: 55vh;
  background-color: #1a1a1a;
  background-image: url('../images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.ts-modal-pedestal img {
  max-width: 100%;
  max-height: 48vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

/* Contracción del 5% en modal al seleccionar tamaño Chico */
.ts-modal-pedestal.is-size-std img,
.ts-sticker-modal:has(.ts-switch-btn[data-size="STD"].active) .ts-modal-pedestal img {
  transform: scale(0.95);
}

.ts-modal-pedestal img:hover {
  transform: scale(1.05);
}

.ts-modal-pedestal.is-size-std img:hover,
.ts-sticker-modal:has(.ts-switch-btn[data-size="STD"].active) .ts-modal-pedestal img:hover {
  transform: scale(0.998);
}

/* Badge Glitter dentro del pedestal del modal */
.ts-modal-pedestal .ts-holo-star {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 13, 28, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  z-index: 10;
  pointer-events: none;
}

.ts-modal-pedestal .ts-holo-star .ts-glitter-icon {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.ts-modal-pedestal .ts-holo-star .ts-glitter-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* Indicador de tamaño grande dentro del pedestal del modal */
.ts-modal-pedestal .ts-large-indicator {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 8px;
  z-index: 10;
}

.ts-sticker-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.ts-modal-size-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ts-btn-sim-modal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: none;
  color: var(--text-light);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 20px -6px rgba(0, 0, 0, 0.5);
  transition: all 150ms ease;
}

.ts-btn-sim-modal:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 24px -4px rgba(0, 0, 0, 0.65);
}

.ts-btn-sim-modal:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-add-modal {
  position: relative;
  background: linear-gradient(180deg, #ff758f 0%, var(--ts-primary) 100%);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 77, 109, 0.6);
  transition: all 150ms ease;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-add-modal::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para 2px de gap negro y 3px de borde degradado) */
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #ff4d6d, #eecb47, #6d6ff4, #ff4d6d);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ts-btn-add-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ff758f 0%, var(--ts-primary) 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 2px #000000;
  z-index: -1;
}

.ts-btn-add-modal:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(255, 77, 109, 0.75);
}

.ts-btn-add-modal:hover::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-add-modal:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-add-modal.in-cart {
  background: linear-gradient(180deg, #ffb833 0%, #FFA000 100%);
  color: #120d1c;
  font-weight: 850;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 160, 0, 0.6);
}

.ts-btn-add-modal.in-cart::after {
  background: linear-gradient(180deg, #ffb833 0%, #FFA000 100%);
}

.ts-btn-add-modal.in-cart:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 28px -4px rgba(255, 160, 0, 0.75);
}

.ts-btn-add-modal.in-cart:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .ts-nav-pill {
    padding: 8px 14px;
  }

  .ts-brand-title {
    font-size: 1.15rem;
  }

  .ts-nav-link {
    display: none;
  }

  .ts-mockup-stage-wrap {
    min-height: 380px;
  }

  .ts-hero-badge {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .ts-catalog-stats {
    font-size: 0.95rem;
  }
}

/* Reducciones graduales para pantallas estrechas para mantener textos en una sola línea */
@media (max-width: 480px) {
  .ts-nav-pill {
    padding: 7px 12px;
  }

  .ts-brand {
    gap: 8px;
  }

  .ts-brand img {
    width: 36px;
    height: 36px;
  }

  .ts-brand-title {
    font-size: 1.05rem;
  }

  .ts-btn-cart-nav {
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  .ts-hero-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .ts-btn-sim-action {
    font-size: 0.78rem;
    padding: 7px 8px;
  }

  .ts-size-switch .ts-switch-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .ts-control-label {
    font-size: 0.92rem;
  }

  .ts-catalog-stats {
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .ts-nav-pill {
    padding: 6px 10px;
  }

  .ts-brand {
    gap: 7px;
  }

  .ts-brand img {
    width: 32px;
    height: 32px;
  }

  .ts-brand-title {
    font-size: 0.95rem;
  }

  .ts-btn-cart-nav {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .ts-cart-badge {
    font-size: 0.78rem;
    padding: 1px 6px;
  }

  .ts-hero-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
    letter-spacing: -0.2px;
  }

  .ts-btn-sim-action {
    font-size: 0.74rem;
    padding: 6px 6px;
  }

  .ts-size-switch .ts-switch-btn {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  .ts-tool-row {
    font-size: 0.82rem;
    gap: 6px;
  }

  .ts-control-label {
    font-size: 0.88rem;
  }

  .ts-catalog-stats {
    font-size: 0.84rem;
  }
}

@media (max-width: 340px) {
  .ts-nav-pill {
    padding: 5px 8px;
  }

  .ts-brand {
    gap: 6px;
  }

  .ts-brand img {
    width: 28px;
    height: 28px;
  }

  .ts-brand-title {
    font-size: 0.85rem;
  }

  .ts-btn-cart-nav {
    padding: 5px 6px;
    font-size: 0.75rem;
  }

  .ts-hero-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .ts-btn-sim-action {
    font-size: 0.68rem;
    padding: 5px 4px;
  }

  .ts-size-switch .ts-switch-btn {
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .ts-tool-row {
    font-size: 0.78rem;
    gap: 4px;
  }

  .ts-control-label {
    font-size: 0.84rem;
  }

  .ts-catalog-stats {
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════════
   SIMULADOR: ORIENTACIÓN PORTRAIT (VERTICAL)
   En modo portrait se ven únicamente Termo y Celular sobre la simulación
   ══════════════════════════════════════════ */
@media (orientation: portrait) {

  /* Ocultar Laptop y Auto en portrait */
  .ts-obj-btn[data-obj="laptop"],
  .ts-obj-btn[data-obj="car"] {
    display: none !important;
  }

  /* Los 2 botones restantes (Termo y Celular) en 2 columnas equilibradas */
  .ts-object-selector {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .ts-sim-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    gap: 14px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Descompone el aside en el flujo directo para ubicar la superficie y el escenario arriba */
  .ts-sim-controls {
    display: contents !important;
  }

  /* 1. Selector de superficie arriba de la simulación */
  .ts-sim-controls>.ts-control-group:nth-child(1) {
    order: 1 !important;
    padding: 12px;
  }

  /* 2. Escenario interactivo (simulación) debajo de la selección de superficie */
  .ts-mockup-stage-wrap {
    order: 2 !important;
    min-height: 340px !important;
    width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    touch-action: pan-y !important;
  }

  /* 3. Bandeja de stickers sugeridos debajo de la simulación */
  .ts-sim-controls>.ts-control-group:nth-child(2) {
    order: 3 !important;
    padding: 12px;
  }

  /* 4. Herramientas y ajustes del sticker */
  .ts-sim-controls>.ts-control-group:nth-child(3) {
    order: 4 !important;
    padding: 12px;
  }

  .ts-obj-thermos {
    width: 155px;
    height: 310px;
    margin-top: 55px;
  }

  .ts-obj-phone {
    width: 195px;
    height: 360px;
  }

  /* Ocultar la estrella del botón Favoritos en móvil en formato portrait */
  .ts-btn-cart-nav {
    padding: 8px 12px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .ts-cart-star {
    display: none !important;
  }
}

/* ══════════════════════════════════════════
   SIMULADOR: ORIENTACIÓN LANDSCAPE (HORIZONTAL)
   En modo landscape se ven los 4 botones a la izquierda de la simulación
   ══════════════════════════════════════════ */
@media (orientation: landscape) {
  .ts-sim-container {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 24px !important;
  }

  .ts-sim-controls {
    display: flex !important;
    flex-direction: column !important;
    order: 1 !important;
  }

  .ts-mockup-stage-wrap {
    order: 2 !important;
  }

  /* Mostrar los 4 botones en landscape */
  .ts-obj-btn[data-obj="laptop"],
  .ts-obj-btn[data-obj="car"],
  .ts-obj-btn[data-obj="thermos"],
  .ts-obj-btn[data-obj="phone"] {
    display: flex !important;
  }

  .ts-object-selector {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Asegurar que la estrella se muestre en modo landscape */
  .ts-cart-star {
    display: inline !important;
  }
}

/* ══════════════════════════════════════════
   BOTÓN FLOTANTE DE WHATSAPP (CONTACTO)
   ══════════════════════════════════════════ */
.ts-float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.ts-float-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
}

.ts-wa-btn-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.ts-float-whatsapp:hover .ts-wa-btn-circle {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ts-wa-svg {
  width: 35px;
  height: 35px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.ts-float-whatsapp:hover .ts-wa-svg {
  transform: scale(1.1) rotate(-6deg);
}

/* Indicador de estado "En línea" con pulso dinámico */
.ts-wa-pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #00ff87;
  border: 2.5px solid #120d1c;
  border-radius: 50%;
}

.ts-wa-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #00ff87;
  animation: ts-wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ts-wa-ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  75%,
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}

/* Tooltip / Píldora de Contacto */
.ts-wa-tooltip {
  background: rgba(22, 17, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ts-float-whatsapp:hover .ts-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 580px) {
  .ts-float-whatsapp {
    bottom: 20px;
    right: 18px;
  }

  .ts-wa-btn-circle {
    width: 52px;
    height: 52px;
  }

  .ts-wa-svg {
    width: 28px;
    height: 28px;
  }

  .ts-wa-tooltip {
    display: none;
  }
}

/* ══════════════════════════════════════════
   PÁGINA DE CONTACTO Y FORMULARIO WHATSAPP
   ══════════════════════════════════════════ */
.ts-contact-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.ts-contact-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ts-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ts-primary), var(--ts-secondary), var(--ts-accent-cyan));
}

.ts-form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-form-desc {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ts-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ts-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ts-form-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ts-input-wrap {
  position: relative;
}

.ts-form-input,
.ts-form-textarea {
  width: 100%;
  background: rgba(12, 10, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
}

.ts-form-textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 80px;
}

.ts-form-input:focus,
.ts-form-textarea:focus {
  border-color: var(--ts-primary);
  background: rgba(12, 10, 20, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
}

.ts-form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: tsShake 0.4s ease;
}

@keyframes tsShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.ts-options-group {
  margin-bottom: 24px;
}

.ts-options-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-options-grid {
  display: grid;
  gap: 12px;
}

.ts-option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(12, 10, 20, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.ts-option-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 183, 3, 0.4);
  transform: translateY(-2px);
}

.ts-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ts-option-radio-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ts-option-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-secondary));
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ts-option-card.is-selected {
  background: rgba(255, 77, 109, 0.08);
  border-color: var(--ts-primary);
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.25);
}

.ts-option-card.is-selected .ts-option-radio-custom {
  border-color: var(--ts-primary);
}

.ts-option-card.is-selected .ts-option-radio-dot {
  transform: scale(1);
}

.ts-option-content {
  flex: 1;
}

.ts-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
}

.ts-option-badge-icon {
  font-size: 1.2rem;
}

.ts-option-desc {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  line-height: 1.4;
}

.ts-other-field {
  margin-top: 14px;
  padding: 16px;
  background: rgba(12, 10, 20, 0.85);
  border: 1px dashed rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-md);
  animation: fadeIn 0.3s ease;
}

.ts-btn-whatsapp-submit {
  position: relative;
  width: auto;
  background: linear-gradient(180deg, #4de285 0%, #25d366 50%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(37, 211, 102, 0.6);
  transition: all 150ms ease;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-whatsapp-submit::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5.5px para 2px de gap negro y 3.5px de borde degradado) */
  inset: -5px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #25d366, #06d6a0, #ffb703, #25d366);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-whatsapp-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #4de285 0%, #25d366 50%, #128c7e 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 3px #000000;
  z-index: -1;
}

.ts-btn-whatsapp-submit:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(37, 211, 102, 0.75);
  color: #fff;
  text-decoration: none;
}

.ts-btn-whatsapp-submit:hover::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-whatsapp-submit:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-whatsapp-submit svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ts-btn-view-pictures {
  position: relative;
  width: auto;
  background: linear-gradient(180deg, #ff6b8b 0%, var(--ts-primary) 50%, var(--ts-accent-purple) 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 24px -6px rgba(255, 77, 109, 0.6);
  transition: all 150ms ease;
  z-index: 1;
  isolation: isolate;
}

.ts-btn-view-pictures::before {
  content: '';
  position: absolute;
  /* Separación: ajustar inset (ej. -5px para gap negro y borde degradado) */
  inset: -5px;
  border-radius: var(--radius-full);
  background: conic-gradient(from var(--a), #ff4d6d, #eecb47, #6d6ff4, #ff4d6d);
  animation: spinDegrade 3s linear infinite;
  z-index: -2;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ts-btn-view-pictures::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ff6b8b 0%, var(--ts-primary) 50%, var(--ts-accent-purple) 100%);
  /* Línea negra de separación entre el botón y el degradado */
  box-shadow: 0 0 0 3px #000000;
  z-index: -1;
}

.ts-btn-view-pictures:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 12px 30px -4px rgba(255, 77, 109, 0.75);
  color: #fff;
  text-decoration: none;
}

.ts-btn-view-pictures:hover::before {
  opacity: 1;
  filter: blur(2px);
}

.ts-btn-view-pictures:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ts-btn-view-pictures svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .ts-form-row {
    grid-template-columns: 1fr;
  }

  .ts-contact-card {
    padding: 24px 18px;
  }
}

/* Matriz de tarjetas principales (2x2 en apaisado/horizontal, 1x4 en pantallas verticales o móviles) */
.ts-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ts-home-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ts-home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (orientation: portrait),
(max-width: 768px) {
  .ts-home-grid {
    grid-template-columns: 1fr;
  }
}

/* Accesibilidad: foco visible por teclado y preferencia de movimiento reducido */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ts-secondary, #ffb703);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ts-marquee-track,
  .ts-btn-whatsapp-submit::before,
  .ts-btn-view-pictures::before,
  .ts-wa-pulse-dot {
    animation: none !important;
  }
}