﻿:root {
  /* Paleta viva: coral energía + oro premio + mint acción */
  --bg: #0a0614;
  --bg-2: #140a1c;
  --panel: rgba(22, 10, 32, 0.9);
  --line: rgba(255, 180, 120, 0.2);
  --text: #fff6ef;
  --muted: #c4a99a;
  --accent: #ff3d6e;
  --accent-2: #ffd23a;
  --accent-3: #00e8b0;
  --danger: #ff5c5c;
  --ok: #00e8b0;
  --warn: #ffb020;
  --shadow: 0 24px 60px rgba(40, 0, 30, 0.4);
  --radius: 18px;
  --font: "Manrope", "Plus Jakarta Sans", sans-serif;
  --display: "Sora", "Outfit", sans-serif;
  --fs-xs: 0.625rem;   /* ~10px labels */
  --fs-sm: 0.75rem;    /* ~12px secundario */
  --fs-md: 0.875rem;   /* ~14px cuerpo */
  --fs-lg: 1rem;       /* ~16px énfasis */
  --fs-xl: 1.125rem;   /* ~18px títulos */
  --grad-play: linear-gradient(135deg, #ff3d6e 0%, #ff7a18 55%, #ffd23a 100%);
  --grad-win: linear-gradient(135deg, #ffd23a, #ff7a18);
  --grad-go: linear-gradient(135deg, #00e8b0, #00b4ff);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 580px at 8% -8%, rgba(255, 61, 110, 0.28), transparent 55%),
    radial-gradient(900px 520px at 92% 0%, rgba(255, 210, 58, 0.2), transparent 52%),
    radial-gradient(700px 420px at 70% 100%, rgba(0, 232, 176, 0.14), transparent 55%),
    linear-gradient(180deg, #12061a 0%, #1a0a14 42%, #0a0614 100%);
  font-size: var(--fs-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 180, 120, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 180, 120, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(7, 19, 31, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top, 0px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 72px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem; /* mismo espacio: Soporte ↔ Cuenta ↔ Mis boletos */
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #f5d76e;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: inline; }

html.theme-dark .theme-toggle {
  color: #ffe08a;
  border-color: rgba(255, 224, 138, 0.35);
  background: rgba(240, 180, 41, 0.12);
}

html.theme-dark .theme-toggle__moon { display: none; }
html.theme-dark .theme-toggle__sun { display: inline; }

body.page-shop .theme-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #d97706;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

html.theme-dark body.page-shop .theme-toggle {
  border-color: rgba(255, 224, 138, 0.35);
  background: rgba(240, 180, 41, 0.12);
  color: #ffe08a;
  box-shadow: none;
}

.topbar-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.topbar-btn--tickets {
  border-color: rgba(22, 199, 132, 0.45);
  background: rgba(22, 199, 132, 0.14);
  color: #7dffc0;
}

.topbar-btn--tg {
  border-color: rgba(42, 171, 238, 0.45);
  background: #2aabee;
  color: #fff !important;
}

.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.topbar-wa__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  animation: topbar-wa-arrow-pulse 1.15s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.55);
}

.topbar-btn--wa {
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.12);
  color: #0b3d2a;
  padding-left: 0.5rem;
  padding-right: 0.55rem;
  gap: 0.3rem;
}

.topbar-btn__wa-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.topbar-btn__label--wa {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0.55;
  color: inherit;
}

@keyframes topbar-wa-arrow-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(3px) scale(1.18);
  }
}

body.page-shop .topbar-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.page-shop .topbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.page-shop .topbar-btn--tickets,
body.page-shop .topbar-btn--account {
  border-color: transparent;
  background: linear-gradient(135deg, #12b981 0%, #0d9488 55%, #0891b2 100%);
  color: #042f2e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    0 6px 16px rgba(13, 148, 136, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

body.page-shop .topbar-btn--wa {
  border-color: transparent;
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 55%, #128c7e 100%);
  color: #042f1a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  box-shadow:
    0 6px 16px rgba(37, 211, 102, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

body.page-shop .topbar-btn--tickets:hover,
body.page-shop .topbar-btn--account:hover,
body.page-shop .topbar-btn--wa:hover {
  filter: brightness(1.06);
  box-shadow:
    0 10px 22px rgba(13, 148, 136, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  color: #042f2e !important;
  animation: none;
}

body.page-shop .topbar-btn--wa:hover {
  box-shadow:
    0 10px 22px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  color: #042f1a !important;
}

body.page-shop .topbar-btn__label--wa {
  opacity: 0.62;
  color: rgba(4, 47, 26, 0.72);
}

body.page-shop .topbar-btn--pulse,
.topbar-btn--pulse {
  animation: topbar-pulse 1.7s ease-in-out infinite;
}

body.page-shop .nav__profile--pulse {
  position: relative;
  font-weight: 800;
  color: #0d9488 !important;
  animation: nav-profile-pulse 1.7s ease-in-out infinite;
}

body.page-shop .nav__profile--pulse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #12b981, #0891b2);
  opacity: 0.75;
  transform-origin: center;
  animation: nav-profile-underline 1.7s ease-in-out infinite;
}

@keyframes topbar-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 6px 16px rgba(13, 148, 136, 0.35),
      0 0 0 0 rgba(13, 148, 136, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 10px 24px rgba(13, 148, 136, 0.48),
      0 0 0 8px rgba(13, 148, 136, 0),
      0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  }
}

@keyframes nav-profile-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(13, 148, 136, 0.55); }
}

@keyframes nav-profile-underline {
  0%, 100% { transform: scaleX(0.55); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-btn--pulse,
  body.page-shop .topbar-btn--pulse,
  body.page-shop .nav__profile--pulse,
  body.page-shop .nav__profile--pulse::after,
  .topbar-wa__arrow {
    animation: none !important;
  }
}

body.page-shop .topbar-btn--tg {
  border-color: transparent;
  background: linear-gradient(135deg, #2aabee, #1d9bd1);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(42, 171, 238, 0.35);
}

body.page-shop .nav__wa {
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

html.theme-dark body.page-shop .topbar-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  box-shadow: none;
}

html.theme-dark body.page-shop .topbar-btn--tickets,
html.theme-dark body.page-shop .topbar-btn--account {
  border-color: rgba(22, 199, 132, 0.45);
  background: rgba(22, 199, 132, 0.2);
  color: #9affd4 !important;
  text-shadow: none;
  box-shadow: 0 0 18px rgba(22, 199, 132, 0.2);
}

html.theme-dark body.page-shop .topbar-btn--wa {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.22);
  color: #b8ffd6 !important;
  text-shadow: none;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.22);
}

html.theme-dark body.page-shop .topbar-btn__label--wa {
  opacity: 0.55;
  color: rgba(184, 255, 214, 0.7);
}

html.theme-dark body.page-shop .topbar-btn--pulse {
  animation: topbar-pulse-dark 1.7s ease-in-out infinite;
}

html.theme-dark body.page-shop .nav__profile--pulse {
  color: #7dffc0 !important;
}

@keyframes topbar-pulse-dark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(22, 199, 132, 0.25), 0 0 0 0 rgba(22, 199, 132, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 22px rgba(22, 199, 132, 0.55), 0 0 0 8px rgba(22, 199, 132, 0);
  }
}

html.theme-dark body.page-shop .topbar-btn--tg {
  background: #2aabee;
  color: #fff !important;
}

.brand--logo-only {
  gap: 0;
}

.brand--logo-only .brand__logo {
  width: 52px;
  height: 52px;
}

body.page-shop .brand--logo-only .brand__logo {
  width: 56px;
  height: 56px;
}

@media (max-width: 720px) {
  .topbar__actions {
    gap: 0.35rem;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .topbar-btn {
    min-height: 36px;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .topbar-btn__label {
    display: inline;
  }

  .topbar-btn--tickets .topbar-btn__label {
    max-width: 5.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand--logo-only .brand__logo,
  body.page-shop .brand--logo-only .brand__logo {
    width: 44px;
    height: 44px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  background: var(--grad-play);
  color: #2a0810;
  box-shadow: 0 0 0 1px rgba(255, 61, 110, 0.4), 0 10px 30px rgba(255, 61, 110, 0.28);
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand__logo--admin {
  background: #fff;
  border-radius: 50%;
}

body.page-shop .brand__logo {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.logo-upload {
  display: grid;
  gap: 0.55rem;
}

.logo-upload__preview {
  width: 100%;
  min-height: 96px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.logo-upload__preview img {
  max-height: 72px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover { color: var(--text); }

.nav__admin {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.nav__wa {
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  background: #16c784 !important;
  color: #042016 !important;
  font-weight: 800 !important;
  border: none;
}

.nav__support {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.nav__support-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}

.nav__support-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #042016;
  color: #7dffc0;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

body.page-shop .nav__wa {
  background: #16c784 !important;
  color: #042016 !important;
}

.nav__tg {
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  background: #2aabee !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: none;
}

body.page-shop .nav__tg {
  background: #2aabee !important;
  color: #fff !important;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  z-index: 46;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__theme {
  width: auto;
  min-width: 42px;
  height: 42px;
  gap: 0.4rem;
  padding: 0 0.7rem;
}
.nav__theme-label {
  display: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.flashes { padding-top: 1rem; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.flash--success { background: rgba(61, 220, 151, 0.15); border: 1px solid rgba(61, 220, 151, 0.35); }
.flash--error { background: rgba(255, 107, 107, 0.15); border: 1px solid rgba(255, 107, 107, 0.35); }
.flash--info { background: rgba(30, 200, 165, 0.12); border: 1px solid rgba(30, 200, 165, 0.3); }

.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 120px);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero__brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero__brand span {
  display: block;
  color: var(--accent-2);
  font-size: 0.42em;
  letter-spacing: 0.18em;
  margin-top: 0.55rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: #d7e8f0;
}

.hero__lead {
  max-width: 38ch;
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(30, 200, 165, 0.18), transparent 40%),
    linear-gradient(340deg, rgba(240, 180, 41, 0.14), transparent 35%),
    #0b2031;
  box-shadow: var(--shadow);
  animation: floatIn 900ms ease both;
}

.hero__visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.hero__visual strong {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}

.hero__visual p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad-play);
  color: #2a0810;
  box-shadow: 0 10px 28px rgba(255, 61, 110, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--danger {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ffd4d4;
}

.btn--sm {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.section {
  padding: 3.5rem 0;
}

.section__head {
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.raffle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.raffle-card:hover {
  border-color: rgba(255, 61, 110, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 61, 110, 0.18);
}

.raffle-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.raffle-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
}

.raffle-card__prize {
  color: var(--accent-2);
  font-weight: 700;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff3d6e, #ffd23a 55%, #00e8b0);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.panel + .panel { margin-top: 1rem; }

.panel__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 140px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #081722;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.field textarea { min-height: 110px; resize: vertical; }

.number-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.4rem;
}

.num {
  appearance: none;
  border: 1px solid var(--line);
  background: #0a1a28;
  color: var(--text);
  border-radius: 10px;
  min-height: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: 120ms ease;
}

.num:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.num.is-selected {
  background: rgba(30, 200, 165, 0.2);
  border-color: var(--accent);
  color: #b8ffe9;
}

/* Número encontrado en búsqueda */
.num.is-found {
  position: relative;
  z-index: 5;
  animation: num-found-pulse 0.9s ease-in-out 3;
}

/* 1. Si está DISPONIBLE -> VERDE BRILLANTE */
.num.is-found.is-found--available,
.num.is-found:not(:disabled):not(.is-sold):not(.is-held):not(.is-reserved) {
  background: rgba(0, 230, 118, 0.28) !important;
  border: 2px solid #00e676 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.8), inset 0 0 8px rgba(0, 230, 118, 0.4) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* 2. Si está OCUPADO / VENDIDO -> ROJO ALERTA */
.num.is-found.is-found--occupied,
.num.is-found:disabled,
.num.is-found.is-sold,
.num.is-found.is-held,
.num.is-found.is-reserved {
  background: rgba(255, 71, 87, 0.28) !important;
  border: 2px solid #ff4757 !important;
  color: #ff8b94 !important;
  box-shadow: 0 0 16px rgba(255, 71, 87, 0.8), inset 0 0 8px rgba(255, 71, 87, 0.4) !important;
  opacity: 0.85 !important;
  text-decoration: line-through !important;
}

@keyframes num-found-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Feedback banner en la barra de búsqueda */
.search-feedback {
  margin: 0.35rem 0 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: feedback-fade 0.25s ease-out;
}
.search-feedback--available {
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
}
.search-feedback--occupied {
  background: rgba(255, 71, 87, 0.14);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff6b81;
}

@keyframes feedback-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.num.is-sold,
.num.is-reserved,
.num.is-held,
.num:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.num.is-held {
  opacity: 0.45;
  background: rgba(240, 180, 41, 0.12);
  border-color: rgba(240, 180, 41, 0.45);
  text-decoration: none;
}

.cart {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  margin-top: 1rem;
  border: 1px solid rgba(30, 200, 165, 0.35);
  background: rgba(6, 22, 32, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cart__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 200, 165, 0.15);
  border: 1px solid rgba(30, 200, 165, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.payment-box {
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.footer__brand {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
}

.footer__muted,
.footer__list,
.footer__bottom {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__label {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list a { color: var(--muted); }
.footer__list li + li { margin-top: 0.3rem; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.prose {
  max-width: 72ch;
}

.prose h1,
.prose h2 {
  font-family: var(--display);
}

.prose p,
.prose li { color: var(--muted); }

/* —— Términos y condiciones / bases legales —— */
.legal-doc {
  max-width: 52rem;
  display: grid;
  gap: 1.15rem;
}

.legal-doc__hero {
  padding: 1.35rem 1.4rem 1.2rem;
  border: 1px solid rgba(148, 197, 214, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(18, 36, 54, 0.95), rgba(8, 18, 28, 0.92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.legal-doc__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #f0c14b);
  font-weight: 700;
}

.legal-doc__hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
}

.legal-doc__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 48ch;
}

.legal-doc__updated {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

.legal-doc__toc {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 197, 214, 0.2);
  border-radius: 14px;
  background: rgba(8, 18, 28, 0.72);
}

.legal-doc__toc h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-family: var(--display);
}

.legal-doc__toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 1;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .legal-doc__toc ol {
    columns: 2;
  }
}

.legal-doc__toc li {
  break-inside: avoid;
  margin: 0.28rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc__toc a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-doc__toc a:hover {
  color: #fff;
  border-bottom-color: rgba(148, 197, 214, 0.45);
}

.legal-doc__article {
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid rgba(148, 197, 214, 0.16);
  border-radius: 14px;
  background: rgba(10, 22, 34, 0.88);
  scroll-margin-top: 5.5rem;
}

.legal-doc__article--emphasis {
  border-color: rgba(240, 193, 75, 0.42);
  background:
    linear-gradient(160deg, rgba(48, 36, 12, 0.55), rgba(10, 22, 34, 0.94));
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.08);
}

.legal-doc__article h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.12rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  line-height: 1.3;
}

.legal-doc__num {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent, #f0c14b);
  opacity: 0.95;
}

.legal-doc__article p,
.legal-doc__article li {
  color: var(--muted);
  line-height: 1.55;
}

.legal-doc__article p {
  margin: 0 0 0.7rem;
}

.legal-doc__article ul {
  margin: 0 0 0.7rem;
  padding-left: 1.15rem;
}

.legal-doc__article li + li {
  margin-top: 0.28rem;
}

.legal-doc__article code {
  font-size: 0.86em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8f4fa;
}

.legal-doc__note {
  margin: 0.85rem 0 0 !important;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid rgba(240, 193, 75, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(240, 193, 75, 0.08);
  font-size: 0.92rem;
}

.legal-doc__meta {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.legal-doc__meta > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 1fr;
  gap: 0.45rem 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 197, 214, 0.1);
}

.legal-doc__meta > div:last-child {
  border-bottom: none;
}

.legal-doc__meta dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.legal-doc__meta dd {
  margin: 0;
  color: #e8f0f5;
  word-break: break-word;
}

@media (max-width: 560px) {
  .legal-doc__meta > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge--ok { background: rgba(61, 220, 151, 0.15); color: #9dffd0; }
.badge--warn { background: rgba(240, 180, 41, 0.15); color: #ffd980; }
.badge--danger { background: rgba(255, 107, 107, 0.15); color: #ffb0b0; }
.badge--info { background: rgba(30, 200, 165, 0.12); color: #9ef0dc; }

/* Admin ï¿½?" layout fijo tipo PC tambiÃ©n en mÃ³vil (viewport 1280) */
body.admin {
  background: #07111a;
  min-width: 1280px;
  overflow-x: auto;
}

/* Login debe verse bien en mÃ³vil (sin forzar 1280) */
body.admin.admin-login {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-width: 1280px;
  width: 100%;
}

.admin-side {
  border-right: 1px solid var(--line);
  background: #081521;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-role-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #c4d4e5;
}

.admin-role-chip--superadmin {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.12);
  color: #ffe9a3;
}

.admin-role-chip--conalot {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

body.admin--readonly .config-save-bar {
  display: none !important;
}

/* CONALOT solo lectura: ocultar crear/editar/guardar/publicar */
body.admin--readonly .admin-write-only,
body.admin--readonly form[method="post"] button[type="submit"],
body.admin--readonly form[method="post"] .btn--primary,
body.admin--readonly form[method="post"] .btn--danger,
body.admin--readonly a.btn--primary[href*="#form"],
body.admin--readonly a.btn--primary[href*="?edit="],
body.admin--readonly a.btn--ghost[href*="?edit="],
body.admin--readonly a[href="#form-metodo"],
body.admin--readonly a[href="#form-paquete"] {
  display: none !important;
}

body.admin--readonly form[method="post"] input,
body.admin--readonly form[method="post"] select,
body.admin--readonly form[method="post"] textarea {
  pointer-events: none;
  opacity: 0.88;
}

body.admin--readonly form[method="post"] {
  position: relative;
}

body.admin--readonly form[method="post"]::before {
  content: "Solo lectura · CONALOT";
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.admin-side a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.admin-side a.is-active,
.admin-side a:hover {
  background: rgba(30, 200, 165, 0.12);
  color: var(--text);
}

.admin-main {
  padding: 1.5rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.data th,
table.data td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

table.data th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

.proof-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.login-card {
  width: min(420px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}

.login-brand {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.login-brand__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 8px;
  box-sizing: border-box;
}

.login-brand__chip {
  margin: 0.15rem 0 0;
}

.admin-login .login-card .field input {
  font-size: 16px; /* evita zoom iOS */
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-login .login-card .btn {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 480px) {
  .admin-login .login-wrap {
    padding: 1rem;
    align-items: center;
  }

  .admin-login .login-card {
    padding: 1.15rem;
  }

  .admin-login .panel__title {
    font-size: 1.25rem;
  }
}

.muted { color: var(--muted); }
.is-hidden { display: none !important; }
.pkg.is-disabled,
.pkg:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.stack { display: grid; gap: 0.85rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.reveal {
  animation: floatIn 700ms ease both;
}

.reveal-2 { animation-delay: 120ms; }
.reveal-3 { animation-delay: 220ms; }

@media (max-width: 900px) {
  .hero__layout,
  .feature-row,
  .footer__grid,
  .stats {
    grid-template-columns: 1fr;
  }

  body:not(.admin) .checkout-grid {
    grid-template-columns: 1fr;
  }

  /* El panel admin NO se apila: se mantiene igual que en PC */
  body.admin .admin-shell {
    grid-template-columns: 240px 1fr !important;
  }

  body.admin .admin-side {
    position: sticky !important;
    top: 0;
    height: 100vh !important;
  }

  body.admin .checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
  }

  .number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .topbar__actions {
    gap: 0.4rem;
    position: relative;
  }

  /* Móvil: Luna + Nivel/Cuenta + WS soporte + Mis boletos + menú */
  .topbar__actions > .topbar-btn--tg {
    display: none !important;
  }

  .topbar-wa__arrow {
    font-size: 0.95rem;
  }

  .topbar-btn--wa {
    min-height: 36px;
    padding: 0 0.45rem;
  }

  .topbar-btn__wa-logo {
    width: 20px;
    height: 20px;
  }

  .topbar-btn__label--wa {
    font-size: 0.62rem;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    width: min(calc(100vw - 1.25rem), 280px);
    max-height: min(70vh, 520px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 8, 22, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 45;
  }

  .nav.is-open {
    display: flex !important;
  }

  .nav a,
  .nav .nav__theme {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    color: #fff6ef !important;
    font-size: 0.95rem;
  }

  .nav a:hover,
  .nav .nav__theme:hover {
    background: rgba(255, 61, 110, 0.16);
  }

  .nav__theme-label { display: inline; }

  .nav__wa,
  .nav__tg,
  .nav__admin {
    text-align: center;
    margin-top: 0.15rem;
  }

  body.page-shop .nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  body.page-shop .nav a,
  body.page-shop .nav .nav__theme {
    color: #1a1020 !important;
  }

  html.theme-dark body.page-shop .nav {
    background: rgba(18, 8, 22, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
  }

  html.theme-dark body.page-shop .nav a,
  html.theme-dark body.page-shop .nav .nav__theme {
    color: #fff6ef !important;
  }

  body.page-shop .nav-toggle {
    border-color: rgba(15, 23, 42, 0.12);
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  body.page-shop .nav-toggle span {
    background: #1a1020;
  }

  html.theme-dark body.page-shop .nav-toggle {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  html.theme-dark body.page-shop .nav-toggle span {
    background: #fff6ef;
  }

  .topbar-btn--keep {
    min-height: 36px;
    padding: 0 0.55rem;
    font-size: 0.72rem;
  }

  .hero__layout { min-height: auto; }
}

/* ===== Página de compra (estilo paquetes) ===== */
body.page-shop {
  --buy-font: "Plus Jakarta Sans", Manrope, sans-serif;
  --buy-display: "Outfit", Sora, sans-serif;
  --fs-xs: 0.6rem;
  --fs-sm: 0.7rem;
  --fs-md: 0.8rem;
  --fs-lg: 0.92rem;
  --fs-xl: 1.05rem;
  font-family: var(--buy-font);
  font-size: var(--fs-md);
  line-height: 1.35;
  letter-spacing: 0.005em;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(255, 61, 110, 0.1), transparent 50%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 210, 58, 0.14), transparent 48%),
    radial-gradient(600px 360px at 50% 100%, rgba(0, 232, 176, 0.08), transparent 50%),
    #fff5f0;
  color: #1a1020;
}

body.page-shop .muted {
  color: #7a6470;
  font-size: var(--fs-sm);
  line-height: 1.35;
}

/* Tipografía compacta: labels chicos, menos carga visual */
body.page-shop .topbar-btn {
  font-size: var(--fs-sm);
  min-height: 34px;
  padding: 0 0.55rem;
  letter-spacing: 0.02em;
}
body.page-shop .nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}
body.page-shop .shop-buy__head h1,
body.page-shop .shop-buy__card h1 {
  font-family: var(--buy-display);
  font-size: clamp(0.98rem, 2.4vw, 1.15rem) !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}
body.page-shop .shop-buy__date {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem !important;
}
body.page-shop .shop-buy__price span,
body.page-shop .shop-buy__hint,
body.page-shop .shop-mode {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
}
body.page-shop .shop-buy__price strong {
  font-family: var(--buy-display);
  font-size: var(--fs-xl) !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
body.page-shop .shop-buy__price-usd,
body.page-shop .shop-buy__price-dto {
  font-size: var(--fs-xs) !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.page-shop .sold-bar__top strong {
  font-family: var(--buy-display);
  font-size: var(--fs-sm) !important;
  letter-spacing: 0.02em;
}
body.page-shop .sold-bar__top span,
body.page-shop .sold-bar__nudge,
body.page-shop .sold-bar__pct {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
body.page-shop .pkg {
  min-height: 52px;
  border-radius: 12px;
}
body.page-shop .pkg strong {
  font-family: var(--buy-display);
  font-size: 1.15rem !important;
  letter-spacing: -0.03em;
  line-height: 1;
}
body.page-shop .pkg small,
body.page-shop .pkg__badge {
  font-size: 0.55rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}
body.page-shop .btn-buy,
body.page-shop .shop-buy__dock .btn-buy {
  font-size: var(--fs-sm) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 46px;
}
body.page-shop .btn-buy strong {
  font-size: var(--fs-md) !important;
  letter-spacing: -0.01em;
  text-transform: none;
}
body.page-shop .btn-linkish,
body.page-shop .btn-linkish--dock {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}
body.page-shop .shop-buyer-bar__who strong {
  font-family: var(--buy-display);
  font-size: var(--fs-md) !important;
}
body.page-shop .shop-buyer-bar__who em {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.03em;
}
body.page-shop .shop-details summary,
body.page-shop .panel__title,
body.page-shop .checkout-pane__title {
  font-size: var(--fs-md) !important;
  letter-spacing: 0.01em;
}
body.page-shop .field label,
body.page-shop .checkout-summary span,
body.page-shop .flash {
  font-size: var(--fs-sm) !important;
}
body.page-shop .qty-box input,
body.page-shop .qty-box button {
  font-size: var(--fs-md);
}

body.page-shop .btn--ghost {
  color: #1a1020;
  border-color: rgba(255, 61, 110, 0.22);
  background: #fff;
}

body.page-shop .btn--primary {
  background: var(--grad-play);
  color: #2a0810;
  box-shadow: 0 10px 26px rgba(255, 61, 110, 0.28);
}

body.page-shop .bg-grid { display: none; }

body.page-shop .topbar {
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html.theme-dark .topbar,
html.theme-dark body.page-shop .topbar,
body.page-profile .topbar {
  background: rgba(7, 12, 20, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.page-shop .brand__text strong,
body.page-shop .nav a { color: #1a2330; }

body.page-shop .brand__text small,
body.page-shop .nav a { color: #5a6573; }

body.page-shop .nav a:hover { color: #0b1220; }

body.page-shop .nav__admin {
  border-color: rgba(15, 23, 42, 0.18);
  color: #0b1220 !important;
  background: rgba(15, 23, 42, 0.06);
}

html.theme-dark body.page-shop .brand__text strong,
html.theme-dark body.page-shop .nav a { color: #f5f5f5; }

html.theme-dark body.page-shop .brand__text small,
html.theme-dark body.page-shop .nav a { color: #b8b8b8; }

html.theme-dark body.page-shop .nav a:hover { color: #fff; }

html.theme-dark body.page-shop .nav__admin {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

body.page-shop .site-footer {
  background: #111;
  border-top: none;
  color: #ccc;
}

body.page-shop .footer__brand,
body.page-shop .footer__label { color: #fff; }

/* ===== Modo noche (tienda / sitio publico) ===== */
html.theme-dark {
  background-color: #0a0614 !important;
  color-scheme: dark;
}

html.theme-dark body,
html.theme-dark body.page-shop,
html.theme-dark body.page-shop.page-buy,
html.theme-dark body.page-shop.page-home-shop,
html.theme-dark body.page-shop.modal-open {
  background-color: #12061a !important;
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 61, 110, 0.26), transparent 55%),
    radial-gradient(720px 420px at 92% 8%, rgba(255, 210, 58, 0.16), transparent 50%),
    radial-gradient(640px 380px at 70% 100%, rgba(0, 232, 176, 0.12), transparent 52%),
    linear-gradient(180deg, #12061a 0%, #1a0a14 48%, #0a0614 100%) !important;
  color: #fff6ef !important;
  min-height: 100vh;
}

html.theme-dark body.page-shop .shop {
  background: transparent;
}

html.theme-dark body.page-shop .muted { color: #9aa8b8; }

html.theme-dark body.page-shop .bg-grid {
  display: block !important;
  opacity: 0.45;
}

html.theme-dark body.page-shop .sold-bar,
html.theme-dark body.page-shop .shop-buy__card,
html.theme-dark body.page-shop .shop-details,
html.theme-dark body.page-shop .shop-back,
html.theme-dark body.page-shop .shop-success.panel,
html.theme-dark body.page-shop .panel {
  background: #121a28;
  color: #e8eef5;
  border-color: rgba(148, 197, 214, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html.theme-dark body.page-shop .shop-buy__head h1,
html.theme-dark body.page-shop .shop-buy__price strong,
html.theme-dark body.page-shop .sold-bar__top strong {
  color: #f3f7fb;
}

html.theme-dark body.page-shop .shop-buy__date {
  background: rgba(22, 199, 132, 0.14);
  color: #7dffc0;
}

html.theme-dark body.page-shop .pkg {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.16);
  color: #e8eef5;
}

html.theme-dark body.page-shop .pkg.is-active {
  background: #16c784;
  color: #042016;
}

html.theme-dark body.page-shop .pkg--popular {
  background: linear-gradient(160deg, #3a2f12 0%, #5a4510 45%, #8a6a12 100%);
  color: #ffe9a8;
  border-color: rgba(255, 210, 90, 0.55);
}

html.theme-dark body.page-shop .pkg--popular.is-active {
  background: linear-gradient(160deg, #3dffb0 0%, #16c784 55%, #0fa968 100%);
  color: #042016;
}

html.theme-dark body.page-shop .qty-box {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.2);
}

html.theme-dark body.page-shop .qty-box button,
html.theme-dark body.page-shop .qty-box input {
  background: transparent;
  color: #e8eef5;
  border-color: rgba(148, 197, 214, 0.16);
}

html.theme-dark body.page-shop .shop-buy__dock {
  background: rgba(12, 18, 28, 0.96);
  border-top-color: rgba(148, 197, 214, 0.14);
}

html.theme-dark body.page-shop .btn-linkish,
html.theme-dark body.page-shop .btn-linkish--dock {
  background: #182233;
  color: #e8eef5;
  border-color: rgba(148, 197, 214, 0.18);
}

html.theme-dark body.page-shop .btn--ghost {
  color: #e8eef5;
  border-color: rgba(148, 197, 214, 0.22);
  background: #182233;
}

html.theme-dark body.page-shop .modal__panel {
  background: #121a28;
  color: #e8eef5;
}

html.theme-dark body.page-shop .modal__close {
  background: #182233;
  border-color: rgba(148, 197, 214, 0.22);
  color: #e8eef5;
}

html.theme-dark body.page-shop .checkout-summary {
  background: rgba(22, 199, 132, 0.12);
  color: #d7fff0;
}

html.theme-dark body.page-shop .checkout-form .field label,
html.theme-dark body.page-shop .field label {
  color: #9aa8b8;
}

html.theme-dark body.page-shop .checkout-form .field input,
html.theme-dark body.page-shop .checkout-form .field select,
html.theme-dark body.page-shop .checkout-form .field textarea,
html.theme-dark body.page-shop .field input,
html.theme-dark body.page-shop .field select,
html.theme-dark body.page-shop .field textarea {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.22);
  color: #e8eef5;
}

html.theme-dark body.page-shop .pay-method {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.18);
  color: #e8eef5;
}

html.theme-dark body.page-shop .pay-method.is-on {
  background: rgba(22, 199, 132, 0.12);
  border-color: #16c784;
}

html.theme-dark body.page-shop .pay-method__icon {
  background: #182233;
}

html.theme-dark body.page-shop .pay-dest {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.18);
}

html.theme-dark body.page-shop .pay-dest--focus {
  background: rgba(22, 199, 132, 0.14);
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}

html.theme-dark body.page-shop .pay-method__body small {
  color: #9aa8b8;
}

html.theme-dark body.page-shop .checkline {
  color: #c5d0db;
}

html.theme-dark body.page-shop .shop-details summary,
html.theme-dark body.page-shop .shop-details__body {
  color: #d5dee8;
}

html.theme-dark body.page-shop .flash--info {
  background: rgba(80, 160, 255, 0.12);
  color: #9ad7ff;
}

html.theme-dark body.page-shop .flash--success {
  background: rgba(22, 199, 132, 0.14);
  color: #7dffc0;
}

html.theme-dark body.page-shop .flash--error {
  background: rgba(255, 107, 107, 0.14);
  color: #ff9b9b;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* La barra fija no debe tapar ni pelear con el checkout */
body.modal-open .shop-buy__dock {
  visibility: hidden;
  pointer-events: none;
}

/* El footer no debe tapar el modal (el .container crea stacking context) */
body.modal-open .site-footer {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.modal-open .modal {
  z-index: 10050;
}

.shop {
  padding: 1.25rem 0 3rem;
}

.sold-bar {
  --sold-pct: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.15rem 1.05rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.sold-bar--live {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sold-bar__aura {
  position: absolute;
  inset: -30% -10% auto;
  height: 120%;
  pointer-events: none;
  opacity: 0.35;
  background: radial-gradient(ellipse at var(--sold-pct, 30)% 40%, rgba(22, 199, 132, 0.28), transparent 55%);
  transition: opacity 0.4s ease;
}

.sold-bar__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.sold-bar__top strong {
  font-family: var(--display);
  color: #111;
}

.sold-bar__top span { color: #6b7280; font-weight: 600; }

.sold-bar__nudge {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f766e;
  animation: sold-nudge-pulse 2.4s ease-in-out infinite;
}

@keyframes sold-nudge-pulse {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

.sold-bar__track {
  position: relative;
  z-index: 1;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sold-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.sold-bar__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: sold-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sold-sheen {
  0%, 25% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.sold-bar__tip {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  margin-right: -2px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 16px rgba(255, 255, 255, 0.75);
  animation: sold-tip-blink 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sold-tip-blink {
  0%, 100% { opacity: 0.65; transform: translateY(-50%) scale(0.85); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.15); }
}

.sold-bar__pct {
  position: relative;
  z-index: 3;
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.75);
  animation: sold-bar-titilar 1.15s ease-in-out infinite;
  pointer-events: none;
  line-height: 1;
}

.sold-bar--mid .sold-bar__pct,
.sold-bar--hot .sold-bar__pct,
.sold-bar--critical .sold-bar__pct,
.sold-bar--agotado .sold-bar__pct {
  color: #111;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(255, 255, 255, 0.7);
}

@keyframes sold-bar-titilar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.96); }
}

.sold-bar__heat {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.35rem;
  height: 6px;
  margin-top: 0.45rem;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.sold-bar__heat span {
  flex: 1;
  border-radius: 999px;
  background: #cbd5e1;
  transform-origin: left center;
  animation: sold-heat-rise 1.8s ease-in-out infinite;
}

.sold-bar__heat span:nth-child(2) { animation-delay: 0.12s; }
.sold-bar__heat span:nth-child(3) { animation-delay: 0.24s; }
.sold-bar__heat span:nth-child(4) { animation-delay: 0.36s; }
.sold-bar__heat span:nth-child(5) { animation-delay: 0.48s; }

@keyframes sold-heat-rise {
  0%, 100% { transform: scaleX(0.55); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.sold-bar__fill--reserved {
  background: rgba(22, 199, 132, 0.28);
  z-index: 1;
}

.sold-bar__fill--sold {
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(90deg, #ff3d6e, #ff7a18 55%, #ffd23a);
  box-shadow: 0 0 12px rgba(255, 61, 110, 0.4);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* 0–24% inicio */
.sold-bar--low .sold-bar__fill--sold {
  background: linear-gradient(90deg, #00e8b0, #00b4ff 60%, #7c5cff);
  box-shadow: 0 0 14px rgba(0, 232, 176, 0.4);
}
.sold-bar--low .sold-bar__fill--reserved {
  background: rgba(0, 232, 176, 0.28);
}
.sold-bar--low .sold-bar__nudge { color: #0f766e; }
.sold-bar--low .sold-bar__heat { opacity: 0.4; }
.sold-bar--low .sold-bar__heat span { background: #00e8b0; }
.sold-bar--low .sold-bar__sheen { animation-duration: 3.2s; }
.sold-bar--low .sold-bar__tip { animation-duration: 1.8s; }

/* 25–49% calentando */
.sold-bar--warm .sold-bar__fill--sold {
  background: linear-gradient(90deg, #ff7a18, #ff3d6e 45%, #ffd23a);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.5);
  animation: sold-bar-glow 2.6s ease-in-out infinite;
}
.sold-bar--warm .sold-bar__fill--reserved {
  background: rgba(255, 122, 24, 0.28);
}
.sold-bar--warm .sold-bar__nudge { color: #c2410c; }
.sold-bar--warm .sold-bar__aura {
  opacity: 0.5;
  background: radial-gradient(ellipse at var(--sold-pct, 40)% 40%, rgba(56, 189, 248, 0.28), transparent 55%);
}
.sold-bar--warm .sold-bar__heat { opacity: 0.55; }
.sold-bar--warm .sold-bar__heat span { background: linear-gradient(90deg, #2dd4bf, #38bdf8); }
.sold-bar--warm .sold-bar__sheen { animation-duration: 2.6s; }

/* 50ï¿½?"74% mitad */
.sold-bar--mid {
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.14);
}
.sold-bar--mid .sold-bar__fill--sold {
  background: linear-gradient(90deg, #16c784, #f0b429 55%, #fbbf24);
  box-shadow: 0 0 22px rgba(240, 180, 41, 0.55);
  animation: sold-bar-glow 2s ease-in-out infinite;
}
.sold-bar--mid .sold-bar__fill--reserved {
  background: rgba(240, 180, 41, 0.3);
}
.sold-bar--mid .sold-bar__top strong { color: #b45309; }
.sold-bar--mid .sold-bar__nudge {
  color: #b45309;
  animation-duration: 1.8s;
}
.sold-bar--mid .sold-bar__aura {
  opacity: 0.65;
  background: radial-gradient(ellipse at var(--sold-pct, 60)% 40%, rgba(240, 180, 41, 0.32), transparent 55%);
}
.sold-bar--mid .sold-bar__heat { opacity: 0.75; }
.sold-bar--mid .sold-bar__heat span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.sold-bar--mid .sold-bar__sheen { animation-duration: 2.1s; }
.sold-bar--mid .sold-bar__pct { animation-duration: 0.95s; font-size: 0.84rem; }

/* 75ï¿½?"89% alto */
.sold-bar--hot {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.18);
  animation: sold-card-shake 3.2s ease-in-out infinite;
}
.sold-bar--hot .sold-bar__fill--sold {
  background: linear-gradient(90deg, #f0b429, #f97316 45%, #ef4444);
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.65);
  animation: sold-bar-glow-hot 1.5s ease-in-out infinite;
}
.sold-bar--hot .sold-bar__fill--reserved {
  background: rgba(249, 115, 22, 0.32);
}
.sold-bar--hot .sold-bar__top strong { color: #c2410c; }
.sold-bar--hot .sold-bar__nudge {
  color: #c2410c;
  animation-duration: 1.35s;
}
.sold-bar--hot .sold-bar__aura {
  opacity: 0.8;
  background: radial-gradient(ellipse at var(--sold-pct, 80)% 40%, rgba(249, 115, 22, 0.38), transparent 55%);
}
.sold-bar--hot .sold-bar__heat { opacity: 0.9; }
.sold-bar--hot .sold-bar__heat span { background: linear-gradient(90deg, #fb923c, #ef4444); }
.sold-bar--hot .sold-bar__sheen { animation-duration: 1.6s; }
.sold-bar--hot .sold-bar__tip {
  animation-duration: 0.9s;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 0 22px #f97316;
}
.sold-bar--hot .sold-bar__pct { animation-duration: 0.8s; font-size: 0.88rem; }

/* 90ï¿½?"99% critico */
.sold-bar--critical {
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.22);
  animation: sold-card-shake 2.2s ease-in-out infinite;
}
.sold-bar--critical .sold-bar__fill--sold {
  background: linear-gradient(90deg, #ef4444, #dc2626 35%, #f0b429 85%, #fff7ed);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.7);
  animation: sold-bar-pulse 1.1s ease-in-out infinite;
}
.sold-bar--critical .sold-bar__fill--reserved {
  background: rgba(239, 68, 68, 0.35);
}
.sold-bar--critical .sold-bar__top strong { color: #b91c1c; }
.sold-bar--critical .sold-bar__nudge {
  color: #b91c1c;
  animation: sold-nudge-urgent 0.9s ease-in-out infinite;
}
.sold-bar--critical .sold-bar__aura {
  opacity: 1;
  background: radial-gradient(ellipse at var(--sold-pct, 95)% 40%, rgba(239, 68, 68, 0.42), transparent 55%);
  animation: sold-aura-flash 1.4s ease-in-out infinite;
}
.sold-bar--critical .sold-bar__heat { opacity: 1; }
.sold-bar--critical .sold-bar__heat span { background: linear-gradient(90deg, #ef4444, #f0b429); }
.sold-bar--critical .sold-bar__sheen { animation-duration: 1.15s; }
.sold-bar--critical .sold-bar__tip {
  animation-duration: 0.65s;
  background: #fff7ed;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 0 28px #ef4444;
}
.sold-bar--critical .sold-bar__pct {
  animation: sold-bar-titilar 0.65s ease-in-out infinite;
  font-size: 0.95rem;
}
.sold-bar--critical .sold-bar__track {
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.sold-bar__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.sold-bar--agotado {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background:
    radial-gradient(420px 120px at 90% 0%, rgba(240, 180, 41, 0.12), transparent 55%),
    #fff;
}
.sold-bar--agotado .sold-bar__nudge { color: #b45309; animation: none; }
.sold-bar--agotado .sold-bar__heat { opacity: 1; }
.sold-bar--agotado .sold-bar__heat span {
  background: linear-gradient(90deg, #dc2626, #f0b429);
  animation: none;
  transform: scaleX(1);
}

.sold-bar__fill--full {
  background: linear-gradient(90deg, #dc2626, #f0593a 45%, #f0b429) !important;
  animation: sold-bar-pulse 1.8s ease-in-out infinite;
}

@keyframes sold-bar-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes sold-bar-glow {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 14px rgba(240, 180, 41, 0.4);
  }
  50% {
    filter: brightness(1.1);
    box-shadow: 0 0 24px rgba(240, 180, 41, 0.7);
  }
}

@keyframes sold-bar-glow-hot {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.5);
  }
  50% {
    filter: brightness(1.14);
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.8);
  }
}

@keyframes sold-card-shake {
  0%, 100% { transform: translateX(0); }
  48% { transform: translateX(0); }
  50% { transform: translateX(-1px); }
  52% { transform: translateX(1px); }
  54% { transform: translateX(0); }
}

@keyframes sold-nudge-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.02); }
}

@keyframes sold-aura-flash {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sold-bar--mid .sold-bar__fill--sold,
  .sold-bar--hot .sold-bar__fill--sold,
  .sold-bar--critical .sold-bar__fill--sold,
  .sold-bar--warm .sold-bar__fill--sold,
  .sold-bar__fill--full,
  .sold-bar__pct,
  .sold-bar__sheen,
  .sold-bar__tip,
  .sold-bar__nudge,
  .sold-bar__heat span,
  .sold-bar--hot,
  .sold-bar--critical,
  .sold-bar__aura {
    animation: none !important;
  }
}

html.theme-dark body.page-shop .sold-bar__pct {
  color: #f8fafc;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.7);
}

html.theme-dark body.page-shop .sold-bar--mid .sold-bar__top strong { color: #fbbf24; }
html.theme-dark body.page-shop .sold-bar--hot .sold-bar__top strong { color: #fb923c; }
html.theme-dark body.page-shop .sold-bar--critical .sold-bar__top strong { color: #f87171; }
html.theme-dark body.page-shop .sold-bar--low .sold-bar__nudge { color: #5eead4; }
html.theme-dark body.page-shop .sold-bar--warm .sold-bar__nudge { color: #7dd3fc; }
html.theme-dark body.page-shop .sold-bar--mid .sold-bar__nudge { color: #fbbf24; }
html.theme-dark body.page-shop .sold-bar--hot .sold-bar__nudge { color: #fb923c; }
html.theme-dark body.page-shop .sold-bar--critical .sold-bar__nudge { color: #f87171; }

/* ===== Estado AGOTADO ===== */
.agotado {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0.35rem 0 1rem;
  padding: 1.35rem 1.1rem 1.25rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(240, 180, 41, 0.35), transparent 55%),
    radial-gradient(420px 160px at 90% 100%, rgba(220, 38, 38, 0.45), transparent 50%),
    linear-gradient(145deg, #1a0a0a 0%, #3b0d0d 45%, #1f1010 100%);
  box-shadow: 0 18px 40px rgba(80, 10, 10, 0.28);
}

.agotado__glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(240, 180, 41, 0.18), transparent 40%);
  animation: agotado-spin 8s linear infinite;
  pointer-events: none;
}

.agotado__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: agotado-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes agotado-spin {
  to { transform: rotate(360deg); }
}

@keyframes agotado-shine {
  0%, 35% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

.agotado__stamp {
  position: relative;
  z-index: 1;
}

.agotado__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #f0d78c;
}

.agotado__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: 0.1em;
  line-height: 0.95;
  color: #ffe08a;
  text-shadow:
    0 0 0 2px rgba(180, 20, 20, 0.9),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(240, 180, 41, 0.35);
  animation: agotado-pop 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

@keyframes agotado-pop {
  0% { transform: scale(0.7) rotate(-6deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.agotado__sub {
  margin: 0.7rem auto 0;
  max-width: 34ch;
  color: rgba(255, 245, 240, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.agotado__sub strong { color: #fff; }

.agotado__spark {
  position: absolute;
  color: #f0d78c;
  font-size: 0.85rem;
  animation: agotado-spark 1.6s ease-in-out infinite;
}

.agotado__spark--1 { top: 0.6rem; left: 1rem; }
.agotado__spark--2 { top: 1.1rem; right: 1.2rem; animation-delay: 0.35s; }
.agotado__spark--3 { bottom: 0.85rem; left: 45%; animation-delay: 0.7s; }

@keyframes agotado-spark {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .agotado__glow,
  .agotado__shine,
  .agotado__title,
  .agotado__spark,
  .sold-bar__fill--full { animation: none; }
}

.shop-buy__card--soldout .pkg-grid--disabled,
.shop-grid--soldout .pkg.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.4);
  pointer-events: none;
}

.btn-buy.is-disabled,
.btn-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}

.shop-hero--soldout {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shop-hero--soldout > img,
.shop-hero--soldout > .shop-hero__placeholder {
  filter: grayscale(0.25) brightness(0.62);
}

.shop-hero__agotado-seal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.55rem;
  padding: 1.5rem;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  animation: hero-agotado-fade 0.55s ease both;
}

.shop-hero__agotado-veil {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 22, 0.72);
}

.shop-hero__agotado-word {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.shop-hero__agotado-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes hero-agotado-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero__agotado-seal { animation: none; }
}

/* ===== Hero: PrÃ³ximamente ===== */
.shop-hero--soon {
  position: relative;
  overflow: hidden;
}

.shop-hero--soon > img,
.shop-hero--soon > .shop-hero__placeholder {
  filter: brightness(0.55) saturate(0.9);
  transform: scale(1.03);
}

.shop-hero__soon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  pointer-events: none;
}

.shop-hero__soon-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.25) 0%, rgba(7, 19, 31, 0.55) 45%, rgba(7, 19, 31, 0.78) 100%);
}

.shop-hero__soon-copy {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  text-align: center;
}

.shop-hero__soon-line {
  margin: 0;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.shop-hero__soon-line--1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem 0.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.shop-hero__soon-line--1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: soon-word-in 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.shop-hero__soon-line--1 span:nth-child(1) { animation-delay: 0.08s; }
.shop-hero__soon-line--1 span:nth-child(2) { animation-delay: 0.18s; }
.shop-hero__soon-line--1 span:nth-child(3) { animation-delay: 0.28s; }
.shop-hero__soon-line--1 span:nth-child(4) { animation-delay: 0.38s; }
.shop-hero__soon-line--1 span:nth-child(5) {
  animation-delay: 0.48s;
  color: #7de8c0;
}

.shop-hero__soon-line--2 {
  margin-top: 0.85rem;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(10px);
  animation: soon-word-in 0.75s cubic-bezier(0.2, 0.85, 0.25, 1) 0.75s forwards,
             soon-soft-pulse 2.8s ease-in-out 1.6s infinite;
}

@keyframes soon-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soon-soft-pulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero__soon-line--1 span,
  .shop-hero__soon-line--2 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.demo-agotado-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff8eb;
  border: 1px solid #f0d39a;
  color: #7a4a00;
  font-size: 0.9rem;
}

.demo-agotado-note strong {
  color: #9a6700;
}

.demo-agotado-note span { flex: 1; min-width: 180px; }

/* ===== Estados de rifa (pausada / prÃ³ximamente) ===== */
.raffle-state {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0.35rem 0 1rem;
  padding: 1.25rem 1.1rem;
  text-align: center;
}

.raffle-state--paused {
  background: linear-gradient(145deg, #1a2330, #243044);
  color: #e8eef5;
}

.raffle-state--soon {
  background: linear-gradient(145deg, #0d1f2d, #123248 55%, #0f2433);
  color: #e8f2f7;
  border: 1px solid rgba(30, 200, 165, 0.25);
}

.raffle-state__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7de8c0;
}

.raffle-state--paused .raffle-state__eyebrow { color: #9ec9ff; }

.raffle-state__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.raffle-state__date {
  margin: 0.35rem 0 0.85rem;
  color: rgba(232, 242, 247, 0.72);
  font-weight: 700;
  font-size: 0.92rem;
}

.raffle-state__tz {
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.82em;
}

.raffle-state--soon.is-checking .countdown {
  opacity: 0.7;
}

.raffle-state__text {
  margin: 0.75rem 0 0;
  color: rgba(232, 242, 247, 0.78);
  font-size: 0.9rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.countdown__unit {
  min-width: 3.4rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown__unit strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}

.countdown__unit strong.is-flip {
  animation: cd-flip 0.35s ease;
}

.countdown__unit span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 242, 247, 0.62);
  font-weight: 800;
}

.countdown__sep {
  font-family: var(--display);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.35);
  padding-bottom: 0.9rem;
}

@keyframes cd-flip {
  0% { transform: translateY(4px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown__unit strong.is-flip { animation: none; }
}

/* AutorizaciÃ³n CONALOT: prefijo fijo + dÃ­gitos */
.auth-code-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line, #d7dde5);
  border-radius: 12px;
  overflow: hidden;
  background: #0b1824;
}

.auth-code-field__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  background: rgba(22, 199, 132, 0.12);
  color: #86efac;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-right: 1px solid var(--line, #d7dde5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auth-code-field__digits {
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1rem !important;
}

/* Admin status picker */
.raffle-status-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin: 0.5rem 0 1rem;
}

.raffle-status-box legend {
  font-weight: 800;
  padding: 0 0.35rem;
}

.raffle-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.raffle-status-option {
  appearance: none;
  border: 1px solid var(--line);
  background: #0b1824;
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}

.raffle-status-option strong {
  font-size: 0.95rem;
}

.raffle-status-option small {
  color: var(--muted);
  font-size: 0.78rem;
}

.raffle-status-option.is-on {
  border-color: rgba(30, 200, 165, 0.55);
  background: rgba(30, 200, 165, 0.1);
  box-shadow: 0 0 0 1px rgba(30, 200, 165, 0.2) inset;
}

@media (max-width: 700px) {
  .raffle-status-grid { grid-template-columns: 1fr; }
  .countdown__unit { min-width: 2.9rem; padding: 0.45rem 0.3rem; }
  .countdown__unit strong { font-size: 1.2rem; }
}

.shop__wrap { max-width: 1180px; }

.shop-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #1a1f24;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.shop-back span { color: #16c784; font-size: 1.1rem; }

.shop-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

.shop-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shop-top-states {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  z-index: 6;
  max-width: min(46%, 138px);
  pointer-events: none !important;
}

.shop-top-states *,
.shop-top-states *::before,
.shop-top-states *::after {
  pointer-events: none !important;
}

.shop-top-states__card {
  padding: 0.18rem 0.28rem 0.2rem;
  border-radius: 6px;
  background: rgba(8, 14, 20, 0.84);
  border: 1px solid rgba(125, 255, 192, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.shop-top-states__title {
  display: block;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(125, 255, 192, 0.9);
  margin-bottom: 0.12rem;
}

.shop-top-states__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.06rem;
}

.shop-top-states__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.16rem;
  min-width: 0;
}

.shop-top-states__medal {
  font-size: 0.58rem;
  line-height: 1;
  min-width: 0.85rem;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 220, 160, 0.95);
}

.shop-top-states__name {
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-top-states__qty {
  font-size: 0.5rem;
  font-weight: 800;
  color: #7dffc0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .shop-top-states {
    max-width: min(48%, 120px);
    left: 0.28rem;
    top: 0.28rem;
  }
  .shop-top-states__card {
    padding: 0.14rem 0.22rem;
  }
  .shop-top-states__title { font-size: 0.46rem; }
  .shop-top-states__name { font-size: 0.48rem; }
  .shop-top-states__qty { font-size: 0.46rem; }
  .shop-top-states__medal { font-size: 0.52rem; }
}

/* Cuenta regresiva sutil bajo la fecha del sorteo */
.shop-result-cd {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem 0.4rem;
}

.shop-result-cd__label {
  font-weight: 700;
  color: #6b7280;
}

.shop-result-cd__units {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-variant-numeric: tabular-nums;
}

.shop-result-cd__unit {
  color: #6b7280;
}

.shop-result-cd__unit strong {
  font-weight: 800;
  color: #374151;
}

.shop-result-cd__unit strong.is-flip {
  animation: cd-flip 0.35s ease;
}

.shop-result-cd__done {
  font-weight: 800;
  color: #12b87a;
}

.shop-result-cd.is-done .shop-result-cd__label {
  color: #12b87a;
}

.shop-result-cd.is-checking {
  opacity: 0.75;
}

html.theme-dark body.page-shop .shop-result-cd,
html.theme-dark body.page-shop .shop-result-cd__label,
html.theme-dark body.page-shop .shop-result-cd__unit {
  color: rgba(232, 242, 247, 0.55);
}

html.theme-dark body.page-shop .shop-result-cd__unit strong {
  color: rgba(232, 242, 247, 0.82);
}

html.theme-dark body.page-shop .shop-result-cd__done,
html.theme-dark body.page-shop .shop-result-cd.is-done .shop-result-cd__label {
  color: #7dffc0;
}

.shop-live-buys {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  z-index: 6;
  max-width: min(72%, 200px);
  pointer-events: none !important;
}

.shop-live-buys *,
.shop-live-buys *::before,
.shop-live-buys *::after {
  pointer-events: none !important;
}

.shop-live-buys[hidden] {
  display: none !important;
}

.shop-live-buys__card {
  display: flex;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.shop-live-buys__card.is-in {
  opacity: 1;
  transform: translateX(0);
}

.shop-live-buys__card.is-out {
  opacity: 0;
  transform: translateX(-8px);
}

.shop-live-buys__fire {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1.15;
  margin-top: 0.02rem;
  animation: shop-live-fire 1.05s ease-in-out infinite;
  filter:
    drop-shadow(0 0 5px rgba(255, 140, 40, 0.75))
    drop-shadow(0 0 12px rgba(255, 80, 20, 0.45));
}

@keyframes shop-live-fire {
  0%,
  100% { transform: scale(1) translateY(0) rotate(-2deg); }
  50% { transform: scale(1.18) translateY(-2px) rotate(3deg); }
}

.shop-live-buys__body {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}

.shop-live-buys__text {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(
    100deg,
    #fff7ed 0%,
    #ffd23a 28%,
    #ff7a18 55%,
    #ff3d6e 78%,
    #ffe08a 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  animation: shop-live-text-shine 3.2s ease-in-out infinite;
}

@keyframes shop-live-text-shine {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.shop-live-buys__when {
  font-size: 0.58rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffe09a, #ffb020, #ffd23a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

@media (max-width: 640px) {
  .shop-live-buys {
    max-width: min(78%, 170px);
    left: 0.3rem;
    bottom: 0.3rem;
  }
  .shop-live-buys__card {
    padding: 0;
    gap: 0.22rem;
  }
  .shop-live-buys__text { font-size: 0.62rem; }
  .shop-live-buys__when { font-size: 0.54rem; }
  .shop-live-buys__fire { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-live-buys__fire,
  .shop-live-buys__text { animation: none; }
  .shop-live-buys__card { transition: none; }
}

.shop-hero__auth {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: auto;
  z-index: 6;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 12, 26, 0.9);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 215, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  line-height: 1.15;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 1.1rem);
  overflow: hidden;
}

.shop-hero__auth::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 215, 0, 0.5) 60%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: auth-sheen-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auth-sheen-sweep {
  0% { left: -120%; }
  35%, 100% { left: 200%; }
}

.shop-hero__auth-icon {
  font-size: 0.85rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

.shop-hero__auth-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-btn__tg-logo {
  display: block;
  flex: 0 0 auto;
}

.shop-hero__auth-label {
  display: block;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 0.04rem;
  line-height: 1;
}

.shop-hero__auth-code {
  display: block;
  font-family: var(--display, inherit);
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  word-break: break-all;
  line-height: 1.1;
}

.shop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-hero__placeholder {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem;
  background:
    linear-gradient(145deg, #0f3d2e, #16324a 55%, #111);
  color: #fff;
}

.shop-hero__placeholder strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.shop-hero__placeholder span { color: #9ad9c4; }

.shop-details {
  margin-top: 1rem;
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.shop-details > summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
  color: #111;
}

.shop-details > summary::-webkit-details-marker { display: none; }

.shop-details > summary::after {
  content: "\00A0\25BE";
  color: #16a34a;
  font-size: 0.9em;
}

.shop-details[open] > summary::after { content: "\00A0\25B4"; }

.shop-details__body {
  color: #3b4650;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Bloque de Sellos Oficiales por fuera, debajo del borde de la descripción */
.raffle-homologation-badges {
  margin: 0.75rem 0 1.1rem;
  padding: 0.75rem 0.65rem 0.85rem;
  background: rgba(7, 16, 30, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.raffle-homologation-badges__title {
  display: block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffd700;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.raffle-homologation-badges__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.homologation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0.65rem 0.4rem;
  min-width: 90px;
  max-width: 110px;
  flex: 1 1 90px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.homologation-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.35);
}
.homologation-item span {
  font-size: 0.62rem;
  font-weight: 800;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.15;
}
.homologation-img {
  height: 44px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}
.homologation-img--conalot {
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.homologation-img--supergana {
  border-radius: 6px;
  background: #fff;
  padding: 3px 6px;
}
.homologation-img--ts {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.cert-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.cert-link-pill:hover {
  background: rgba(255, 215, 0, 0.22);
  transform: translateY(-1px);
}
.cert-link-pill--conalot {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.35);
  color: #00e676;
}
.cert-link-pill--conalot:hover {
  background: rgba(0, 230, 118, 0.22);
}
.cert-pill-badge {
  background: #ffd700;
  color: #070e1e;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* Modal visor protegido de PDF CONALOT */
.modal__panel--pdf {
  width: min(880px, 96vw) !important;
  height: min(88vh, 850px) !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem 1.15rem !important;
  background: #081226 !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9) !important;
  overflow: hidden !important;
}

.modal__body-pdf {
  flex: 1 1 auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #040914;
  margin-top: 0.65rem;
}

.modal-pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.shop-details__body details {
  margin-top: 0.75rem;
}

.shop-details__body summary {
  cursor: pointer;
  font-weight: 700;
  color: #16a34a;
}

.qty-box--inline {
  margin-bottom: 0.75rem;
  max-width: 180px;
}

.shop-buy__dock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.shop-buy__card {
  background: #fff;
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 88px;
}

.shop-buy__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.shop-buy__head h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
  color: #111;
}

.shop-buy__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: #e8fff3;
  color: #0f8a55;
  font-weight: 700;
  font-size: 0.85rem;
}

.shop-buy__price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.shop-buy__price .shop-buy__price-usd {
  align-self: flex-start;
}

.shop-buy__price span {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-buy__price strong {
  display: block;
  font-size: 1.05rem;
  color: #111;
}

.shop-buy__price-usd {
  display: block;
  margin: 0 0 0.1rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  opacity: 0.9;
  text-align: left;
}

.field-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .field-row--2 {
    grid-template-columns: 1fr;
  }
}

.shop-buy__dock .btn-buy strong {
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
}

.shop-buy__hint {
  margin: 0 0 0.85rem;
  color: #6b7280;
  font-size: 0.88rem;
}

.shop-rezagado {
  margin-top: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff8eb 0%, #f3f7fb 100%);
  border: 1px solid #e8d9b8;
}

.shop-rezagado__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a67c2a;
}

.shop-rezagado__text {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
}

.shop-rezagado__hint {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Tarjeta de Cuenta Regresiva Próximamente */
.shop-coming-soon-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95), rgba(4, 10, 24, 0.98));
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.2rem;
  text-align: center;
  margin: 0.5rem 0 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 215, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.shop-coming-soon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #00e676, #00f0ff, #ffd700);
  background-size: 200% 100%;
  animation: soon-line-sheen 3s linear infinite;
}

@keyframes soon-line-sheen {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.shop-coming-soon-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulse-dot-anim 1.2s ease-in-out infinite alternate;
}

@keyframes pulse-dot-anim {
  from { opacity: 0.5; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

.shop-coming-soon-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.countdown--proximamente {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 0.95rem;
}

.countdown--proximamente .countdown__unit {
  min-width: 4rem;
  padding: 0.6rem 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.countdown--proximamente .countdown__unit strong {
  font-family: var(--display, inherit);
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.countdown--proximamente .countdown__unit span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.countdown--proximamente .countdown__sep {
  font-family: var(--display, inherit);
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.45);
  padding-bottom: 0.85rem;
}

.shop-coming-soon-card__target {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}
.shop-coming-soon-card__target strong {
  color: #fff;
}

.shop-coming-soon-card__hint {
  font-size: 0.72rem;
  color: #8da4c4;
  margin: 0;
  line-height: 1.35;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.pkg {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 78px;
  background: #eceff3;
  color: #111;
  font-family: inherit;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.15rem;
  transition: 140ms ease;
  position: relative;
}

.pkg strong {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.pkg small,
.pkg__badge {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.pkg__emoji {
  display: inline-block;
  font-size: 0.95em;
  line-height: 1;
  transform-origin: center bottom;
  animation: pkg-rocket 1.05s ease-in-out infinite;
  will-change: transform;
}

@keyframes pkg-rocket {
  0%,
  100% {
    transform: translateY(0) rotate(-18deg) scale(1);
  }
  40% {
    transform: translateY(-4px) rotate(-8deg) scale(1.12);
  }
  70% {
    transform: translateY(-1px) rotate(-22deg) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkg__emoji { animation: none; }
  .pkg--popular,
  .pkg--popular::before,
  .pkg--popular::after {
    animation: none !important;
  }
}

.pkg:hover { filter: brightness(0.97); }

.pkg.is-active {
  background: var(--grad-play);
  color: #2a0810;
  box-shadow: 0 10px 24px rgba(255, 61, 110, 0.35);
}

/* Paquete ï¿½?oMÃ¡s popularï¿½?ï¿½: brillo sin transform en el botÃ³n (evita tapar clics en mÃ³vil) */
.pkg--popular {
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  border-color: rgba(240, 180, 41, 0.65);
  background:
    linear-gradient(160deg, #fff6d6 0%, #ffe08a 42%, #f0b429 100%);
  color: #3a2a00;
  box-shadow:
    0 0 0 1px rgba(255, 220, 120, 0.55),
    0 8px 22px rgba(240, 180, 41, 0.38),
    0 0 26px rgba(255, 200, 60, 0.35);
  animation: pkg-popular-glow 2.4s ease-in-out infinite;
  /* no usar transform aquÃ­: en iOS/Android bloquea clics vecinos */
}

.pkg--popular > * {
  position: relative;
  z-index: 2;
}

.pkg--popular::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 236, 170, 0.35) 65%,
    transparent 100%
  );
  animation: pkg-popular-shine 2.6s ease-in-out infinite;
  pointer-events: none !important;
  z-index: 1;
}

.pkg--popular::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  pointer-events: none !important;
  z-index: 3;
}

.pkg--popular.is-active {
  background:
    linear-gradient(160deg, #ffd23a 0%, #ff7a18 45%, #ff3d6e 100%);
  color: #2a0810;
  border-color: rgba(255, 220, 100, 0.85);
  animation: pkg-popular-glow-active 2.4s ease-in-out infinite;
}

@keyframes pkg-popular-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 220, 120, 0.5),
      0 8px 20px rgba(240, 180, 41, 0.32),
      0 0 18px rgba(255, 200, 60, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 230, 140, 0.85),
      0 12px 28px rgba(240, 180, 41, 0.5),
      0 0 36px rgba(255, 210, 80, 0.55);
  }
}

@keyframes pkg-popular-glow-active {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 214, 90, 0.7),
      0 10px 24px rgba(22, 199, 132, 0.4),
      0 0 22px rgba(255, 200, 60, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 230, 140, 0.95),
      0 14px 32px rgba(22, 199, 132, 0.55),
      0 0 40px rgba(255, 210, 80, 0.55);
  }
}

@keyframes pkg-popular-shine {
  0% {
    left: -45%;
    opacity: 0.25;
  }
  40%,
  55% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0.25;
  }
}

.pkg--popular .pkg__badge {
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.shop-buy__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 961px) {
  .shop-left { order: 1; }
  .shop-buy { order: 2; }

  .shop-details[open],
  .shop-details {
    /* En desktop se ve abierto por defecto vÃ­a JS/atributo; CSS solo tipografÃ­a */
  }

  .shop-buy__dock {
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }
}

.qty-box {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border: 1px solid #d7dde5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.qty-box button {
  border: none;
  background: #f3f5f7;
  height: 52px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: #111;
}

.qty-box input {
  width: 100%;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  height: 52px;
  color: #111;
  background: #fff;
}

.btn-buy {
  appearance: none;
  border: none;
  border-radius: 14px;
  background: var(--grad-play);
  color: #2a0810;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(255, 61, 110, 0.38);
}

.btn-buy:hover { filter: brightness(1.03); }

.btn-buy--pulse:not(:disabled):not(.is-disabled) {
  animation: buy-pulse-glow 2.2s ease-in-out infinite;
}

.btn-buy--pulse:not(:disabled):not(.is-disabled)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: buy-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.btn-buy--pulse > * {
  position: relative;
  z-index: 1;
}

@keyframes buy-pulse-glow {
  0%, 100% {
    box-shadow:
      0 10px 24px rgba(255, 61, 110, 0.36),
      0 0 0 0 rgba(255, 210, 58, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(255, 122, 24, 0.55),
      0 0 0 8px rgba(255, 61, 110, 0);
    transform: scale(1.02);
  }
}

@keyframes buy-shine {
  0%, 35% { transform: translateX(-130%); }
  55% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-buy--pulse:not(:disabled):not(.is-disabled),
  .btn-buy--pulse:not(:disabled):not(.is-disabled)::before {
    animation: none;
  }
}

.btn-buy--full {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 54px;
}

.shop-buy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-linkish {
  appearance: none;
  border: 1px solid #d7dde5;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: #1a1f24;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-linkish span { color: #16c784; }

.shop-mode {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

/* ===== Transparencia / resultados ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.result-card {
  position: relative;
  background: rgba(12, 28, 44, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-card__slot {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(30, 200, 165, 0.16);
  color: #9ef0dc;
}

.result-card--pm1 .result-card__slot {
  background: rgba(90, 208, 255, 0.16);
  color: #9ad7ff;
}

.result-card--pm4 .result-card__slot {
  background: rgba(240, 180, 41, 0.18);
  color: #ffd166;
}

.result-card--pm10 .result-card__slot {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.result-card__title {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.result-card__prize {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
}

.result-card__winner,
.result-card__number {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.7rem;
}

.result-card__winner span,
.result-card__number span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-card__winner strong {
  font-size: 1.05rem;
  color: var(--text);
}

.result-card__number strong {
  font-family: var(--display);
  font-size: 1.55rem;
  color: #7dffc0;
  letter-spacing: 0.04em;
}

.result-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.result-card__note {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.84rem;
}

/* Resultados en Detalles de la rifa */
.shop-draw-results {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border, #d7dde5) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, #0f9f6e 8%, transparent);
}

.shop-draw-results__title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.shop-draw-results__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.shop-draw-results__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.35;
}

.shop-draw-results__num {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b7a54;
}

.shop-draw-results__item.is-empty .shop-draw-results__num {
  color: #8a6a00;
}

html.theme-dark .shop-draw-results {
  background: color-mix(in srgb, #7dffc0 10%, transparent);
}

html.theme-dark .shop-draw-results__num {
  color: #7dffc0;
}

/* ===== SuperGana badge ===== */
.supergana-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.55rem 0.28rem 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.92), rgba(20, 122, 74, 0.88));
  border: 1px solid rgba(245, 197, 66, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 16px rgba(11, 61, 46, 0.28);
}

.supergana-badge__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
  background: #fff;
  padding: 2px 4px;
  box-sizing: border-box;
}

.supergana-badge__text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e8fff2;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.supergana-badge__text strong {
  color: #ffe08a;
  font-weight: 900;
}

.supergana-badge__text em {
  font-style: normal;
  color: #b7f0cc;
  font-weight: 600;
}

.section__supergana {
  margin-top: 0.75rem;
}

body.page-shop .supergana-badge {
  background: linear-gradient(135deg, #0b3d2e, #147a4a);
}

/* ===== Horarios / premios en detalles ===== */
.prize-schedule {
  position: relative;
  margin: 0.85rem 0 1rem;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(245, 197, 66, 0.18), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(20, 122, 74, 0.14), transparent 50%),
    linear-gradient(180deg, #fffdf6 0%, #f7faf8 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.prize-schedule__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: conic-gradient(from 180deg, transparent, rgba(245, 197, 66, 0.18), transparent 40%);
  animation: prize-glow-spin 9s linear infinite;
  pointer-events: none;
}

@keyframes prize-glow-spin {
  to { transform: rotate(360deg); }
}

.prize-schedule__head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.prize-schedule__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6b00;
}

.prize-schedule__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #14231c;
  letter-spacing: -0.01em;
}

.prize-schedule__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.prize-schedule__brand img {
  height: 36px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px 5px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.25);
}

.prize-schedule__brand span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d5a4c;
}

.prize-schedule__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.prize-schedule__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  animation: prize-item-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes prize-item-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.prize-schedule__medal {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  animation: prize-medal-bob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

@keyframes prize-medal-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

.prize-schedule__body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.prize-schedule__place {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.prize-schedule__prize {
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
}

.prize-schedule__time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f5c3d;
}

.prize-schedule__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 65%);
  transform: translateX(-120%);
  animation: prize-shine 3.6s ease-in-out infinite;
  animation-delay: calc(0.6s + var(--i, 0) * 0.35s);
  pointer-events: none;
}

@keyframes prize-shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.prize-schedule__item.is-place-1 {
  border-color: rgba(212, 160, 23, 0.45);
  background: linear-gradient(135deg, #fff9e8, #ffffff);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.18), 0 8px 20px rgba(212, 160, 23, 0.12);
}

.prize-schedule__item.is-place-2 {
  border-color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(135deg, #f4f7fb, #ffffff);
}

.prize-schedule__item.is-place-3 {
  border-color: rgba(180, 120, 70, 0.4);
  background: linear-gradient(135deg, #fff4ea, #ffffff);
}

html.theme-dark body.page-shop .prize-schedule {
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(245, 197, 66, 0.14), transparent 55%),
    linear-gradient(180deg, #152018 0%, #101820 100%);
  border-color: rgba(245, 197, 66, 0.28);
}

html.theme-dark body.page-shop .prize-schedule__title { color: #f3f7fb; }
html.theme-dark body.page-shop .prize-schedule__eyebrow { color: #f5c542; }
html.theme-dark body.page-shop .prize-schedule__brand span { color: #a7c4b4; }
html.theme-dark body.page-shop .prize-schedule__item {
  background: rgba(18, 28, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
}
html.theme-dark body.page-shop .prize-schedule__prize { color: #f3f7fb; }
html.theme-dark body.page-shop .prize-schedule__place { color: #94a3b8; }
html.theme-dark body.page-shop .prize-schedule__time { color: #7dffc0; }
html.theme-dark body.page-shop .prize-schedule__item.is-place-1 {
  background: linear-gradient(135deg, #2a2412, #152018);
}

@media (prefers-reduced-motion: reduce) {
  .prize-schedule__glow,
  .prize-schedule__medal,
  .prize-schedule__shine,
  .prize-schedule__item {
    animation: none !important;
  }
}

/* Admin: horarios/premios */
.prize-slots-box {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.prize-slots-box legend {
  padding: 0 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.prize-slots-grid {
  display: grid;
  gap: 0.55rem;
}

.prize-slot-row {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.prize-slot-row.is-on,
.prize-slot-row:has(input[type="checkbox"]:checked) {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
  background: #fffbeb;
}

.prize-slot-row__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.prize-slot-row__check strong {
  font-size: 0.92rem;
}

.prize-slot-row input[type="text"] {
  width: 100%;
}

.shop-last-winner__via {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.shop-last-winner__via img {
  height: 18px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 1px 2px;
  box-sizing: border-box;
  opacity: 0.98;
}

.shop-last-winner__via em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9ef0dc;
  text-transform: uppercase;
}

body.page-shop .result-card {
  background: #fff;
  color: #1a1f24;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.page-shop .result-card__winner strong { color: #111; }
body.page-shop .result-card__number strong { color: #0f8a55; }

html.theme-dark body.page-shop .result-card {
  background: #121a28;
  color: #e8eef5;
}

html.theme-dark body.page-shop .result-card__winner strong { color: #f3f7fb; }
html.theme-dark body.page-shop .result-card__number strong { color: #7dffc0; }

.fw-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.fw-canvas.is-done {
  opacity: 0;
}

.shop-success {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #1a1f24;
  max-width: 640px;
}

.shop-success--celebrate {
  animation: success-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-success--celebrate {
    animation: none;
  }
}

.shop-success__nums {
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.shop-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.15rem;
}

.shop-success__actions .btn-wa {
  margin-top: 0;
  background: #16c784;
  color: #042016;
}

.shop-success__auth {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px dashed #b7ebd4;
  background: #f0fdf7;
  text-align: center;
}

.shop-success__auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f8a55;
  margin-bottom: 0.25rem;
}

.shop-success__auth-code {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: #042016;
  word-break: break-all;
}

html.theme-dark body.page-shop .shop-success__auth {
  background: rgba(22, 199, 132, 0.12);
  border-color: rgba(22, 199, 132, 0.35);
}

html.theme-dark body.page-shop .shop-success__auth-label {
  color: #7dffc0;
}

html.theme-dark body.page-shop .shop-success__auth-code {
  color: #e8fff3;
}

.btn-wa--attention {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    0 10px 28px rgba(18, 140, 126, 0.4),
    0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-attention-bounce 1.8s ease-in-out infinite;
  z-index: 1;
}

.btn-wa--attention:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.btn-wa__pulse {
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: wa-attention-ring 1.8s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

.btn-wa__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  animation: wa-attention-wiggle 1.8s ease-in-out infinite;
}

.btn-wa__text {
  position: relative;
}

@keyframes wa-attention-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 28px rgba(18, 140, 126, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
      0 16px 36px rgba(18, 140, 126, 0.5),
      0 0 0 10px rgba(37, 211, 102, 0);
  }
}

@keyframes wa-attention-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes wa-attention-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.08); }
  50% { transform: rotate(6deg) scale(1.05); }
  75% { transform: rotate(-4deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-wa--attention,
  .btn-wa__pulse,
  .btn-wa__icon {
    animation: none;
  }
}

/* Modales */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  overscroll-behavior: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.55);
  touch-action: none;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #fff;
  color: #1a1f24;
  border-radius: 20px;
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal__panel--sm { width: min(420px, 100%); }
.modal__panel--checkout {
  position: relative;
  width: min(920px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* svh evita que el panel ï¿½?ose colapseï¿½?ï¿½ al volver de la cÃ¡mara/galerÃ­a */
  max-height: min(94vh, 900px);
  max-height: min(94svh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal__panel--checkout .modal__head {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  background: #fff;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
}

html.theme-dark body.page-shop .modal__panel--checkout .modal__head {
  background: #0b121c;
}

.modal__panel--checkout .checkout-form {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  /* --checkout-kb: alto del teclado virtual (JS) para poder llegar a Confirmar */
  padding-bottom: calc(0.5rem + var(--checkout-kb, 0px));
  box-sizing: border-box;
}

/* Alerta flotante de error de compra (fija al viewport, 30s) */
.checkout-float-toast {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483646 !important;
  width: min(440px, calc(100vw - 1.5rem));
  pointer-events: auto;
  animation: checkout-float-in 0.28s ease-out;
}

.checkout-float-toast__card {
  background: #fff5f5;
  border: 3px solid #dc2626;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  padding: 1.15rem 1.2rem 1.2rem;
  text-align: center;
  color: #7f1d1d;
}

.checkout-float-toast__title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.checkout-float-toast__msg {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-float-toast__meta {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
}

.checkout-float-toast__btn {
  width: 100%;
  min-height: 46px;
}

@keyframes checkout-float-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

html.theme-dark .checkout-float-toast__card {
  background: #3f1212;
  border-color: #f87171;
  color: #fecaca;
}

.modal__panel--checkout .checkout-cols,
.modal__panel--checkout .checkout-summary,
.modal__panel--checkout .field,
.modal__panel--checkout .pay-checkout,
.modal__panel--checkout .pay-method-list,
.modal__panel--checkout .pay-dest {
  min-width: 0 !important;
  max-width: 100%;
}

.modal__panel--checkout .field input,
.modal__panel--checkout .field select,
.modal__panel--checkout .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal__panel--checkout .checkout-summary__nums {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.modal__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d7dde5;
  background: #f3f5f7;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.modal__toolbar input {
  width: 90px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.modal__toolbar #search-number { width: 140px; }

.num-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.num-series {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.65rem;
}

.num-series__btn {
  appearance: none;
  border: 1px solid #d7dde5;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

body.admin .num-series__btn,
.page-shop .modal .num-series__btn {
  background: #0b1824;
  border-color: var(--line);
  color: var(--text);
}

.page-shop .modal .num-series__btn {
  background: #f3f5f7;
  color: #111;
  border-color: #d7dde5;
}

.num-series__btn.is-on {
  background: #16c784 !important;
  border-color: #16c784 !important;
  color: #042016 !important;
}

.num-pager {
  display: none !important;
}

.num-series-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin: 0.35rem 0 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.22);
}
.num-series-indicator__label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.04em;
}
.num-series-indicator__hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.shop-number-grid .num {
  background: #f3f5f7;
  color: #111;
  border-color: #d7dde5;
}

.shop-number-grid .num.is-selected {
  background: rgba(22, 199, 132, 0.22);
  border-color: #16c784;
  color: #0b5c3c;
}

.modal__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Barra Flotante Persistente en el Modal de Números (Pegada abajo de la pantalla) */
#modal-numbers .modal__panel {
  padding-bottom: 5.25rem !important;
}

#modal-numbers .modal__foot {
  position: fixed !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) translateY(120%) !important;
  width: min(920px, 100%) !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(8, 16, 36, 0.98) !important;
  border-top: 1.5px solid rgba(255, 215, 0, 0.35) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  z-index: 10060 !important;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.25), opacity 0.2s ease !important;
}

#modal-numbers .modal__foot.is-visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal__foot-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.modal__foot-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.modal__foot-count .count-badge {
  background: #ffd700;
  color: #070e1e;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
}

#modal-numbers .cart__nums {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  max-width: min(340px, 48vw);
  padding-bottom: 2px;
}

#modal-numbers .cart__nums .tag {
  background: rgba(0, 230, 118, 0.18);
  border: 1px solid #00e676;
  color: #00e676;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-confirm-floating {
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 50%, #ff9e00 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 0.92rem !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  box-shadow: 0 4px 20px rgba(255, 8, 68, 0.55) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  animation: confirm-btn-pulse 1.8s ease-in-out infinite alternate !important;
}

@keyframes confirm-btn-pulse {
  from { box-shadow: 0 4px 18px rgba(255, 8, 68, 0.45); }
  to { box-shadow: 0 6px 25px rgba(255, 158, 0, 0.75); transform: scale(1.02); }
}

.checkout-summary {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #e8fff3;
  margin-bottom: 1rem;
}

.checkout-summary strong {
  display: block;
  font-size: 1.1rem;
}

.checkout-summary__nums {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: #0f8a55;
  font-weight: 600;
  word-break: break-word;
}

.checkout-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-form h3 {
  margin: 0;
  font-size: 1rem;
}

.checkout-form .field input,
.checkout-form .field select,
.checkout-form .field textarea,
.checkout-form .payment-box {
  background: #f7f9fb;
  color: #111;
  border-color: #d7dde5;
}

.checkline {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #3b4650;
}

body.page-shop .flash--error {
  color: #7f1d1d;
}

@media (max-width: 960px) {
  body.page-shop {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    font-size: 0.78rem;
  }

  body.page-shop .shop-buy__card {
    padding: 0.85rem 0.9rem !important;
    border-radius: 16px;
  }

  body.page-shop .sold-bar {
    padding: 0.7rem 0.85rem 0.65rem !important;
    border-radius: 14px;
  }

  body.page-shop .pkg {
    min-height: 48px !important;
  }

  body.page-shop .pkg strong {
    font-size: 1.05rem !important;
  }

  body.page-shop .topbar-btn__label {
    font-size: 0.65rem;
  }

  body.page-shop .site-footer {
    display: none;
  }

  body.page-shop .topbar {
    position: sticky;
    top: 0;
  }

  body.page-shop .topbar__inner {
    min-height: 56px;
  }

  body.page-shop .brand__text small {
    display: none;
  }

  .shop {
    padding: 0.65rem 0 1rem;
  }

  .shop__wrap {
    width: min(1120px, calc(100% - 1rem));
    display: flex;
    flex-direction: column;
  }

  /* MÃ³vil: imagen ï¿½?' barra de avance ï¿½?' compra ï¿½?' detalles */
  .shop-grid {
    display: contents;
  }

  .shop-left {
    display: contents;
  }

  .shop-hero {
    order: 1;
  }

  .shop-hero__auth {
    top: 0.45rem;
    left: 0.45rem;
    right: auto;
  }

  .shop-hero__auth-label {
    font-size: 0.42rem;
  }

  .shop-hero__auth-code {
    font-size: 0.55rem;
  }

  .sold-bar {
    order: 2;
    padding: 0.55rem 0.75rem 0.55rem;
    margin: 0.4rem 0 0 !important;
    border-radius: 14px;
  }

  .shop-buy {
    order: 3;
    margin: 0 !important;
    padding: 0 !important;
  }

  .shop-details {
    order: 4;
  }

  .sold-bar__top {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
  }

  .sold-bar__top span {
    display: none;
  }

  .sold-bar__meta {
    font-size: 0.72rem;
  }

  .checkout-cols,
  .shop-buy__row {
    grid-template-columns: 1fr;
  }

  .shop-buy__card {
    position: static;
    top: auto;
    margin: 0.25rem 0 0 !important;
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .shop-buy__head {
    margin-bottom: 0.45rem;
    gap: 0.4rem;
  }

  .shop-buy__head h1 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
  }

  .shop-buy__hint,
  .shop-mode {
    display: none;
  }

  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .pkg {
    min-height: 58px;
    border-radius: 12px;
  }

  .pkg strong { font-size: 1.25rem; }
  .pkg small { font-size: 0.62rem; }

  .qty-box--inline {
    max-width: none;
    margin-bottom: 0.35rem;
  }

  .qty-box button,
  .qty-box input {
    height: 44px;
  }

  /* Barra que sigue la pantalla al bajar (Participar + Tabla) */
  .shop-buy__dock,
  .shop-buy__dock--follow {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 65 !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    align-items: center;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .shop-buy__dock-spacer {
    display: block;
    width: 100%;
    height: 64px;
    pointer-events: none;
  }

  html.theme-dark body.page-shop .shop-buy__dock,
  html.theme-dark body.page-shop .shop-buy__dock--follow {
    background: rgba(12, 10, 18, 0.96);
    border-top-color: rgba(255, 210, 58, 0.22);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.4);
  }

  .btn-linkish--dock {
    min-height: 48px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  .shop-buy__dock .btn-buy {
    min-height: 48px;
    width: 100%;
    font-size: 0.9rem;
  }

  .shop-hero {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .shop-hero__placeholder {
    min-height: 140px;
    padding: 1rem;
  }

  .shop-details {
    margin-top: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .checkout-summary {
    grid-template-columns: 1fr 1fr;
  }

  .modal__panel,
  .modal__panel--checkout {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(92vh, 900px);
    max-height: min(92svh, 900px);
    border-radius: 18px 18px 0 0;
    margin-top: auto;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .modal {
    align-items: end;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 100%;
    height: 100dvh;
  }

  .modal__panel--checkout .checkout-form {
    overflow: visible;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .modal__panel--checkout .checkout-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }

  .modal__panel--checkout .field {
    margin-bottom: 0.65rem;
  }

  .modal__panel--checkout .field label {
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
  }

  .pay-method {
    min-height: 52px;
    padding: 0.85rem 0.9rem;
  }

  .pay-detail-row {
    gap: 0.35rem;
  }

  .pay-detail-row dd {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .checkout-form .field input,
  .checkout-form .field select {
    font-size: 16px; /* evita zoom automÃ¡tico en iOS */
    min-height: 46px;
  }
}

@media (max-width: 560px) {
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-buy__head {
    flex-direction: row;
    align-items: flex-start;
  }
  .shop-buy__price { text-align: right; }
  .shop-buy__tickets-btn span:last-child {
    font-size: 0.78rem;
  }

  .btn-linkish--dock {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.55rem 0.7rem;
  }
}

/* TÃ­tulo del modal de tabla de nÃºmeros mÃ¡s legible */
#modal-numbers-title {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 960px) {
  #modal-numbers-title {
    font-size: 1.15rem;
  }

  .btn-linkish--dock {
    font-size: 1rem;
    font-weight: 800;
  }
}

/* ===== Panel Compras ===== */
.compras-top {
  align-items: center;
}

.compras-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compras-user__meta {
  text-align: right;
  line-height: 1.2;
}

.compras-user__meta strong {
  display: block;
  font-size: 0.92rem;
}

.compras-user__meta small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.compras-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-play);
  color: #042018;
  font-weight: 800;
}

.compras-bell {
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f0b429;
  color: #1a1400;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.compras-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.compras-advanced {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.compras-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.compras-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.compras-field select,
.compras-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1824;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 0.8rem;
  outline: none;
}

.compras-field select:focus,
.compras-field input:focus {
  border-color: rgba(30, 200, 165, 0.45);
}

@media (max-width: 900px) {
  body:not(.admin) .compras-advanced {
    grid-template-columns: 1fr;
  }
}

body.admin .compras-advanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin .field-row--2 {
  grid-template-columns: 1fr 1fr;
}

.compras-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #0b1824;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
}

.compras-search span { color: var(--muted); }

.compras-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.compras-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.chip-filter {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-filter.is-on {
  background: rgba(30, 200, 165, 0.14);
  border-color: rgba(30, 200, 165, 0.4);
  color: var(--text);
}

.compras-panel {
  border: 1px solid rgba(148, 197, 214, 0.28);
  border-radius: 18px;
  background: rgba(8, 18, 28, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 14px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.compras-table-wrap {
  border: none;
  border-radius: 0;
}

.compras-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
  background: transparent;
}

.compras-table thead th {
  white-space: nowrap;
  border-bottom: 1px solid rgba(148, 197, 214, 0.22);
  background: rgba(255, 255, 255, 0.035);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.compras-table tbody tr {
  background: rgba(12, 24, 38, 0.92);
  box-shadow: 0 0 0 1px rgba(148, 197, 214, 0.16);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.compras-table tbody tr:hover {
  background: rgba(18, 34, 52, 0.98);
  box-shadow: 0 0 0 1px rgba(148, 197, 214, 0.32), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.compras-table tbody tr td {
  vertical-align: middle;
  border-bottom: none;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.compras-table tbody tr td:first-child {
  border-radius: 12px 0 0 12px;
}

.compras-table tbody tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.compras-table tbody tr + tr td {
  border-top: 0;
}

/* Separación visual extra entre órdenes */
.compras-table tbody {
  background:
    linear-gradient(180deg, rgba(6, 16, 26, 0.65), rgba(6, 16, 26, 0.35));
}

.compras-table thead tr th:first-child {
  border-radius: 0;
}

.compras-panel .compras-table-wrap {
  padding: 0.55rem 0.65rem 0.75rem;
}

.col-check { width: 36px; }

.order-id {
  font-size: 0.85rem;
  color: #9ad7ff;
  background: rgba(80, 160, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.buyer-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 160px;
}

.buyer-cell strong { font-size: 0.92rem; }
.buyer-cell span { font-size: 0.8rem; color: var(--muted); }

.ref-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.raffle-cell {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.total-cell {
  color: #6ecbff;
  font-weight: 800;
  white-space: nowrap;
}

.badge--pill {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.action-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.order-row--just-updated td {
  animation: order-row-flash 1.2s ease;
}
@keyframes order-row-flash {
  0% { background: rgba(61, 220, 151, 0.18); }
  100% { background: transparent; }
}

.inline-form { display: inline; margin: 0; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.icon-btn--blue { color: #6ecbff; border-color: rgba(110, 203, 255, 0.35); }
.icon-btn--ok { color: #3ddc97; border-color: rgba(61, 220, 151, 0.4); }
.icon-btn--warn { color: #f0b429; border-color: rgba(240, 180, 41, 0.45); }
.icon-btn--danger { color: #ff8a8a; border-color: rgba(255, 107, 107, 0.4); }
.icon-btn--view { color: #c9d5df; }
.icon-btn--copy { color: #9ec9ff; border-color: rgba(158, 201, 255, 0.35); }
.icon-btn--copy.is-copied {
  color: #3ddc97;
  border-color: rgba(61, 220, 151, 0.45);
}
.icon-btn.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}

.ref-cell__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ref-cell__value--dup,
.od-ref__value--dup {
  color: #ff5c5c !important;
  font-weight: 800;
}

.ref-dup-badge,
.od-ref-dup {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: #e53935;
  line-height: 1.2;
  white-space: nowrap;
}

.icon-btn:hover:not(.is-disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.compras-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.compras-pager__nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.compras-pager__nav a {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
}

.compras-pager__nav a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.tiny { font-size: 0.72rem; }

.admin .modal__panel {
  background: #0c1a28;
  color: var(--text);
}

.admin .modal__close {
  background: #122233;
  color: var(--text);
  border-color: var(--line);
}

.order-detail .muted { font-size: 0.82rem; }

/* Dashboard rifas */
.raffle-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.raffle-select-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 18, 28, 0.92);
  padding: 1rem 1.1rem;
  transition: 160ms ease;
}

.raffle-select-card:hover,
.raffle-select-card.is-on {
  border-color: rgba(240, 180, 41, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.raffle-select-card.is-on {
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.08), rgba(8, 18, 28, 0.95));
}

.raffle-select-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.raffle-select-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text);
}

.raffle-select-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.85rem 0;
}

.raffle-select-card__stats div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  text-align: center;
}

.raffle-select-card__stats strong {
  display: block;
  font-size: 1.1rem;
}

.raffle-select-card__stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.raffle-select-card__state {
  font-size: 0.86rem;
  color: #f0d78c;
}

.raffle-select-card__pending {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0b429;
}

.dash-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

tr.is-top-state td {
  background: rgba(240, 180, 41, 0.08);
}

/* Modal detalle orden */
.od-panel {
  width: min(1080px, 100%) !important;
  max-height: min(92vh, 920px);
  padding: 0 !important;
  overflow: hidden;
  background: #0b1520 !important;
}

.od-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.od-head h2 {
  margin: 0;
  color: #f0b429;
  font-family: var(--display);
  font-size: 1.25rem;
}

.od-sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.od-loading { padding: 1.25rem; }

.od-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 480px;
  max-height: calc(92vh - 78px);
}

.od-side {
  border-right: 1px solid var(--line);
  padding: 1rem;
  overflow: auto;
  background: #09131d;
}

.od-main {
  padding: 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.od-status {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.15rem;
}

.od-status strong { font-size: 0.85rem; letter-spacing: 0.04em; }
.od-status span { font-size: 0.8rem; color: var(--muted); }

.od-status--warn {
  border: 1px solid rgba(240, 180, 41, 0.55);
  background: rgba(240, 180, 41, 0.1);
  color: #f0d78c;
}

.od-status--ok {
  border: 1px solid rgba(61, 220, 151, 0.45);
  background: rgba(61, 220, 151, 0.1);
  color: #9dffd0;
}

.od-status--danger {
  border: 1px solid rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb0b0;
}

.od-side h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.od-side section + section { margin-top: 1.1rem; }

.od-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.od-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 197, 214, 0.08);
  font-size: 0.88rem;
}

.od-list li span { color: var(--muted); }
.od-list li strong { text-align: right; font-weight: 700; }

.od-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
}

.od-total { color: #3ddc97 !important; }

.od-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.od-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.od-tab.is-on {
  background: rgba(240, 180, 41, 0.12);
  color: #f0d78c;
}

.od-tickets-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.dot--gold { background: #f0b429; }

.od-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.od-ticket {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #121f2c;
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: #f0d78c;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.od-ticket--edit {
  padding-right: 0.35rem;
}

.od-ticket__rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 92, 92, 0.18);
  color: #ff8a8a;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.od-ticket__rm:hover {
  background: rgba(255, 92, 92, 0.35);
  color: #fff;
}

.od-adjust {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(240, 180, 41, 0.28);
}

.od-adjust__hint {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.od-adjust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.od-adjust__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.od-adjust__input {
  width: 4.2rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b1520;
  color: #fff;
  font-weight: 700;
}

.od-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.od-wa {
  background: #16c784 !important;
  color: #042016 !important;
  border: none !important;
}

.od-proof {
  max-width: 100%;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  display: block;
}

.od-proof-box {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.75rem;
}

.od-proof-box__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.od-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.od-proof-pdf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.od-proof-pdf span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.pv-box {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.75rem;
}

.pv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pv-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.pv-score {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.pv-score strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pv-score--ok {
  background: rgba(22, 199, 132, 0.12);
  border-color: rgba(22, 199, 132, 0.35);
  color: #16c784;
}

.pv-score--warn {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
  color: #f5a623;
}

.pv-score--danger {
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.35);
  color: #ff6b6b;
}

.pv-score span {
  color: var(--text);
  font-size: 0.88rem;
}

.pv-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pv-check {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.86rem;
}

.pv-check strong {
  display: block;
  font-size: 0.88rem;
}

.pv-check span {
  color: var(--muted);
}

.pv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  background: var(--muted);
}

.pv-check--ok .pv-dot { background: #16c784; }
.pv-check--warn .pv-dot { background: #f5a623; }
.pv-check--fail .pv-dot { background: #ff6b6b; }
.pv-check--skip .pv-dot { background: #6b7280; }

.pv-ocr {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  max-height: 5.5em;
  overflow: auto;
}

.pv-auto {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.pv-auto--ok { color: #16c784; }
.pv-auto--warn { color: #f5a623; }

.od-history-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.od-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.od-actions--reject {
  flex-direction: column;
  align-items: stretch;
}

.od-actions__btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.od-reject-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.od-actions--reject textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 72px;
  font: inherit;
}

.od-reject-reason {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-weight: 700;
  line-height: 1.4;
  font-size: 0.9rem;
}

.reject-reason-panel {
  width: min(440px, 100%);
}

.reject-reason-form {
  display: grid;
  gap: 0.45rem;
  padding: 0.25rem 0.15rem 0.35rem;
}

.reject-reason-form__hint {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.reject-reason-form textarea,
.reject-reason-form .reject-reason-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
  line-height: 1.4;
}

.reject-reason-form textarea {
  resize: vertical;
  min-height: 110px;
}

.reject-reason-form .reject-reason-select {
  min-height: 48px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.reject-reason-form .reject-reason-select option {
  background: #151b24;
  color: var(--text);
}

.reject-reason-form textarea:focus,
.reject-reason-form .reject-reason-select:focus {
  outline: none;
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}

.reject-reason-other {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.reject-reason-other[hidden] {
  display: none !important;
}

.od-approve {
  background: #f0b429 !important;
  color: #1a1400 !important;
  border: none !important;
  font-weight: 800;
}

@media (max-width: 860px) {
  body:not(.admin) .od-layout { grid-template-columns: 1fr; }
  body:not(.admin) .od-side { border-right: none; border-bottom: 1px solid var(--line); }
}

/* Subida imagen rifa */
.raffle-image-upload {
  display: grid;
  gap: 0.55rem;
}

.raffle-image-preview {
  width: 100%;
  min-height: 160px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.raffle-image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.raffle-list-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.raffle-list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

/* MÃ©todos de pago (admin + checkout) */
/* ===== Admin paquetes ===== */
.pkg-admin-table-wrap {
  overflow-x: auto;
}

.pkg-admin-table td,
.pkg-admin-table th {
  vertical-align: middle;
}

.pkg-admin-table tr.is-off {
  opacity: 0.55;
}

.pkg-admin-input {
  width: 100%;
  max-width: 110px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1824;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
}

.pkg-admin-input--wide { max-width: 220px; }
.pkg-admin-input--sm { max-width: 80px; }

.pkg-admin-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.pkg-admin-preview__grid {
  pointer-events: none;
  max-width: 420px;
}

body.admin .pkg-admin-preview .pkg {
  background: #f3f5f7;
  color: #111;
  border-color: #d7dde5;
}

body.admin .pkg-admin-preview .pkg--popular,
body.admin .pkg-admin-preview .pkg.is-active {
  background: #e8fff3;
  border-color: #12b87a;
  color: #0f8a55;
}

.pay-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.pay-admin-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 18, 28, 0.92);
  padding: 1rem;
}

.pay-admin-card.is-off { opacity: 0.55; }

.pay-admin-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.pay-admin-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
  overflow: hidden;
}

.pay-admin-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--display);
}

.pay-admin-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.pay-details {
  margin: 0;
}

.pay-details > div,
.pay-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148, 197, 214, 0.1);
  font-size: 0.88rem;
}

.pay-details dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pay-details dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.5rem;
}

.detail-row input {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #081722;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch span {
  position: absolute;
  inset: 0;
  background: #334155;
  border-radius: 999px;
  cursor: pointer;
  transition: 150ms ease;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 150ms ease;
}

.switch input:checked + span { background: #f0b429; }
.switch input:checked + span::before { transform: translateX(18px); }

.pay-checkout h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.checkout-steps {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0;
  flex-wrap: wrap;
}

.checkout-steps__item {
  flex: 1 1 0;
  min-width: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
}

.checkout-steps__item span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #cbd5e1;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
}

.checkout-steps__item.is-on {
  background: #e8fff3;
  color: #065f46;
}

.checkout-steps__item.is-on span {
  background: #16c784;
  color: #042016;
}

.checkout-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #16c784;
  color: #042016;
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: middle;
}

.checkout-confirm-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  border-top: 1px dashed #d7dde5;
  position: relative;
  z-index: 2;
  scroll-margin-bottom: 6.5rem;
}

.checkout-confirm-block .checkline {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  padding: 0.35rem 0;
}

.checkout-confirm-block .checkline input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  pointer-events: auto;
  cursor: pointer;
}

.checkout-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin-top: 0.75rem;
  padding: 0.75rem 0 calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.checkout-submit-bar .btn {
  pointer-events: auto;
  position: relative;
  z-index: 31;
}

.checkout-submit-bar--wizard {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  pointer-events: auto;
}

.checkout-submit-bar--wizard #checkout-back {
  flex: 0 0 auto;
  min-width: 5.5rem;
}

.checkout-submit-bar--wizard #checkout-next {
  flex: 1 1 auto;
  width: 100%;
}

.checkout-wizard {
  display: block;
}

.checkout-pane {
  display: none;
  animation: checkout-pane-in 0.22s ease-out;
}

.checkout-pane.is-on,
.checkout-pane:not([hidden]) {
  display: block;
}

.checkout-pane[hidden] {
  display: none !important;
}

.checkout-pane > h3 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.checkout-pane__lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
}

.checkout-steps__item.is-done {
  opacity: 0.85;
}

.checkout-steps__item.is-done span {
  background: #16c784;
  color: #042016;
}

@keyframes checkout-pane-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overlay mientras se reserva / procesa la compra */
.checkout-processing {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 12, 16, 0.55);
  backdrop-filter: blur(2px);
}

.checkout-processing[hidden] {
  display: none !important;
}

.checkout-processing__card {
  width: min(280px, 100%);
  text-align: center;
  background: rgba(10, 18, 38, 0.96) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  color: #fff !important;
  border-radius: 18px;
  padding: 1.35rem 1.2rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 215, 0, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Spinner del logo oficial girando en estados de carga / espera */
.ts-logo-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-logo-spinner::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 215, 0, 0.15);
  border-top-color: #ffd700;
  border-right-color: #00e676;
  animation: ts-ring-spin 0.9s linear infinite;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.ts-logo-spinner::after {
  content: "";
  width: 52px;
  height: 52px;
  background: url('../img/logo-tecnologia-segura-oficial.png') no-repeat center center;
  background-size: contain;
  animation: ts-logo-spin 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  display: block;
}

@keyframes ts-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes ts-logo-spin {
  0% { transform: rotate(0deg) scale(0.94); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(0.94); }
}

/* Contenedor de carga para tablas, modales y llamadas AJAX */
.ts-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.2rem 1.5rem;
  text-align: center;
  width: 100%;
}
.ts-loader-box .ts-loader-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: ts-text-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes ts-text-pulse {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.02); }
}

/* Redefinir checkout-processing__spinner con el logo girando */
.checkout-processing__spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.checkout-processing__spinner::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 215, 0, 0.2);
  border-top-color: #ffd700;
  border-right-color: #00e676;
  animation: ts-ring-spin 0.9s linear infinite;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.checkout-processing__spinner::after {
  content: "";
  width: 52px;
  height: 52px;
  background: url('../img/logo-tecnologia-segura-oficial.png') no-repeat center center;
  background-size: contain;
  animation: ts-logo-spin 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  display: block;
}

/* Overlay global de carga con logo girando */
.ts-global-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ts-fade-in 0.2s ease-out;
}
.ts-global-loading[hidden] {
  display: none !important;
}
.ts-global-loading__card {
  width: min(300px, 92vw);
  text-align: center;
  background: rgba(10, 18, 38, 0.96);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.2);
  color: #fff;
}
.ts-global-loading__card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 0.35rem;
}
.ts-global-loading__card p {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.4;
}

@keyframes ts-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-processing__card strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.checkout-processing__card p {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
  font-weight: 600;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

html.theme-dark body.page-shop .checkout-processing__card {
  background: #0f172a;
  color: #e2e8f0;
}

html.theme-dark body.page-shop .checkout-processing__card p {
  color: #94a3b8;
}

html.theme-dark body.page-shop .checkout-processing__spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #16c784;
}

html.theme-dark body.page-shop .checkout-steps__item {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

html.theme-dark body.page-shop .checkout-steps__item.is-on {
  background: rgba(22, 199, 132, 0.16);
  color: #bbf7d0;
}

html.theme-dark body.page-shop .checkout-submit-bar {
  background: #0b121c;
  box-shadow: 0 -8px 18px rgba(11, 18, 28, 0.95);
}

html.theme-dark body.page-shop .checkout-confirm-block {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.pay-checkout__hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.pay-method-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.pay-method {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #d7dde5;
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.admin .pay-method {
  background: #0b1824;
  border-color: var(--line);
}

.pay-method input { accent-color: #16c784; }

.pay-method.is-on {
  border-color: #16c784;
  box-shadow: 0 0 0 2px rgba(22, 199, 132, 0.28);
  background: #f0fdf7;
}

.pay-method.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f4f6;
  box-shadow: none;
  border-color: #e5e7eb;
}

.pay-method.is-disabled input {
  pointer-events: none;
}

.pay-method__lock {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
}

.pay-method__lock[hidden] {
  display: none !important;
}

body.admin .pay-method.is-on {
  background: rgba(22, 199, 132, 0.08);
}

.pay-method__check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: transparent;
  background: #e2e8f0;
}

.pay-method.is-on .pay-method__check {
  color: #042016;
  background: #16c784;
}

.pay-method__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eceff3;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1;
}

.pay-method__icon .pay-method__logo,
.pay-admin-card__icon .pay-method__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

body.admin .pay-method__icon { background: rgba(255, 255, 255, 0.06); }

.pay-method__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pay-method__body strong { font-size: 0.92rem; }
.pay-method__body small { color: #6b7280; font-size: 0.75rem; font-weight: 700; }

.pay-dest {
  border: 1px solid #d7dde5;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  scroll-margin: 1rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pay-dest.is-hidden {
  display: none !important;
}

.pay-dest--focus {
  border-color: #16c784;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.28), 0 12px 28px rgba(15, 23, 42, 0.12);
}

.pay-method--flash {
  animation: pay-method-flash 1.1s ease;
}

@keyframes pay-method-flash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  35% { box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.55), 0 10px 24px rgba(22, 199, 132, 0.2); }
}

html.theme-dark body.page-shop.page-buy .pay-dest--focus,
html.theme-dark body.page-shop .pay-dest--focus {
  border-color: #34d399 !important;
  background: rgba(22, 199, 132, 0.16) !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3), 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark body.page-shop.page-buy .modal__panel--checkout {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

html.theme-dark body.page-shop.page-buy .pay-dest,
html.theme-dark body.page-shop.page-buy .pay-method,
html.theme-dark body.page-shop.page-buy .pay-proof,
html.theme-dark body.page-shop.page-buy .checkout-account-pay {
  scroll-margin-top: 1rem;
  scroll-margin-bottom: 6rem;
}

.pay-proof {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
  margin-bottom: 0.35rem;
  scroll-margin-bottom: 7rem;
}

.pay-proof #payment_ref {
  scroll-margin-bottom: 7rem;
}

.pay-proof input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 48px;
}

.pay-proof-upload__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  min-height: 0 !important;
}

.pay-proof-upload {
  position: relative;
  margin-top: 0.15rem;
}

.pay-proof-upload__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.pay-proof-upload__status {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f766e;
}

.pay-proof-upload__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1.5px dashed #16c784;
  border-radius: 12px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(22, 199, 132, 0.12);
  animation: pay-proof-btn-pulse 2s ease-in-out infinite;
}

.pay-proof-upload__btn.is-required,
.pay-proof-upload__btn:not(.pay-proof-upload__btn--soft) {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%);
  color: #78350f;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16);
  animation: pay-proof-btn-pulse-hot 1.8s ease-in-out infinite;
}

.pay-proof-upload__btn--soft {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
  animation: none;
}

.pay-proof-upload__icon {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.pay-proof-upload__cta {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.pay-proof-upload__cta strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.pay-proof-upload__cta em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.88;
}

.pay-proof-upload__pulse {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pay-proof-ring 2s ease-out infinite;
  pointer-events: none;
}

.pay-proof-upload.is-ready .pay-proof-upload__btn {
  border-style: solid;
  border-color: #16c784;
  background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
  color: #065f46;
  animation: none;
  box-shadow: 0 0 0 2px rgba(22, 199, 132, 0.14);
}

.pay-proof-upload.is-ready .pay-proof-upload__pulse {
  display: none;
}

.pay-proof-upload.is-error .pay-proof-upload__btn {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
  animation: pay-proof-btn-pulse-hot 1.2s ease-in-out infinite;
}

@keyframes pay-proof-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}

@keyframes pay-proof-btn-pulse-hot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14); }
  50% { transform: scale(1.012); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
}

@keyframes pay-proof-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.025); }
}

.pay-proof-upload__btn.is-attention {
  animation: pay-proof-btn-pulse-hot 0.9s ease-in-out 2 !important;
  outline: 2px solid rgba(245, 158, 11, 0.45);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pay-proof-upload__btn,
  .pay-proof-upload__pulse {
    animation: none !important;
  }
}

.pay-proof__file-name {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #16c784;
  word-break: break-all;
}

.pay-proof__file-name.is-error {
  color: #c62828;
}

.pay-proof__mobile-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pay-proof__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.pay-proof__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.pay-ref-six-notice {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.pay-ref-six-notice.is-hidden {
  display: none;
}

.pay-ref-six-notice strong {
  color: #9a3412;
  font-weight: 800;
}

.pay-proof.is-hidden {
  display: none;
}

body.admin .pay-dest,
.demo-phone-page .pay-dest {
  background: #0b1824;
  border-color: var(--line);
}

.mapp__pay .pay-dest {
  background: #f0fdf7;
  border-color: #b7ebd4;
}

.pay-dest__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.pay-amount-due {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #16c784;
  color: #042016;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--display);
}

.pay-detail-row dd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

.copy-chip {
  appearance: none;
  border: 1px solid #c5d0db;
  background: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  color: #0f8a55;
}

.mapp__pay .copy-chip,
.pay-dest .copy-chip {
  border-color: #b7ebd4;
  background: #e8fff3;
}

@media (max-width: 700px) {
  .checkout-cols { grid-template-columns: 1fr; }
  .modal__panel--checkout { padding: 0.85rem; }
  .checkout-steps__item { font-size: 0.72rem; padding: 0.4rem 0.45rem; }
}

/* ===== Verificador de boletos ===== */
.boletos__wrap {
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
}

.boletos-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 168px;
  margin: 0.85rem 0 1rem;
  background: #0b1622;
  box-shadow: 0 18px 48px rgba(11, 22, 34, 0.22);
}

.boletos-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 22, 34, 0.55), rgba(11, 22, 34, 0.2)),
    var(--boletos-img) center / cover no-repeat;
  transform: scale(1.04);
}

.boletos-hero__media--plain {
  background:
    radial-gradient(520px 220px at 15% 20%, rgba(34, 211, 154, 0.28), transparent 60%),
    radial-gradient(420px 200px at 90% 80%, rgba(240, 180, 41, 0.18), transparent 55%),
    linear-gradient(135deg, #0b1622, #132536 55%, #0d1b28);
}

.boletos-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.35) 0%, rgba(7, 19, 31, 0.78) 100%);
}

.boletos-hero__body {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.45rem;
  color: #f5faf8;
}

.boletos-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7de8c0;
}

.boletos-hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.boletos-hero__meta {
  margin: 0.55rem 0 0;
  color: rgba(245, 250, 248, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.boletos-panel {
  background: #fff;
  border-radius: 24px;
  padding: 1.15rem 1.15rem 1.35rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}

.boletos-search__label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 800;
  color: #111;
  font-size: 0.95rem;
}

.boletos-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: stretch;
}

.boletos-search__row input {
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  background: #f7f9fb;
  color: #111;
}

.boletos-search__row input:focus {
  outline: 2px solid rgba(18, 184, 122, 0.35);
  border-color: #12b87a;
  background: #fff;
}

.boletos-search__row .btn {
  border-radius: 14px;
  padding-inline: 1.15rem;
  font-weight: 800;
}

.boletos-search__hint {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.boletos-empty {
  margin-top: 1.1rem;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  background: #f7f9fb;
  border: 1px dashed #d7dde5;
}

.boletos-empty--warn {
  background: #fff8eb;
  border-color: #f0d39a;
}

.boletos-empty strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #111;
}

.boletos-empty p { margin: 0; }

.boletos-count {
  margin: 1.1rem 0 0.85rem;
  font-size: 0.92rem;
  color: #4b5563;
}

.boletos-list {
  display: grid;
  gap: 0.9rem;
}

.ticket-card {
  position: relative;
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid #e5ebf1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ticket-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #ff3d6e, #ffd23a);
}

.ticket-card--pending::before {
  background: linear-gradient(180deg, #ffd23a, #ff7a18);
}

.ticket-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.ticket-card__raffle {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f8a55;
}

.ticket-card--pending .ticket-card__raffle {
  color: #b45309;
}

.ticket-card__order {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.1;
}

.ticket-card__buyer {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.92rem;
}

.ticket-card__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.ticket-card__status.is-paid {
  background: #e8fff3;
  color: #0f8a55;
}

.ticket-card__status.is-pending {
  background: #fff4db;
  color: #9a6700;
}

.ticket-card__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}

.ticket-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.1rem;
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  background: #0f1c28;
  color: #f0d78c;
  border: 1px solid rgba(240, 180, 41, 0.35);
  font-family: var(--display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ticket-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5ebf1;
}

.ticket-card__foot > div {
  display: grid;
  gap: 0.1rem;
}

.ticket-card__foot strong {
  font-size: 1.05rem;
  color: #111;
}

.ticket-card__foot time {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .boletos-hero__body { padding: 1.15rem; }
  .boletos-panel { padding: 1rem; border-radius: 20px; }
  .boletos-search__row {
    grid-template-columns: 1fr;
  }
  .boletos-search__row .btn {
    width: 100%;
    min-height: 48px;
  }
  .ticket-num {
    min-width: calc(25% - 0.35rem);
    flex: 1 1 calc(25% - 0.35rem);
  }
}

/* ï¿½?"ï¿½?" ï¿½sltimo ganador (chip arriba izquierda del hero) ï¿½?"ï¿½?" */
.shop-last-winner {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  z-index: 6;
  max-width: min(42%, 128px);
  pointer-events: none !important;
}

.shop-last-winner *,
.shop-last-winner *::before,
.shop-last-winner *::after {
  pointer-events: none !important;
}

.shop-last-winner__card {
  padding: 0.18rem 0.28rem 0.2rem;
  border-radius: 6px;
  background: rgba(8, 14, 20, 0.82);
  border: 1px solid rgba(212, 175, 95, 0.28);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  gap: 0.04rem;
}

.shop-last-winner__eyebrow {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.92);
  line-height: 1.1;
}

.shop-last-winner__num {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #ffe7a8;
}

.shop-last-winner__name {
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-last-winner__raffle {
  font-size: 0.42rem;
  font-weight: 650;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-last-winner__slot {
  font-size: 0.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.1;
}

@media (max-width: 640px) {
  .shop-last-winner {
    max-width: min(44%, 112px);
    left: 0.28rem;
    top: 0.28rem;
  }
  .shop-last-winner__card { padding: 0.14rem 0.22rem; }
  .shop-last-winner__eyebrow { font-size: 0.38rem; }
  .shop-last-winner__num { font-size: 0.64rem; }
  .shop-last-winner__name { font-size: 0.46rem; }
  .shop-last-winner__raffle { font-size: 0.38rem; }
  .shop-last-winner__slot { font-size: 0.36rem; }
}

/* ===== Asistente flotante ===== */
.assist-bot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  font-family: inherit;
}

/* Encima del botÃ³n Participar / Comprar (dock fijo en tienda) */
@media (max-width: 960px) {
  body.page-shop .assist-bot {
    right: 0.75rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.page-shop .assist-bot.is-open {
    /* Con el panel abierto, un poco mÃ¡s arriba para no tapar el dock */
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* Si el checkout estÃ¡ abierto, el dock se oculta: baja el asistente */
  body.page-shop.modal-open .assist-bot {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

.assist-bot__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
}

.assist-bot__fab-caption {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  pointer-events: none;
}

.assist-bot.is-open .assist-bot__fab-caption {
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.assist-bot__fab-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff7e8 0%, #f3e0b8 55%, #e8c97a 100%);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow:
    0 10px 24px rgba(15, 118, 110, 0.22),
    0 0 0 2px rgba(255, 255, 255, 0.65);
  overflow: hidden;
  animation: assist-duende-bounce 0.85s ease-in-out infinite;
}

.assist-bot__fab-icon--duende {
  width: 3.55rem;
  height: 3.55rem;
}

.assist-bot__duende {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 18%;
  pointer-events: none;
  user-select: none;
}

.assist-bot__duende--a {
  animation: assist-duende-frame-a 0.7s steps(1, end) infinite;
}

.assist-bot__duende--b {
  animation: assist-duende-frame-b 0.7s steps(1, end) infinite;
}

.assist-bot__fab:hover .assist-bot__fab-icon,
.assist-bot__fab:focus-visible .assist-bot__fab-icon {
  animation-duration: 0.55s;
}

.assist-bot.is-open .assist-bot__fab-icon {
  animation: none;
  transform: scale(0.96);
}

.assist-bot.is-open .assist-bot__duende--a,
.assist-bot.is-open .assist-bot__duende--b {
  animation: none;
}

.assist-bot.is-open .assist-bot__duende--b {
  opacity: 0;
}

.assist-bot__fab-pulse {
  position: absolute;
  right: 0;
  top: 50%;
  width: 3.55rem;
  height: 3.55rem;
  margin-top: -1.775rem;
  border-radius: 999px;
  border: 2px solid rgba(22, 199, 132, 0.45);
  animation: assist-fab-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes assist-fab-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes assist-duende-bounce {
  0%,
  100% { transform: translateY(0) rotate(-3deg) scale(1); }
  25% { transform: translateY(-5px) rotate(2deg) scale(1.04); }
  50% { transform: translateY(0) rotate(-2deg) scale(1); }
  75% { transform: translateY(-4px) rotate(3deg) scale(1.03); }
}

@keyframes assist-duende-frame-a {
  0%,
  49.9% { opacity: 1; }
  50%,
  100% { opacity: 0; }
}

@keyframes assist-duende-frame-b {
  0%,
  49.9% { opacity: 0; }
  50%,
  100% { opacity: 1; }
}

.assist-bot__head-duende {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 2px rgba(22, 199, 132, 0.25);
  flex-shrink: 0;
  animation: assist-duende-bounce 1.1s ease-in-out infinite;
}

html.theme-dark .assist-bot__fab-caption {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 197, 214, 0.2);
}

.assist-bot__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

/* display:flex no debe anular el atributo hidden (si no, el chat queda abierto y tapa la tienda) */
.assist-bot__panel[hidden] {
  display: none !important;
}

.assist-bot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
}

.assist-bot__head > div {
  flex: 1;
  min-width: 0;
}

.assist-bot__head strong {
  display: block;
  font-size: 0.92rem;
}

.assist-bot__head span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
}

.assist-bot__close {
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.assist-bot__messages {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  background: #f8fafc;
  min-height: 180px;
}

.assist-bot__row { display: grid; gap: 0.35rem; }
.assist-bot__row--user { justify-items: end; }
.assist-bot__row--bot { justify-items: start; }

.assist-bot__bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: normal;
}

.assist-bot__row--bot .assist-bot__bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.assist-bot__row--user .assist-bot__bubble {
  background: #0f766e;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.assist-bot__row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.assist-bot__chips {
  display: none !important;
}

.assist-bot__chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.assist-bot__chip:hover {
  border-color: #16c784;
  color: #0f766e;
}

.assist-bot__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.15rem;
}

.assist-bot__numbers-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.assist-bot__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #065f46;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

html.theme-dark .assist-bot__numbers-label { color: #7ddea8; }
html.theme-dark .assist-bot__num {
  background: #0f1a14;
  border-color: #16c784;
  color: #bbf7d0;
}

.assist-bot__proof {
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem 0.2rem;
  background: #fff;
  border-top: 1px solid #eef2f6;
}

/* Evita que display:grid anule el atributo hidden */
.assist-bot__proof[hidden] {
  display: none !important;
}

.assist-bot__proof-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  border: 1.5px dashed #16c784;
  border-radius: 12px;
  background: #f0fdf7;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.assist-bot__proof-btn:hover {
  background: #e6faf1;
}

.assist-bot__proof-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

.assist-bot__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.7rem;
  background: #fff;
  border-top: 1px solid #eef2f6;
}

.assist-bot__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
}

.assist-bot__send {
  border: 0;
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  background: #16c784;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

html.theme-dark .assist-bot__panel {
  background: #121a28;
  border-color: rgba(148, 197, 214, 0.16);
}

html.theme-dark .assist-bot__messages { background: #0b1220; }
html.theme-dark .assist-bot__chips,
html.theme-dark .assist-bot__proof,
html.theme-dark .assist-bot__form { background: #121a28; border-color: rgba(148, 197, 214, 0.12); }
html.theme-dark .assist-bot__proof-btn {
  background: #0f1a14;
  border-color: #16c784;
  color: #7ddea8;
}
html.theme-dark .assist-bot__proof-hint { color: #94a3b8; }
html.theme-dark .assist-bot__row--bot .assist-bot__bubble {
  background: #182234;
  border-color: rgba(148, 197, 214, 0.14);
  color: #e8eef5;
}
html.theme-dark .assist-bot__chip {
  background: #182234;
  border-color: rgba(148, 197, 214, 0.18);
  color: #e8eef5;
}
html.theme-dark .assist-bot__form input {
  background: #0b1220;
  border-color: rgba(148, 197, 214, 0.18);
  color: #e8eef5;
}

@media (max-width: 640px) {
  .assist-bot { right: 0.65rem; bottom: 0.75rem; }
  body.page-shop .assist-bot {
    right: 0.65rem;
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
  }
  body.page-shop.modal-open .assist-bot {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .assist-bot__fab-caption {
    font-size: 0.62rem;
    padding: 0.18rem 0.42rem;
  }
  .assist-bot__panel {
    width: min(100vw - 1.1rem, 360px);
    max-height: min(62vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .assist-bot__fab-pulse { animation: none; }
}

/* â€”â€”â€” Admin: monitoreo asistente â€”â€”â€” */
.assist-admin-days select {
  margin-left: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #dbe3ea;
}

.assist-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}

.assist-admin-stat {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.15rem;
}

.assist-admin-stat span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.assist-admin-stat strong {
  font-size: 1.55rem;
  line-height: 1.1;
  color: #0f172a;
}

.assist-admin-stat small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.assist-admin-stat--ok strong { color: #0f766e; }

.assist-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.assist-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.assist-admin-filters input[type="search"],
.assist-admin-filters select {
  flex: 1;
  min-width: 140px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.assist-admin-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.assist-admin-pill--open { background: #e0f2fe; color: #0369a1; }
.assist-admin-pill--ended { background: #f1f5f9; color: #64748b; }
.assist-admin-pill--converted { background: #d1fae5; color: #047857; }

tr.is-active-row td { background: #f0fdf7; }

.btn--small {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.assist-admin-thread__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.assist-admin-thread__head h2 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.assist-admin-thread__meta { font-size: 0.78rem; margin-bottom: 0.85rem; }

.assist-admin-thread__msgs {
  display: grid;
  gap: 0.65rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.assist-admin-msg {
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e8eef4;
}

.assist-admin-msg--user {
  background: #f8fafc;
  margin-right: 1.5rem;
}

.assist-admin-msg--bot {
  background: #f0fdf7;
  border-color: #bbf7d0;
  margin-left: 1.5rem;
}

.assist-admin-msg__who {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.assist-admin-msg__body {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #0f172a;
  word-break: break-word;
}

.assist-admin-msg__time {
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.assist-admin-empty { padding: 1.5rem 0.5rem; }

@media (max-width: 1100px) {
  .assist-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assist-admin-grid { grid-template-columns: 1fr; }
}

/* Dashboard: picos por hora */
.dash-hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.2rem;
  align-items: end;
  min-height: 140px;
  padding: 0.65rem 0.4rem 0.35rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.55));
}

.dash-hours__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.dash-hours__bar-wrap {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dash-hours__bar {
  width: 70%;
  min-height: 0;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  opacity: 0.78;
}

.dash-hours__col.is-peak .dash-hours__bar {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.35);
}

.dash-hours__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.dash-hours__count {
  font-size: 0.62rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1;
  min-height: 0.7rem;
}

.dash-hours__col.is-peak .dash-hours__label,
.dash-hours__col.is-peak .dash-hours__count {
  color: #b45309;
}

@media (max-width: 900px) {
  .dash-hours {
    overflow-x: auto;
    grid-template-columns: repeat(24, 28px);
  }
}

/* —— Barra de perfil en compra (nombre + nivel flotante) —— */
.shop-buyer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.45rem 0 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shop-buyer-bar--float {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.shop-buyer-bar--guest {
  opacity: 0.92;
}

.shop-buyer-bar__who {
  display: grid;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.shop-buyer-bar__who strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.shop-buyer-bar__who em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--lv, #0f766e);
  font-weight: 700;
  line-height: 1.25;
}

.shop-buyer-bar__debt {
  font-size: 0.78rem;
  font-weight: 800;
  color: #b91c1c;
  text-decoration: none;
}

.shop-buyer-bar__debt:hover { text-decoration: underline; }

.shop-buyer-bar__perks,
.shop-buyer-bar__eyebrow,
.shop-buyer-bar__link { display: none !important; }

.shop-buy__price-dto {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  font-style: normal;
}

.checkout-summary__dto {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .shop-buyer-bar {
    margin: 0.35rem 0 0.45rem;
  }
}

/* â€”â€” Cuenta cliente / niveles (look blanco como la tienda) â€”â€” */
.topbar-btn--account {
  border-color: rgba(22, 199, 132, 0.45);
  background: rgba(22, 199, 132, 0.14);
  color: #7dffc0;
}

.account-auth,
.profile {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.account-auth__wrap {
  max-width: 720px;
}

.account-auth__head {
  margin-bottom: 1.25rem;
}

.account-auth__head h1,
.profile-hero h1 {
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  margin: 0.2rem 0 0.35rem;
  color: #111827;
}

.account-auth__eyebrow,
.profile-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}

.account-auth__tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.account-auth__tab {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d7dde5;
  color: #374151;
  font-weight: 800;
  background: #fff;
}

.account-auth__tab.is-on {
  border-color: #12b87a;
  background: #ecfdf5;
  color: #047857;
}

.account-auth__card {
  margin-bottom: 1.5rem;
}

.account-levels-preview h2,
.profile-progress__head h2 {
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: #111827;
}

.account-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.account-level-chip {
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--lv);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.account-level-chip strong {
  font-size: 0.86rem;
  color: #111827;
}

.account-level-chip span {
  font-weight: 800;
  color: var(--lv);
  font-size: 0.88rem;
}

.account-level-chip em {
  font-style: normal;
  font-size: 0.72rem;
  color: #6b7280;
}

.profile-hero {
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.2rem;
  margin-bottom: 1rem;
  color: #1a1f24;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--lv);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.profile-hero__mail {
  margin: 0 0 0.85rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.profile-hero__badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.profile-hero__level {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 800;
}

.profile-hero__badge strong {
  font-size: 1.1rem;
  color: var(--lv);
}

.profile-hero__badge em {
  font-style: normal;
  font-size: 0.8rem;
  color: #4b5563;
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.profile-hero__stats > div {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.profile-hero__stats span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 700;
}

.profile-hero__stats strong {
  font-size: 1.05rem;
  color: #111827;
}

.lv-emoji {
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.profile-hero__badge .lv-emoji,
.profile-level header .lv-emoji,
.account-level-chip .lv-emoji,
.level-up-toast__inner .lv-emoji {
  font-size: 1.15em;
  margin-right: 0.15rem;
}

.profile-order-nums {
  max-width: 16rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
}
.profile-order-nums--expanded {
  max-width: 22rem;
  max-height: 9.5rem;
  overflow: auto;
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.profile-order-nums-more {
  max-width: 18rem;
}
.profile-order-nums-more > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 0.28rem;
}
.profile-order-nums-more > summary::-webkit-details-marker {
  display: none;
}
.profile-order-nums-more__btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f766e;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
}
.profile-order-nums-more[open] > summary .profile-order-nums-more__btn::after {
  content: " · ocultar";
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #4b5563;
}

.order-status-pill.is-paid {
  background: #d1fae5;
  color: #047857;
}

.order-status-pill.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.order-status-pill.is-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.profile-progress {
  margin-bottom: 1rem;
}

.profile-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.profile-progress__head h2 {
  margin: 0;
}

.profile-progress__head span,
.profile-progress__pct {
  font-weight: 800;
  color: var(--lv, #0f766e);
}

.profile-progress__bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lv, #12b87a) 12%, #e5e7eb);
  overflow: hidden;
  margin-bottom: 0.55rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.profile-progress__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--lv, #12b87a) 75%, #0f172a),
    var(--lv, #12b87a),
    color-mix(in srgb, var(--lv, #12b87a) 55%, #fff));
  background-size: 200% 100%;
  position: relative;
  z-index: 1;
  transition: width 0.55s ease;
  animation: lv-bar-flow 2.8s linear infinite;
  box-shadow: 0 0 12px color-mix(in srgb, var(--lv, #12b87a) 45%, transparent);
}

.profile-progress__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: lv-shine-sweep 2.4s linear infinite;
  opacity: 0.65;
}

.profile-progress__bar--pulse i,
.profile-progress__bar--glow i {
  animation: lv-bar-flow 2.8s linear infinite, lv-bar-pulse 1.8s ease-in-out infinite;
}

.profile-progress__bar--prism i,
.profile-progress__bar--aurora i {
  background-image: linear-gradient(90deg,
    var(--lv, #0284c7),
    #22d3ee,
    #a78bfa,
    var(--lv, #0284c7));
  background-size: 300% 100%;
  animation: lv-bar-flow 3.4s linear infinite;
}

.profile-progress__bar--elite {
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.08),
    0 0 0 1px color-mix(in srgb, var(--lv, #be123c) 35%, transparent),
    0 0 16px color-mix(in srgb, var(--lv, #be123c) 28%, transparent);
}

.profile-progress__bar--elite i {
  background-image: linear-gradient(90deg, #9f1239, var(--lv, #be123c), #f59e0b, #9f1239);
  background-size: 260% 100%;
  animation: lv-bar-flow 2.6s linear infinite, lv-elite-flare 2.8s ease-in-out infinite;
}

.profile-progress.lv-fx--spark .profile-progress__pct,
.profile-progress.lv-fx--shine .profile-progress__pct,
.profile-progress.lv-fx--glow .profile-progress__pct,
.profile-progress.lv-fx--pulse .profile-progress__pct,
.profile-progress.lv-fx--prism .profile-progress__pct,
.profile-progress.lv-fx--aurora .profile-progress__pct,
.profile-progress.lv-fx--elite .profile-progress__pct {
  animation: lv-cta-pulse 1.8s ease-in-out infinite;
}

@keyframes lv-bar-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes lv-bar-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.profile-grid__full {
  grid-column: 1 / -1;
}

.profile-levels {
  display: grid;
  gap: 0.55rem;
}

.profile-level {
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--lv);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.profile-level.is-current {
  background: color-mix(in srgb, var(--lv) 10%, #fff);
  border-color: color-mix(in srgb, var(--lv) 45%, #e5e7eb);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lv) 25%, transparent);
}

.profile-level.is-next {
  border-style: dashed;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 8%, #fff), #fff);
  animation: lv-next-nudge 2.4s ease-in-out infinite;
}

.profile-level.is-locked {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.profile-level__cta {
  color: var(--lv) !important;
  animation: lv-cta-pulse 1.6s ease-in-out infinite;
}

.profile-level__lock {
  color: #9ca3af !important;
}

.profile-level header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.profile-level header span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lv);
  text-transform: uppercase;
}

.profile-level p {
  margin: 0.15rem 0;
  font-size: 0.88rem;
}

.checkout-level-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  font-size: 0.86rem;
  color: #065f46;
}

.checkout-level-banner strong {
  color: #047857;
}

.checkout-level-banner--guest {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #4b5563;
}

.checkout-level-banner--blocked {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.checkout-credit-box {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
}

.checkout-account-pay {
  margin: 0.85rem 0 1rem;
}

.checkout-account-pay__card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.checkout-account-pay__card--wallet {
  border-left: 4px solid #059669;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

.checkout-account-pay__card--credit {
  border-left: 4px solid #0f766e;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 55%);
}

.checkout-account-pay__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.checkout-account-pay__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.checkout-account-pay__head strong {
  display: block;
  font-size: 0.95rem;
  color: #111827;
}

.checkout-account-pay__head em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
}

.checkout-account-pay__card--credit .checkout-account-pay__head em {
  color: #0f766e;
}

.checkout-account-pay__card .field {
  margin: 0;
}

.checkout-account-pay__card .field label {
  color: #374151;
  font-weight: 700;
}

.checkout-account-pay__card .field input {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.checkout-account-pay__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

.checkout-account-pay__preview {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-account-pay__preview.is-short {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.checkout-remainder {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.checkout-remainder__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.checkout-remainder__head strong {
  font-size: 0.95rem;
  color: #111827;
}

.checkout-remainder__head span {
  font-weight: 800;
  color: #b45309;
  font-size: 0.95rem;
}

.checkout-remainder__lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.pay-method-list--remainder {
  margin: 0;
}

html.theme-dark body.page-shop .checkout-account-pay__card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
}

html.theme-dark body.page-shop .checkout-account-pay__card--wallet,
html.theme-dark body.page-shop .checkout-account-pay__card--credit {
  background: rgba(15, 23, 42, 0.55);
}

html.theme-dark body.page-shop .checkout-account-pay__head strong {
  color: #f3f4f6;
}

html.theme-dark body.page-shop .checkout-account-pay__card .field input {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f3f4f6;
}

html.theme-dark body.page-shop .checkout-account-pay__preview {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}

body.page-shop.page-account .panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

html.theme-dark body.page-shop.page-account .account-auth__head h1 {
  color: #f3f4f6;
}

/* —— Página de compra VIP (activa con la luna / theme-dark) —— */
html:has(body.page-profile) {
  background: #06101a !important;
}

html.theme-dark body.page-shop.page-buy,
html.theme-dark body.page-shop.page-buy.modal-open {
  --buy-font: "Plus Jakarta Sans", Manrope, sans-serif;
  --buy-display: "Outfit", Sora, sans-serif;
  font-family: var(--buy-font);
}

html.theme-dark body.page-shop.page-buy .bg-grid {
  display: block;
  opacity: 0.4;
}

html.theme-dark body.page-shop.page-buy .shop,
html.theme-dark body.page-shop.page-buy .shop__wrap {
  font-family: var(--buy-font);
}

html.theme-dark body.page-shop.page-buy .shop-buy__head h1,
html.theme-dark body.page-shop.page-buy .shop-buy__price strong,
html.theme-dark body.page-shop.page-buy .sold-bar__top strong,
html.theme-dark body.page-shop.page-buy .pkg strong,
html.theme-dark body.page-shop.page-buy .modal__title,
html.theme-dark body.page-shop.page-buy .checkout-pane__title,
html.theme-dark body.page-shop.page-buy .panel__title {
  font-family: var(--buy-display);
  letter-spacing: -0.02em;
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .shop-buy__card,
html.theme-dark body.page-shop.page-buy .shop-details,
html.theme-dark body.page-shop.page-buy .shop-back,
html.theme-dark body.page-shop.page-buy .shop-success.panel,
html.theme-dark body.page-shop.page-buy .panel {
  background: rgba(8, 22, 36, 0.78);
  border: 1px solid rgba(148, 197, 214, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .sold-bar {
  background:
    linear-gradient(155deg, rgba(30, 200, 165, 0.1), rgba(8, 22, 36, 0.92) 42%, rgba(10, 28, 44, 0.95));
  border: 1px solid rgba(148, 197, 214, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px rgba(30, 200, 165, 0.12);
  backdrop-filter: blur(10px);
  color: #e8f2f7;
  overflow: visible;
  animation: sold-bar-float 3.8s ease-in-out infinite;
  will-change: transform;
}

html.theme-dark body.page-shop.page-buy .sold-bar::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: lv-shine-sweep 4s linear infinite;
  opacity: 0.45;
  z-index: 0;
}

html.theme-dark body.page-shop.page-buy .sold-bar > * {
  position: relative;
  z-index: 1;
}

html.theme-dark body.page-shop.page-buy .sold-bar__top strong {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(30, 200, 165, 0.25);
}

html.theme-dark body.page-shop.page-buy .sold-bar__top span {
  color: #e2eef8 !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

html.theme-dark body.page-shop.page-buy .sold-bar__meta {
  color: #d7e6ef !important;
  font-weight: 700;
}

html.theme-dark body.page-shop.page-buy .sold-bar__meta span {
  color: #d7e6ef !important;
}

html.theme-dark body.page-shop.page-buy .sold-bar__nudge {
  color: #9affd4 !important;
}

html.theme-dark body.page-shop.page-buy .sold-bar--mid .sold-bar__nudge { color: #fbbf24 !important; }
html.theme-dark body.page-shop.page-buy .sold-bar--hot .sold-bar__nudge { color: #fb923c !important; }
html.theme-dark body.page-shop.page-buy .sold-bar--critical .sold-bar__nudge { color: #f87171 !important; }

@keyframes sold-bar-float {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset,
      0 0 24px rgba(30, 200, 165, 0.1);
  }
  50% {
    transform: translateY(-7px);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 0 36px rgba(30, 200, 165, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-dark body.page-shop.page-buy .sold-bar,
  html.theme-dark body.page-shop.page-buy .sold-bar::after {
    animation: none !important;
  }
}

/* Contraste: textos claros sobre fondo VIP */
html.theme-dark body.page-shop.page-buy .shop-buy__price span,
html.theme-dark body.page-shop.page-buy .shop-buy__hint {
  color: #93a9b8;
}

html.theme-dark body.page-shop.page-buy .shop-buy__price-usd {
  color: #93a9b8;
  opacity: 0.9;
}

html.theme-dark body.page-shop.page-buy .shop-buy__price-dto {
  color: #6eefb7;
}

html.theme-dark body.page-shop.page-buy .shop-buy__date {
  background: rgba(30, 200, 165, 0.16);
  color: #7dffc0;
}

html.theme-dark body.page-shop.page-buy .pkg {
  background: rgba(15, 23, 36, 0.92);
  border: 1px solid rgba(148, 197, 214, 0.2);
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .pkg strong,
html.theme-dark body.page-shop.page-buy .pkg small,
html.theme-dark body.page-shop.page-buy .pkg__badge {
  color: inherit;
}

html.theme-dark body.page-shop.page-buy .pkg.is-active {
  background: #16c784;
  border-color: #16c784;
  color: #042016;
}

html.theme-dark body.page-shop.page-buy .pkg--popular {
  background: linear-gradient(160deg, #3a2f12 0%, #5a4510 45%, #8a6a12 100%);
  color: #ffe9a8;
  border-color: rgba(255, 210, 90, 0.55);
}

html.theme-dark body.page-shop.page-buy .pkg--popular.is-active {
  background: linear-gradient(160deg, #3dffb0 0%, #16c784 55%, #0fa968 100%);
  color: #042016;
}

html.theme-dark body.page-shop.page-buy .qty-box {
  background: rgba(15, 23, 36, 0.92);
  border-color: rgba(148, 197, 214, 0.22);
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .qty-box button,
html.theme-dark body.page-shop.page-buy .qty-box input {
  background: transparent;
  color: #f4fafc;
  border-color: rgba(148, 197, 214, 0.18);
}

html.theme-dark body.page-shop.page-buy .shop-details summary,
html.theme-dark body.page-shop.page-buy .shop-details__body,
html.theme-dark body.page-shop.page-buy .shop-details__body p,
html.theme-dark body.page-shop.page-buy .shop-details__body li,
html.theme-dark body.page-shop.page-buy .shop-details__body summary {
  color: #d5dee8;
}

html.theme-dark body.page-shop.page-buy .shop-details > summary {
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .shop-details__body summary {
  color: #6eefb7;
}

html.theme-dark body.page-shop.page-buy .shop-rezagado {
  background: linear-gradient(160deg, rgba(58, 47, 18, 0.85), rgba(15, 23, 36, 0.92));
  border-color: rgba(255, 210, 90, 0.28);
}

html.theme-dark body.page-shop.page-buy .shop-rezagado__text {
  color: #ffe9a8;
}

html.theme-dark body.page-shop.page-buy .shop-rezagado__eyebrow {
  color: #f0c45a;
}

html.theme-dark body.page-shop.page-buy .shop-rezagado__hint,
html.theme-dark body.page-shop.page-buy .shop-back {
  color: #c5d6e2;
}

html.theme-dark body.page-shop.page-buy .btn-linkish,
html.theme-dark body.page-shop.page-buy .btn-linkish--dock {
  background: #182233;
  color: #e8f2f7;
  border-color: rgba(148, 197, 214, 0.18);
}

html.theme-dark body.page-shop.page-buy .shop-buy__dock {
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .modal__panel {
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .modal__close {
  background: #182233;
  border-color: rgba(148, 197, 214, 0.22);
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .checkout-summary {
  background: rgba(22, 199, 132, 0.12);
  color: #d7fff0;
}

html.theme-dark body.page-shop.page-buy .field label,
html.theme-dark body.page-shop.page-buy .checkout-form .field label {
  color: #93a9b8;
}

html.theme-dark body.page-shop.page-buy .field input,
html.theme-dark body.page-shop.page-buy .field select,
html.theme-dark body.page-shop.page-buy .field textarea,
html.theme-dark body.page-shop.page-buy .checkout-form .field input,
html.theme-dark body.page-shop.page-buy .checkout-form .field select,
html.theme-dark body.page-shop.page-buy .checkout-form .field textarea {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.22);
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .pay-method {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.18);
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .pay-method.is-on {
  background: rgba(22, 199, 132, 0.12);
  border-color: #16c784;
}

html.theme-dark body.page-shop.page-buy .pay-method__body small,
html.theme-dark body.page-shop.page-buy .checkline {
  color: #93a9b8;
}

html.theme-dark body.page-shop.page-buy .pay-dest {
  background: #0f1724;
  border-color: rgba(148, 197, 214, 0.18);
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .btn--ghost {
  color: #e8f2f7;
  border-color: rgba(148, 197, 214, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

html.theme-dark body.page-shop.page-buy .btn--ghost:hover {
  border-color: color-mix(in srgb, var(--lv, #1ec8a5) 45%, rgba(148, 197, 214, 0.28));
  background: rgba(255, 255, 255, 0.07);
}

html.theme-dark body.page-shop.page-buy .btn--primary {
  background: var(--grad-play);
  color: #042016;
  font-family: var(--buy-font);
  font-weight: 700;
}

html.theme-dark body.page-shop.page-buy .muted {
  color: #93a9b8;
}

html.theme-dark body.page-shop.page-buy .shop-buyer-bar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .shop-buyer-bar__who strong {
  font-family: var(--buy-display);
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .shop-buyer-bar__who em {
  color: color-mix(in srgb, var(--lv, #ff3d6e) 75%, #ffd23a);
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner {
  border-color: color-mix(in srgb, var(--lv, #1ec8a5) 35%, transparent);
  background: color-mix(in srgb, var(--lv, #1ec8a5) 12%, rgba(8, 22, 36, 0.9));
  color: #b7e6d4;
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner strong {
  font-family: var(--buy-display);
  color: #6eefb7;
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner--guest {
  border-color: rgba(148, 197, 214, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #93a9b8;
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner--blocked {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
}

html.theme-dark body.page-shop.page-buy .pkg {
  font-family: var(--buy-font);
  background: rgba(15, 23, 36, 0.92);
  border: 1px solid rgba(148, 197, 214, 0.2);
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .modal__panel,
html.theme-dark body.page-shop.page-buy .modal__panel--checkout {
  background: #0b1624 !important;
  border: 1px solid rgba(148, 197, 214, 0.18);
  color: #e8f2f7 !important;
  font-family: var(--buy-font);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

html.theme-dark body.page-shop.page-buy .modal__panel--checkout .modal__head,
html.theme-dark body.page-shop.page-buy .modal__head {
  background: #0b1624 !important;
  border-bottom: 1px solid rgba(148, 197, 214, 0.12);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
}

html.theme-dark body.page-shop.page-buy .modal__head h2,
html.theme-dark body.page-shop.page-buy .modal__panel--checkout .modal__head h2 {
  color: #f4fafc !important;
  font-family: var(--buy-display);
}

html.theme-dark body.page-shop.page-buy .modal__close {
  background: #182233 !important;
  border-color: rgba(148, 197, 214, 0.28) !important;
  color: #f4fafc !important;
}

html.theme-dark body.page-shop.page-buy .checkout-steps__item {
  background: rgba(255, 255, 255, 0.06);
  color: #b7c9d6;
}

html.theme-dark body.page-shop.page-buy .checkout-steps__item span {
  background: rgba(148, 197, 214, 0.28);
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .checkout-steps__item.is-on {
  background: rgba(30, 200, 165, 0.18);
  color: #9affd4;
}

html.theme-dark body.page-shop.page-buy .checkout-steps__item.is-on span {
  background: #16c784;
  color: #042016;
}

html.theme-dark body.page-shop.page-buy .checkout-summary {
  background: rgba(22, 199, 132, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #e8fff6 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-summary span,
html.theme-dark body.page-shop.page-buy .checkout-summary strong,
html.theme-dark body.page-shop.page-buy .checkout-summary__dto,
html.theme-dark body.page-shop.page-buy .checkout-summary__nums {
  color: #d7fff0 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-summary strong {
  color: #ffffff !important;
}

html.theme-dark body.page-shop.page-buy .checkout-form,
html.theme-dark body.page-shop.page-buy .checkout-pane,
html.theme-dark body.page-shop.page-buy .checkout-wizard {
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .checkout-form h3,
html.theme-dark body.page-shop.page-buy .checkout-pane > h3,
html.theme-dark body.page-shop.page-buy .checkout-pane__title {
  color: #f4fafc !important;
  font-family: var(--buy-display);
}

html.theme-dark body.page-shop.page-buy .checkout-pane__lead,
html.theme-dark body.page-shop.page-buy .checkout-form .muted,
html.theme-dark body.page-shop.page-buy .modal .muted,
html.theme-dark body.page-shop.page-buy .modal .tiny,
html.theme-dark body.page-shop.page-buy .field .muted,
html.theme-dark body.page-shop.page-buy .field small {
  color: #93a9b8 !important;
}

html.theme-dark body.page-shop.page-buy .modal .field label,
html.theme-dark body.page-shop.page-buy .checkout-form .field label {
  color: #c5d6e2 !important;
}

html.theme-dark body.page-shop.page-buy .modal .field input,
html.theme-dark body.page-shop.page-buy .modal .field select,
html.theme-dark body.page-shop.page-buy .modal .field textarea,
html.theme-dark body.page-shop.page-buy .checkout-form .field input,
html.theme-dark body.page-shop.page-buy .checkout-form .field select,
html.theme-dark body.page-shop.page-buy .checkout-form .field textarea {
  background: #101c2c !important;
  border-color: rgba(148, 197, 214, 0.28) !important;
  color: #f4fafc !important;
  -webkit-text-fill-color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .modal .field input::placeholder,
html.theme-dark body.page-shop.page-buy .checkout-form .field input::placeholder {
  color: #7f93a5 !important;
  opacity: 1;
}

html.theme-dark body.page-shop.page-buy .modal .field select option {
  background: #101c2c;
  color: #f4fafc;
}

html.theme-dark body.page-shop.page-buy .checkline {
  color: #d5dee8 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-submit-bar {
  background: linear-gradient(180deg, rgba(11, 22, 36, 0), #0b1624 28%) !important;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark body.page-shop.page-buy .checkout-submit-bar .btn--ghost,
html.theme-dark body.page-shop.page-buy .modal .btn--ghost {
  color: #e8f2f7 !important;
  border-color: rgba(148, 197, 214, 0.32) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner {
  border-color: rgba(30, 200, 165, 0.35);
  background: rgba(30, 200, 165, 0.12);
  color: #b7e6d4 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-level-banner strong {
  color: #6eefb7 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-account-pay__card {
  background: rgba(16, 28, 44, 0.92) !important;
  border-color: rgba(148, 197, 214, 0.2) !important;
  color: #e8f2f7 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-account-pay__head strong {
  color: #f4fafc !important;
}

html.theme-dark body.page-shop.page-buy .checkout-account-pay__head em,
html.theme-dark body.page-shop.page-buy .checkout-account-pay__hint {
  color: #93a9b8 !important;
}

html.theme-dark body.page-shop.page-buy .checkout-account-pay__preview {
  background: rgba(22, 199, 132, 0.14) !important;
  border-color: rgba(52, 211, 153, 0.28) !important;
  color: #9affd4 !important;
}

html.theme-dark body.page-shop.page-buy .pay-method {
  background: #101c2c !important;
  border-color: rgba(148, 197, 214, 0.2) !important;
  color: #e8f2f7 !important;
}

html.theme-dark body.page-shop.page-buy .pay-method.is-on {
  background: rgba(22, 199, 132, 0.14) !important;
  border-color: #16c784 !important;
}

html.theme-dark body.page-shop.page-buy .pay-method__body strong {
  color: #f4fafc !important;
}

html.theme-dark body.page-shop.page-buy .pay-method__body small {
  color: #93a9b8 !important;
}

html.theme-dark body.page-shop.page-buy .pay-dest {
  background: #101c2c !important;
  border-color: rgba(148, 197, 214, 0.2) !important;
  color: #e8f2f7 !important;
}

html.theme-dark body.page-shop.page-buy .pay-dest strong,
html.theme-dark body.page-shop.page-buy .pay-dest span,
html.theme-dark body.page-shop.page-buy .pay-dest p {
  color: #d7e6ef !important;
}

html.theme-dark body.page-shop.page-buy .checkout-confirm-block {
  border-top-color: rgba(148, 197, 214, 0.22);
}

html.theme-dark body.page-shop.page-buy .checkout-processing__card {
  background: #0f1a28;
  color: #e8f2f7;
}

html.theme-dark body.page-shop.page-buy .shop-buy__dock {
  background: rgba(6, 16, 26, 0.96);
  border-top-color: rgba(148, 197, 214, 0.14);
  font-family: var(--buy-font);
  backdrop-filter: blur(12px);
}

/* —— Panel de perfil VIP (servidor) —— */
body.page-shop.page-profile,
html.theme-dark body.page-shop.page-profile {
  background:
    radial-gradient(900px 480px at 12% -8%, color-mix(in srgb, var(--lv, #1ec8a5) 22%, transparent), transparent 55%),
    radial-gradient(720px 420px at 92% 8%, rgba(240, 180, 41, 0.12), transparent 50%),
    linear-gradient(180deg, #06101a 0%, #0a1826 48%, #07131f 100%);
  color: #e8f2f7;
}

body.page-shop.page-profile .bg-grid {
  display: block;
  opacity: 0.4;
}

body.page-shop.page-profile .muted {
  color: #93a9b8;
}

body.page-shop.page-profile .btn--ghost {
  color: #e8f2f7;
  border-color: rgba(148, 197, 214, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

body.page-shop.page-profile .btn--ghost:hover {
  border-color: color-mix(in srgb, var(--lv, #1ec8a5) 45%, rgba(148, 197, 214, 0.28));
  background: rgba(255, 255, 255, 0.07);
}

body.page-profile {
  /* TipografÃ­as homologadas (ganasconlatam.com): Outfit + Plus Jakarta Sans */
  --profile-font: "Plus Jakarta Sans", Manrope, sans-serif;
  --profile-display: "Outfit", Sora, sans-serif;
  --profile-ink: #e8f2f7;
  --profile-muted: #93a9b8;
  --profile-panel: rgba(8, 22, 36, 0.78);
  --profile-line: rgba(148, 197, 214, 0.16);
}

body.page-profile .profile {
  position: relative;
  isolation: isolate;
  padding: 1.75rem 0 4rem;
  font-family: var(--profile-font);
  font-size: 0.94rem;
  color: var(--profile-ink);
  overflow: clip;
}

body.page-profile .profile-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.page-profile .profile-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: profile-orb-drift 14s ease-in-out infinite;
}

body.page-profile .profile-atmosphere__orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lv, #1ec8a5) 55%, transparent), transparent 70%);
}

body.page-profile .profile-atmosphere__orb--b {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  right: -4%;
  top: 18%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.28), transparent 68%);
  animation-delay: -5s;
}

body.page-profile .profile-atmosphere__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 197, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 214, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

body.page-profile .profile__shell {
  position: relative;
  z-index: 1;
}

/* Notificaciones de deuda en perfil */
body.page-profile .profile-notify {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(240, 180, 41, 0.35);
  background:
    linear-gradient(135deg, rgba(240, 180, 41, 0.16), rgba(8, 22, 36, 0.88) 55%),
    rgba(8, 22, 36, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 16px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: profile-notify-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-notify__pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  top: -48px;
  right: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.35), transparent 70%);
  animation: profile-glow-breathe 4.5s ease-in-out infinite;
  pointer-events: none;
}

body.page-profile .profile-notify__body {
  position: relative;
  z-index: 1;
  flex: 1 1 16rem;
  min-width: 0;
}

body.page-profile .profile-notify__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c45a;
}

body.page-profile .profile-notify__title {
  margin: 0 0 0.35rem;
  font-family: var(--profile-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff8e8;
  line-height: 1.25;
}

body.page-profile .profile-notify__text {
  margin: 0;
  font-size: 0.9rem;
  color: #e7d7a8;
  line-height: 1.45;
}

body.page-profile .profile-notify__text strong {
  color: #ffe28a;
}

body.page-profile .profile-notify__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

body.page-profile .profile-notify__list li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(240, 180, 41, 0.18);
  font-size: 0.82rem;
}

body.page-profile .profile-notify__list li span {
  color: #f3e6c0;
  min-width: 0;
}

body.page-profile .profile-notify__list li strong {
  color: #ffe28a;
  font-weight: 800;
  white-space: nowrap;
}

body.page-profile .profile-notify__list li em {
  font-style: normal;
  color: #b9a878;
  white-space: nowrap;
}

body.page-profile .profile-notify__list li.is-overdue {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}

body.page-profile .profile-notify__list li.is-overdue strong {
  color: #ffb4b4;
}

body.page-profile .profile-notify__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.page-profile .profile-notify__actions .btn {
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(240, 180, 41, 0.22);
}

body.page-profile .profile-notify--info {
  border-color: rgba(30, 200, 165, 0.35);
  background:
    linear-gradient(135deg, rgba(30, 200, 165, 0.14), rgba(8, 22, 36, 0.88) 55%),
    rgba(8, 22, 36, 0.9);
}

body.page-profile .profile-notify--info .profile-notify__eyebrow,
body.page-profile .profile-notify--info .profile-notify__text strong,
body.page-profile .profile-notify--info .profile-notify__list li strong {
  color: #6eefb7;
}

body.page-profile .profile-notify--info .profile-notify__title {
  color: #e8fff6;
}

body.page-profile .profile-notify--info .profile-notify__text,
body.page-profile .profile-notify--info .profile-notify__list li span {
  color: #b7e6d4;
}

body.page-profile .profile-notify--info .profile-notify__pulse {
  background: radial-gradient(circle, rgba(30, 200, 165, 0.35), transparent 70%);
}

body.page-profile .profile-notify--info .profile-notify__actions .btn {
  box-shadow: 0 10px 22px rgba(30, 200, 165, 0.22);
}

body.page-profile .profile-notify--warn,
body.page-profile .profile-notify--critical {
  animation: profile-notify-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both,
    profile-notify-nudge 2.4s ease-in-out 0.6s infinite;
}

body.page-profile .profile-notify--critical {
  border-color: rgba(255, 150, 60, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 140, 40, 0.22), rgba(8, 22, 36, 0.9) 55%),
    rgba(8, 22, 36, 0.92);
}

body.page-profile .profile-notify--overdue {
  border-color: rgba(255, 107, 107, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.22), rgba(8, 22, 36, 0.92) 52%),
    rgba(8, 22, 36, 0.94);
  animation: profile-notify-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both,
    profile-notify-nudge 1.8s ease-in-out 0.5s infinite;
}

body.page-profile .profile-notify--overdue .profile-notify__eyebrow,
body.page-profile .profile-notify--overdue .profile-notify__text strong {
  color: #ffb4b4;
}

body.page-profile .profile-notify--overdue .profile-notify__title {
  color: #ffe4e4;
}

body.page-profile .profile-notify--overdue .profile-notify__text {
  color: #f0c0c0;
}

body.page-profile .profile-notify--overdue .profile-notify__pulse {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.4), transparent 70%);
}

body.page-profile .profile-notify--overdue .profile-notify__actions .btn {
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.28);
}

@keyframes profile-notify-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes profile-notify-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 640px) {
  body.page-profile .profile-notify__list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  body.page-profile .profile-notify__actions {
    width: 100%;
  }

  body.page-profile .profile-notify__actions .btn {
    width: 100%;
    text-align: center;
  }
}

body.page-profile .profile-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--profile-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lv, #1ec8a5) 75%, #93a9b8);
}

body.page-profile .profile-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.15rem;
  padding: 1.6rem 1.55rem 1.35rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--lv, #1ec8a5) 28%, var(--profile-line));
  border-top: 0;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--lv, #1ec8a5) 16%, rgba(8, 22, 36, 0.92)),
      rgba(8, 22, 36, 0.88) 42%,
      rgba(10, 28, 44, 0.9)),
    var(--profile-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 22px 50px rgba(0, 0, 0, 0.35);
  color: var(--profile-ink);
  animation: profile-rise 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--lv, #1ec8a5),
    color-mix(in srgb, var(--lv, #1ec8a5) 40%, #f0b429),
    transparent);
  opacity: 0.95;
}

body.page-profile .profile-hero__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lv, #1ec8a5) 35%, transparent), transparent 70%);
  pointer-events: none;
  animation: profile-glow-breathe 5.5s ease-in-out infinite;
}

body.page-profile .profile-hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.1rem 1.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

body.page-profile .profile-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--profile-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lv, #1ec8a5) 70%, #93a9b8);
}

body.page-profile .profile-hero__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lv, #1ec8a5);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv, #1ec8a5) 55%, transparent);
  animation: profile-live-dot 2s ease-out infinite;
}

body.page-profile .profile-hero__name,
body.page-profile .profile-hero h1 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--profile-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f4fafc;
  text-wrap: balance;
}

body.page-profile .profile-hero__mail {
  margin: 0;
  color: var(--profile-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

body.page-profile .profile-hero__badge {
  position: relative;
  overflow: hidden;
  min-width: min(100%, 15rem);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--lv, #1ec8a5) 40%, transparent);
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--lv, #1ec8a5) 18%, rgba(255, 255, 255, 0.04)),
      rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lv, #1ec8a5) 18%, transparent);
  animation: profile-badge-in 0.85s 0.12s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-hero__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: lv-shine-sweep 3.2s linear infinite;
  pointer-events: none;
  opacity: 0.45;
}

body.page-profile .profile-hero__level {
  color: var(--profile-muted);
  letter-spacing: 0.1em;
}

body.page-profile .profile-hero__badge strong {
  position: relative;
  z-index: 1;
  font-family: var(--profile-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

body.page-profile .profile-hero__badge em {
  position: relative;
  z-index: 1;
  color: color-mix(in srgb, var(--lv, #1ec8a5) 55%, #dbeafe);
}

body.page-profile .profile-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.35rem;
}

body.page-profile .profile-stat {
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--profile-line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: profile-stat-in 0.55s calc(0.08s * var(--i, 0)) cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--lv, #1ec8a5) 45%, var(--profile-line));
  background: color-mix(in srgb, var(--lv, #1ec8a5) 10%, rgba(255, 255, 255, 0.04));
}

body.page-profile .profile-stat span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

body.page-profile .profile-stat strong,
body.page-profile .profile-hero__stats strong {
  font-family: var(--profile-display);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fcff;
}

body.page-profile .profile-stat--warn {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

body.page-profile .profile-stat--warn strong {
  color: #ffb4b4;
}

body.page-profile .profile-progress {
  margin-bottom: 1.15rem;
  padding: 1.2rem 1.25rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: profile-rise 0.75s 0.08s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-progress__head {
  align-items: flex-end;
}

body.page-profile .profile-progress__head h2,
body.page-profile .profile-panel .panel__title {
  margin: 0;
  font-family: var(--profile-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #f4fafc;
}

body.page-profile .profile-progress__pct {
  font-family: var(--profile-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lv, #1ec8a5);
}

body.page-profile .profile-progress__bar {
  height: 14px;
  margin: 0.85rem 0 0.75rem;
  background: color-mix(in srgb, var(--lv, #1ec8a5) 14%, rgba(255, 255, 255, 0.06));
}

body.page-profile .profile-progress__hint {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d7e6ef;
}

body.page-profile .profile-progress__note,
body.page-profile .profile .muted {
  color: var(--profile-muted);
}

body.page-profile .profile-progress__note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.page-profile .profile-actions {
  gap: 0.6rem;
  margin-top: 1rem;
}

body.page-profile .profile-actions .btn {
  border-radius: 12px;
  font-family: var(--profile-font);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.page-profile .profile-actions__primary {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--lv, #1ec8a5) 28%, transparent);
}

body.page-profile .profile-actions__logout {
  display: inline;
  margin: 0;
}

body.page-profile .profile-grid {
  gap: 1.1rem;
}

body.page-profile .profile-panel {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  animation: profile-rise 0.8s 0.14s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-panel__head {
  margin-bottom: 0.85rem;
}

body.page-profile .profile-levels {
  gap: 0.85rem;
  padding: 0.35rem 0.15rem 0.55rem;
}

body.page-profile .profile-level {
  position: relative;
  overflow: visible;
  z-index: 1;
  border-radius: 14px;
  border: 1px solid var(--profile-line);
  border-left: 3px solid var(--lv);
  background: rgba(255, 255, 255, 0.03);
  color: var(--profile-ink);
  animation:
    profile-stat-in 0.5s calc(0.05s * var(--i, 0)) cubic-bezier(0.2, 0.85, 0.25, 1) both,
    profile-level-float 3.6s calc(0.18s * var(--i, 0)) ease-in-out infinite;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

body.page-profile .profile-level:nth-child(even) {
  animation-name: profile-stat-in, profile-level-float-alt;
  animation-duration: 0.5s, 4.2s;
}

body.page-profile .profile-level:hover {
  z-index: 3;
  border-color: color-mix(in srgb, var(--lv) 55%, var(--profile-line));
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--lv) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--lv) 30%, transparent);
}

body.page-profile .profile-level__fx {
  position: absolute;
  inset: -10px -6px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

body.page-profile .profile-level > *:not(.profile-level__fx) {
  position: relative;
  z-index: 1;
}

body.page-profile .profile-level__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.75;
  background: radial-gradient(circle, color-mix(in srgb, var(--lv) 85%, #fff), transparent 70%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--lv) 70%, transparent);
  animation: profile-orb-float 3.4s ease-in-out infinite;
}

body.page-profile .profile-level__orb--1 {
  width: 12px;
  height: 12px;
  top: 8%;
  right: 8%;
  animation-delay: calc(-0.35s * var(--i, 0));
}

body.page-profile .profile-level__orb--2 {
  width: 8px;
  height: 8px;
  bottom: 14%;
  left: 10%;
  animation-duration: 4.1s;
  animation-delay: calc(-0.55s * var(--i, 0));
}

body.page-profile .profile-level__orb--3 {
  width: 6px;
  height: 6px;
  top: 42%;
  right: 18%;
  animation-duration: 2.8s;
  animation-delay: calc(-0.2s * var(--i, 0));
}

body.page-profile .profile-level__spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 8px color-mix(in srgb, var(--lv) 90%, #fff),
    0 0 2px #fff;
  opacity: 0;
  animation: profile-spark-pop 2.6s ease-in-out infinite;
}

body.page-profile .profile-level__spark--1 { top: 18%; left: 22%; animation-delay: 0s; }
body.page-profile .profile-level__spark--2 { top: 28%; right: 24%; animation-delay: 0.55s; }
body.page-profile .profile-level__spark--3 { bottom: 22%; left: 36%; animation-delay: 1.1s; }
body.page-profile .profile-level__spark--4 { bottom: 30%; right: 12%; animation-delay: 1.7s; }

body.page-profile .profile-level__emoji {
  display: inline-block;
  font-size: 1.2em;
  transform-origin: center bottom;
  animation: profile-emoji-bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lv) 55%, transparent));
}

body.page-profile .profile-level.is-unlocked .profile-level__fx,
body.page-profile .profile-level.is-current .profile-level__fx,
body.page-profile .profile-level.is-next .profile-level__fx {
  opacity: 1;
}

body.page-profile .profile-level.is-current {
  z-index: 2;
  background: color-mix(in srgb, var(--lv) 18%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--lv) 55%, var(--profile-line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lv) 30%, transparent),
    0 14px 34px color-mix(in srgb, var(--lv) 28%, transparent),
    0 0 28px color-mix(in srgb, var(--lv) 22%, transparent);
  animation:
    profile-stat-in 0.5s calc(0.05s * var(--i, 0)) cubic-bezier(0.2, 0.85, 0.25, 1) both,
    profile-level-float-strong 2.8s ease-in-out infinite;
}

body.page-profile .profile-level.is-current::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg,
    transparent 20%,
    color-mix(in srgb, var(--lv) 45%, transparent) 50%,
    transparent 80%);
  background-size: 220% 100%;
  opacity: 0.55;
  animation: lv-shine-sweep 2.4s linear infinite;
  z-index: 0;
}

body.page-profile .profile-level.is-current .profile-level__orb {
  opacity: 1;
  width: 14px;
  height: 14px;
  animation-duration: 2.6s;
}

body.page-profile .profile-level.is-current .profile-level__spark {
  animation-duration: 1.8s;
}

body.page-profile .profile-level.is-current .profile-level__emoji {
  animation: profile-emoji-bob 1.6s ease-in-out infinite, profile-emoji-glow 1.8s ease-in-out infinite;
  font-size: 1.35em;
}

body.page-profile .profile-level.is-next {
  border-style: solid;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--lv) 16%, rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lv) 35%, transparent),
    0 12px 30px color-mix(in srgb, var(--lv) 22%, transparent);
  animation:
    profile-stat-in 0.5s calc(0.05s * var(--i, 0)) cubic-bezier(0.2, 0.85, 0.25, 1) both,
    profile-level-float-strong 2.4s ease-in-out infinite,
    profile-level-pulse-ring 2s ease-out infinite;
}

body.page-profile .profile-level.is-next .profile-level__cta {
  animation: profile-cta-flash 1.2s ease-in-out infinite;
}

body.page-profile .profile-level.is-next .profile-level__emoji {
  animation: profile-emoji-bob 1.4s ease-in-out infinite;
  font-size: 1.3em;
}

body.page-profile .profile-level.is-locked {
  opacity: 0.5;
  filter: grayscale(0.4);
  animation: profile-stat-in 0.5s calc(0.05s * var(--i, 0)) cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

body.page-profile .profile-level.is-locked .profile-level__fx,
body.page-profile .profile-level.is-locked .profile-level__emoji {
  animation: none;
  opacity: 0.35;
  filter: none;
}

body.page-profile .profile-level header strong {
  font-family: var(--profile-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f4fafc;
}

body.page-profile .profile-level p {
  color: #c5d6e2;
}

@keyframes profile-level-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes profile-level-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes profile-level-float-strong {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-11px) scale(1.015); }
}

@keyframes profile-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  35% { transform: translate(-10px, -14px) scale(1.25); opacity: 1; }
  70% { transform: translate(12px, -6px) scale(0.9); opacity: 0.7; }
}

@keyframes profile-spark-pop {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  25% { opacity: 1; transform: scale(1.3) translateY(-6px); }
  55% { opacity: 0.35; transform: scale(0.8) translateY(-12px); }
}

@keyframes profile-emoji-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}

@keyframes profile-emoji-glow {
  0%, 100% { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lv) 40%, transparent)); }
  50% { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--lv) 85%, transparent)); }
}

@keyframes profile-level-pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv) 45%, transparent), 0 12px 30px color-mix(in srgb, var(--lv) 22%, transparent); }
  70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--lv) 0%, transparent), 0 12px 30px color-mix(in srgb, var(--lv) 22%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv) 0%, transparent), 0 12px 30px color-mix(in srgb, var(--lv) 22%, transparent); }
}

@keyframes profile-cta-flash {
  0%, 100% { opacity: 1; transform: scale(1); text-shadow: 0 0 0 transparent; }
  50% { opacity: 0.75; transform: scale(1.06); text-shadow: 0 0 12px color-mix(in srgb, var(--lv) 70%, transparent); }
}

body.page-profile .profile-empty {
  margin: 0.25rem 0 0;
}

body.page-profile .profile-table-wrap {
  border-radius: 14px;
  border: 1px solid var(--profile-line);
  overflow: auto;
}

body.page-profile .profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

body.page-profile .profile-table thead th {
  font-family: var(--profile-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--profile-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--profile-line);
  padding: 0.7rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

body.page-profile .profile-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(148, 197, 214, 0.08);
  color: #d7e6ef;
  vertical-align: top;
}

body.page-profile .profile-table tbody tr {
  transition: background 0.2s ease;
}

body.page-profile .profile-table tbody tr:hover {
  background: color-mix(in srgb, var(--lv, #1ec8a5) 8%, transparent);
}

body.page-profile .profile-table tbody tr:last-child td {
  border-bottom: 0;
}

body.page-profile .profile-table strong,
body.page-profile .profile-order-nums {
  color: #f4fafc;
}
body.page-profile .profile-order-nums--expanded {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
body.page-profile .profile-order-nums-more__btn {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.28);
}

body.page-profile .order-status-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #c5d6e2;
}

body.page-profile .order-status-pill.is-paid {
  background: rgba(61, 220, 151, 0.16);
  color: #6eefb7;
}

body.page-profile .order-status-pill.is-pending {
  background: rgba(240, 180, 41, 0.16);
  color: #f0c45a;
}

body.page-profile .order-status-pill.is-rejected {
  background: rgba(255, 107, 107, 0.16);
  color: #ff9b9b;
}

.profile-order-cell__label {
  display: none;
}

/* —— Tablas responsive para móvil: Perfil (compras) y Movimientos (wallet) —— */
@media (max-width: 768px) {
  body.page-profile .profile-table-wrap,
  .movements-table-wrap {
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.page-profile .profile-table,
  .movements-table {
    min-width: 0 !important;
    display: block !important;
    width: 100% !important;
  }

  body.page-profile .profile-table thead,
  .movements-table thead {
    display: none !important;
  }

  body.page-profile .profile-table tbody,
  .movements-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  body.page-profile .profile-order-row,
  .mov-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0.35rem 0.65rem !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 14px !important;
    background: rgba(18, 26, 42, 0.85) !important;
    border: 1px solid rgba(148, 197, 214, 0.18) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }

  body.page-profile .profile-order-cell,
  .mov-cell {
    padding: 0 !important;
    border: none !important;
  }

  body.page-profile .profile-order-cell--order {
    grid-column: 1;
    font-size: 0.95rem;
    color: #fde68a;
    font-weight: 800;
  }

  body.page-profile .profile-order-cell--status,
  .mov-cell--status {
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }

  body.page-profile .profile-order-cell--raffle {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
  }

  body.page-profile .profile-order-cell--nums {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  body.page-profile .profile-order-cell__label {
    display: inline;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
  }

  body.page-profile .profile-order-cell--total {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.45rem !important;
    margin-top: 0.15rem;
  }

  body.page-profile .profile-order-total-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #6eefb7;
  }

  /* Movimientos ledger */
  .mov-cell--account {
    grid-column: 1 !important;
    font-size: 0.92rem !important;
    color: #fff !important;
  }

  .mov-cell--amount {
    grid-column: 2 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-align: right !important;
  }

  .mov-cell--type {
    grid-column: 1 !important;
    font-size: 0.8rem !important;
    color: #9aa8b8 !important;
  }

  .mov-cell--date {
    grid-column: 1 / -1 !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
  }

  .mov-cell--detail {
    grid-column: 1 / -1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.4rem !important;
    margin-top: 0.15rem !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.35 !important;
  }
}

html:not(.theme-dark) body:not(.page-profile) .mov-row {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

html:not(.theme-dark) body:not(.page-profile) .mov-cell--account {
  color: #0f172a !important;
}

body.page-profile .flash--error {
  margin-top: 0.75rem;
}

@keyframes profile-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-stat-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-badge-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profile-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 12px) scale(1.08); }
}

@keyframes profile-glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

@keyframes profile-live-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv, #1ec8a5) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--lv, #1ec8a5) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv, #1ec8a5) 0%, transparent); }
}

@media (max-width: 960px) {
  body.page-profile .profile-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.page-profile .profile-grid {
    grid-template-columns: 1fr;
  }

  body.page-profile .profile-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body.page-profile .profile-hero {
    padding: 1.25rem 1.05rem 1.1rem;
  }

  body.page-profile .profile-hero__stats {
    grid-template-columns: 1fr;
  }
}

/* Efectos de nivel: no blanquear el panel VIP */
body.page-profile .profile-hero.lv-fx--prism,
body.page-profile .profile-hero.lv-fx--aurora {
  background-image:
    linear-gradient(155deg,
      color-mix(in srgb, var(--lv, #1ec8a5) 22%, rgba(8, 22, 36, 0.94)),
      rgba(8, 22, 36, 0.9) 45%,
      color-mix(in srgb, var(--lv, #1ec8a5) 12%, rgba(10, 28, 44, 0.92)));
  background-size: 220% 220%;
}

body.page-profile .profile-level.lv-fx--prism.is-current,
body.page-profile .profile-level.lv-fx--aurora.is-current {
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--lv) 22%, rgba(8, 22, 36, 0.9)),
    color-mix(in srgb, var(--lv) 8%, rgba(255, 255, 255, 0.04)));
}

html.theme-dark body.page-shop.page-profile .profile-hero,
html.theme-dark body.page-shop.page-profile .profile-panel.panel,
html.theme-dark body.page-shop.page-profile .profile-progress.panel,
html.theme-dark body.page-shop.page-profile .profile-level {
  background: var(--profile-panel);
  border-color: var(--profile-line);
}

html.theme-dark body.page-shop.page-profile .profile-hero {
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--lv, #1ec8a5) 16%, rgba(8, 22, 36, 0.92)),
      rgba(8, 22, 36, 0.88) 42%,
      rgba(10, 28, 44, 0.9)),
    var(--profile-panel);
  border-color: color-mix(in srgb, var(--lv, #1ec8a5) 28%, var(--profile-line));
}

@media (prefers-reduced-motion: reduce) {
  body.page-profile .profile-hero,
  body.page-profile .profile-progress,
  body.page-profile .profile-panel,
  body.page-profile .profile-stat,
  body.page-profile .profile-level,
  body.page-profile .profile-level.is-current,
  body.page-profile .profile-level.is-next,
  body.page-profile .profile-level__orb,
  body.page-profile .profile-level__spark,
  body.page-profile .profile-level__emoji,
  body.page-profile .profile-level__cta,
  body.page-profile .profile-level.is-current::before,
  body.page-profile .profile-hero__badge,
  body.page-profile .profile-atmosphere__orb,
  body.page-profile .profile-hero__glow,
  body.page-profile .profile-hero__pulse,
  body.page-profile .profile-hero__badge::after,
  body.page-profile .profile-notify,
  body.page-profile .profile-notify__pulse {
    animation: none !important;
  }
}

html.theme-dark body.page-shop .account-auth__tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

html.theme-dark body.page-shop .profile-hero,
html.theme-dark body.page-shop.page-account .panel,
html.theme-dark body.page-shop.page-profile .panel,
html.theme-dark body.page-shop .account-level-chip,
html.theme-dark body.page-shop .profile-level {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
}

/* â€”â€” Efectos de nivel (incentivo a subir) â€”â€” */
.lv-fx {
  position: relative;
}

.lv-badge {
  display: inline-block;
}

.lv-fx--spark.is-current,
.lv-fx--spark.profile-hero,
.shop-buyer-bar.lv-fx--spark {
  box-shadow: none;
}

.lv-fx--shine.is-current::after,
.lv-fx--shine.account-level-chip::after,
.lv-badge--shine {
  background-image: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--lv) 35%, #fff) 50%, transparent 70%);
}

.lv-fx--shine.is-current::after,
.lv-fx--shine.account-level-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-size: 200% 100%;
  animation: lv-shine-sweep 2.8s linear infinite;
  opacity: 0.55;
}

.lv-fx--glow.is-current,
.lv-fx--glow.profile-hero,
.lv-badge--glow {
  box-shadow: 0 0 18px color-mix(in srgb, var(--lv) 45%, transparent), 0 0 2px var(--lv);
}
.shop-buyer-bar.lv-fx--glow {
  box-shadow: none;
}

.lv-fx--pulse.is-current,
.lv-fx--pulse.profile-hero .profile-hero__badge,
.lv-badge--pulse {
  animation: lv-pulse-ring 2s ease-in-out infinite;
}

.lv-fx--prism.is-current,
.lv-fx--prism.profile-hero,
.account-level-chip.lv-fx--prism {
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--lv) 14%, #fff),
    #fff 40%,
    color-mix(in srgb, #38bdf8 12%, #fff),
    color-mix(in srgb, #a78bfa 10%, #fff));
  background-size: 220% 220%;
  animation: lv-prism-shift 5s ease infinite;
}

.lv-fx--aurora.is-current,
.lv-fx--aurora.profile-hero,
.account-level-chip.lv-fx--aurora {
  background-image: linear-gradient(120deg,
    color-mix(in srgb, var(--lv) 18%, #fff),
    color-mix(in srgb, #22d3ee 12%, #fff),
    color-mix(in srgb, #c084fc 14%, #fff),
    color-mix(in srgb, var(--lv) 10%, #fff));
  background-size: 300% 300%;
  animation: lv-aurora 6s ease-in-out infinite;
}

.lv-fx--elite.is-current,
.lv-fx--elite.profile-hero,
.account-level-chip.lv-fx--elite {
  border-color: color-mix(in srgb, var(--lv) 55%, #f59e0b);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lv) 40%, transparent),
    0 0 24px color-mix(in srgb, var(--lv) 35%, transparent),
    0 10px 28px rgba(190, 18, 60, 0.18);
  animation: lv-elite-flare 2.8s ease-in-out infinite;
}
.shop-buyer-bar.lv-fx--elite {
  border: 0 !important;
  box-shadow: none !important;
  animation: none;
}

.profile-hero.lv-fx--elite .profile-hero__badge,
.profile-hero.lv-fx--aurora .profile-hero__badge,
.profile-hero.lv-fx--prism .profile-hero__badge,
.profile-hero.lv-fx--pulse .profile-hero__badge {
  position: relative;
  overflow: hidden;
}

.level-up-toast {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  animation: lv-toast-in 0.35s ease;
}

.level-up-toast__inner {
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--lv) 45%, #e5e7eb);
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  animation: lv-toast-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.level-up-toast__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lv);
}

.level-up-toast__inner strong {
  display: block;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.25rem;
  color: #111827;
}

.level-up-toast__inner span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
}

.level-up-toast__close {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: var(--lv, #0f766e);
}

.level-up-toast.is-hiding {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cash-credit-toast {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 24, 18, 0.48);
  backdrop-filter: blur(4px);
  animation: lv-toast-in 0.35s ease;
}
.cash-credit-toast__inner {
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(165deg, #0b1f18, #102a22 55%, #0c1a14);
  text-align: center;
  color: #ecfdf5;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  animation: lv-toast-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
.cash-credit-toast__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.cash-credit-toast__inner strong {
  display: block;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.45rem;
  color: #a7f3d0;
}
.cash-credit-toast__inner span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(236, 253, 245, 0.78);
}
.cash-credit-toast__close {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  color: #052e1c;
  background: linear-gradient(90deg, #6ee7b7, #34d399);
}
.cash-credit-toast.is-hiding {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@keyframes lv-shine-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes lv-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--lv) 0%, transparent); }
}

@keyframes lv-prism-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lv-aurora {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes lv-elite-flare {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes lv-next-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes lv-cta-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes lv-toast-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lv-toast-pop {
  from { transform: scale(0.86) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lv-fx--shine.is-current::after,
  .lv-fx--pulse.is-current,
  .lv-fx--prism.is-current,
  .lv-fx--aurora.is-current,
  .lv-fx--elite.is-current,
  .profile-level.is-next,
  .profile-level__cta,
  .lv-badge--pulse,
  .profile-progress__bar i,
  .profile-progress__glow,
  .profile-progress__pct {
    animation: none !important;
  }
}

/* —— Live chat humano + Minijuegos (colores vivos) —— */
:root {
  --lc-coral: #ff6b6b;
  --lc-amber: #ffc857;
  --lc-cyan: #22d3ee;
  --lc-lime: #a3e635;
  --lc-magenta: #e879f9;
  --mg-pink: #fb7185;
  --mg-sky: #38bdf8;
  --mg-gold: #fbbf24;
  --mg-violet: #a78bfa;
}

.live-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  font-family: var(--font, inherit);
}

/* En compra móvil: asesor siempre encima de la barra Participar / Tabla */
@media (max-width: 960px) {
  body.page-shop.page-buy .live-chat {
    right: 0.75rem;
    bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
    z-index: 72;
  }

  body.page-shop.page-buy.modal-open .live-chat {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}
.live-chat__fab {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, var(--lc-coral), #ff8f3c 45%, var(--lc-amber));
  color: #1a1020;
  box-shadow: 0 10px 28px rgba(255, 107, 107, 0.45), 0 0 0 3px rgba(255, 200, 87, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.live-chat__fab:hover { transform: scale(1.06); }
.live-chat__fab-caption {
  position: absolute;
  top: -0.7rem;
  right: -0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #111;
  color: var(--lc-lime);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}
.live-chat__fab-icon { font-size: 1.35rem; line-height: 1; }
.live-chat__fab-badge {
  position: absolute;
  left: -0.2rem;
  top: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--lc-magenta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.live-chat__panel {
  position: absolute;
  right: 0;
  bottom: 4.3rem;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(520px, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, #1a1030, #0d1b2a 55%, #102a2e);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.live-chat__panel[hidden],
.live-chat:not(.is-open) .live-chat__panel {
  display: none !important;
}
.live-chat__gate[hidden],
.live-chat__body[hidden],
.live-chat__waiting[hidden],
.live-chat__form[hidden],
.live-chat__end[hidden] {
  display: none !important;
}
.live-chat__panel.is-request .live-chat__body {
  display: none !important;
}
.live-chat__panel.is-chat .live-chat__gate {
  display: none !important;
}
.live-chat__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.35), rgba(34, 211, 238, 0.25));
}
.live-chat__head > div {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.live-chat__head strong { display: block; }
.live-chat__head > div > span { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.live-chat__head .live-chat__presence {
  margin-top: 0.1rem;
}
.live-chat__close {
  border: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}
.live-chat__gate, .live-chat__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  flex: 1;
}
.live-chat__gate p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.live-chat__gate label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}
.live-chat__gate input,
.live-chat__gate textarea,
.live-chat__form input {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0.55rem 0.7rem;
  font: inherit;
  resize: vertical;
}
.live-chat__presence {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  width: fit-content;
}
.live-chat__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #94a3b8;
}
.live-chat__presence.is-online .live-chat__dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: live-chat-dot 1.4s ease-in-out infinite;
}
.live-chat__presence.is-offline .live-chat__dot {
  background: #f59e0b;
}
.live-chat__waiting {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
  padding: 0.75rem 0.6rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(255, 107, 107, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.live-chat__waiting strong { font-size: 0.92rem; }
.live-chat__waiting p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.live-chat__waiting-pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation: live-chat-wait 1.3s ease-out infinite;
}
@keyframes live-chat-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}
@keyframes live-chat-wait {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.live-chat__start,
.live-chat__send {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--lc-lime), var(--lc-cyan));
  color: #102018;
}
.live-chat__messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 180px;
  max-height: 280px;
  padding-right: 0.2rem;
}
.live-chat__msg {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.35;
}
.live-chat__msg p { margin: 0.15rem 0 0; }
.live-chat__who {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.live-chat__msg--buyer {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.3), rgba(163, 230, 53, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.live-chat__msg--admin {
  align-self: flex-start;
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.32), rgba(232, 121, 249, 0.22));
  border: 1px solid rgba(255, 107, 107, 0.4);
}
.live-chat__msg--system {
  align-self: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}
.live-chat__form {
  display: flex;
  gap: 0.4rem;
}
.live-chat__form input { flex: 1; }
.live-chat__end {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.live-admin {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 560px;
}
.live-admin-unread {
  background: linear-gradient(90deg, var(--lc-coral), var(--lc-magenta));
  color: #fff;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.live-admin__filters {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.live-admin__threads {
  display: grid;
  gap: 0.4rem;
  max-height: 520px;
  overflow: auto;
}
.live-admin__thread {
  text-align: left;
  border: 1px solid rgba(148, 197, 214, 0.18);
  background: rgba(8, 18, 28, 0.65);
  color: inherit;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
}
.live-admin__thread strong { font-size: 0.92rem; }
.live-admin__thread span,
.live-admin__thread em {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}
.live-admin__thread.is-on {
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.25);
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.12), rgba(34, 211, 238, 0.08));
}
.live-admin__chat {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.live-admin__chat-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.live-admin__messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  min-height: 320px;
}
.live-admin__msg {
  max-width: 85%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
}
.live-admin__msg span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.75;
}
.live-admin__msg p { margin: 0.2rem 0 0; }
.live-admin__msg--buyer {
  align-self: flex-start;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.live-admin__msg--admin {
  align-self: flex-end;
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid rgba(255, 107, 107, 0.35);
}
.live-admin__msg--system {
  align-self: center;
  background: rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--muted);
}
.live-admin__compose {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.live-admin__compose textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 197, 214, 0.25);
  background: rgba(0,0,0,0.25);
  color: inherit;
  padding: 0.7rem 0.85rem;
  resize: vertical;
}
.live-admin__compose-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .live-admin { grid-template-columns: 1fr; }
}

/* Minijuegos públicos */
.page-minigames .minigames-hero {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(251, 113, 133, 0.28), transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(56, 189, 248, 0.25), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(165deg, #12081f, #0a1624 60%, #0c1f24);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 2.2rem;
  padding-bottom: 1.6rem;
}
.minigames-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mg-gold);
}
.minigames-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
.minigames-hero__lead {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}
.minigames-hero__lead a { color: var(--mg-sky); font-weight: 700; }

.minigames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  transition: gap 0.25s ease;
}
.minigames-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.minigames-grid.is-focus {
  grid-template-columns: 1fr;
}
.mg-card.is-dimmed {
  display: none;
}
.mg-card.is-expanded {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  padding: 1.35rem 1.4rem 1.5rem;
  animation: mg-expand-in 0.35s ease;
}
.mg-card.is-expanded .mg-stage {
  min-height: min(52vh, 420px);
}
.mg-card.is-expanded .mg-roulette {
  width: 360px;
  height: 360px;
}
.mg-card.is-expanded .mg-scratch {
  width: min(100%, 420px);
  height: 220px;
}
.mg-card.is-expanded .mg-slots__reel {
  width: 5.2rem;
  height: 5.2rem;
  font-size: 1.65rem;
}
.mg-card.is-expanded .mg-dice__die {
  width: 4.6rem;
  height: 4.6rem;
  font-size: 2rem;
}
.mg-card.is-expanded .mg-chest {
  width: 5.4rem;
  height: 5.4rem;
  font-size: 2.2rem;
}
.mg-card.is-expanded .mg-flip__coin {
  width: 7.2rem;
  height: 7.2rem;
}
@keyframes mg-expand-in {
  from { opacity: 0.55; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.profile-minigames {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(251, 113, 133, 0.16), transparent 42%),
    radial-gradient(ellipse at 88% 10%, rgba(56, 189, 248, 0.14), transparent 40%),
    rgba(8, 18, 28, 0.55);
}
.profile-minigames__lead {
  margin: 0 0 0.85rem;
}
.profile-minigames .mg-roulette,
.profile-minigames .mg-roulette canvas {
  width: min(100%, 240px);
  height: auto;
  max-width: 240px;
}
.profile-minigames .mg-roulette canvas {
  width: 240px;
  height: 240px;
}
.profile-minigames .mg-scratch {
  width: min(100%, 240px);
  height: 140px;
}
.mg-card {
  border-radius: 20px;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25));
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  display: grid;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.mg-card--scratch { box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.25), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--roulette { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--race { box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--slots { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--dice { box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.28), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--chests { box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.28), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card--flip { box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.3), 0 16px 40px rgba(0,0,0,0.28); }
.mg-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.mg-card__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--display);
}
.mg-card__blurb {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 28ch;
}
.mg-card__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
}
.mg-card.is-expanded .mg-card__actions {
  grid-template-columns: minmax(7rem, 10rem) 1fr;
}
.mg-card__level {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #102018;
  background: linear-gradient(90deg, var(--mg-gold), var(--mg-pink));
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.mg-card__meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.mg-card__lock {
  padding: 1.2rem 0.5rem;
  text-align: center;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}
.mg-card__lock strong {
  font-size: 1.05rem;
  color: var(--mg-pink);
}
.mg-card.is-locked {
  opacity: 0.92;
  filter: saturate(0.85);
}
.mg-stage {
  display: grid;
  place-items: center;
  min-height: 180px;
}
.mg-roulette { position: relative; width: 280px; height: 280px; }
.mg-roulette__pin {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--mg-gold);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 2;
}
.mg-scratch {
  position: relative;
  width: 280px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}
.mg-scratch__prize {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #0f766e);
  color: #fff;
}
.mg-scratch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.25s ease;
}
.mg-race {
  width: 100%;
  display: grid;
  gap: 0.55rem;
}
.mg-race__lane {
  position: relative;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.mg-race__lane i {
  position: absolute;
  top: 3px;
  left: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mg-sky), var(--mg-violet));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}
.mg-race__lane span {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.mg-race__lane.is-winner {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}
.mg-race__lane.is-winner i {
  background: linear-gradient(145deg, var(--mg-gold), var(--mg-pink));
}
.mg-card__result {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.mg-card__result.is-win {
  color: var(--lc-lime);
  text-shadow: 0 0 18px rgba(163, 230, 53, 0.35);
}
.mg-card__play { width: 100%; }
.mg-card__expand { white-space: nowrap; }

.mg-slots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  padding: 0.6rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mg-slots.is-win {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55), 0 0 28px rgba(251, 191, 36, 0.25);
}
.mg-slots__reel {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.mg-dice {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.mg-dice__die {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(145deg, #f8fafc, #cbd5e1);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease;
}
.mg-dice__die.is-rolling {
  transform: rotate(12deg) scale(1.05);
}

.mg-chests {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mg-chest {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.22), rgba(15, 23, 42, 0.7));
  font-size: 1.7rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mg-chest:hover { transform: translateY(-2px); }
.mg-chest.is-picked {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.7);
  transform: translateY(-3px);
}
.mg-chest.is-win {
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.8), 0 0 22px rgba(163, 230, 53, 0.35);
}
.mg-chest.is-empty { opacity: 0.45; filter: grayscale(0.4); }
.mg-chests__hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.mg-flip {
  display: grid;
  gap: 0.75rem;
  place-items: center;
  perspective: 700px;
  min-height: 7rem;
}
.mg-flip__picks {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mg-flip__pick {
  min-width: 6.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mg-flip__pick:hover { transform: translateY(-1px); }
.mg-flip__pick.is-picked {
  background: linear-gradient(90deg, rgba(240, 193, 75, 0.28), rgba(56, 189, 248, 0.22));
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
  color: #fff;
}
.mg-flip__hint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.mg-flip__coin {
  width: 5.2rem;
  height: 5.2rem;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 50%;
  --flip-end: 1440deg;
}
.mg-flip__coin.is-flip {
  animation: mg-coin-flip 1.5s ease-out forwards;
}
.mg-flip__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  backface-visibility: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.mg-flip__face--a {
  background: linear-gradient(145deg, #f0c14b, #f97316);
  color: #1a1205;
}
.mg-flip__face--b {
  background: linear-gradient(145deg, #38bdf8, #6366f1);
  color: #fff;
  transform: rotateY(180deg);
}
.mg-flip__coin.is-win.lands-cara .mg-flip__face--a,
.mg-flip__coin.is-win.lands-cruz .mg-flip__face--b {
  background: linear-gradient(145deg, #a3e635, #22c55e);
  color: #052e16;
}
@keyframes mg-coin-flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(var(--flip-end, 1440deg)); }
}

.mg-reveal {
  display: grid;
  place-items: center;
  min-height: 5rem;
  font-size: 1.4rem;
}
.mg-reveal.is-pop strong {
  animation: mg-expand-in 0.45s ease;
}

.minigame-admin {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1rem;
  align-items: start;
}
.minigame-admin__nav { display: grid; gap: 0.45rem; align-content: start; }
.minigame-admin__link {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 197, 214, 0.16);
  text-decoration: none;
  color: inherit;
  background: rgba(0,0,0,0.15);
}
.minigame-admin__link span { font-size: 0.78rem; color: var(--muted); }
.minigame-admin__link.is-on {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(56, 189, 248, 0.08));
}
.minigame-admin__odds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
}
.minigame-admin__odd {
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  display: grid;
  gap: 0.1rem;
  min-width: 6.5rem;
}
.minigame-admin__odd span { font-weight: 800; }
.minigame-admin__odd em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.minigame-admin__prize-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.minigame-admin__prize-row input[type="text"],
.minigame-admin__prize-row input[type="number"] {
  min-width: 5rem;
  max-width: 9rem;
}
.minigame-admin__prize-row input[name="label"] { min-width: 8rem; max-width: 12rem; }

@media (max-width: 800px) {
  .minigame-admin { grid-template-columns: 1fr; }
}

/* —— Página Mi nivel —— */
.nivel-page__wrap {
  display: grid;
  gap: 1rem;
  max-width: 920px;
}
.nivel-page__hero {
  padding: 1.35rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--lv, #1ec8a5) 35%, transparent);
  background:
    radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--lv, #1ec8a5) 28%, transparent), transparent 50%),
    rgba(8, 18, 28, 0.72);
}
.nivel-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--lv, #1ec8a5);
}
.nivel-page__hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.nivel-page__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.nivel-page__progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.nivel-page__progress-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-family: var(--display);
}
.nivel-page__pct {
  font-size: 1.35rem;
  color: var(--lv, #1ec8a5);
}
.nivel-page__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.nivel-page__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lv, #1ec8a5), #38bdf8);
  box-shadow: 0 0 18px color-mix(in srgb, var(--lv, #1ec8a5) 45%, transparent);
}
.nivel-page__hint {
  margin: 0.85rem 0 0.55rem;
  color: var(--muted);
  line-height: 1.5;
}
.nivel-page__next-benefits {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.nivel-page__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}
.nivel-page__stats article {
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(148, 197, 214, 0.16);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.2rem;
}
.nivel-page__stats span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.nivel-page__stats small {
  color: var(--muted);
  font-size: 0.75rem;
}
.nivel-page__steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
}
.nivel-page__steps li {
  color: var(--muted);
  line-height: 1.45;
}
.nivel-page__steps strong {
  display: block;
  color: var(--text, #e8f0f5);
  margin-bottom: 0.2rem;
}
.nivel-page__steps p { margin: 0; }
.nivel-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.nivel-page__table tr.is-current-level td {
  background: color-mix(in srgb, var(--lv, #1ec8a5) 12%, transparent);
}
body.page-shop.page-nivel .panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
body.page-shop.page-nivel .muted,
body.page-shop.page-nivel .nivel-page__lead,
body.page-shop.page-nivel .nivel-page__hint,
body.page-shop.page-nivel .nivel-page__steps li,
body.page-shop.page-nivel .nivel-page__stats span,
body.page-shop.page-nivel .nivel-page__stats small {
  color: #5b6573;
}
body.page-shop.page-nivel .nivel-page__steps strong,
body.page-shop.page-nivel .nivel-page__hero h1,
body.page-shop.page-nivel .panel__title,
body.page-shop.page-nivel .nivel-page__progress-head h2 {
  color: #0f172a;
}
body.page-shop.page-nivel .nivel-page__hero {
  background:
    radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--lv, #1ec8a5) 22%, transparent), transparent 50%),
    #fff;
}
body.page-shop.page-nivel .nivel-page__bar {
  background: rgba(15, 23, 42, 0.08);
}
body.page-shop.page-nivel .nivel-page__stats article {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}
html.theme-dark body.page-shop.page-nivel .panel {
  background: rgba(8, 18, 28, 0.88);
  border-color: rgba(148, 197, 214, 0.16);
  color: #e8f0f5;
}
html.theme-dark body.page-shop.page-nivel .muted,
html.theme-dark body.page-shop.page-nivel .nivel-page__lead,
html.theme-dark body.page-shop.page-nivel .nivel-page__hint,
html.theme-dark body.page-shop.page-nivel .nivel-page__steps li {
  color: #9aa8b8;
}
html.theme-dark body.page-shop.page-nivel .nivel-page__steps strong,
html.theme-dark body.page-shop.page-nivel .nivel-page__hero h1,
html.theme-dark body.page-shop.page-nivel .panel__title,
html.theme-dark body.page-shop.page-nivel .nivel-page__progress-head h2 {
  color: #e8f0f5;
}


/* —— Máquina 777 5×3 (estilo casino dorado) —— */
.slots-casino {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: #0a1210;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.75rem;
  isolation: isolate;
}
.slots-casino__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(250, 204, 21, 0.18), transparent 58%),
    radial-gradient(ellipse 42% 38% at 92% 88%, rgba(190, 45, 55, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 36% at 6% 78%, rgba(16, 120, 110, 0.28), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.55), transparent 55%),
    linear-gradient(160deg, #1c140c 0%, #0b1514 42%, #101018 100%);
}
.slots-casino__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.5;
}
.slots-casino__glow--a {
  width: 48%;
  height: 40%;
  top: -10%;
  left: 26%;
  background: rgba(245, 178, 36, 0.4);
}
.slots-casino__glow--b {
  width: 36%;
  height: 32%;
  right: -8%;
  bottom: 8%;
  background: rgba(220, 38, 60, 0.3);
}
.slots-casino__glow--c {
  width: 30%;
  height: 28%;
  left: -6%;
  bottom: 16%;
  background: rgba(20, 184, 166, 0.26);
}
.slots-casino__gridfx {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 220, 140, 0.07) 0deg 8deg, transparent 8deg 16deg),
    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: auto, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 28%, transparent 76%);
}
.slots-casino > *:not(.slots-casino__bg) { position: relative; z-index: 1; }

.slots-casino__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: space-between;
  align-items: flex-start;
}
.slots-casino__intro { min-width: 0; flex: 1 1 12rem; }
.slots-casino__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}
.slots-casino__head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: #fff7ed;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.slots-casino__lead {
  margin: 0;
  max-width: 40ch;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(255, 247, 237, 0.7) !important;
}
.slots-casino__stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: stretch;
  margin-left: auto;
  flex: 0 0 auto;
}
.slots-stat {
  min-width: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 10px;
  text-align: right;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.slots-stat span {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 247, 237, 0.58);
}
.slots-stat strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff7ed;
}
.slots-stat--jackpot {
  border-color: rgba(250, 204, 21, 0.55);
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.22), rgba(0, 0, 0, 0.5));
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.14);
  animation: slots-jackpot-glow 2.6s ease-in-out infinite alternate;
}
.slots-stat--jackpot strong { color: #fde68a; }
.slots-stat--balance {
  border-color: rgba(125, 211, 252, 0.35);
}
.slots-stat--balance strong { color: #bae6fd; }

.slots-machine { display: grid; gap: 0.4rem; justify-items: center; }
.slots-machine__frame {
  width: min(100%, 820px);
  padding: 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(160deg, #f6e27a, #d4a017 35%, #b8860b 70%, #f0d060);
  box-shadow:
    0 0 0 3px #8a6410,
    0 20px 46px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
}
.slots-machine.is-win .slots-machine__frame {
  box-shadow:
    0 0 0 3px #a3e635,
    0 0 36px rgba(163, 230, 53, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Monto flotante inspirador (+) al ganar en máquina 777 */
.slots-floating-win {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: slots-float-inspire 2.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
.slots-floating-win__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #071a12 0%, #0c2b1e 50%, #06150e 100%);
  border: 2.5px solid #00e676;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  box-shadow: 
    0 0 32px rgba(0, 230, 118, 0.75),
    0 10px 40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.slots-floating-win.is-jackpot .slots-floating-win__badge {
  background: linear-gradient(135deg, #2b1a03 0%, #4a2c04 50%, #1f1202 100%);
  border-color: #ffd700;
  box-shadow: 
    0 0 48px rgba(255, 215, 0, 0.9),
    0 12px 50px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.slots-floating-win__plus {
  font-family: var(--display, inherit);
  font-size: 1.85rem;
  font-weight: 900;
  color: #00e676;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
  line-height: 1;
}
.slots-floating-win.is-jackpot .slots-floating-win__plus {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}
.slots-floating-win__amount {
  font-family: var(--display, inherit);
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1;
}
.slots-floating-win.is-jackpot .slots-floating-win__amount {
  color: #fff2a3;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}
.slots-floating-win__sparkle {
  font-size: 1.25rem;
  animation: slots-sparkle-spin 1s ease-in-out infinite alternate;
}
.slots-floating-win__sub {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.82);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.slots-floating-win.is-jackpot .slots-floating-win__sub {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.5);
}

@keyframes slots-float-inspire {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.5);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(1.18);
  }
  28% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -85%) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -125%) scale(0.88);
  }
}

@keyframes slots-sparkle-spin {
  from { transform: scale(0.85) rotate(-10deg); }
  to { transform: scale(1.15) rotate(10deg); }
}

.slots-stat--balance {
  position: relative;
}
.slots-balance-plus {
  position: absolute;
  top: -0.85rem;
  right: 0.2rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: #00e676;
  background: #04140b;
  border: 1px solid #00e676;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  pointer-events: none;
  animation: slots-balance-float 1.8s ease-out forwards;
}

@keyframes slots-balance-float {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  25% { opacity: 1; transform: translateY(0) scale(1.1); }
  80% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.85); }
}
.slots-machine__window {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #050505;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #6b4e0e;
  min-height: 318px;
}
.slots-reel {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-right: 2px solid #c9a227;
  min-height: 318px;
}
.slots-reel:last-child { border-right: 0; }
.slots-reel.is-stopped .slots-cell {
  animation: slots-stop-pop 0.28s ease;
}
.slots-cell {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  background: #050505;
  position: relative;
  min-height: 102px;
}
.slots-cell:last-child { border-bottom: 0; }
.slots-cell__glyph {
  font-size: clamp(1.85rem, 6vw, 2.85rem);
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
  user-select: none;
}
.slots-cell--seven .slots-cell__glyph {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.35rem);
  font-weight: 900;
  color: #e11d2e;
  -webkit-text-stroke: 3px #f5c518;
  text-shadow:
    0 3px 0 #8a0f18,
    0 0 12px rgba(245, 197, 24, 0.45);
  filter: none;
}
.slots-cell--cherry .slots-cell__glyph,
.slots-cell--grapes .slots-cell__glyph,
.slots-cell--melon .slots-cell__glyph {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}
.slots-cell.is-win {
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.28), transparent 70%);
  box-shadow: inset 0 0 0 2px #facc15;
}
.slots-cell.is-win::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: slots-sparkle 0.9s ease-in-out infinite alternate;
}
@keyframes slots-sparkle {
  from { opacity: 0.35; transform: scale(0.85); }
  to { opacity: 0.9; transform: scale(1.05); }
}
@keyframes slots-stop-pop {
  from { transform: scale(1.08); }
  to { transform: none; }
}
.slots-machine.is-spinning .slots-cell__glyph {
  filter: blur(1px) brightness(1.1);
}
.slots-machine__payline {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slots-casino__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: end;
}
@media (max-width: 640px) {
  .slots-casino__controls { grid-template-columns: 1fr; }
  .slots-casino__stats {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .slots-stat { flex: 1 1 calc(50% - 0.2rem); min-width: 0; }
  .slots-machine__frame { width: 100%; padding: 0.75rem; }
  .slots-machine__window { min-height: 246px; }
  .slots-reel { min-height: 246px; }
  .slots-cell { min-height: 78px; }
}
.slots-bet label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 247, 237, 0.8);
  margin-bottom: 0.35rem;
}
.slots-bet__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
}
.slots-bet__row input {
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 800;
  text-align: center;
}
.slots-bet__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.slots-chip {
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.slots-chip:hover { background: rgba(250, 204, 21, 0.28); }
.slots-spin {
  min-width: 8.5rem;
  min-height: 3.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #ef4444) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.slots-casino__result {
  margin: 0;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 247, 237, 0.82);
}
.slots-casino__result.is-win {
  color: #fde68a;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.45);
}
.slots-casino__result.is-lose { color: #fda4af; }
.slots-paytable {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(250, 204, 21, 0.22);
  padding: 0.55rem 0.85rem;
  color: rgba(255, 247, 237, 0.9);
}
.slots-paytable summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
}
.slots-paytable ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.slots-paytable li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  padding: 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes slots-jackpot-glow {
  from { box-shadow: 0 0 12px rgba(250, 204, 21, 0.12); }
  to { box-shadow: 0 0 28px rgba(250, 204, 21, 0.35); }
}
.slots-cell--duende {
  background: radial-gradient(circle at 50% 40%, rgba(250, 204, 21, 0.18), #050505 70%);
}
.slots-cell--duende .slots-cell__glyph {
  display: grid;
  place-items: center;
  filter: none;
}
.slots-cell--duende img {
  width: clamp(32px, 7.5vw, 52px);
  height: clamp(32px, 7.5vw, 52px);
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}
.slots-machine.is-jackpot .slots-machine__frame {
  box-shadow:
    0 0 0 3px #facc15,
    0 0 48px rgba(250, 204, 21, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: slots-jackpot-glow 0.6s ease-in-out infinite alternate;
}

/* Aviso global: alguien ganó el acumulado */
.slots-jackpot-alert {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 8, 4, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.slots-jackpot-alert.is-show {
  opacity: 1;
  pointer-events: auto;
}
.slots-jackpot-alert[hidden] { display: none !important; }
.slots-jackpot-alert__inner {
  width: min(100%, 24rem);
  padding: 1.4rem 1.3rem 1.2rem;
  border-radius: 20px;
  text-align: center;
  color: #fff7ed;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.28), transparent 55%),
    linear-gradient(165deg, #2a1a08, #120e0a 60%, #1a100c);
  box-shadow:
    0 0 40px rgba(250, 204, 21, 0.28),
    0 24px 55px rgba(0, 0, 0, 0.5);
  animation: slots-jp-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.slots-jackpot-alert__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
}
.slots-jackpot-alert__inner strong {
  display: block;
  font-family: var(--display, Sora, Manrope, sans-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: #facc15;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.45);
}
.slots-jackpot-alert__inner span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 247, 237, 0.82);
}
.slots-jackpot-alert__close {
  margin-top: 1.05rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
  color: #3b2208;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}
@keyframes slots-jp-pop {
  from { transform: scale(0.88) translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ============================================================
   NUEVO DISEÑO GAMING / LOTERÍA VIBRANTE (APP-FIRST)
   ============================================================ */

body.page-shop {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 230, 118, 0.08), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(255, 107, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #050a16 0%, #071022 45%, #040813 100%) !important;
  color: #f0f6fc;
}

body.page-shop .shop__wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 0.2rem 0.65rem 5.5rem;
}

/* 1. Hero Flyer + Live Ticker */
.shop-hero-clean {
  position: relative;
  margin-bottom: 0.2rem;
}
.shop-hero-clean .shop-hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  max-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #060e1c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.shop-hero-clean .shop-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-hero-clean .shop-hero__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  background: linear-gradient(135deg, #0a182e, #050d1a);
}
.shop-hero-clean .shop-hero__placeholder strong {
  font-size: 1.05rem;
  color: #ffd700;
  font-family: var(--display);
}

/* Ticker en vivo flotante integrado sobre el flyer */
.shop-hero-clean .shop-live-buys {
  position: absolute !important;
  left: 0.4rem !important;
  bottom: 0.4rem !important;
  margin: 0 !important;
  z-index: 6;
  max-width: 90% !important;
}
.shop-live-buys__card {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.28rem !important;
  padding: 0.2rem 0.6rem !important;
  border-radius: 999px !important;
  background: rgba(4, 10, 20, 0.88) !important;
  border: 1px solid rgba(0, 230, 118, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  font-size: 0.68rem !important;
  backdrop-filter: blur(8px);
}
.shop-live-buys__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 900;
  color: #00e676;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shop-live-buys__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* 2. Fecha y Precio sin bordes */
.event-meta-clean {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.2rem 0.15rem 0;
}
.event-meta-clean .event-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8da4c4;
}
.event-meta-clean .event-meta-time {
  color: #6c84a4;
  margin-left: 0.2rem;
}
.event-meta-clean .event-meta-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.event-meta-clean .event-meta-price strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: -0.02em;
}
.event-meta-clean .event-meta-usd {
  font-size: 0.74rem;
  font-weight: 700;
  color: #7b94b2;
}

/* 3. Barra de avance "Vendido" (limpia, sin contenedor box ni bordes pesados) */
.sold-clean {
  background: transparent;
  border: none;
  padding: 0.12rem 0.1rem;
  margin-bottom: 0.2rem;
}
.sold-clean__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}
.sold-clean__tag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d1e2f6;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.sold-clean__pill {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sold-clean__pill--hot {
  background: linear-gradient(90deg, #ff3366, #ff5e36);
  color: #fff;
}
.sold-clean__pill--warm {
  background: rgba(255, 177, 66, 0.2);
  color: #ffb142;
}
.sold-clean__pill--gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  margin-left: auto;
}
.sold-clean__pct {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
}
.sold-clean__track {
  height: 8px;
  border-radius: 999px;
  background: #081324;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.2rem;
}
.sold-clean__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3366 0%, #ff7a18 55%, #ffd700 100%);
  position: relative;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.45);
  transition: width 0.4s ease;
}
.sold-clean__stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 8px,
    transparent 8px,
    transparent 16px
  );
  animation: candy-scroll 1.6s linear infinite;
}
.sold-clean__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.sold-clean__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 800;
  color: #7b94b2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sold-clean__social {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* 4. Título Principal compacto */
.shop-title-clean {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
}

/* 5. Selector de Modo compacto */
.mode-switcher-clean {
  display: flex;
  max-width: 220px;
  margin: 0.15rem auto 0.4rem;
  background: #081224;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mode-switcher-clean .mode-switcher__btn {
  flex: 1 1 50%;
  border: none;
  background: transparent;
  color: #7b94b2;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  letter-spacing: 0.03em;
}
.mode-switcher-clean .mode-switcher__btn.is-active {
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 50%, #ff9e00 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 94, 54, 0.45);
}

/* Grilla de Paquetes Eléctricos (1, 2, 5, 10, 20...) */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.55rem !important;
  margin-bottom: 0.75rem !important;
}
.pkg {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 84px !important;
  padding: 0.7rem 0.35rem 0.6rem !important;
  border-radius: 16px !important;
  background: #0b172c !important;
  border: 1px solid rgba(148, 197, 255, 0.14) !important;
  color: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.18s ease !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
.pkg__num {
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-family: var(--display) !important;
  letter-spacing: -0.02em !important;
}
.pkg__sub {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #7f95b2 !important;
  margin-top: 0.12rem !important;
}
.pkg__price {
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  color: #ffd700 !important;
  margin-top: 0.28rem !important;
  font-family: var(--display) !important;
}
.pkg__badge-pop {
  position: absolute;
  top: -9px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ff6b00, #ff3d00);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.55);
}
.pkg__badge-tag {
  position: absolute;
  top: -8px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.pkg__perk {
  margin-top: 0.22rem;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Paquete ACTIVO (Verde Neón Brillante como en la foto) */
.pkg.is-active,
.pkg--popular.is-active,
/* 6. Grilla de Paquetes compacta (sin bordes pesados) */
.pkg-grid--compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.35rem !important;
  margin-bottom: 0.3rem !important;
}
.pkg-grid--compact .pkg {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
  padding: 0.35rem 0.2rem 0.3rem !important;
  border-radius: 12px !important;
  background: #081426 !important;
  border: 1px solid rgba(148, 197, 255, 0.1) !important;
  color: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
}
.pkg-grid--compact .pkg__num {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  color: #ffffff !important;
  font-family: var(--display) !important;
}
.pkg-grid--compact .pkg__sub {
  font-size: 0.52rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #6e84a2 !important;
  margin-top: 0.06rem !important;
}
.pkg-grid--compact .pkg__price {
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  color: #ffd700 !important;
  margin-top: 0.15rem !important;
  font-family: var(--display) !important;
}
.pkg-grid--compact .pkg__badge-pop {
  position: absolute;
  top: -7px;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff6b00, #ff3d00);
  color: #fff;
}
.pkg-grid--compact .pkg__badge-tag {
  position: absolute;
  top: -7px;
  padding: 0.06rem 0.35rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

/* Stepper discreto */
.qty-stepper-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}
.qty-stepper-clean .qty-box {
  margin: 0;
  max-width: 130px;
}
.qty-stepper-clean .qty-box button,
.qty-stepper-clean .qty-box input {
  height: 32px;
  font-size: 0.8rem;
}

/* Topbar móvil ultra-compacta */
@media (max-width: 720px) {
  .topbar {
    padding: 0.15rem 0 !important;
  }
  .topbar__inner {
    min-height: 44px !important;
  }
  .brand--logo-only .brand__logo {
    width: 34px !important;
    height: 34px !important;
  }
  .topbar-btn {
    min-height: 30px !important;
    padding: 0 0.4rem !important;
    font-size: 0.64rem !important;
  }
}

/* Paquete ACTIVO (Sunset Aurora Gradient) */
.pkg.is-active,
.pkg--popular.is-active,
html.theme-dark body.page-shop .pkg.is-active,
html.theme-dark body.page-shop .pkg--popular.is-active,
html.theme-dark body.page-shop.page-buy .pkg.is-active,
html.theme-dark body.page-shop.page-buy .pkg--popular.is-active {
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 45%, #ff9e00 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 25px rgba(255, 94, 54, 0.45) !important;
  transform: scale(1.02) !important;
  animation: none !important;
}
.pkg.is-active::before,
.pkg.is-active::after,
.pkg--popular.is-active::before,
.pkg--popular.is-active::after,
.pkg--popular:not(.is-active)::before,
.pkg--popular:not(.is-active)::after {
  display: none !important;
}
.pkg.is-active .pkg__num,
.pkg.is-active .pkg__sub,
.pkg.is-active .pkg__price,
.pkg.is-active strong,
.pkg.is-active small,
.pkg--popular.is-active .pkg__num,
.pkg--popular.is-active .pkg__sub,
.pkg--popular.is-active .pkg__price,
.pkg--popular.is-active strong,
.pkg--popular.is-active small {
  color: #ffffff !important;
}
.pkg.is-active .pkg__sub,
.pkg--popular.is-active .pkg__sub {
  color: rgba(255, 255, 255, 0.85) !important;
}
.pkg.is-active .pkg__price,
.pkg--popular.is-active .pkg__price {
  color: #fff4ba !important;
}
.pkg.is-active .pkg__badge-pop,
.pkg--popular.is-active .pkg__badge-pop {
  background: #ffffff !important;
  color: #ff0844 !important;
}
.pkg.is-active .pkg__perk,
.pkg--popular.is-active .pkg__perk {
  background: rgba(0, 0, 0, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Paquete Popular */
.pkg--popular:not(.is-active) {
  background: #081426 !important;
  border-color: rgba(255, 107, 0, 0.6) !important;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.22) !important;
}

/* Teaser Casino 777 / Bote Acumulado */
.casino-teaser-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.22);
  text-decoration: none;
  color: inherit;
  margin: 0.4rem 0 0.35rem;
  transition: transform 0.18s ease;
}
.casino-teaser-card:hover {
  transform: translateY(-2px);
  border-color: #ffd700;
}
.casino-teaser__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.casino-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  flex: 1 1 auto;
}
.casino-teaser__tag {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd700;
}
.casino-teaser__pot {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.casino-teaser__sub {
  font-size: 0.64rem;
  color: #8da4c4;
}

/* Top Compradores / Ranking Teaser */
.top-buyers-card {
  background: #07101e;
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
}
.top-buyers-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.top-buyers-card__kicker {
  display: block;
  font-size: 0.55rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.05em;
}
.top-buyers-card__head strong {
  font-size: 0.72rem;
  color: #fff;
}
.top-buyers-card__link {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffd700;
  text-decoration: none;
}
.top-buyers-card__btn {
  appearance: none;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}
.top-buyers-card__btn:hover {
  background: rgba(255, 215, 0, 0.22);
}
.top-buyers-card__btn .arrow-toggle {
  font-size: 0.55rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.top-buyers-card__btn.is-open .arrow-toggle {
  transform: rotate(180deg);
}

.top-buyers-podium {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 215, 0, 0.2);
  animation: podium-slide-in 0.25s ease-out;
}

.top-buyers-podium.is-open {
  display: flex !important;
}

.top-buyers-podium[hidden] {
  display: none !important;
}

@keyframes podium-slide-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.podium-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.podium-item--second {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.3);
}
.podium-item--third {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.3);
}
.podium-badge {
  font-size: 0.55rem;
  font-weight: 900;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: #040914;
}
.podium-badge--second {
  color: #cbd5e1;
  border: 1px solid rgba(203, 213, 225, 0.35);
}
.podium-badge--third {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.podium-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-tickets {
  font-size: 0.74rem;
  font-weight: 900;
  font-family: var(--display);
}
.podium-item--second .podium-tickets { color: #cbd5e1; }
.podium-item--third .podium-tickets { color: #fbbf24; }
.top-buyers-card__leader {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
}
.leader-badge {
  font-size: 0.55rem;
  font-weight: 900;
  color: #ffd700;
  background: #040914;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}
.leader-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  flex: 1 1 auto;
}
.leader-tickets {
  font-size: 0.74rem;
  font-weight: 900;
  color: #ffd700;
  font-family: var(--display);
}

/* Dock Fijo Permanente */
.shop-buy__dock,
.shop-buy__dock--follow {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 68 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 6.8rem) auto minmax(7.2rem, 1fr) !important;
  gap: 0.4rem !important;
  align-items: center !important;
  padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(4, 9, 20, 0.96) !important;
  border-top: 1px solid rgba(0, 230, 118, 0.22) !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  max-width: none !important;
  margin: 0 !important;
}
.shop-dock__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 6.8rem;
  overflow: hidden;
}
.shop-dock__qty {
  font-size: 0.58rem;
  font-weight: 800;
  color: #8da4c4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.shop-dock__price {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  min-width: 0;
}
.shop-dock__price-bs {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-dock__price-usdt {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(141, 164, 196, 0.82);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-dock__price-usdt em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.72);
}
.btn-dock-manual {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a172c;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: 0.15s ease;
  flex-shrink: 0;
}
.btn-dock-manual:hover {
  background: #122240;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-dock-buy {
  appearance: none;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 45%, #ff9e00 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  letter-spacing: 0.03em !important;
  padding: 0.65rem 1.15rem !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(255, 94, 54, 0.45) !important;
  width: 100% !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}
.btn-dock-buy:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}

/* Floating Asesor */
body.page-shop .live-chat {
  right: 0.65rem !important;
  bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 75 !important;
}
.live-chat__fab {
  width: 3.2rem !important;
  height: 3.2rem !important;
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 50%, #ff9e00 100%) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(255, 94, 54, 0.45) !important;
}
.live-chat__fab-caption {
  background: #ffffff !important;
  color: #070b19 !important;
  font-weight: 900 !important;
}

/* ============================================================
   DISEÑO GANA-ESTILO CON DEGRADADOS LUMINOSOS (INSPIRACIÓN KEIBERTH)
   ============================================================ */

body.page-shop {
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(255, 0, 122, 0.12), transparent 60%),
    radial-gradient(800px 450px at 90% 20%, rgba(255, 94, 54, 0.1), transparent 55%),
    radial-gradient(700px 400px at 10% 40%, rgba(124, 58, 237, 0.1), transparent 50%),
    linear-gradient(180deg, #070b19 0%, #0c1228 45%, #050814 100%) !important;
  color: #f1f5f9;
}

body.page-shop .shop__wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0.35rem 0.75rem 6.5rem;
}

/* 1. Flyer Hero Frame */
.keiberth-hero {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1329;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.65rem;
}
.keiberth-hero__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #080e1e;
}
.keiberth-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.keiberth-hero__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #131c38, #0a0f24);
}
.keiberth-hero__placeholder strong {
  font-family: var(--display);
  font-size: 1.25rem;
  color: #ffd700;
}

/* Barra de Mi cuenta / Nivel sobre el flyer */
.shop-buyer-bar--flyer {
  position: absolute !important;
  left: 0.55rem !important;
  right: 0.55rem !important;
  bottom: 0.55rem !important;
  z-index: 6 !important;
  margin: 0 !important;
  padding: 0.32rem 0.65rem !important;
  background: rgba(6, 11, 24, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  box-sizing: border-box !important;
}
.shop-buyer-bar--flyer .shop-buyer-bar__who {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-decoration: none !important;
}
.shop-buyer-bar--flyer .shop-buyer-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.shop-buyer-bar--flyer .shop-buyer-bar__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.shop-buyer-bar--flyer .shop-buyer-bar__meta strong {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.shop-buyer-bar--flyer .shop-buyer-bar__meta em {
  font-size: 0.68rem !important;
  color: #cbd5e1 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.shop-buyer-bar--flyer .badge-opcional {
  color: #ffd700;
  font-weight: 900;
}
.shop-buyer-bar--flyer .shop-buyer-bar__arrow {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.shop-buyer-bar--flyer:hover .shop-buyer-bar__arrow {
  transform: translateX(3px);
}

/* Barra de porcentaje integrada sobre el flyer con mensaje emocionante y efectos dinámicos */
.hero-progress-pill {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 6;
  background: rgba(6, 11, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.35rem 0.65rem 0.4rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-progress-pill--pkg {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0.25rem 0 0.55rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(7, 16, 30, 0.95) !important;
  border: 1px solid rgba(255, 215, 0, 0.22) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}
.hero-progress-pill__nudge {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}
.hero-progress-pill--low .hero-progress-pill__nudge { color: #4ade80; }
.hero-progress-pill--warm .hero-progress-pill__nudge { color: #fbbf24; }
.hero-progress-pill--mid .hero-progress-pill__nudge { color: #fb923c; }
.hero-progress-pill--hot .hero-progress-pill__nudge {
  color: #ff3366;
  animation: nudge-pulse-urgent 1.4s ease-in-out infinite;
}
.hero-progress-pill--critical .hero-progress-pill__nudge {
  color: #ff0844;
  text-shadow: 0 0 10px rgba(255, 8, 68, 0.6);
  animation: nudge-pulse-urgent 0.9s ease-in-out infinite;
}
.hero-progress-pill--agotado .hero-progress-pill__nudge { color: #ffd700; }

@keyframes nudge-pulse-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.02); }
}

.hero-progress-pill__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
  font-size: 0.68rem;
  font-weight: 800;
}
.hero-progress-pill__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-progress-pill__label strong {
  display: inline-block;
  color: #ffd700;
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  animation: pct-heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pct-heartbeat {
  0%, 100% {
    transform: scale(1);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  20% {
    transform: scale(1.16);
    color: #fffb8f;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.85), 0 0 24px rgba(255, 94, 54, 0.65);
  }
  38% {
    transform: scale(1);
    color: #ffd700;
  }
  55% {
    transform: scale(1.1);
    color: #fffb8f;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
  }
  70% {
    transform: scale(1);
  }
}

.hero-progress-pill--hot .hero-progress-pill__label strong,
.hero-progress-pill--critical .hero-progress-pill__label strong {
  animation-duration: 1.1s;
}
.hero-progress-pill__fire {
  font-size: 0.82rem;
  line-height: 1;
}
.hero-progress-pill__left {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
}
.hero-progress-pill__left strong {
  color: #ffffff;
}
.hero-progress-pill__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}
.hero-progress-pill__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0844 0%, #ff5e36 50%, #ffd700 100%);
  box-shadow: 0 0 12px rgba(255, 94, 54, 0.65);
  transition: width 0.4s ease;
  position: relative;
}
.hero-progress-pill--low .hero-progress-pill__fill {
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
}
.hero-progress-pill--warm .hero-progress-pill__fill {
  background: linear-gradient(90deg, #06b6d4 0%, #f59e0b 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}
.hero-progress-pill--mid .hero-progress-pill__fill {
  background: linear-gradient(90deg, #f59e0b 0%, #ff5e36 60%, #ff0844 100%);
  box-shadow: 0 0 12px rgba(255, 94, 54, 0.6);
}
.hero-progress-pill--hot .hero-progress-pill__fill {
  background: linear-gradient(90deg, #ff5e36 0%, #ff0844 55%, #ffd700 100%);
  box-shadow: 0 0 14px rgba(255, 8, 68, 0.7);
}
.hero-progress-pill--critical .hero-progress-pill__fill {
  background: linear-gradient(90deg, #ff0844 0%, #dc2626 50%, #ffd700 100%);
  box-shadow: 0 0 18px rgba(255, 8, 68, 0.85);
}
.hero-progress-pill__stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 8px,
    transparent 8px,
    transparent 16px
  );
  animation: candy-scroll 1.6s linear infinite;
}

/* Ráfaga de brillo que recorre la barra */
.hero-progress-pill__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: hero-bar-shine 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes hero-bar-shine {
  0% { left: -45%; }
  65%, 100% { left: 140%; }
}

/* Destello brillante en la punta donde va llegando el porcentaje */
.hero-progress-pill__glow-head {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 6px 1px #ffffff,
    0 0 14px 3px #ffd700,
    0 0 20px 5px #ff0844;
  animation: hero-glow-head-pulse 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-glow-head-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateY(-50%) scale(1.4); opacity: 1; }
}

/* 2. Título Principal */
.keiberth-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

/* 3. Barra de Fecha y Precio sutil y compacta */
.keiberth-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  padding: 0.1rem 0;
  white-space: nowrap;
}
.keiberth-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8da4c4;
  white-space: nowrap;
}
.keiberth-meta-time {
  color: #64748b;
  font-weight: 600;
  margin-left: 0.15rem;
}
.keiberth-meta-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  white-space: nowrap;
  position: relative;
}
.keiberth-meta-price__usd {
  align-self: flex-start;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(141, 164, 196, 0.85);
  line-height: 1;
  opacity: 0.9;
}
.keiberth-meta-price__main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.keiberth-meta-price__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8da4c4;
}
.keiberth-meta-price strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: -0.01em;
  background: none;
  -webkit-text-fill-color: initial;
}

/* 4. Grilla de Paquetes (Agrandados y más cómodos) */
.keiberth-pkg-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.65rem 0.55rem !important;
  margin-bottom: 0.85rem !important;
  padding-top: 10px !important;
}
.pkg--gradient,
.pkg--popular,
.pkg {
  overflow: visible !important;
}
.pkg--gradient {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 74px !important;
  padding: 0.55rem 0.25rem 0.45rem !important;
  border-radius: 15px !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px) !important;
}
.pkg--gradient .pkg__num {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-family: var(--display) !important;
  letter-spacing: -0.02em !important;
}
.pkg--gradient .pkg__sub {
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  margin-top: 0.08rem !important;
}
.pkg--gradient .pkg__price {
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  color: #ffd700 !important;
  margin-top: 0.2rem !important;
}

/* Badge POPULAR con degradado y posición flotante destacada */
.pkg__badge-gradient {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ff0844 0%, #ff5e36 50%, #ffa800 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(255, 8, 68, 0.7), 0 0 12px rgba(255, 94, 54, 0.5);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  animation: badge-pop-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-pop-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 14px rgba(255, 8, 68, 0.6);
  }
  50% {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 4px 20px rgba(255, 122, 24, 0.85), 0 0 12px #ffd700;
  }
}

.pkg--gradient.is-active .pkg__badge-gradient {
  background: #ffffff !important;
  color: #ff0844 !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

/* Paquete Popular no activo */
.pkg--gradient.pkg--popular:not(.is-active) {
  border: 1.5px solid rgba(255, 94, 54, 0.8) !important;
  box-shadow: 0 0 20px rgba(255, 94, 54, 0.35), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

/* Paquete ACTIVO (Luminous Sunset Gradient) */
.pkg--gradient.is-active,
.pkg--gradient.pkg--popular.is-active {
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 45%, #ff9e00 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 26px rgba(255, 94, 54, 0.5) !important;
  transform: scale(1.03) !important;
}
.pkg--gradient.is-active .pkg__num,
.pkg--gradient.is-active .pkg__sub,
.pkg--gradient.is-active .pkg__price,
.pkg--gradient.is-active strong,
.pkg--gradient.is-active span {
  color: #ffffff !important;
}
.pkg--gradient.is-active .pkg__sub {
  color: rgba(255, 255, 255, 0.88) !important;
}
.pkg--gradient.is-active .pkg__price {
  color: #fff9d2 !important;
}

/* 5. Fila Stepper + Botón COMPRAR (Agrandados y más cómodos) */
.keiberth-buy-row {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}
.keiberth-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 0.35rem;
  min-height: 52px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.keiberth-stepper__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  width: 32px;
  height: 50px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.keiberth-stepper__input {
  width: 42px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  padding: 0;
}

/* Botón COMPRAR Principal (Agrandado con degradado) */
.btn-gradient-primary {
  appearance: none;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 45%, #ff9e00 100%) !important;
  color: #ffffff !important;
  font-family: var(--font) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  padding: 0.75rem 1.25rem !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  box-shadow: 0 8px 26px rgba(255, 94, 54, 0.5) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  width: 100% !important;
}
.btn-gradient-primary:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
.btn-buy__amount {
  font-family: var(--display);
  font-weight: 900;
  color: #fff;
}
.btn-buy__arrow {
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}
.btn-gradient-primary:hover .btn-buy__arrow {
  transform: translateX(3px);
}

/* 6. Barra de Avance de Boletos */
.keiberth-progress-wrap {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}
.keiberth-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.keiberth-progress-label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.keiberth-progress-pct {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffd700;
}
.keiberth-progress-track {
  height: 9px;
  border-radius: 999px;
  background: #090e1c;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.35rem;
}
.keiberth-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0844 0%, #ff5e36 50%, #ff9e00 100%);
  box-shadow: 0 0 12px rgba(255, 94, 54, 0.6);
  transition: width 0.4s ease;
}
.keiberth-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #94a3b8;
}
.keiberth-progress-meta strong {
  color: #f1f5f9;
}
.keiberth-progress-auth {
  color: #64748b;
  font-size: 0.62rem;
  text-transform: uppercase;
}

/* 7. Stack de Botones de Acción (Pills Sólidos) */
.keiberth-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.keiberth-action-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.65);
  color: #f1f5f9;
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}
.keiberth-action-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.keiberth-action-pill__icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.keiberth-action-pill__text {
  font-size: 0.82rem;
  font-weight: 800;
  flex: 1 1 auto;
  text-align: left;
}
.keiberth-action-pill__sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}
.keiberth-action-pill__gold {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffd700;
}

/* Pill Casino con degradado amatista */
.keiberth-action-pill--casino {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
.keiberth-action-pill--casino:hover {
  border-color: #ffd700 !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25) !important;
}

/* Pill WhatsApp Comunidad con degradado esmeralda */
.keiberth-action-pill--wa {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}
.keiberth-action-pill--wa .keiberth-action-pill__sub {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Topbar móvil ultra-limpia con iconos redondos */
@media (max-width: 720px) {
  .topbar {
    padding: 0.25rem 0 !important;
  }
  .topbar__inner {
    min-height: 48px !important;
  }
  .topbar-btn {
    min-height: 34px !important;
    padding: 0 0.55rem !important;
    font-size: 0.68rem !important;
    border-radius: 999px !important;
  }
  .theme-toggle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
  }
}

/* Floating Asesor */
body.page-shop .live-chat {
  right: 0.85rem !important;
  bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 75 !important;
}
.live-chat__fab {
  width: 3.4rem !important;
  height: 3.4rem !important;
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 50%, #ff9e00 100%) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(255, 94, 54, 0.45) !important;
}
.live-chat__fab-caption {
  background: #ffffff !important;
  color: #070b19 !important;
  font-weight: 900 !important;
}

/* ============================================================
   MÉTODOS DE PAGO SUTILES Y COMPACTOS (CHECKOUT MODAL)
   ============================================================ */

.modal__panel--checkout .pay-method-list,
body.page-shop .pay-method-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.28rem !important;
  margin-bottom: 0.55rem !important;
}

.modal__panel--checkout .pay-method,
body.page-shop .pay-method {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.38rem 0.65rem !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(15, 23, 42, 0.65) !important;
  color: #f1f5f9 !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Ocultar el radio button nativo redondo para que no quede duplicado */
.modal__panel--checkout .pay-method input[type="radio"],
body.page-shop .pay-method input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

.modal__panel--checkout .pay-method__icon,
body.page-shop .pay-method__icon {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
}

.modal__panel--checkout .pay-method__icon .pay-method__logo,
body.page-shop .pay-method__icon .pay-method__logo {
  width: 18px !important;
  height: 18px !important;
}

.modal__panel--checkout .pay-method__body,
body.page-shop .pay-method__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.02rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.15 !important;
}

.modal__panel--checkout .pay-method__body strong,
body.page-shop .pay-method__body strong {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.modal__panel--checkout .pay-method__body small,
body.page-shop .pay-method__body small {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.modal__panel--checkout .pay-method__check,
body.page-shop .pay-method__check {
  width: 1.2rem !important;
  height: 1.2rem !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

/* Estado ACTIVO / SELECCIONADO */
.modal__panel--checkout .pay-method.is-on,
body.page-shop .pay-method.is-on {
  border-color: #ff5e36 !important;
  background: linear-gradient(135deg, rgba(255, 8, 68, 0.14) 0%, rgba(255, 94, 54, 0.1) 100%) !important;
  box-shadow: 0 2px 10px rgba(255, 94, 54, 0.25) !important;
}

.modal__panel--checkout .pay-method.is-on .pay-method__check,
body.page-shop .pay-method.is-on .pay-method__check {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff0844 0%, #ff5e36 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 94, 54, 0.45) !important;
}

.modal__panel--checkout .pay-method.is-disabled,
body.page-shop .pay-method.is-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: rgba(15, 23, 42, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}

/* Pay dest (instrucciones de pago) más compacto */
.modal__panel--checkout .pay-dest,
body.page-shop .pay-dest {
  padding: 0.55rem 0.7rem !important;
  margin-bottom: 0.55rem !important;
  border-radius: 11px !important;
  font-size: 0.78rem !important;
}
.modal__panel--checkout .pay-details,
body.page-shop .pay-details {
  gap: 0.25rem !important;
}
.modal__panel--checkout .pay-details dt,
body.page-shop .pay-details dt {
  font-size: 0.65rem !important;
}
.modal__panel--checkout .pay-details dd,
body.page-shop .pay-details dd {
  font-size: 0.78rem !important;
}

/* ============================================================
   REFERENCIA Y COMPROBANTE CON ESTILO DARK GLASSMORPHIC
   ============================================================ */

.modal__panel--checkout .pay-proof,
body.page-shop .pay-proof {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f1f5f9 !important;
  padding: 0.85rem 0.95rem !important;
  margin-bottom: 0.65rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.modal__panel--checkout .pay-proof__title,
body.page-shop .pay-proof__title {
  color: #ffffff !important;
  font-family: var(--display) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.2rem !important;
  letter-spacing: -0.01em !important;
}

.modal__panel--checkout .pay-proof__hint,
body.page-shop .pay-proof__hint {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  margin: 0 0 0.55rem !important;
  line-height: 1.35 !important;
}

.modal__panel--checkout .pay-ref-six-notice,
body.page-shop .pay-ref-six-notice {
  background: rgba(255, 177, 66, 0.12) !important;
  border: 1px solid rgba(255, 177, 66, 0.35) !important;
  color: #ffb142 !important;
  border-radius: 10px !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.55rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.modal__panel--checkout .pay-ref-six-notice strong,
body.page-shop .pay-ref-six-notice strong {
  color: #ffd700 !important;
  font-weight: 900 !important;
}

.modal__panel--checkout .pay-proof input#payment_ref,
body.page-shop .pay-proof input#payment_ref {
  background: #091224 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0.6rem 0.85rem !important;
  font-family: var(--display) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  text-align: center !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.modal__panel--checkout .pay-proof input#payment_ref:focus,
body.page-shop .pay-proof input#payment_ref:focus {
  border-color: #ff5e36 !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 54, 0.25) !important;
}

.modal__panel--checkout .pay-proof-upload__eyebrow,
body.page-shop .pay-proof-upload__eyebrow {
  color: #cbd5e1 !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.modal__panel--checkout .pay-proof-upload__status,
body.page-shop .pay-proof-upload__status {
  color: #00e676 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.4rem !important;
}

.modal__panel--checkout .pay-proof-upload__btn,
body.page-shop .pay-proof-upload__btn {
  background: linear-gradient(135deg, rgba(255, 8, 68, 0.12) 0%, rgba(255, 94, 54, 0.08) 100%) !important;
  border: 1.5px dashed rgba(255, 94, 54, 0.5) !important;
  border-radius: 14px !important;
  padding: 0.65rem 0.85rem !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.modal__panel--checkout .pay-proof-upload__btn:hover,
body.page-shop .pay-proof-upload__btn:hover {
  background: rgba(255, 94, 54, 0.18) !important;
  border-color: #ff5e36 !important;
}

.modal__panel--checkout .pay-proof-upload__icon,
body.page-shop .pay-proof-upload__icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 9px !important;
  width: 2rem !important;
  height: 2rem !important;
}

.modal__panel--checkout .pay-proof-upload__cta strong,
body.page-shop .pay-proof-upload__cta strong {
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

.modal__panel--checkout .pay-proof-upload__cta em,
body.page-shop .pay-proof-upload__cta em {
  color: #94a3b8 !important;
  font-size: 0.68rem !important;
}

.modal__panel--checkout .pay-proof__mobile-hint,
body.page-shop .pay-proof__mobile-hint {
  color: #64748b !important;
  font-size: 0.68rem !important;
  margin-top: 0.45rem !important;
}

.modal__panel--checkout .pay-proof__file-name,
body.page-shop .pay-proof__file-name {
  color: #00e676 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

/* ============================================================
   ADMIN DASHBOARD GENERAL (ESTILO ANALYTICS MODERNO)
   ============================================================ */

.dash-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.dash-raffle-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-raffle-select {
  appearance: none;
  background: #0d172a;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.6rem 2.2rem 0.6rem 0.95rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.75rem) center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.dash-raffle-select:focus {
  border-color: #38bdf8;
  outline: none;
}

/* Grilla de 8 tarjetas KPI */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 1100px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dash-kpi-grid { grid-template-columns: 1fr; }
}

.dash-kpi-card {
  position: relative;
  background: #091326;
  border: 1px solid rgba(148, 197, 255, 0.12);
  border-radius: 16px;
  padding: 1.05rem 1.2rem 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.dash-kpi-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.dash-kpi-card__kicker {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8da4c4;
}
.dash-kpi-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 900;
}
.dash-kpi-card__val {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.2rem 0 0.35rem;
}
.dash-kpi-card__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}
.dash-kpi-card__badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  display: inline-block;
}
.dash-kpi-card__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}
.dash-kpi-card__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Colores de las tarjetas KPI */
.dash-kpi-card--blue { border-color: rgba(56, 189, 248, 0.25); }
.dash-kpi-card--blue .dash-kpi-card__icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dash-kpi-card--blue .dash-kpi-card__badge { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dash-kpi-card--blue .dash-kpi-card__wave { color: #0284c7; }

.dash-kpi-card--purple { border-color: rgba(192, 132, 252, 0.25); }
.dash-kpi-card--purple .dash-kpi-card__icon { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.dash-kpi-card--purple .dash-kpi-card__badge { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.dash-kpi-card--purple .dash-kpi-card__wave { color: #9333ea; }

.dash-kpi-card--green { border-color: rgba(0, 230, 118, 0.25); }
.dash-kpi-card--green .dash-kpi-card__icon { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.dash-kpi-card--green .dash-kpi-card__badge { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.dash-kpi-card--green .dash-kpi-card__wave { color: #059669; }

.dash-kpi-card--amber { border-color: rgba(251, 191, 36, 0.25); }
.dash-kpi-card--amber .dash-kpi-card__icon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.dash-kpi-card--amber .dash-kpi-card__badge { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.dash-kpi-card--amber .dash-kpi-card__wave { color: #d97706; }

.dash-kpi-card--red { border-color: rgba(244, 63, 94, 0.25); }
.dash-kpi-card--red .dash-kpi-card__icon { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.dash-kpi-card--red .dash-kpi-card__badge { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.dash-kpi-card--red .dash-kpi-card__wave { color: #dc2626; }

.dash-kpi-card--teal { border-color: rgba(45, 212, 191, 0.25); }
.dash-kpi-card--teal .dash-kpi-card__icon { background: rgba(45, 212, 191, 0.15); color: #2dd4bf; }
.dash-kpi-card--teal .dash-kpi-card__badge { background: rgba(45, 212, 191, 0.15); color: #2dd4bf; }
.dash-kpi-card--teal .dash-kpi-card__wave { color: #0f766e; }

.dash-kpi-card--cyan { border-color: rgba(56, 189, 248, 0.25); }
.dash-kpi-card--cyan .dash-kpi-card__icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dash-kpi-card--cyan .dash-kpi-card__badge { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dash-kpi-card--cyan .dash-kpi-card__wave { color: #0284c7; }

.dash-kpi-card--indigo { border-color: rgba(129, 140, 248, 0.25); }
.dash-kpi-card--indigo .dash-kpi-card__icon { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.dash-kpi-card--indigo .dash-kpi-card__badge { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.dash-kpi-card--indigo .dash-kpi-card__wave { color: #4f46e5; }

/* Fila de Gráficos de Ventas Diarias */
.dash-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 860px) {
  .dash-charts-row { grid-template-columns: 1fr; }
}

.dash-chart-card {
  padding: 1.1rem 1.25rem;
}
.dash-chart-card__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.dash-chart-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #fff;
}
.dash-bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 140px;
  padding-top: 1rem;
}
.dash-bar-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.dash-bar-track {
  width: 100%;
  max-width: 26px;
  height: 100px;
  display: flex;
  align-items: flex-end;
}
.dash-bar-fill {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
  transition: height 0.4s ease;
}
.dash-bar-fill--gold {
  background: linear-gradient(180deg, #ffd700, #f59e0b);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.dash-bar-fill--blue {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}
.dash-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 0.35rem;
}
.dash-bar-val {
  font-size: 0.6rem;
  font-weight: 800;
  color: #e2e8f0;
}

/* Fila de Tablas Inferiores (Rendimiento + Actividad) */
.dash-tables-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}
@media (max-width: 960px) {
  .dash-tables-row { grid-template-columns: 1fr; }
}

.dash-activity-stream {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd700;
  flex-shrink: 0;
}
.dash-activity-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}
.dash-activity-body strong { color: #fff; }
.dash-activity-body small { display: block; font-size: 0.7rem; color: #8da4c4; margin-top: 0.1rem; }
.dash-activity-amount {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #00e676;
  white-space: nowrap;
}

/* ============================================================
   EFECTO DE BORDE LUMINOSO EN EL FLYER (ESTILO GANASCONLATAM)
   ============================================================ */

.flyer-border-glow {
  position: relative;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 94, 54, 0.28) !important;
}
.flyer-border-glow::after {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.12) 32%,
    #ff0844 42%,
    #ff5e36 48%,
    #ffd700 55%,
    rgba(255, 255, 255, 0.12) 65%,
    rgba(255, 255, 255, 0.12)
  ) 0% 0% / 250% 100%;
  animation: flyerBorderGradient 3.8s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}
@keyframes flyerBorderGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   BOLETO OFICIAL CON BORDE DE BOLETOS PERFORADO
   ============================================================ */

.ticket-stub {
  position: relative;
  background: linear-gradient(165deg, #0e172e 0%, #080f22 60%, #050a18 100%);
  border: 1.5px dashed rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  margin: 1rem 0 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
  overflow: hidden;
}

/* Muescas circulares laterales (perforación clásica de boleto) */
.ticket-stub__cutout {
  position: absolute;
  top: 48%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #070b19;
  border: 1.5px dashed rgba(255, 215, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}
.ticket-stub__cutout--left {
  left: -10px;
  transform: translateY(-50%);
}
.ticket-stub__cutout--right {
  right: -10px;
  transform: translateY(-50%);
}

.ticket-stub__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}
.ticket-stub__tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 0.15rem;
}
.ticket-stub__raffle {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.ticket-stub__status {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticket-stub__status.is-paid {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25);
}
.ticket-stub__status.is-pending {
  background: rgba(255, 177, 66, 0.18);
  color: #ffb142;
  border: 1px solid rgba(255, 177, 66, 0.4);
}

.ticket-stub__divider {
  position: relative;
  margin: 0.85rem 0;
  display: flex;
  align-items: center;
}
.ticket-stub__dash {
  width: 100%;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.16);
}

.ticket-stub__body {
  padding: 0.2rem 0;
}
.ticket-stub__kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-align: center;
}
.ticket-stub__nums-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.ticket-stub__num-chip {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticket-stub__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #94a3b8;
}
.ticket-stub__footer small {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.1rem;
}
.ticket-stub__footer span {
  color: #f1f5f9;
  font-weight: 700;
}
.ticket-stub__total {
  font-family: var(--display);
  font-size: 1.05rem;
  color: #00e676;
}

/* ============================================================
   CELEBRACIÓN CON LOGO ANIMADO AL FINAL DE LA COMPRA
   ============================================================ */

.success-celebrate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
  text-align: center;
}
.success-celebrate-logo-box {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 94, 54, 0.15) 50%, transparent 70%);
  animation: logo-celebrate-bounce 2.4s ease-in-out infinite;
}
.success-celebrate-logo {
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffd700;
}
.success-celebrate-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #040914;
  background: linear-gradient(135deg, #ffd700, #ff7a18);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.celebrate-sparkle {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  animation: sparkle-float 2.2s ease-in-out infinite alternate;
}
.celebrate-sparkle--1 { top: -6px; left: 6px; animation-delay: 0s; }
.celebrate-sparkle--2 { top: -8px; right: 8px; animation-delay: 0.4s; }
.celebrate-sparkle--3 { bottom: 2px; left: -4px; animation-delay: 0.8s; }
.celebrate-sparkle--4 { bottom: 0px; right: -4px; animation-delay: 1.2s; }

@keyframes logo-celebrate-bounce {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  35% {
    transform: translateY(-8px) scale(1.06) rotate(-3deg);
  }
  65% {
    transform: translateY(-4px) scale(1.04) rotate(3deg);
  }
}

@keyframes sparkle-float {
  0% { transform: scale(0.8) translateY(0); opacity: 0.4; }
  100% { transform: scale(1.3) translateY(-6px); opacity: 1; }
}

.success-celebrate-cheer {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   DECORACIÓN NAVIDEÑA (MODO NAVIDAD)
   ========================================================================== */

/* Gorro de Santa en el Logo */
.brand.is-xmas {
  position: relative;
}
.xmas-hat {
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(18deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  animation: xmas-hat-wiggle 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes xmas-hat-wiggle {
  0%, 100% { transform: rotate(18deg) scale(1); }
  50% { transform: rotate(24deg) scale(1.1); }
}

/* Nieve cayendo suavemente en el fondo */
.xmas-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
  height: 100vh;
}

.snow-flake {
  position: absolute;
  top: -24px;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.8;
  user-select: none;
  pointer-events: none;
  animation: snow-fall linear infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.snow-flake:nth-child(1) { left: 5%; animation-duration: 9s; animation-delay: 0s; font-size: 0.9rem; opacity: 0.6; }
.snow-flake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1.5s; font-size: 1.2rem; opacity: 0.75; }
.snow-flake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2.2s; font-size: 1.5rem; opacity: 0.85; }
.snow-flake:nth-child(4) { left: 35%; animation-duration: 11s; animation-delay: 0.8s; font-size: 0.8rem; opacity: 0.5; }
.snow-flake:nth-child(5) { left: 45%; animation-duration: 10s; animation-delay: 3s; font-size: 1.3rem; opacity: 0.7; }
.snow-flake:nth-child(6) { left: 55%; animation-duration: 13s; animation-delay: 1.2s; font-size: 1rem; opacity: 0.65; }
.snow-flake:nth-child(7) { left: 65%; animation-duration: 8.5s; animation-delay: 2.7s; font-size: 1.4rem; opacity: 0.8; }
.snow-flake:nth-child(8) { left: 75%; animation-duration: 11.5s; animation-delay: 0.4s; font-size: 0.9rem; opacity: 0.55; }
.snow-flake:nth-child(9) { left: 85%; animation-duration: 9.5s; animation-delay: 1.8s; font-size: 1.2rem; opacity: 0.7; }
.snow-flake:nth-child(10) { left: 92%; animation-duration: 12.5s; animation-delay: 2.5s; font-size: 1rem; opacity: 0.6; }
.snow-flake:nth-child(11) { left: 30%; animation-duration: 10.5s; animation-delay: 4s; font-size: 1.1rem; opacity: 0.7; }
.snow-flake:nth-child(12) { left: 70%; animation-duration: 9s; animation-delay: 3.5s; font-size: 1.3rem; opacity: 0.75; }

@keyframes snow-fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(20px);
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(-15px);
    opacity: 0.2;
  }
}

/* Badge Navideño Festivo en la tienda */
.xmas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.25) 0%, rgba(0, 230, 118, 0.2) 100%);
  border: 1px solid rgba(220, 20, 60, 0.45);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin: 0 auto 0.45rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(220, 20, 60, 0.35);
  animation: xmas-badge-pulse 2s ease-in-out infinite alternate;
}

@keyframes xmas-badge-pulse {
  from { box-shadow: 0 0 12px rgba(220, 20, 60, 0.25); border-color: rgba(220, 20, 60, 0.45); }
  to { box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); border-color: rgba(0, 230, 118, 0.6); }
}

/* Santa Claus Oficial con bolsa: Asomarse, saludar y esconderse */
.xmas-santa-peeker {
  position: fixed;
  right: -10px;
  top: 232px;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
  transform: translateX(125%) rotate(8deg);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.xmas-santa-peeker.is-peeking {
  pointer-events: auto;
  animation: santa-peek-run 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.xmas-santa-img {
  width: 118px;
  height: auto;
  display: block;
  cursor: pointer;
  filter: drop-shadow(-8px 10px 18px rgba(0, 0, 0, 0.65));
  transform-origin: bottom right;
  transition: transform 0.2s ease;
}

.xmas-santa-peeker:hover .xmas-santa-img,
.xmas-santa-peeker:active .xmas-santa-img {
  transform: scale(1.06) rotate(-3deg);
}

.xmas-santa-peeker.is-cheering .xmas-santa-img {
  animation: santa-cheer 0.45s ease-in-out;
}

/* Ciclo de una sola salida: Entra (0.7s), Saluda alegremente (2s), Se esconde (0.8s) */
@keyframes santa-peek-run {
  0% {
    transform: translateX(125%) rotate(8deg);
    opacity: 0;
  }
  14% {
    /* 1. Entra asomándose */
    transform: translateX(0) rotate(-4deg);
    opacity: 1;
  }
  24%, 40%, 56% {
    /* 2. Saluda alegremente */
    transform: translateX(-6px) rotate(4deg) scale(1.05);
  }
  32%, 48%, 64% {
    transform: translateX(0) rotate(-5deg) scale(1);
  }
  78% {
    /* 3. Permanece un instante visible con su bolsa */
    transform: translateX(0) rotate(-2deg);
    opacity: 1;
  }
  92% {
    /* 4. Se esconde de vuelta hacia la derecha */
    transform: translateX(125%) rotate(10deg);
    opacity: 0;
  }
  100% {
    /* 5. Oculto */
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes santa-cheer {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.15) rotate(-8deg) translateY(-8px); }
  70% { transform: scale(1.1) rotate(5deg) translateY(-4px); }
}

/* Bocadillo de diálogo de Santa */
.xmas-santa-bubble {
  background: rgba(10, 18, 38, 0.95);
  border: 1.5px solid #ffd700;
  border-radius: 10px 10px 2px 10px;
  padding: 0.22rem 0.5rem;
  margin-bottom: -4px;
  margin-right: 14px;
  text-align: right;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: bubble-pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.25) 0.8s both;
  cursor: pointer;
  max-width: 170px;
}

.xmas-santa-bubble span {
  display: block;
  font-size: 0.65rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.xmas-santa-bubble small {
  display: block;
  font-size: 0.58rem;
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1px;
}

@keyframes bubble-pop {
  from { opacity: 0; transform: scale(0.6) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Botón pequeño para cerrar Santa */
.xmas-santa-dismiss {
  position: absolute;
  top: 12px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #cbd5e1;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.xmas-santa-dismiss:hover {
  opacity: 1;
  color: #ff4757;
}

.xmas-santa-peeker.is-hidden {
  display: none !important;
}

@media (min-width: 900px) {
  .xmas-santa-peeker {
    right: 25px;
    top: 260px;
  }
  .xmas-santa-img {
    width: 145px;
  }
}

/* Fuegos artificiales navideños sobre el flyer (estallan una sola vez al cargar) */
.xmas-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  overflow: hidden;
}

.firework-burst {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.firework-burst--1 {
  left: 28%;
  top: 32%;
}

.firework-burst--2 {
  left: 72%;
  top: 26%;
}

.firework-burst--3 {
  left: 50%;
  top: 48%;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
}

.firework-burst--1 .spark {
  background: #ffd700;
  box-shadow: 0 0 10px #ffd700, 0 0 16px #ff9e00;
  animation: spark-burst 1.4s ease-out 0.35s forwards;
}

.firework-burst--2 .spark {
  background: #ff0844;
  box-shadow: 0 0 10px #ff0844, 0 0 16px #00e676;
  animation: spark-burst 1.4s ease-out 0.95s forwards;
}

.firework-burst--3 .spark {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 16px #ffd700;
  animation: spark-burst 1.5s ease-out 1.55s forwards;
}

.spark.s1 { --tx: 0px; --ty: -48px; }
.spark.s2 { --tx: 34px; --ty: -34px; }
.spark.s3 { --tx: 48px; --ty: 0px; }
.spark.s4 { --tx: 34px; --ty: 34px; }
.spark.s5 { --tx: 0px; --ty: 48px; }
.spark.s6 { --tx: -34px; --ty: 34px; }
.spark.s7 { --tx: -48px; --ty: 0px; }
.spark.s8 { --tx: -34px; --ty: -34px; }

@keyframes spark-burst {
  0% {
    transform: translate(0, 0) scale(1.4);
    opacity: 1;
  }
  60% {
    transform: translate(var(--tx), var(--ty)) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--tx) * 1.3), calc(var(--ty) * 1.3 + 18px)) scale(0.3);
    opacity: 0;
  }
}
