:root {
  --bg: #000000;
  --bg-main: #000000;
  --surface: rgba(10, 10, 10, 0.94);
  --surface2: rgba(16, 16, 16, 0.96);
  --surface-elevated: rgba(14, 14, 14, 0.98);
  --text: #ffffff;
  --muted: #ffffff;
  --heading: #ffffff;
  --heading-dark: #3b82f6;
  --neon-purple: #3b82f6;
  --neon-blue: #2563eb;
  --accent: #3b82f6;
  --accent2: #2563eb;
  --btn-lilac: #bfdbfe;
  --btn-purple: #1d4ed8;
  --btn-gradient: linear-gradient(135deg, #bfdbfe 0%, #3b82f6 48%, #1d4ed8 100%);
  --danger: #ef4444;
  --logout: #fb923c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --glow-purple: 0 0 24px rgba(59, 130, 246, 0.35);
  --font: "Inter", system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-poppins: "Poppins", "Inter", system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --max: 1200px;
  --sidebar-w: 17.5rem;
  --sidebar-collapsed-w: 4.75rem;
}

/* Encabezados blancos sobre fondo negro */
h1, h2, h3, h4,
.home-screen-heading,
.checkout-page__title,
.checkout-card__title,
.product-detail__title,
.hero h1,
.codigos-hero__content h1,
.shop-section-brand__name,
.shop-empty-brand__name,
.login-split__welcome,
.perfil-card__title,
.billetera-page__title,
.page-head h1 {
  color: var(--heading);
}

.home-screen-heading__lead::after {
  background: linear-gradient(
    90deg,
    #93c5fd 0%,
    #3b82f6 38%,
    rgba(59, 130, 246, 0.35) 72%,
    rgba(2, 4, 10, 0) 100%
  ) !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45), 0 0 8px rgba(96, 165, 250, 0.3) !important;
}

.btn--primary,
.card__cta--ok,
.login-split__submit,
.btn--depelicula-cart {
  background: var(--btn-gradient) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35) !important;
}

.card__cta--cart,
.card__cta--ok {
  background: var(--btn-gradient);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: #000000;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body.site::before,
body.site::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Capa de humo 1 */
body.site::before {
  background:
    radial-gradient(ellipse 95% 65% at 12% 38%, rgba(255, 255, 255, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 88% 72%, rgba(210, 210, 210, 0.07) 0%, transparent 54%),
    radial-gradient(ellipse 90% 50% at 48% 105%, rgba(180, 180, 180, 0.06) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 72% 12%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 145% 145%, 155% 155%, 130% 130%, 125% 125%;
  animation: smoke-drift-a 24s ease-in-out infinite;
  opacity: 0.88;
}

/* Capa de humo 2 */
body.site::after {
  background:
    radial-gradient(ellipse 100% 70% at 28% 82%, rgba(230, 230, 230, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 85% 58% at 92% 22%, rgba(190, 190, 190, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 75% 52% at 8% 18%, rgba(255, 255, 255, 0.045) 0%, transparent 48%),
    radial-gradient(ellipse 110% 40% at 55% 45%, rgba(160, 160, 160, 0.04) 0%, transparent 62%);
  background-size: 140% 140%, 150% 150%, 120% 120%, 160% 160%;
  animation: smoke-drift-b 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
  border-radius: 50%;
}

/* Pluma de humo inferior */
.site-shell::before {
  bottom: -35%;
  left: -12%;
  top: auto;
  width: min(70vw, 640px);
  height: min(75vh, 680px);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, rgba(200, 200, 200, 0.04) 42%, transparent 72%);
  animation: smoke-wisp-a 20s ease-in-out infinite alternate;
}

/* Pluma de humo superior */
.site-shell::after {
  top: -28%;
  right: -10%;
  bottom: auto;
  width: min(62vw, 560px);
  height: min(68vh, 620px);
  background: radial-gradient(ellipse, rgba(220, 220, 220, 0.09) 0%, rgba(170, 170, 170, 0.035) 45%, transparent 70%);
  animation: smoke-wisp-b 22s ease-in-out infinite alternate-reverse;
}

@keyframes smoke-drift-a {
  0%,
  100% {
    background-position: 0% 50%, 100% 50%, 50% 100%, 80% 0%;
    transform: translate(0, 0) scale(1);
    opacity: 0.72;
  }
  25% {
    background-position: 22% 32%, 78% 68%, 58% 88%, 30% 18%;
    transform: translate(2.5%, -2%) scale(1.07);
    opacity: 0.95;
  }
  50% {
    background-position: 8% 72%, 92% 28%, 42% 58%, 68% 8%;
    transform: translate(-2%, 2.5%) scale(1.05);
    opacity: 0.82;
  }
  75% {
    background-position: 32% 42%, 62% 78%, 48% 35%, 88% 48%;
    transform: translate(1.5%, 1%) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes smoke-drift-b {
  0% {
    background-position: 0% 60%, 100% 30%, 20% 10%, 50% 50%;
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  100% {
    background-position: 100% 40%, 0% 70%, 80% 25%, 45% 55%;
    transform: translate(-3%, 2%) scale(1.1);
    opacity: 0.92;
  }
}

@keyframes smoke-wisp-a {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.55;
  }
  100% {
    transform: translate(14%, -8%) scale(1.18) rotate(3deg);
    opacity: 0.85;
  }
}

@keyframes smoke-wisp-b {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.5;
  }
  100% {
    transform: translate(-12%, 10%) scale(1.14) rotate(-2deg);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site::before,
  body.site::after,
  .site-shell::before,
  .site-shell::after,
  .login-split-body::before,
  .login-split-body::after {
    animation: none !important;
  }
}

body.site.nav-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  body.site.nav-open {
    overflow: auto;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.site-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: transparent;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(var(--sidebar-w), 88vw);
  height: 100%;
  max-height: 100vh;
  flex-shrink: 0;
  padding: 0.65rem 0.5rem 0.65rem 0.55rem;
  background: var(--bg);
  border-right: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.35);
  z-index: 100;
  overflow-x: hidden;
  overflow-y: hidden;
}

.sidebar__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.65rem 0.75rem;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(165deg, rgba(10, 14, 22, 0.98) 0%, rgba(6, 10, 8, 0.99) 45%, #030503 100%);
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.1);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.4) transparent;
}

.sidebar__panel::-webkit-scrollbar {
  width: 6px;
}

.sidebar__panel::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__panel::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 6px;
}

.sidebar--admin {
  top: 0.55rem;
  margin: 0.55rem 0 0.55rem 0.55rem;
  height: calc(100vh - 1.1rem);
  padding: 0.45rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar--admin .sidebar__panel {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.sidebar__collapse {
  display: none;
  position: static;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--glow-purple);
  transition: transform 0.2s ease, background 0.2s;
}
.sidebar__collapse::before {
  content: "‹";
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-1px);
}
.site-shell--collapsed .sidebar__collapse {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .sidebar__collapse {
    display: flex;
  }
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  min-height: 1.65rem;
}

.site-shell--collapsed .sidebar {
  width: var(--sidebar-collapsed-w);
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.site-shell--collapsed .sidebar__panel {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.site-shell--collapsed .sidebar-user__meta {
  display: none;
}
.site-shell--collapsed .sidebar-user {
  justify-content: center;
  padding: 0.5rem;
}
.site-shell--collapsed .sidebar-nav__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.site-shell--collapsed .sidebar-nav__link {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.site-shell--collapsed .sidebar__footer .sidebar-nav__link {
  justify-content: center;
}

.logo--mobile {
  margin-left: auto;
}

.topbar__brand-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar__brand-actions .logo--mobile {
  margin-left: 0;
}

.sidebar__close {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border: 1px solid var(--surface2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  cursor: pointer;
  position: relative;
}
.sidebar__close::before,
.sidebar__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--text);
  transform-origin: center;
}
.sidebar__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.sidebar__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.sidebar-user__avatar-wrap {
  flex-shrink: 0;
}

.sidebar-user__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.sidebar-user__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.sidebar-user__avatar--guest {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--muted);
}

.sidebar-user__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-user__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.25;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.sidebar-media {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-media__title {
  margin: 0 0 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-media__item {
  position: relative;
  display: block;
  min-height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(29, 78, 216, 0.12));
  text-decoration: none;
}

.sidebar-media__item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.sidebar-media__placeholder {
  position: absolute;
  inset: 0;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #ffffff;
}

.sidebar-media__item:not(.is-empty) .sidebar-media__placeholder {
  display: none;
}

.site-shell--collapsed .sidebar-media {
  display: none;
}

.sidebar-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.65rem 0.7rem 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sidebar-nav__link:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
  text-decoration: none;
}

.sidebar-nav__link.is-active {
  color: #0f172a;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: var(--glow-purple);
}
.sidebar-nav__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--btn-lilac), var(--btn-purple));
}

.sidebar-nav__icon {
  flex-shrink: 0;
  display: flex;
  color: currentColor;
  opacity: 0.95;
}

.sidebar-nav__label {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.nav-ico {
  display: block;
}

.sidebar-nav__link--logout {
  color: var(--logout);
}
.sidebar-nav__link--logout:hover {
  color: #f87171;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.25);
}

.topbar--mobile {
  display: none;
}

@media (max-width: 768px) {
  .site-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .site-main {
    display: block;
    overflow: visible;
    grid-column: auto;
    grid-row: auto;
  }

  .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  /* En móvil, el sidebar siempre debe mostrarse completo (sin modo colapsado). */
  .site-shell--collapsed {
    --sidebar-w: 280px;
  }
  .site-shell--collapsed .sidebar {
    width: min(var(--sidebar-w), 88vw);
    padding-left: 0.55rem;
    padding-right: 0.5rem;
  }
  .site-shell--collapsed .sidebar__panel {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .site-shell--collapsed .sidebar-user__meta {
    display: flex;
  }
  .site-shell--collapsed .sidebar-user {
    justify-content: flex-start;
    padding: 0.75rem;
  }
  .site-shell--collapsed .sidebar-nav__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .site-shell--collapsed .sidebar-nav__link,
  .site-shell--collapsed .sidebar__footer .sidebar-nav__link {
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    /* Por encima del pie fijo (z-index ~900), para cubrir contenido detrás del menú */
    z-index: 940;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 950;
    width: min(var(--sidebar-w), 88vw);
    height: auto;
    max-height: none;
    grid-column: auto;
    grid-row: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  .sidebar.sidebar--admin {
    top: 0.55rem;
    left: 0.55rem;
    bottom: 0.55rem;
    width: min(var(--sidebar-w), calc(88vw - 1.1rem));
    margin: 0;
    height: auto;
    border: none;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar__close {
    display: block;
  }

  .topbar--mobile {
    display: block;
  }

  .shop-section-brand .currency-switcher {
    display: none;
  }

  .sidebar__collapse {
    display: none;
  }
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 5, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 3.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.badge {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  line-height: 1.35rem;
  text-align: center;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.1);
  cursor: pointer;
  position: relative;
}
.nav-toggle:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: var(--surface);
}
.topbar--mobile .nav-toggle {
  display: block;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0.64rem;
  right: 0.64rem;
  height: 2.2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s;
}
.nav-toggle::before {
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 -0.42rem 0 var(--text), 0 0.42rem 0 var(--text);
}
.nav-toggle::after {
  content: none;
}

.currency-switcher-mobile {
  position: relative;
}

.currency-switcher-mobile__trigger {
  list-style: none;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(241, 245, 249, 0.66);
  cursor: pointer;
}

.currency-switcher-mobile__trigger::-webkit-details-marker {
  display: none;
}

.currency-switcher-mobile[open] .currency-switcher-mobile__trigger {
  border-color: rgba(29, 78, 216, 0.7);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.currency-switcher-mobile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px rgba(226, 232, 240, 0.45);
  z-index: 140;
}

.currency-switcher-mobile__item {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.currency-switcher-mobile__item.is-active {
  border-color: rgba(251, 191, 36, 0.85);
}

.currency-switcher-mobile__flag-img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

/* Panel admin: menú superior clásico */
.topbar:not(.topbar--mobile) .topbar__inner {
  justify-content: space-between;
}
.topbar:not(.topbar--mobile) .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.topbar:not(.topbar--mobile) .nav a {
  color: var(--muted);
  font-size: 0.95rem;
}
.topbar:not(.topbar--mobile) .nav a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .topbar:not(.topbar--mobile) .nav-toggle {
    display: block;
  }
  .topbar:not(.topbar--mobile) .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    box-shadow: var(--shadow);
  }
  .topbar:not(.topbar--mobile) .nav.is-open {
    display: flex;
  }
  .topbar:not(.topbar--mobile) .topbar__inner {
    flex-wrap: wrap;
    position: relative;
  }
}

.main {
  flex: 1;
  padding: 1.5rem 1rem 3rem;
}

.main--full {
  width: 100%;
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
  flex: 1 1 auto;
}

.footer {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 900;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  padding: 0.45rem 0;
  background: rgba(3, 5, 12, 0.92);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-shell--collapsed .footer {
  left: auto;
}

.footer__inner {
  display: block;
}

.footer-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
}

.footer-hours__status {
  color: #ffffff;
  border: none;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-hours__status--open {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(6, 78, 59, 0.55);
}

.footer-hours__ticker {
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.85);
  padding: 0.45rem 0;
}

.footer-hours__track {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  white-space: nowrap;
  padding-left: 1rem;
  animation: footer-hours-marquee 24s linear infinite;
  will-change: transform;
}

.footer-hours__track span {
  color: var(--text);
  font-size: 0.83rem;
}

@keyframes footer-hours-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  /* Admin: texto “Panel…” en pie fijo; en móvil tapaba el último ítem del menú */
  .footer.footer--admin-only {
    display: none;
  }

  .footer-hours {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .footer-hours__status {
    justify-self: start;
  }
  .main--full {
    padding-bottom: 5.5rem;
  }

  .site-shell:has(.footer-hours) .whatsapp-float {
    bottom: 5.25rem;
  }

  body.site--admin .main.main--full {
    padding-bottom: 1.5rem;
  }
}

.whatsapp-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1200;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid transparent;
  animation: wa-pulse 2.2s ease-out infinite;
}

.whatsapp-float::after {
  animation-delay: 0.9s;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  display: block;
}

.whatsapp-float--open {
  background: linear-gradient(180deg, #25d366 0%, #12b451 100%);
  box-shadow: 0 10px 28px rgba(18, 180, 81, 0.45);
}

.whatsapp-float--open::before,
.whatsapp-float--open::after {
  border-color: rgba(37, 211, 102, 0.5);
}

.whatsapp-float--closed {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.42);
  pointer-events: none;
  cursor: not-allowed;
}

.whatsapp-float--closed::before,
.whatsapp-float--closed::after {
  border-color: rgba(248, 113, 113, 0.55);
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
}
.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #b91c1c;
}
.alert--ok {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--text);
}
.alert--warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}
.alert--warn a {
  color: #fef3c7;
  text-decoration: underline;
}

.hero {
  padding: 2rem 0 1rem;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.hero__cart-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.hero__cart-link a {
  color: var(--text);
  text-decoration: none;
}

.hero__cart-link a:hover {
  text-decoration: underline;
}

.home-screen-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--heading);
}

.home-screen-heading__lead {
  position: relative;
  display: inline-block;
  padding-bottom: 0.42em;
}

/* Línea degradada solo bajo «Pantallas» */
.home-screen-heading__lead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #93c5fd 0%,
    #3b82f6 38%,
    rgba(59, 130, 246, 0.35) 72%,
    rgba(2, 4, 10, 0) 100%
  );
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45), 0 0 8px rgba(96, 165, 250, 0.3);
}

.home-screen-heading__tail {
  font-weight: inherit;
  letter-spacing: inherit;
}

/* Ondas amarillas suaves alrededor del logo de marca (WhatsApp-like); --logo-pulse-size = diámetro */
.logo-pulse {
  --logo-pulse-size: 40px;
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--logo-pulse-size);
  height: var(--logo-pulse-size);
  overflow: visible;
  isolation: isolate;
  vertical-align: middle;
}

.logo-pulse > * {
  position: relative;
  z-index: 1;
}

.logo-pulse::before,
.logo-pulse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--logo-pulse-size);
  height: var(--logo-pulse-size);
  margin-left: calc(var(--logo-pulse-size) / -2);
  margin-top: calc(var(--logo-pulse-size) / -2);
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(59, 130, 246, 0.42);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.2),
    0 0 10px rgba(96, 165, 250, 0.26),
    0 0 20px rgba(29, 78, 216, 0.16);
  animation: logo-pulse-wave 3.4s cubic-bezier(0.33, 0.72, 0.35, 1) infinite;
}

.logo-pulse::after {
  animation-delay: 1.7s;
}

@keyframes logo-pulse-wave {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  55% {
    opacity: 0.18;
  }
  100% {
    transform: scale(1.82);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-pulse::before,
  .logo-pulse::after {
    animation: none;
  }
}

.shop-empty-brand {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.5rem 1rem 0;
  max-width: var(--max);
  margin-inline: auto;
}

.shop-empty-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: radial-gradient(circle at 30% 20%, #60a5fa 0%, #3b82f6 45%, #2563eb 100%);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 8px 16px rgba(0, 0, 0, 0.45);
}

.shop-empty-brand__logo-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.shop-empty-brand .logo-pulse--empty-img {
  --logo-pulse-size: 44px;
}

.shop-empty-brand .logo-pulse--empty-mark {
  --logo-pulse-size: 42px;
}

.shop-empty-brand .logo-pulse .shop-empty-brand__logo {
  width: 100%;
  height: 100%;
}

.shop-empty-brand__text {
  min-width: 0;
}

.shop-empty-brand__name {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.2;
}

.shop-empty-brand__hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 26rem;
}

/* Barra superior: moneda, tema, notificaciones, saldo */
.shop-utility-bar {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(10, 10, 14, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.shop-utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.65rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.shop-utility-bar__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.utility-pill:hover {
  text-decoration: none;
  border-color: rgba(59, 130, 246, 0.45);
}
.utility-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  list-style: none;
}
.utility-icon-btn:hover {
  border-color: rgba(59, 130, 246, 0.45);
}
.utility-icon-btn::-webkit-details-marker {
  display: none;
}
.utility-currency {
  position: relative;
}
.utility-currency__trigger {
  user-select: none;
}
.utility-currency__flag {
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.utility-currency__code {
  letter-spacing: 0.02em;
}
.utility-currency__chev {
  opacity: 0.65;
  flex-shrink: 0;
}
.utility-currency__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 7.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: grid;
  gap: 0.2rem;
}
.utility-currency__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.utility-currency__item:hover {
  background: rgba(59, 130, 246, 0.15);
  text-decoration: none;
}
.utility-currency__item.is-active {
  background: rgba(59, 130, 246, 0.22);
}
.utility-theme-toggle .utility-theme-icon {
  pointer-events: none;
}
.utility-theme-icon--moon {
  display: block;
}
.utility-theme-icon--sun {
  display: none;
}
body.site.theme-light .utility-theme-icon--moon {
  display: none;
}
body.site.theme-light .utility-theme-icon--sun {
  display: block;
}
.utility-notify {
  position: relative;
}
.utility-notify__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  pointer-events: none;
}
.utility-notify__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(22rem, calc(100vw - 1.25rem));
  max-height: min(28rem, calc(100vh - 5rem));
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(165deg, #1a2332 0%, #121820 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 6px 16px rgba(59, 130, 246, 0.18);
  z-index: 200;
  overflow: hidden;
}
.utility-notify__head {
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}
.utility-notify__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.utility-notify__list {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0.1rem 0.1rem 0;
  display: grid;
  gap: 0.45rem;
  max-height: min(22rem, calc(100vh - 8.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.45) transparent;
}
.utility-notify__list::-webkit-scrollbar {
  width: 6px;
}
.utility-notify__list::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.45);
  border-radius: 999px;
}
.utility-notify__item {
  display: block;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.utility-notify__item:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
}
.utility-notify__item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #f8fafc;
}
.utility-notify__item-date {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.utility-notify__item span {
  display: block;
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.utility-saldo__label {
  color: var(--muted);
  font-weight: 500;
}
.utility-saldo__value {
  color: var(--accent);
  font-weight: 800;
}

body.site.theme-light {
  --bg: #f3f4f6;
  --bg-main: #ffffff;
  --surface: #ffffff;
  --surface2: #f9fafb;
  --surface-elevated: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --heading: #0f172a;
  background: #f9fafb;
  color: var(--text);
}
body.site.theme-light::before,
body.site.theme-light::after {
  opacity: 0.25;
}
body.site.theme-light h1,
body.site.theme-light h2,
body.site.theme-light h3,
body.site.theme-light h4,
body.site.theme-light .home-screen-heading,
body.site.theme-light .shop-section-brand__name,
body.site.theme-light .shop-empty-brand__name {
  color: var(--heading);
}
body.site.theme-light .shop-utility-bar {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .utility-pill,
body.site.theme-light .utility-icon-btn {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #111827;
}
body.site.theme-light .utility-currency__menu,
body.site.theme-light .utility-notify__panel {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 20px 44px rgba(15, 23, 42, 0.16),
    0 8px 18px rgba(59, 130, 246, 0.12);
}
body.site.theme-light .utility-notify__head {
  color: #334155;
  border-bottom-color: #e2e8f0;
}
body.site.theme-light .utility-notify__item {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .utility-notify__item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}
body.site.theme-light .utility-notify__item strong {
  color: #0f172a;
}
body.site.theme-light .utility-notify__item span {
  color: #475569;
}
body.site.theme-light .utility-notify__item-date {
  color: #2563eb;
}
body.site.theme-light .utility-notify__item.is-unread {
  background: #f3e8ff;
  border-color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}
body.site.theme-light .utility-notify__item.is-unread:hover {
  background: #ede9fe;
  border-color: #a78bfa;
}
body.site.theme-light .utility-saldo__value {
  color: #2563eb;
}
body.site.theme-light .main {
  color: var(--text);
}
body.site.theme-light .site-main {
  background: #f9fafb;
}

/* Tema claro: página de códigos */
body.site.theme-light .codigos-hero {
  background: linear-gradient(120deg, #eef2ff 0%, #f8fafc 48%, #ffffff 100%);
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .codigos-hero__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.82));
}
body.site.theme-light .codigos-hero__content h1 {
  color: #0f172a;
}
body.site.theme-light .codigos-hero__content p {
  color: #475569;
}
body.site.theme-light .codigos-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .codigos-card h2 {
  color: #0f172a;
}
body.site.theme-light .codigos-card p {
  color: #64748b;
}
body.site.theme-light .codigos-card__select-label {
  color: #2563eb;
}
body.site.theme-light .codigos-card__select,
body.site.theme-light .tienda-pick__trigger {
  background-color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border-color: #cbd5e1;
  color: #111827;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .codigos-card__picked {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
body.site.theme-light .tienda-pick__menu {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
body.site.theme-light .tienda-pick__option {
  color: #374151;
}
body.site.theme-light .tienda-pick__option:hover,
body.site.theme-light .tienda-pick__option:focus {
  color: #111827;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}
body.site.theme-light .tienda-pick__option.is-selected {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}
body.site.theme-light .tienda-pick__option--extra {
  color: #2563eb;
  border-top-color: #e5e7eb;
}
body.site.theme-light .streaming-email-field__custom {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #111827;
}
body.site.theme-light .home-slider__track {
  background: linear-gradient(120deg, #eef2ff 0%, #f8fafc 45%, #ffffff 100%);
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.site.theme-light .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  border-right-color: #e5e7eb;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .sidebar__panel {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-color: #e5e7eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(59, 130, 246, 0.06);
}
body.site.theme-light .sidebar-user {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .sidebar__collapse {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .sidebar-nav__link {
  color: #374151;
}
body.site.theme-light .topbar--mobile {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .card {
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .card__ribbon {
  background: linear-gradient(105deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.site.theme-light .card__ribbon-chunk {
  color: #1e40af;
}
body.site.theme-light .footer {
  background: #ffffff;
  border-top-color: #e5e7eb;
  color: #374151;
}
body.site.theme-light .footer-hours__status {
  color: #ffffff;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}
body.site.theme-light .footer-hours__status--open {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(209, 250, 229, 0.85);
}
body.site.theme-light .footer-hours__ticker {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
body.site.theme-light .footer-hours__track span {
  color: #374151;
}
body.site.theme-light .sidebar-nav__link.is-active,
body.site.theme-light .sidebar-nav__link:hover {
  color: #111827;
}

/* Tema claro: textos legibles y superficies claras */
body.site.theme-light .alert--ok {
  color: #1e40af;
  background: rgba(219, 234, 254, 0.92);
  border-color: rgba(37, 99, 235, 0.35);
}
body.site.theme-light .alert--warn {
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
  border-color: rgba(245, 158, 11, 0.45);
}
body.site.theme-light .alert--warn a {
  color: #78350f;
}
body.site.theme-light .shop-empty-msg,
body.site.theme-light .shop-empty-brand__hint,
body.site.theme-light .purchases-empty,
body.site.theme-light .cart-empty__text,
body.site.theme-light .checkout-page__lead,
body.site.theme-light .hero p,
body.site.theme-light .purchases-hero__lead {
  color: var(--muted);
}
body.site.theme-light .card__title,
body.site.theme-light .card__price-value,
body.site.theme-light .card__desc,
body.site.theme-light .card__price-label,
body.site.theme-light .product-detail__description p,
body.site.theme-light .product-detail__list li,
body.site.theme-light .product-detail__field,
body.site.theme-light .product-detail__field-hint,
body.site.theme-light .product-detail__stream-lead,
body.site.theme-light .product-detail__price-label,
body.site.theme-light .product-detail__cart-link a,
body.site.theme-light .checkout-lines__name,
body.site.theme-light .checkout-lines__meta,
body.site.theme-light .checkout-lines__price,
body.site.theme-light .checkout-totals__row dt,
body.site.theme-light .checkout-totals__row dd,
body.site.theme-light .cart-table__product,
body.site.theme-light .purchase-card__title,
body.site.theme-light .purchase-card__row dd,
body.site.theme-light .perfil-card__name,
body.site.theme-light .perfil-card__balance,
body.site.theme-light .perfil-account-row__value,
body.site.theme-light .perfil-card__section-title--bar {
  color: var(--text);
}
body.site.theme-light .card__desc,
body.site.theme-light .card__price-label,
body.site.theme-light .product-detail__price-label,
body.site.theme-light .product-detail__qty,
body.site.theme-light .purchase-card__row dt,
body.site.theme-light .perfil-account-row__label,
body.site.theme-light .perfil-card__mail,
body.site.theme-light .perfil-card__tiny,
body.site.theme-light .cart-table th {
  color: var(--muted);
}
body.site.theme-light .product-detail__description {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
body.site.theme-light .product-detail__pill {
  color: #1e40af;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.28);
}
body.site.theme-light .product-detail__pill--stock-ok,
body.site.theme-light .product-detail__pill--stock-out {
  color: #fff;
  border: none;
}
body.site.theme-light .product-detail__figure {
  background: #f3f4f6;
  border-color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .product-detail__stream-alert {
  color: #1e3a8a;
  background: linear-gradient(125deg, #dbeafe 0%, #eff6ff 100%);
  border-color: rgba(37, 99, 235, 0.28);
}
body.site.theme-light .product-detail__stream-server {
  color: #065f46;
  background: rgba(209, 250, 229, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
}
body.site.theme-light .purchase-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .purchase-card__row {
  border-top-color: #e5e7eb;
}
body.site.theme-light .purchase-card__code {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: var(--text);
}
body.site.theme-light .cart-empty {
  background: #ffffff;
  border-color: #e5e7eb;
}
body.site.theme-light .checkout-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .checkout-lines__item {
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .perfil-card--account-details {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .perfil-card__section-title--bar {
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .perfil-account-row {
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .perfil-account-row__icon-wrap {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: var(--text);
}
body.site.theme-light .combo-buybar {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
body.site.theme-light .combo-buybar__count,
body.site.theme-light .combo-buybar__total {
  color: var(--text);
}
body.site.theme-light .filter-bar__select {
  background: #ffffff;
  border-color: #e5e7eb;
  color: var(--text);
}
body.site.theme-light .purchases-pill {
  background: #ffffff;
  border-color: #e5e7eb;
  color: var(--muted);
}
body.site.theme-light .purchases-pill:hover,
body.site.theme-light .purchases-pill--active {
  color: var(--text);
}
body.site.theme-light .purchases-toolbar__input,
body.site.theme-light .purchases-toolbar__select {
  background: #ffffff;
  border-color: #e5e7eb;
  color: var(--text);
}
body.site.theme-light .cart-panel {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.site.theme-light .cart-stream-form__field,
body.site.theme-light .cart-stream-form__server,
body.site.theme-light .cart-stream-form__alert {
  color: var(--text);
}
body.site.theme-light .cart-stream-form__alert {
  color: #1e3a8a;
  background: linear-gradient(125deg, #dbeafe 0%, #eff6ff 100%);
  border-color: rgba(37, 99, 235, 0.28);
}
body.site.theme-light .cart-stream-form__server {
  color: #065f46;
  background: rgba(209, 250, 229, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
}
body.site.theme-light .cart-stream-form__field select,
body.site.theme-light .cart-stream-form__field input[type='email'],
body.site.theme-light .cart-stream-form__field input[type='text'],
body.site.theme-light .cart-stream-form__field input[type='password'],
body.site.theme-light .product-detail__field select,
body.site.theme-light .product-detail__field input[type='email'],
body.site.theme-light .product-detail__field input[type='text'],
body.site.theme-light .product-detail__field input[type='password'] {
  background: #ffffff;
  border-color: #d1d5db;
  color: var(--text);
}
body.site.theme-light .purchase-card__timeline-date,
body.site.theme-light .purchase-card__timeline-date strong {
  color: var(--text);
}
body.site.theme-light .purchase-card__bar {
  background: #e5e7eb;
  border-color: #d1d5db;
}
body.site.theme-light .home-screen-heading__tail {
  color: var(--heading);
}

/* Marca debajo del slider de inicio / video y encima de la rejilla de productos */
.shop-section-brand {
  margin: 0.85rem auto 1rem;
  max-width: var(--max);
  width: 100%;
  padding-top: 0.35rem;
  position: relative;
  z-index: 50;
}
.shop-section-brand__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.shop-section-brand__identity {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.shop-section-brand .logo-pulse {
  --logo-pulse-size: 40px;
}

.shop-section-brand__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.shop-section-brand__mark {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: radial-gradient(circle at 30% 20%, #60a5fa 0%, #3b82f6 45%, #2563eb 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 6px 14px rgba(0, 0, 0, 0.4);
}
.shop-section-brand__name {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.currency-switcher {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
}

.currency-switcher[open] .currency-switcher__trigger {
  border-color: rgba(29, 78, 216, 0.7);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.currency-switcher__trigger {
  list-style: none;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(241, 245, 249, 0.65);
  cursor: pointer;
}

.currency-switcher__trigger::-webkit-details-marker {
  display: none;
}

.currency-switcher__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.28rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px rgba(226, 232, 240, 0.45);
  z-index: 140;
}

.currency-switcher__item {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.currency-switcher__item:hover {
  background: rgba(29, 78, 216, 0.18);
}

.currency-switcher__item.is-active {
  border-color: rgba(251, 191, 36, 0.85);
}

.currency-switcher__flag-img {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

.shop-empty-msg {
  margin: 1.1rem auto 0;
  max-width: var(--max);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.home-slider {
  margin-top: 0.3rem;
}

.home-slider__track {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  width: 100%;
  min-height: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  background: linear-gradient(120deg, rgba(8, 12, 20, 0.95) 0%, rgba(6, 10, 20, 0.98) 45%, rgba(3, 5, 12, 1) 100%);
  box-shadow: var(--shadow);
}

.home-slider__item--placeholder {
  min-height: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  pointer-events: none;
}

.home-slider__item--slide {
  display: block;
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 50%;
  margin: 0;
  width: 78%;
  height: auto;
  min-height: 0;
  opacity: 0;
  z-index: 0;
  transform: translateX(-50%) scale(0.9);
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.home-slider__item--slide.is-active {
  opacity: 1;
  z-index: 3;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.home-slider__item--slide.is-prev {
  opacity: 0.6;
  z-index: 2;
  transform: translateX(-122%) scale(0.9);
}

.home-slider__item--slide.is-next {
  opacity: 0.6;
  z-index: 2;
  transform: translateX(22%) scale(0.9);
}

/* Un solo banner: ocupa todo el ancho/alto del slider */
.home-slider[data-home-slider="0"] .home-slider__item--slide,
.home-slider[data-home-slider="0"] .home-slider__item--slide.is-active {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  opacity: 1;
}

.home-slider__link {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
}

.home-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.home-slider[data-home-slider="1"] .home-slider__item--slide.is-active .home-slider__link {
  border-radius: 12px;
  overflow: hidden;
}

.home-slider[data-home-slider="1"] .home-slider__item--slide.is-active .home-slider__img {
  border-radius: 12px;
}

.home-slider__item {
  display: grid;
  min-height: inherit;
  align-items: end;
}

.home-slider__item.home-slider__item--slide {
  display: block;
}

.home-slider--combo-video .home-slider__video-frame {
  position: absolute;
  inset: 0;
  background: var(--surface);
  overflow: hidden;
  border-radius: 14px;
}

.home-slider--combo-video .combo-video-mobile-poster {
  display: none;
}

.home-slider--combo-video .combo-video-mobile-youtube-link {
  display: none;
}

.home-slider--combo-video .home-slider__video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.home-slider--combo-video .home-slider__track {
  min-height: clamp(230px, 34vw, 380px);
  height: clamp(230px, 34vw, 380px);
}

.home-slider--combo-video .home-slider__item--slide {
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: none;
  z-index: 2;
  pointer-events: auto;
}

@supports (container-type: size) {
  .home-slider--combo-video .home-slider__video-frame {
    container-type: size;
    container-name: combo-vid;
  }

  .home-slider--combo-video .home-slider__video-frame iframe {
    top: 50%;
    left: 50%;
    width: unset;
    height: unset;
    translate: -50% -50%;
    aspect-ratio: 16 / 9;
  }

  /* Más ancho que 16:9: llena el ancho (recorta arriba/abajo del reproductor) */
  @container combo-vid (min-aspect-ratio: 16 / 9) {
    .home-slider--combo-video .home-slider__video-frame iframe {
      width: 100%;
      height: auto;
      min-height: 100%;
      max-width: none;
    }
  }

  /* Más estrecho que 16:9: llena la altura (recorta laterales) */
  @container combo-vid (max-aspect-ratio: 16 / 9) {
    .home-slider--combo-video .home-slider__video-frame iframe {
      height: 100%;
      width: auto;
      min-width: 100%;
      max-height: none;
    }
  }
}

/*
 * Móvil (YouTube): sin carátula — el iframe debe verse para que autoplay en silencio sea posible.
 * PC sigue igual (carátula oculta por defecto).
 */
@media (max-width: 760px) {
  .home-slider--combo-video .home-slider__track {
    min-height: clamp(200px, 56vw, 360px);
    height: clamp(200px, 56vw, 360px);
  }

  .home-slider--combo-video-mobile-poster .combo-video-mobile-poster,
  .home-slider--combo-video-mobile-poster .combo-video-mobile-youtube-link {
    display: none !important;
  }

  .home-slider--combo-video-mobile-poster .home-slider__video-frame iframe.combo-video-iframe {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    translate: none !important;
    transform: none !important;
    aspect-ratio: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 2;
    pointer-events: auto;
    opacity: 1;
  }
}

.home-slider__track--admin-preview {
  position: relative;
  max-width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.home-slider__video-frame--preview {
  position: absolute;
  inset: 0;
  background: #000;
}

.home-slider__video-frame--preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports (container-type: size) {
  .home-slider__track--admin-preview {
    container-type: size;
    container-name: combo-vid-admin;
  }

  .home-slider__video-frame--preview iframe {
    top: 50%;
    left: 50%;
    width: unset;
    height: unset;
    translate: -50% -50%;
    aspect-ratio: 16 / 9;
  }

  @container combo-vid-admin (min-aspect-ratio: 16 / 9) {
    .home-slider__video-frame--preview iframe {
      width: 100%;
      height: auto;
      min-height: 100%;
      max-width: none;
    }
  }

  @container combo-vid-admin (max-aspect-ratio: 16 / 9) {
    .home-slider__video-frame--preview iframe {
      height: 100%;
      width: auto;
      min-width: 100%;
      max-height: none;
    }
  }
}

.home-slider__content {
  padding: clamp(1rem, 2vw, 1.65rem);
  max-width: 36rem;
}

.home-slider__kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
}

.home-slider__content h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  line-height: 1.15;
}

.home-slider__content p {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
}

.filter-bar {
  margin-top: 1.25rem;
}
.filter-bar__select {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 14rem;
  cursor: pointer;
}
.filter-bar__select:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/** Listados de tienda: móvil 2 · tablet 3 · PC 5 columnas; el resto de filas siguen hacia abajo */
.grid.grid--products {
  gap: 0.85rem;
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .grid.grid--products {
    gap: 1rem;
    padding-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid.grid--products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
}

.card--product {
  position: relative;
  overflow: visible;
}

.card--product > .card__stock {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 12;
}

.card--product .card__img--empty {
  min-height: 5.5rem;
}

.card--product.card--product--unavailable:not(.card--product--whatsapp) {
  opacity: 0.62;
}

.card--product.card--product--unavailable:not(.card--product--whatsapp) .card__link {
  pointer-events: none;
  cursor: not-allowed;
}

.card--product.card--product--unavailable:hover {
  transform: none;
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: var(--shadow);
}

.card--product .card__img,
.card--product .card__img--empty {
  border-radius: var(--radius) var(--radius) 0 0;
}

.card--product:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow), 0 0 28px rgba(59, 130, 246, 0.12);
}

.card:not(.card--product):hover {
  border-color: rgba(59, 130, 246, 0.22);
}

.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card__link:hover {
  text-decoration: none;
}

.card__media {
  position: relative;
  background: var(--surface2);
}

/* Evita que el fondo rectangular de media se cuele tras esquinas redondeadas del arte */
.card--product .card__media {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card__img {
  aspect-ratio: auto;
  background: var(--surface2);
  display: block;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: auto;
}

.card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.card__stock {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  white-space: nowrap;
}

.card__stock--ok {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.card__stock--out {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

body.site.theme-light .card__stock {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.card__body {
  padding: 1rem 1.05rem 1.1rem;
}

.card--product .card__body {
  font-family: var(--font-poppins);
  text-align: center;
  padding: 0.5rem 0.55rem 0.6rem;
}

.card--product .card__desc {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.card--product .card__ribbon {
  margin: 0 0 0.45rem;
}

.card--product .card__ribbon-viewport {
  height: 1.25rem;
}

.card--product .card__ribbon-chunk {
  padding: 0 0.6rem;
  font-size: 0.68rem;
}

.card__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.card--product .card__title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card__desc {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card--product .card__desc {
  text-align: center;
  -webkit-line-clamp: 3;
}

.card__ribbon {
  margin: 0 0 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(105deg, rgba(6, 14, 28, 0.92) 0%, rgba(3, 5, 12, 1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card__ribbon-viewport {
  overflow: hidden;
  width: 100%;
  height: 1.55rem;
  display: flex;
  align-items: center;
}

.card__ribbon-track {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: card-ribbon-marquee 18s linear infinite;
  will-change: transform;
}

.card__ribbon-chunk {
  flex-shrink: 0;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.45;
}

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

@keyframes card-ribbon-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__ribbon-track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    transform: none;
    white-space: normal;
  }

  .card__ribbon-chunk:nth-child(2) {
    display: none;
  }

  .card__ribbon-viewport {
    height: auto;
    min-height: 1.45rem;
    padding: 0.2rem 0;
  }
}

.card__price-block {
  margin-bottom: 0.85rem;
}

.card__price-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.card--product .card__price-label {
  text-align: center;
}

.card__price-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card--product .card__price-value {
  display: block;
  text-align: center;
  font-size: 1.05rem;
}

.card--product .card__price-block {
  margin-bottom: 0.5rem;
}

.card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  text-transform: none;
}

a.card__cta--link {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

a.card__cta--link:hover {
  text-decoration: none;
  color: inherit;
}
.card__cta--ok {
  background: linear-gradient(135deg, var(--btn-lilac) 0%, #93c5fd 48%, var(--btn-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.card__cta-ico {
  flex-shrink: 0;
  opacity: 0.95;
}
.card__cta--out {
  background: #27272f;
  color: var(--muted);
  cursor: default;
}

.card__cta--wa {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.card--product .card__cta {
  padding: 0.42rem 0.55rem;
  font-size: 0.76rem;
  gap: 0.35rem;
}

.card--product .card__cta-ico {
  width: 15px;
  height: 15px;
}

/** Tarjetas WhatsApp: imagen y precio → ficha; solo el botón abre WA */
.card__wa-split {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card__wa-split__tap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card__wa-split__tap:hover {
  text-decoration: none;
  color: inherit;
}

.card--product .card__body.card__wa-split__tap-body {
  padding-bottom: 0.35rem;
}

.card__wa-split__footer {
  padding: 0 0.55rem 0.6rem;
  flex-shrink: 0;
}

.card__price {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: filter 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.btn--primary {
  background: linear-gradient(135deg, var(--btn-lilac) 0%, #93c5fd 48%, var(--btn-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(59, 130, 246, 0.35);
}
.btn--ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.btn--danger {
  background: var(--danger);
  color: #1a0505;
}

.form {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form input,
.form textarea,
.form select {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form textarea {
  min-height: 100px;
  resize: vertical;
}

.form label.field-split {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  font-size: inherit;
  color: inherit;
  max-width: none;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface2);
  margin-top: 1rem;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--surface2);
}
table.data th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}
table.data tr:last-child td {
  border-bottom: none;
}

.topup-ranking {
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.12), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.08), transparent 45%),
    var(--bg-main);
  padding: 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(59, 130, 246, 0.06);
}

.topup-ranking__head {
  text-align: center;
  margin-bottom: 0.85rem;
}

.topup-ranking__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topup-ranking__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.topup-ranking__list {
  display: grid;
  gap: 0.65rem;
}

.topup-ranking__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(95deg, rgba(8, 12, 20, 0.92), rgba(12, 16, 28, 0.96));
}

.topup-ranking__item.is-gold {
  border-color: rgba(234, 179, 8, 0.65);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.2), inset 0 0 26px rgba(234, 179, 8, 0.07);
}

.topup-ranking__item.is-silver {
  border-color: rgba(148, 163, 184, 0.55);
}

.topup-ranking__item.is-bronze {
  border-color: rgba(217, 119, 6, 0.55);
}

.topup-ranking__badge {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.topup-ranking__item.is-gold .topup-ranking__badge {
  background: linear-gradient(135deg, #fde047, #eab308);
  color: #111827;
  border-color: rgba(245, 158, 11, 0.85);
}

.topup-ranking__item.is-silver .topup-ranking__badge {
  background: linear-gradient(135deg, #e5e7eb, #94a3b8);
  color: #0f172a;
}

.topup-ranking__item.is-bronze .topup-ranking__badge {
  background: linear-gradient(135deg, #fdba74, #c2410c);
  color: #1c1917;
}

.topup-ranking__content {
  flex: 1;
  min-width: 0;
}

.topup-ranking__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.topup-ranking__seller {
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topup-ranking__period {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topup-ranking__meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topup-ranking__pill {
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.16rem 0.52rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: var(--text);
}

.topup-ranking__note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.category-section-form__select {
  min-width: 130px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #0b0b13;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.2;
}

.category-section-form__select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}

.category-section-form__btn {
  padding: 0.36rem 0.7rem;
  font-size: 0.82rem;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.category-section-form__btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.categories-admin {
  max-width: 1040px;
  margin: 0 auto;
}

.categories-admin__title {
  text-align: center;
  margin-bottom: 1rem;
}

.categories-admin__create {
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.9rem;
}

.categories-admin__field {
  min-width: 180px;
}

.categories-admin__field--name {
  flex: 1;
  min-width: 230px;
}

.categories-admin__delete {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.categories-admin__table-wrap {
  margin-top: 1.3rem;
}

.categories-admin__inline-form {
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin: 0;
}

.categories-admin__inline-form--section {
  flex-wrap: wrap;
}

.categories-admin table.data td {
  vertical-align: middle;
}

.categories-admin__name-input {
  min-width: 10.5rem;
  width: 100%;
  max-width: 17rem;
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #0b0b13;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.categories-admin__name-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.categories-admin__btn {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.categories-admin__btn:hover {
  transform: translateY(-1px);
}

.categories-admin__btn--add {
  min-width: 120px;
}

.categories-admin__btn--danger {
  background: linear-gradient(90deg, #f97316 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
}

.categories-admin__btn--danger:hover {
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.33);
}

.categories-admin__btn--save {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.28) 0%, rgba(29, 78, 216, 0.28) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #f8fafc;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  min-width: 5.6rem;
}

@media (max-width: 760px) {
  .categories-admin__inline-form {
    flex-wrap: wrap;
  }

  .categories-admin__name-input {
    width: 100%;
  }
}

.cupones-form-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  grid-template-areas:
    "code product percent uses"
    "expires expires submit submit";
  gap: 0.8rem;
  align-items: end;
}

.cupones-form-grid__code { grid-area: code; }
.cupones-form-grid__product { grid-area: product; }
.cupones-form-grid__percent { grid-area: percent; }
.cupones-form-grid__uses { grid-area: uses; }
.cupones-form-grid__expires { grid-area: expires; }
.cupones-form-grid__submit { grid-area: submit; min-height: 42px; }

.cupones-form-grid__expires-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}
.cupones-form-grid__expires-date,
.cupones-form-grid__expires-time {
  flex: 1 1 140px;
  min-width: 0;
}
/* Iconos nativos de fecha/hora visibles en tema oscuro (Chromium) */
.cupones-form-grid__expires-date::-webkit-calendar-picker-indicator,
.cupones-form-grid__expires-time::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  filter: invert(1);
}
.cupones-form-grid__expires-date:focus::-webkit-calendar-picker-indicator,
.cupones-form-grid__expires-time:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

@media (max-width: 1024px) {
  .cupones-form-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    grid-template-areas:
      "code product"
      "percent uses"
      "expires submit";
  }
}

@media (max-width: 640px) {
  .cupones-form-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "code"
      "product"
      "percent"
      "uses"
      "expires"
      "submit";
  }
}

.admin-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 200px 1fr;
  }
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid transparent;
}
.admin-nav a:hover {
  border-color: var(--neon-purple);
  text-decoration: none;
}

.row-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.orders-toolbar--actions {
  margin: 0 0 0.7rem;
}

.orders-toolbar__search {
  min-width: min(100%, 23rem);
  width: min(100%, 26rem);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.95));
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.orders-toolbar__search::placeholder {
  color: #ffffff;
}

.orders-toolbar__search:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(29, 78, 216, 0.12);
}

.orders-toolbar__search-btn,
.orders-toolbar__clear-btn,
.orders-toolbar__delete-btn {
  min-height: 2.65rem;
  padding-inline: 1.1rem;
}

.license-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.license-state--available {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.license-state--sold {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.4);
}

.orders-toolbar__search-btn,
.orders-toolbar__clear-btn {
  border-color: rgba(255, 255, 255, 0.12);
}

body.site--admin .orders-toolbar__search {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: none;
}

body.site--admin .orders-toolbar__search::placeholder {
  color: var(--muted);
}

body.site--admin .orders-toolbar__search:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

@media (max-width: 560px) {
  .orders-toolbar__search {
    width: 100%;
    min-width: 0;
  }
}

.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface2);
}

.profile-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  border: 3px solid rgba(59, 130, 246, 0.25);
}

.perfil-settings-title {
  margin-bottom: 1rem;
}

.perfil-settings-grid {
  display: grid;
  gap: 1rem;
}

.perfil-settings-col {
  display: grid;
  gap: 1rem;
  align-content: start;
  grid-auto-rows: max-content;
}

.perfil-card {
  padding: 1rem;
}

.perfil-card--identity {
  padding: 1.1rem;
}

.perfil-card__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.perfil-card__name {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.perfil-card__mail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.perfil-card__section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.perfil-card__section-title--bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  padding: 0 0.1rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perfil-card__section-title--bar::before {
  content: "";
  width: 4px;
  height: 1.2em;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--btn-lilac), var(--btn-purple));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.perfil-card--account-details {
  padding: 1.15rem 1.05rem 1rem;
  background: linear-gradient(165deg, rgba(10, 14, 22, 0.98) 0%, rgba(6, 10, 8, 0.99) 55%, #030503 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(96, 165, 250, 0.06);
}

.perfil-account-rows {
  display: flex;
  flex-direction: column;
}

.perfil-account-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.perfil-account-row:last-child {
  border-bottom: none;
  padding-bottom: 0.45rem;
}

.perfil-account-row__icon-wrap {
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.perfil-account-row__icon-wrap .nav-ico {
  width: 18px;
  height: 18px;
}

.perfil-account-row__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.perfil-account-row__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.perfil-account-row__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.perfil-account-row__value--ok {
  color: var(--text);
}

.perfil-edit-form {
  max-width: 100%;
}

.perfil-card__tiny {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.perfil-card--wallet {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.perfil-card__balance {
  margin: 0.1rem 0 0.75rem;
  font-size: clamp(2.35rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  text-align: center;
}

.perfil-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.1rem;
  width: 100%;
}

.perfil-card__actions .btn,
.perfil-card__mp-btn,
.perfil-card__quick-links .btn {
  justify-content: center;
}

.perfil-card__actions .btn {
  min-height: 3.25rem;
  font-size: 1.02rem;
}

.perfil-card__mp-btn {
  margin-top: 0.2rem;
  min-height: 3.25rem;
  width: 100%;
  font-size: 1.02rem;
}

.perfil-card__quick-links {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 960px) {
  .perfil-settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .perfil-card__actions {
    grid-template-columns: 1fr;
  }
}

.wallet-balance {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--neon-purple), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0 1rem;
}

.billetera-page {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}
.billetera-page__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-align: center;
}
.billetera-page__balance {
  text-align: center;
}
.billetera-page__lead {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  max-width: 42rem;
  text-align: center;
}
.billetera-page__mov-title {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  text-align: center;
}
.billetera-page__empty {
  color: var(--muted);
  text-align: center;
}
.billetera-recharge {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.billetera-recharge__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
  width: 100%;
}
.billetera-recharge__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.billetera-recharge__tab:hover {
  text-decoration: none;
  border-color: rgba(96, 165, 250, 0.55);
}
.billetera-recharge__tab.is-active {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  color: #0f172a;
  border-color: transparent;
  box-shadow: var(--glow-purple);
}
.billetera-recharge__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: 56rem;
}
@media (max-width: 860px) {
  .billetera-recharge__grid {
    grid-template-columns: 1fr;
  }
}
.billetera-recharge__panel {
  padding: 1.25rem 1.15rem 1.15rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.billetera-recharge__panel--report {
  border-color: rgba(59, 130, 246, 0.28);
}
.billetera-recharge__panel--solo {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}
.billetera-recharge__panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.billetera-recharge__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.billetera-recharge__panel-lead {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.billetera-recharge__method {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.12);
  margin-bottom: 0.85rem;
}
.billetera-recharge__method-icon {
  display: inline-flex;
  color: var(--accent);
}
.billetera-recharge__key-label {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.billetera-recharge__key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.billetera-recharge__key {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.28);
  font-size: 1rem;
  color: var(--text);
}
.billetera-recharge__key-icon {
  margin-right: 0.35rem;
}
.billetera-recharge__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 2px dashed rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.65rem;
}
.billetera-recharge__qr {
  width: min(100%, 220px);
  height: auto;
  border-radius: 10px;
  display: block;
}
.billetera-recharge__qr-caption {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.billetera-recharge__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.billetera-recharge__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
}
.billetera-field {
  margin-bottom: 0.85rem;
}
.billetera-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.billetera-field__optional {
  font-weight: 500;
  color: var(--muted);
}
.billetera-field__control {
  position: relative;
  display: flex;
  align-items: stretch;
}
.billetera-field__control--money .billetera-field__input {
  padding-left: 2rem;
}
.billetera-field__prefix {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.billetera-field__input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.billetera-field__input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}
.billetera-field__input:hover {
  border-color: rgba(96, 165, 250, 0.45);
}
.billetera-field__input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
  background: rgba(15, 23, 42, 0.65);
}
.billetera-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1rem 0.85rem;
  border-radius: 14px;
  border: 2px dashed rgba(96, 165, 250, 0.4);
  background: rgba(59, 130, 246, 0.06);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.billetera-upload:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(59, 130, 246, 0.1);
}
.billetera-upload:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.billetera-upload.is-filled {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}
.billetera-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.billetera-upload__icon {
  display: inline-flex;
  color: #60a5fa;
}
.billetera-upload.is-filled .billetera-upload__icon {
  color: #22c55e;
}
.billetera-upload__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  max-width: 100%;
}
.billetera-upload__hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.billetera-recharge__submit {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.billetera-recharge__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}
.billetera-recharge__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.billetera-recharge__pending {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.billetera-recharge__pending-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.billetera-recharge__pending ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
}
.billetera-recharge__empty-state {
  padding: 1rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
  text-align: center;
}
.billetera-recharge__empty-state p {
  margin: 0 0 0.65rem;
  color: var(--text);
  line-height: 1.45;
}
.billetera-recharge__empty-state p:last-child {
  margin-bottom: 0;
}
.billetera-recharge__panel--disabled {
  opacity: 0.72;
}
body.site.theme-light .billetera-recharge__empty-state {
  background: #f9fafb;
  border-color: #cbd5e1;
}
.utility-notify__item.is-unread {
  border-left: 4px solid #a78bfa;
  padding-left: calc(0.7rem - 1px);
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
}
.utility-notify__item.is-unread:hover {
  background: rgba(139, 92, 246, 0.24);
  border-color: rgba(167, 139, 250, 0.55);
}
.recarga-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 14rem;
}
.recarga-admin-actions__note {
  flex: 1 1 100%;
  min-width: 10rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.82rem;
}

/* Admin: recargas QR (recargas.php) */
.recarga-admin-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem) 2rem;
}
.recarga-admin-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.recarga-admin-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}
.recarga-admin-page__title {
  margin: 0;
  font-family: var(--font-poppins);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--heading, #fff);
}
.recarga-admin-page__lead {
  margin: 0.5rem 0 0;
  max-width: 34rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.recarga-admin-page__config-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.recarga-admin-page__alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.recarga-admin-page__alert a {
  font-weight: 700;
}
.recarga-admin-page__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 760px) {
  .recarga-admin-page__stats {
    grid-template-columns: 1fr;
  }
}
.recarga-stat {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.recarga-stat--pending {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.recarga-stat--done {
  border-color: rgba(34, 197, 94, 0.3);
}
.recarga-stat--qr.is-ok {
  border-color: rgba(59, 130, 246, 0.35);
}
.recarga-stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.recarga-stat__value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--heading, #fff);
}
.recarga-stat__meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.recarga-admin-section {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.recarga-admin-section--muted {
  background: rgba(255, 255, 255, 0.015);
}
.recarga-admin-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.recarga-admin-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading, #fff);
}
.recarga-admin-section__desc {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.recarga-admin-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
}
.recarga-admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.02);
}
.recarga-admin-empty--compact {
  padding: 1.25rem 1rem;
}
.recarga-admin-empty__icon {
  display: inline-flex;
  color: #22c55e;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}
.recarga-admin-empty__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.recarga-admin-empty__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.recarga-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recarga-request-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}
.recarga-request-card__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.recarga-request-card__user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.recarga-request-card__user strong {
  font-size: 0.95rem;
  color: var(--text);
}
.recarga-request-card__user span {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}
.recarga-request-card__amount {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: -0.01em;
}
.recarga-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}
.recarga-request-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}
.recarga-request-card__chip-label {
  color: var(--muted);
  font-weight: 600;
}
.recarga-request-card__chip code {
  font-size: 0.82rem;
  color: var(--text);
}
.recarga-request-card__proof {
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
}
.recarga-request-card__proof:hover {
  text-decoration: underline;
}
.recarga-request-card__proof--none {
  color: var(--muted);
  font-weight: 500;
}
.recarga-request-card__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.recarga-request-card__note {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 0.86rem;
}
.recarga-request-card__note:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.recarga-request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.recarga-admin-table-wrap {
  margin-top: 0;
  border-color: rgba(148, 163, 184, 0.18);
}
.recarga-admin-table__ref {
  font-size: 0.84rem;
}
body.site.theme-light .recarga-admin-page__head {
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .recarga-admin-page__title {
  color: #111827;
}
body.site.theme-light .recarga-stat {
  background: #fff;
  border-color: #e5e7eb;
}
body.site.theme-light .recarga-stat__value {
  color: #111827;
}
body.site.theme-light .recarga-admin-section {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .recarga-admin-section--muted {
  background: #f9fafb;
}
body.site.theme-light .recarga-admin-empty {
  background: #f9fafb;
  border-color: #d1d5db;
}
body.site.theme-light .recarga-request-card {
  background: #f8fafc;
  border-color: #e5e7eb;
}
body.site.theme-light .recarga-request-card__note {
  background: #fff;
  border-color: #d1d5db;
  color: #111827;
}
body.site.theme-light .recarga-request-card__chip {
  background: #f3f4f6;
}

.admin-actions-menu {
  position: relative;
  display: inline-block;
}
.admin-actions-menu__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-actions-menu__trigger::-webkit-details-marker {
  display: none;
}
.admin-actions-menu__trigger:hover,
.admin-actions-menu[open] .admin-actions-menu__trigger {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(59, 130, 246, 0.12);
}
.admin-actions-menu__panel {
  position: fixed;
  z-index: 9999;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--surface2, #1e293b);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  margin: 0;
}
.admin-actions-menu__item {
  display: block;
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.admin-actions-menu__item:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
}
.admin-actions-menu__item--primary {
  color: #93c5fd;
}
.admin-actions-menu__item--danger {
  color: #fca5a5;
}
.admin-actions-menu__divider {
  display: block;
  height: 1px;
  margin: 0.25rem 0.15rem;
  background: rgba(148, 163, 184, 0.22);
}
body.site.theme-light .admin-actions-menu__trigger {
  background: #fff;
  border-color: #d1d5db;
  color: #111827;
}
body.site.theme-light .admin-actions-menu__trigger:hover,
body.site.theme-light .admin-actions-menu[open] .admin-actions-menu__trigger {
  background: #eff6ff;
  border-color: #93c5fd;
}
body.site.theme-light .admin-actions-menu__panel {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
body.site.theme-light .admin-actions-menu__item:hover {
  background: #f3f4f6;
}
body.site.theme-light .admin-actions-menu__item--primary {
  color: #2563eb;
}
body.site.theme-light .admin-actions-menu__item--danger {
  color: #dc2626;
}
body.site.theme-light .admin-actions-menu__divider {
  background: #e5e7eb;
}
body.site.theme-light .billetera-recharge__panel {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
body.site.theme-light .billetera-recharge__panel--report {
  border-color: #dbeafe;
}
body.site.theme-light .billetera-recharge__tab {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}
body.site.theme-light .billetera-recharge__key {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}
body.site.theme-light .billetera-recharge__qr-wrap {
  background: #f9fafb;
  border-color: #cbd5e1;
}
body.site.theme-light .billetera-recharge__pending {
  border-top-color: #e5e7eb;
}
body.site.theme-light .billetera-field__input {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
body.site.theme-light .billetera-field__input::placeholder {
  color: #9ca3af;
}
body.site.theme-light .billetera-field__input:focus {
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
body.site.theme-light .billetera-upload {
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.site.theme-light .billetera-upload:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}
body.site.theme-light .billetera-upload.is-filled {
  background: #f0fdf4;
  border-color: #86efac;
}
body.site.theme-light .billetera-recharge__submit {
  color: #fff !important;
}

.product-detail {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.product-detail--fit {
  width: min(100%, 1080px);
  min-height: calc(100vh - 170px);
}

.product-detail__back {
  margin: 0 0 0.75rem;
  text-align: left;
}

.product-detail__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}

.product-detail__meta {
  margin: 0.6rem 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.product-detail__pill {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(29, 78, 216, 0.12);
}

.product-detail__pill--cat {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.32);
}

.product-detail__pill--stock {
  font-weight: 800;
  color: #fff;
  border: none;
}

.product-detail__pill--stock-ok {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.product-detail__pill--stock-out {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.product-detail__gallery {
  display: grid;
  gap: 0.75rem;
  height: 100%;
}

.product-detail__figure {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: min(420px, 52vh);
  aspect-ratio: auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 34px rgba(59, 130, 246, 0.18);
  animation: productFloat 2.8s ease-in-out infinite;
  will-change: transform;
}

.product-detail__figure .product-detail__image {
  width: 100%;
  height: 100%;
  min-height: min(420px, 52vh);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  animation: none;
}

.product-detail__empty {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: min(420px, 52vh);
  aspect-ratio: auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  animation: productFloat 2.8s ease-in-out infinite;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(29, 78, 216, 0.12);
  will-change: transform;
}

.product-detail__price {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.product-detail__price-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

.product-detail__description {
  width: 100%;
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(20, 20, 26, 0.8);
  border-radius: var(--radius-sm);
}

.product-detail__description h2 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-detail__description p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.45;
  max-height: 10.5rem;
  overflow: auto;
}

.product-detail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.product-detail__list li {
  position: relative;
  padding-left: 0;
  color: var(--text);
  line-height: 1.35;
}

.product-detail__list li::before {
  content: none;
}

.product-detail__form {
  margin-top: 0.8rem;
  justify-content: center;
  gap: 0.6rem;
}

.product-detail__cart-link {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.product-detail__cart-link a {
  color: var(--text);
  text-decoration: none;
}

.product-detail__cart-link a:hover {
  text-decoration: underline;
}

.product-detail__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.product-detail__qty input {
  width: 4.6rem;
  padding: 0.42rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
}

.product-detail__form .btn {
  min-width: 13.5rem;
  justify-content: center;
}

@keyframes productFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.01);
  }
  50% {
    transform: translateY(-16px) scale(1.015);
  }
  75% {
    transform: translateY(-8px) scale(1.008);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 0.4rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.product-detail__left {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-detail__left,
.product-detail__right {
  min-width: 0;
}

.product-detail__right {
  text-align: center;
}

.product-detail__buybox {
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(20, 20, 26, 0.8);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 1rem;
}

/* DePelicula (streaming) — ficha producto */
.product-detail--depelicula .product-detail__right--streaming {
  text-align: left;
}

.product-detail__buybox--streaming {
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: rgba(20, 20, 26, 0.92);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-detail__price-suffix {
  opacity: 0.88;
  font-weight: 500;
  font-size: 0.88em;
}

.product-detail__stream-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--muted);
}

.product-detail__stream-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.48;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.42) 0%, rgba(30, 22, 28, 0.72) 100%);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.12);
}

.product-detail__stream-server {
  margin: 0 0 1rem;
  padding: 0.68rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 11px;
  border: 1px solid rgba(59, 130, 246, 0.32);
  background: rgba(20, 83, 45, 0.14);
  color: var(--text);
}

.product-detail__field {
  display: block;
  margin-bottom: 0.88rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.product-detail__field select,
.product-detail__field input[type='email'],
.product-detail__field input[type='text'],
.product-detail__field input[type='password'] {
  display: block;
  margin-top: 0.4rem;
  width: 100%;
  max-width: 100%;
  padding: 0.62rem 0.88rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(6, 8, 14, 0.9);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.product-detail__field select:focus,
.product-detail__field input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.58);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.product-detail__field-hint {
  margin: -0.2rem 0 0.95rem;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--muted);
  font-weight: 400;
}

.product-detail__form--streaming .product-detail__qty--accounts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.product-detail__form--streaming .product-detail__qty--accounts input {
  width: 5.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(6, 8, 14, 0.9);
  color: var(--text);
}

.product-detail__submit-wrap {
  margin-top: 1.05rem;
}

.btn--depelicula-cart {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.88rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 12px;
  background: linear-gradient(98deg, #b91c1b 0%, #3b82f6 42%, #2563eb 100%);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(29, 78, 216, 0.28),
    0 4px 14px rgba(29, 78, 216, 0.22);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

.btn--depelicula-cart:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    0 16px 42px rgba(29, 78, 216, 0.34),
    0 6px 18px rgba(29, 78, 216, 0.28);
}

.btn--depelicula-cart:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.15);
}

.product-detail__empty--stream {
  border: 1px dashed rgba(59, 130, 246, 0.3);
  background: linear-gradient(165deg, rgba(10,16,12,0.96) 0%, #030503 100%);
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-detail--depelicula .product-detail__layout {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(10, 10, 10, 0.95);
}

.product-detail--depelicula .product-detail__description {
  margin-top: 1.1rem;
  border-color: rgba(59, 130, 246, 0.22);
  text-align: left;
}

.product-detail--depelicula .product-detail__description h2 {
  text-align: center;
}

.product-detail--depelicula .product-detail__list {
  justify-items: start;
  text-align: left;
}

.product-detail__wa-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-detail__btn--wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  background: #25d366;
  border-color: #128c4e;
  color: #fff;
}

.product-detail__btn--wa:hover {
  filter: brightness(1.06);
}

@media (max-width: 980px) {
  .product-detail--fit {
    min-height: 0;
  }

  .product-detail__layout {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 1rem;
  }

  .product-detail__figure,
  .product-detail__figure .product-detail__image,
  .product-detail__empty {
    min-height: min(320px, 58vw);
  }

  .product-detail__meta,
  .product-detail__form {
    justify-content: center;
  }

  .product-detail__right {
    text-align: center;
  }

  .product-detail--depelicula .product-detail__right--streaming,
  .product-detail--depelicula .product-detail__form--streaming {
    text-align: left;
  }

  .product-detail--depelicula .product-detail__meta {
    justify-content: flex-start;
  }
}

/* Modal de licencias (pedido_gracias.php) */
.license-dialog {
  max-width: 28.5rem;
  width: calc(100vw - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(10, 10, 12, 0.99) 0%, rgba(6, 6, 8, 0.99) 45%, #050505 100%);
  color: var(--text);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 56px rgba(59, 130, 246, 0.18);
}

.license-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.license-dialog__inner {
  position: relative;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.license-dialog__close-wrap {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  margin: 0;
}

.license-dialog__close {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
}

.license-dialog__body {
  padding: 2.35rem 1.05rem 0.75rem;
  overflow: visible;
  max-height: none;
  width: 100%;
}

.license-dialog__body.license-receipt {
  text-align: left;
  max-width: min(92vw, 74rem);
  margin: 0 auto;
}

.license-receipt__greeting {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fafafa;
}

.license-receipt__line {
  margin: 0.18rem 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #ffffff;
}

.license-receipt__line strong {
  font-weight: 800;
  color: #fff;
}

.license-receipt__line--ok {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.license-receipt__products {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.license-receipt__product {
  margin: 0;
  padding: 0.82rem 0.9rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(16, 16, 20, 0.98) 0%, rgba(8, 8, 12, 0.99) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.license-receipt__product .license-receipt__line {
  color: rgba(255, 255, 255, 0.92);
}

.license-receipt__product .license-receipt__line strong {
  color: #ffffff;
}

.license-receipt__product .license-receipt__doc {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 980px) {
  .license-dialog__body.license-receipt {
    max-width: min(94vw, 88rem);
  }
  .license-receipt__products {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.1rem;
  }
}

.license-receipt__line--spaced {
  margin-top: 0.45rem;
  font-weight: 700;
  color: #ffffff;
}

.license-receipt__doc {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 600;
}

.license-receipt__code,
.license-receipt__mono {
  font-family: ui-monospace, "Cascadia Code", "Consolas", "Roboto Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.92);
}

.license-receipt__code {
  display: inline;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.license-receipt__note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.license-receipt__line--important {
  margin-top: 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  color: #fde68a;
}

.license-receipt__muted {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.license-receipt__thanks {
  margin: 0.75rem 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.license-popups-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 4, 8, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  overflow: auto;
}

.license-popups-head,
.license-popups-foot {
  width: min(1160px, 96vw);
  margin: 0 auto;
  text-align: center;
}

.license-popups-head {
  position: relative;
  padding: 0.5rem 3.8rem 0.2rem;
}

.license-popups-head .license-dialog__close {
  position: absolute;
  top: 0;
  right: 0;
}

.license-popups-list {
  width: min(1160px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  align-items: start;
}

.license-popups-overlay--single .license-popups-head,
.license-popups-overlay--single .license-popups-foot {
  width: min(560px, 94vw);
}

.license-popups-list--single {
  width: min(560px, 94vw);
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.license-popup-card {
  min-height: 100%;
}

.license-popup-card__footer {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

@media (max-width: 760px) {
  .license-popups-overlay {
    padding: 0.7rem 0.6rem 1rem;
  }
  .license-popups-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .license-popups-head {
    padding: 2.2rem 0.4rem 0.2rem;
  }
  .license-popups-head .license-dialog__close {
    right: 0.1rem;
  }
}

.license-dialog__footer {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem 0.65rem;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.license-dialog__copy {
  min-width: 11rem;
  padding: 0.55rem 1.35rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #fff;
  border: none;
  border-radius: 999px;
  background: linear-gradient(115deg, #3b82f6 0%, #b91c1b 42%, #3b82f6 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.license-dialog__copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(59, 130, 246, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Listado tipo tabla (admin pedido_detalle) */
.license-dl {
  margin: 0;
}

.license-dl--admin-grid .license-dl__row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  align-items: start;
  text-align: left;
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.license-dl--admin-grid .license-dl__row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.license-dl--admin-grid .license-dl__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.license-dl--admin-grid .license-dl__row dd {
  margin: 0;
  word-break: break-word;
}

.license-code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

@media (max-width: 520px) {
  .license-dl--admin-grid .license-dl__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .license-dl--admin-grid .license-dl__row dt {
    font-size: 0.78rem;
  }

  .license-dialog__close-wrap {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.25rem;
    order: -1;
  }

  .license-dialog__inner {
    display: flex;
    flex-direction: column;
  }

  .license-dialog__body {
    padding-top: 0.5rem;
  }
}

/* --- Mis compras --- */
.purchases-hero {
  margin-bottom: 1.5rem;
}

.purchases-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.purchases-hero__title::after {
  content: "";
  display: block;
  width: min(12rem, 55%);
  height: 3px;
  margin: 0.45rem auto 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--btn-lilac) 0%, #93c5fd 48%, var(--btn-purple) 100%);
}

.purchases-hero__lead {
  margin: 0.75rem 0 0.35rem;
  color: var(--muted);
  max-width: 42rem;
}

.purchases-hero__cart {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.purchases-hero__cart a {
  color: var(--text);
  text-decoration: none;
}

.purchases-hero__cart a:hover {
  text-decoration: underline;
}

.purchases-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.purchases-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid rgba(59, 130, 246, 0.28);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.purchases-pill:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

.purchases-pill--active {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: var(--glow-purple);
}

.purchases-pill.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.purchases-pill__count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
}

.purchases-pill__img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.purchases-pill__img--empty {
  background: rgba(255, 255, 255, 0.08);
}

.purchases-pill__text {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-section-tabs .purchases-pill {
  position: relative;
  overflow: visible;
  transform: translateY(0);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.combo-section-tabs .purchases-pill::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(59, 130, 246, 0.35);
  opacity: 0;
}

.combo-section-tabs .purchases-pill--active {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), 0 8px 18px rgba(29, 78, 216, 0.2);
  animation: combo-pill-float 3.2s ease-in-out infinite;
}

.combo-section-tabs .purchases-pill--active::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(192, 132, 252, 0.4);
  opacity: 0;
  animation: combo-pill-soft-wave 2.6s ease-out infinite;
}

.combo-section-tabs .purchases-pill--active::after {
  animation: combo-pill-soft-wave 2.6s ease-out infinite 1.1s;
}

@keyframes combo-pill-soft-wave {
  0% {
    transform: scale(0.98);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.11);
    opacity: 0;
  }
}

@keyframes combo-pill-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .combo-section-tabs .purchases-pill--active,
  .combo-section-tabs .purchases-pill--active::before {
    animation: none;
  }
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-qty-form__input {
  width: 4.4rem;
  padding: 0.38rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.32);
  background: #0b0b13;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-qty-form__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.cart-qty-form__btn {
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.combo-qty {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.35rem;
}

.combo-qty__form {
  margin: 0;
}

.combo-qty__btn {
  width: 100%;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.combo-qty__btn:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.18);
}

.combo-qty__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.combo-qty__value {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f3f4f6;
  line-height: 1;
}

.codigos-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(260px, 38vh, 380px);
  margin-bottom: 1.1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(120deg, rgba(6, 10, 20, 0.98) 0%, rgba(4, 10, 6, 0.99) 48%, #030503 100%);
  box-shadow: var(--shadow), 0 0 40px rgba(59, 130, 246, 0.12);
}

.codigos-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.codigos-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.35), rgba(2, 4, 10, 0.82));
}

.codigos-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}

.codigos-hero__content h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: #ffffff;
}

.codigos-hero__content p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

.codigos-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  overflow: visible;
}

@media (max-width: 760px) {
  .codigos-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 420px) {
  .codigos-sections {
    grid-template-columns: 1fr;
  }
}

.codigos-card {
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
}

.codigos-card--pick-open {
  z-index: 200;
}

.codigos-card h2 {
  margin: 0;
  font-size: 1.02rem;
  color: #ffffff;
}

.codigos-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.codigos-card__select-wrap {
  width: 100%;
  max-width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.codigos-card__select-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.9);
  text-align: left;
}

.codigos-card__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.72rem 2.4rem 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background-color: rgba(10, 16, 28, 0.96);
  background-image:
    linear-gradient(180deg, rgba(30, 58, 138, 0.22), rgba(8, 12, 20, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.85rem center;
  background-size: 100% 100%, 14px 14px;
  color: #f8fafc;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.1), 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.codigos-card__select:hover {
  border-color: rgba(96, 165, 250, 0.72);
}

.codigos-card__select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(147, 197, 253, 0.14);
}

.tienda-pick {
  position: relative;
  width: 100%;
}

.tienda-pick__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: inherit;
  touch-action: manipulation;
  min-height: 44px;
}

.tienda-pick__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tienda-pick__portal {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 80;
}

.tienda-pick__portal[hidden] {
  display: none !important;
}

.tienda-pick__backdrop,
.tienda-pick__dialog-head {
  display: none;
}

.tienda-pick__dialog {
  display: block;
}

.tienda-pick__menu {
  position: relative;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(6, 10, 18, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(147, 197, 253, 0.08);
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tienda-pick__option {
  margin: 0;
  padding: 0.65rem 0.72rem;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.tienda-pick__option:hover,
.tienda-pick__option:focus {
  outline: none;
  color: #fff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.42), rgba(6, 182, 212, 0.24));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
}

.tienda-pick__option.is-selected {
  color: #bfdbfe;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.14));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.tienda-pick__option--extra {
  margin-top: 0.2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding-top: 0.65rem;
  color: #93c5fd;
}

.tienda-pick.is-open .tienda-pick__trigger {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(147, 197, 253, 0.14);
}

body.tienda-pick-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .tienda-pick__portal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .tienda-pick__portal[hidden] {
    display: none !important;
  }

  .tienda-pick__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 14, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
  }

  .tienda-pick__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 360px);
    max-height: min(72vh, 440px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.55);
    background: linear-gradient(165deg, rgba(12, 18, 32, 0.99), rgba(6, 10, 18, 0.99));
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(96, 165, 250, 0.12),
      inset 0 1px 0 rgba(147, 197, 253, 0.1);
    overflow: hidden;
    animation: tienda-pick-pop 0.22s ease-out;
  }

  .tienda-pick__dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem 0.65rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  }

  .tienda-pick__dialog-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.02em;
  }

  .tienda-pick__dialog-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #93c5fd;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tienda-pick__menu {
    flex: 1;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.45rem 0.5rem 0.65rem;
  }
}

@keyframes tienda-pick-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.codigos-card__picked {
  display: block;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
  color: #e2e8f0;
  font-size: 0.82rem;
  text-align: left;
  word-break: break-word;
}

.codigos-card__picked[hidden] {
  display: none !important;
}

.streaming-email-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.streaming-email-field__title {
  font-size: 0.92rem;
  color: var(--text);
}

.streaming-email-field__wrap {
  max-width: 100%;
}

.streaming-email-field__custom {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(10, 16, 28, 0.96);
  color: #f8fafc;
}

.streaming-email-field__hint {
  margin: 0;
  text-align: left;
}

.codigos-card__cta {
  align-self: center;
}

.combo-buybar-spacer {
  height: 86px;
}

.combo-buybar {
  position: fixed;
  left: min(var(--sidebar-w), 88vw);
  right: 0;
  margin-inline: auto;
  bottom: 18px;
  z-index: 60;
  width: min(720px, calc(100vw - min(var(--sidebar-w), 88vw) - 2.25rem));
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(96, 165, 250, 0.08);
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.site-shell--collapsed .combo-buybar {
  left: var(--sidebar-collapsed-w);
  width: min(720px, calc(100vw - var(--sidebar-collapsed-w) - 2.25rem));
}

.combo-buybar__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
  text-align: center;
}

.combo-buybar__count {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.combo-buybar__total {
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1;
  color: var(--heading);
}

.combo-buybar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: none;
  background: var(--btn-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
  white-space: nowrap;
}

.combo-buybar__cta:hover {
  filter: brightness(1.06);
}

@media (max-width: 760px) {
  .combo-buybar-spacer {
    height: 118px;
  }
  .combo-buybar {
    left: 0;
    right: 0;
    width: calc(100vw - 1rem);
    bottom: 10px;
    border-radius: 16px;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }
  .combo-buybar__meta {
    align-items: flex-start;
  }
  .combo-buybar__cta {
    width: 100%;
  }
}

.purchases-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  margin-bottom: 1.35rem;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.purchases-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.purchases-toolbar__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.purchases-toolbar__input {
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.purchases-toolbar__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.purchases-toolbar__select {
  cursor: pointer;
}

.purchases-toolbar__btn {
  align-self: flex-end;
}

.purchases-empty {
  color: var(--muted);
  margin: 1rem 0;
}

.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem 1.1rem;
}

.purchase-card {
  background: linear-gradient(165deg, rgba(10,16,12,0.96) 0%, rgba(6,10,8,0.98) 50%, #030503 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.purchase-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.purchase-card__icon {
  display: flex;
  color: var(--text);
  flex-shrink: 0;
}

.purchase-card__icon .nav-ico {
  width: 22px;
  height: 22px;
}

.purchase-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.purchase-card__dl {
  margin: 0;
  flex: 1;
}

.purchase-card__row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.25rem 0.65rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.purchase-card__row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.purchase-card__row--wide {
  grid-template-columns: 1fr;
}

.purchase-card__row--wide dt {
  margin-bottom: 0.15rem;
  text-align: center;
}

.purchase-card__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.purchase-card__row dd {
  margin: 0;
  min-width: 0;
}

.purchase-card__code {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.purchase-card__mono {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.84rem;
}

.purchase-card__placeholder {
  color: var(--muted);
  font-style: italic;
  font-size: 0.82rem;
}

.purchase-card__note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.purchase-card__foot {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-card__timeline {
  margin-bottom: 0.75rem;
}

.purchase-card__timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.purchase-card__timeline-date {
  font-size: 0.82rem;
  color: var(--text);
  min-width: 0;
}

.purchase-card__timeline-date strong {
  color: var(--text);
  font-weight: 700;
}

.purchase-card__timeline-days {
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f87171;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.28);
}

.purchase-card__timeline-days--gone {
  color: var(--muted);
  text-shadow: none;
}

.purchase-card__exp-fallback {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.purchase-card__bar {
  height: 6px;
  border-radius: 999px;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.purchase-card__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #f87171);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
  transition: width 0.35s ease;
}

.purchase-card__timeline--expired .purchase-card__bar-fill {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  box-shadow: none;
}

.purchase-card__order {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.purchase-card__order a {
  color: var(--text);
  text-decoration: none;
}

.purchase-card__order a:hover {
  text-decoration: underline;
}

.purchase-card__status {
  text-transform: capitalize;
}

.purchase-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(115deg, #3b82f6 0%, #b91c1b 42%, #3b82f6 100%);
  border: none;
}

.purchase-card__copy-ico {
  display: flex;
  color: #fff;
}

.purchase-card__copy-ico .nav-ico {
  width: 18px;
  height: 18px;
}

.purchase-card__copy:hover {
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  .purchases-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .purchases-toolbar__btn {
    align-self: stretch;
  }

  .purchase-card__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Curso: temario */
.course-detail .course-curriculum {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 48rem;
}

.course-curriculum__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.course-curriculum__empty,
.course-curriculum__teaser {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.course-curriculum__list {
  margin: 0;
  padding-left: 1.25rem;
}

.course-curriculum__item {
  margin-bottom: 0.5rem;
  padding-left: 0.15rem;
}

.course-curriculum__num {
  font-weight: 600;
  margin-right: 0.35rem;
}

.course-curriculum__link {
  color: var(--text);
  text-decoration: none;
}

.course-curriculum__link:hover {
  text-decoration: underline;
}

.course-curriculum__pending {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.course-curriculum__list--locked .course-curriculum__item--locked {
  color: var(--muted);
}

.course-lesson-editor__input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.course-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-lesson-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.course-lesson-card__head {
  margin-bottom: 0.65rem;
}

.course-lesson-card__num {
  font-weight: 700;
  font-size: 0.95rem;
}

.course-lesson-card__files {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.course-lesson-card__file-del {
  cursor: pointer;
}

.course-lesson-editor__textarea {
  width: 100%;
  min-height: 5rem;
  box-sizing: border-box;
}

.course-curriculum__item--block {
  margin-bottom: 1rem;
}

.course-curriculum__item-head {
  margin-bottom: 0.35rem;
}

.course-curriculum__message {
  margin: 0.5rem 0 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text, rgba(255, 255, 255, 0.88));
}

.course-curriculum__files {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.course-curriculum__file-link {
  color: var(--text);
  text-decoration: none;
}

.course-curriculum__file-link:hover {
  text-decoration: underline;
}

.course-curriculum__extras-hint {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

/* —— Carrito y checkout —— */
.cart-page,
.checkout-page {
  font-family: var(--font-poppins);
  padding: 0 1.25rem 3.25rem;
}

.cart-page__inner,
.checkout-page__inner {
  max-width: 980px;
  margin: 0 auto;
}

.cart-page__head,
.checkout-page__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.cart-page__title,
.checkout-page__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout-page__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
}

.cart-empty {
  text-align: center;
  padding: 2.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(165deg, rgba(10,16,12,0.96) 0%, #030503 55%);
}

.cart-empty__text {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cart-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cart-panel .cart-table-wrap {
  margin-top: 0;
  border: none;
  border-radius: 0;
}

.cart-table {
  font-size: 1.08rem;
}

.cart-table th,
.cart-table td {
  padding: 0.95rem 1.15rem;
}

.cart-table th {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-table td {
  vertical-align: middle;
}

.cart-table__product {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cart-table__product:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cart-table__price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.cart-table__stream-meta {
  opacity: 0.82;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.cart-table__price--sub {
  color: var(--text);
  font-weight: 700;
}

.cart-table__actions {
  text-align: right;
}

.cart-summary {
  margin-top: 1.4rem;
  padding: 1.35rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(100deg, rgba(8,14,10,0.95) 0%, rgba(3,6,4,1) 100%);
}

.cart-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-summary__label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-summary__amount {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .cart-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cart-actions__pay,
  .cart-actions__shop {
    min-width: 268px;
  }
}

.cart-actions .btn {
  font-size: 1.06rem;
  padding: 0.82rem 1.5rem;
}

.cart-table .cart-qty-form__input {
  width: 5.35rem;
  font-size: 1.05rem;
  padding: 0.5rem 0.55rem;
}

.cart-table .cart-qty-form__btn {
  font-size: 0.92rem;
  padding: 0.52rem 0.95rem;
}

.cart-table .cart-btn-remove.btn--compact {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

.cart-stream-form {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  max-width: 23rem;
  text-align: left;
}

.cart-stream-form__alert {
  margin: 0;
  padding: 0.62rem 0.78rem;
  font-size: 0.84rem;
  line-height: 1.42;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.36);
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.3) 0%, rgba(30, 22, 28, 0.6) 100%);
  color: var(--text);
}

.cart-stream-form__server {
  margin: 0;
  padding: 0.56rem 0.74rem;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(20, 83, 45, 0.13);
  color: var(--text);
}

.cart-stream-form__field {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.cart-stream-form__field select,
.cart-stream-form__field input[type='email'],
.cart-stream-form__field input[type='text'],
.cart-stream-form__field input[type='password'] {
  display: block;
  width: 100%;
  margin-top: 0.18rem;
  padding: 0.45rem 0.62rem;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(6, 8, 14, 0.88);
  color: var(--text);
  font-size: 0.88rem;
}

.cart-stream-form__field select:focus,
.cart-stream-form__field input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.58);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.cart-table .cart-qty-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn--compact {
  padding: 0.48rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .cart-stream-form {
    max-width: none;
  }
}

.checkout-card {
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: var(--surface);
  padding: 1.35rem 1.55rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.checkout-card__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-lines__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem 1.1rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.02rem;
}

.checkout-lines__item:last-child {
  border-bottom: none;
}

.checkout-lines__name {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.checkout-lines__meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.checkout-lines__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.checkout-totals {
  margin: 0;
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 1.02rem;
}

.checkout-totals__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.checkout-totals__row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkout-totals__row--discount dd {
  color: var(--text);
}

.checkout-totals__row--grand {
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.12rem;
}

.checkout-totals__row--grand dt {
  color: var(--text);
  font-weight: 700;
}

.checkout-totals__row--grand dd {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.checkout-totals__row--balance {
  padding-top: 0.35rem;
}

.checkout-alert {
  margin: 1rem 0 0;
}

.checkout-form.form {
  max-width: none;
  width: 100%;
  margin-top: 0.25rem;
}

.checkout-form__coupon {
  width: 100%;
}

.checkout-form__label {
  width: 100%;
}

.checkout-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.checkout-form__pay {
  min-width: min(100%, 288px);
  padding: 0.72rem 1.35rem;
  font-size: 1rem;
}

@media (max-width: 520px) {
  .checkout-lines__item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .checkout-lines__price {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0.15rem;
  }
}

/* —— Pantalla de login (panel / sin barra lateral) —— */
.login-split-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 2.2vw, 1.25rem);
  font-family: var(--font);
  background: #000000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

.login-split-body::before,
.login-split-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-split-body::before {
  background:
    radial-gradient(ellipse 95% 65% at 12% 38%, rgba(255, 255, 255, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 88% 72%, rgba(210, 210, 210, 0.07) 0%, transparent 54%),
    radial-gradient(ellipse 90% 50% at 48% 105%, rgba(180, 180, 180, 0.06) 0%, transparent 52%);
  background-size: 145% 145%, 155% 155%, 130% 130%;
  animation: smoke-drift-a 24s ease-in-out infinite;
  opacity: 0.88;
}

.login-split-body::after {
  background:
    radial-gradient(ellipse 100% 70% at 28% 82%, rgba(230, 230, 230, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 85% 58% at 92% 22%, rgba(190, 190, 190, 0.06) 0%, transparent 50%);
  background-size: 140% 140%, 150% 150%;
  animation: smoke-drift-b 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.login-split-body--has-page-bg::before,
.login-split-body--has-page-bg::after {
  opacity: 0.2;
}

@keyframes login-split-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes login-split-vibrate {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(0.7px, -0.35px, 0) rotate(0.14deg);
  }
  40% {
    transform: translate3d(-0.7px, 0.35px, 0) rotate(-0.14deg);
  }
  60% {
    transform: translate3d(0.5px, 0.35px, 0) rotate(0.1deg);
  }
  80% {
    transform: translate3d(-0.5px, -0.35px, 0) rotate(-0.1deg);
  }
}

.login-split-motion {
  width: 100%;
  max-width: 920px;
  position: relative;
  z-index: 1;
  animation: login-split-float 5.2s ease-in-out infinite;
  will-change: transform;
}

.login-split {
  display: flex;
  width: 100%;
  min-height: auto;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  animation: login-split-vibrate 0.13s linear infinite;
  will-change: transform;
}

.login-split__brand {
  flex: 1;
  position: relative;
  min-height: 260px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.25rem;
}

.login-split__brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(2, 4, 10, 0.25) 0%,
    rgba(6, 14, 28, 0.45) 45%,
    rgba(3, 5, 12, 0.75) 100%
  );
  pointer-events: none;
}

.login-split__brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: min(19rem, 88vw);
}

/* Contenedor exterior: las ondas salen fuera; el recorte sigue en __logo-ring */
.login-split__logo-pulse.logo-pulse {
  --logo-pulse-size: clamp(4.25rem, 11vmin, 5.5rem);
  display: inline-flex;
  margin: 0 auto 0.85rem;
}

.login-split__logo-ring {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.15);
  background: rgba(0, 0, 0, 0.22);
}

.login-split__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-split__logo-mark {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: clamp(1.05rem, 2.8vmin, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background: var(--btn-gradient);
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow-purple);
}

.login-split__brand-title {
  margin: 0 0 0.65rem;
  font-family: "Montserrat", var(--font-poppins), system-ui, sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--heading);
}

.login-split__brand-text {
  margin: 0;
  font-family: var(--font-poppins);
  font-size: clamp(0.88rem, 2.35vw, 1.02rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.login-split__panel {
  flex: 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.35rem 2rem;
  border-left: 1px solid rgba(59, 130, 246, 0.22);
}

.login-split__panel-inner {
  width: 100%;
  max-width: min(19.5rem, 100%);
}

.login-split__head {
  margin-bottom: 1.2rem;
  text-align: center;
}

.login-split__welcome {
  margin: 0 0 0.35rem;
  font-family: var(--font-poppins);
  font-size: clamp(1.28rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-split__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(156, 163, 175, 0.95);
}

.login-split__alert {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.login-split__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Campos con icono: un solo gris sólido (evita costura icono/input); foco = borde + icono, fondo igual */
.field-split {
  --field-split-bg: #434b5c;
  --field-split-text: rgba(255, 255, 255, 0.96);
  --field-split-placeholder: rgba(255, 255, 255, 0.45);
  --field-split-icon: #ffffff;
  --field-split-icon-focus: #d8b4fe;
  --field-split-border: rgba(255, 255, 255, 0.14);
  --field-split-focus: #c084fc;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  min-height: 3.55rem;
  border-radius: 14px;
  border: 1px solid var(--field-split-border);
  background-color: var(--field-split-bg);
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-split:focus-within {
  border-color: var(--field-split-focus);
  /* Sin resplandor fuerte: el gris del fondo no se “tine” de violeta */
  box-shadow: 0 0 0 1px var(--field-split-focus);
  background-color: var(--field-split-bg);
}

.field-split:focus-within .field-split__icon {
  color: var(--field-split-icon-focus);
}

.field-split__icon {
  flex: 0 0 clamp(3.25rem, 18%, 4.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--field-split-icon);
  transition: color 0.2s ease;
}

.field-split__icon svg {
  width: 22px;
  height: 22px;
}

.field-split__input {
  flex: 1;
  min-width: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0 0.9rem 0 0;
  border-radius: 0;
}

.field-split__input input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--field-split-text);
  font-family: var(--font-poppins);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 1.1rem 0;
  outline: none;
}

.field-split__input input::placeholder {
  color: var(--field-split-placeholder);
  font-weight: 400;
  opacity: 1;
}

.field-split__input input:-webkit-autofill,
.field-split__input input:-webkit-autofill:hover,
.field-split__input input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--field-split-bg) inset;
  box-shadow: 0 0 0 40px var(--field-split-bg) inset;
  -webkit-text-fill-color: var(--field-split-text);
  caret-color: var(--field-split-text);
}

.login-split__submit {
  width: 100%;
  margin-top: 0.45rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-poppins);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #fff;
  background: var(--btn-gradient);
  box-shadow: 0 10px 36px rgba(88, 28, 135, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.login-split__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(88, 28, 135, 0.45);
}

.login-split__submit svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

@media (min-width: 769px) {
  .login-split {
    min-height: clamp(520px, 66vh, 700px);
    max-height: min(700px, 92vh);
    height: auto;
  }

  .login-split__brand {
    border-radius: 28px 0 0 28px;
  }

  .login-split__panel {
    border-radius: 0 28px 28px 0;
  }

  .login-split__brand,
  .login-split__panel {
    align-self: stretch;
    min-height: 0;
  }

  .login-split__panel {
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .login-split-body {
    padding: 1.25rem;
    align-items: center;
  }

  .login-split-motion {
    width: min(calc(100vw - 2.5rem), 600px);
    max-width: 600px;
  }

  .login-split {
    flex-direction: column;
    height: min(90dvh, 720px);
    min-height: 0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.3);
  }

  .login-split__panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.9rem 1rem 1rem;
    overflow: hidden;
  }

  .login-split__brand {
    min-height: 0;
    flex: 0 0 41%;
    padding: 0;
  }

  .login-split__panel-inner {
    max-width: min(22rem, 100%);
  }

  .login-split__head {
    margin-bottom: 0.85rem;
  }

  .login-split__welcome {
    font-size: clamp(1.16rem, 5.1vw, 1.4rem);
  }

  .login-split__lead {
    font-size: 0.86rem;
  }

  .login-split__form {
    gap: 0.85rem;
  }

  .field-split {
    min-height: 3.15rem;
  }

  .login-split__submit {
    min-height: 3.05rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 640px) {
  .login-split-motion {
    width: min(calc(100vw - 1.1rem), 420px);
    max-width: 420px;
  }

  .login-split {
    height: min(94dvh, 700px);
  }

  .login-split__brand {
    flex-basis: 36%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-split-motion,
  .login-split {
    animation: none !important;
  }
}

/* Admin: WhatsApp y horarios (contacto.php) */
.contacto-admin {
  max-width: 820px;
  margin: 0 auto;
}

.contacto-admin__intro {
  max-width: 640px;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contacto-admin__card {
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(165deg, rgba(10,16,12,0.96) 0%, #030503 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
}

.contacto-admin__card--wa {
  border-color: rgba(37, 211, 102, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.12), transparent 42%),
    linear-gradient(165deg, rgba(14, 24, 18, 0.95) 0%, rgba(8, 10, 16, 0.98) 100%);
}

.contacto-admin__card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contacto-admin__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(180deg, #25d366 0%, #12b451 100%);
  box-shadow: 0 8px 22px rgba(18, 180, 81, 0.35);
}

.contacto-admin__card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.contacto-admin__card-icon--hours {
  background: linear-gradient(180deg, #3b82f6 0%, #b91c1b 100%);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
}

.contacto-admin__card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contacto-admin__card-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contacto-admin .form {
  max-width: none;
  gap: 0.85rem;
}

.contacto-admin__field label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contacto-admin__input {
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contacto-admin__input:focus {
  outline: none;
  border-color: rgba(37, 211, 102, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.contacto-admin__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contacto-admin__hint code {
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.82rem;
}

.contacto-admin__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.contacto-admin__preview-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contacto-admin__preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contacto-admin__preview-link:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.55);
}

.contacto-admin__table-wrap {
  margin-top: 0.35rem;
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.contacto-admin__hours th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.contacto-admin__hours td {
  vertical-align: middle;
}

.contacto-admin__day-name {
  font-weight: 700;
  color: var(--text);
}

.contacto-admin__day-abbr {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.contacto-admin__row--weekend .contacto-admin__day-name {
  color: #ffffff;
}

.contacto-admin__row.is-closed {
  opacity: 0.55;
}

.contacto-admin__row.is-closed .contacto-admin__time {
  opacity: 0.45;
  pointer-events: none;
}

.contacto-admin__closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--muted);
  user-select: none;
}

.contacto-admin__closed-toggle input {
  width: 17px;
  height: 17px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.contacto-admin__time {
  width: 100%;
  min-width: 7.5rem;
  max-width: 9.5rem;
  padding: 0.52rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: #0b0b13;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  color-scheme: dark;
}

.contacto-admin__time:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.contacto-admin__footnote {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contacto-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contacto-admin__actions .btn--primary {
  min-width: 8.5rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .contacto-admin__card {
    padding: 1rem;
    border-radius: 14px;
  }

  .contacto-admin__hours th:nth-child(2),
  .contacto-admin__hours td:nth-child(2) {
    min-width: 5.5rem;
  }

  .contacto-admin__time {
    min-width: 6.5rem;
    max-width: none;
  }
}

/* —— Admin Dashboard —— */
.admin-dashboard {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-dashboard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dashboard__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-dashboard__title {
  margin: 0;
  font-family: var(--font-poppins);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.admin-dashboard__lead {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.admin-dashboard__head-meta {
  flex-shrink: 0;
  text-align: right;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-dashboard__date {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-dashboard__time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.admin-kpi {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.admin-kpi--accent {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(155deg, rgba(20, 24, 38, 0.95) 0%, rgba(10, 10, 14, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(59, 130, 246, 0.12);
}

.admin-kpi__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-kpi__value {
  margin: 0.45rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.admin-kpi__value--money {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.admin-kpi__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.admin-kpi__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.admin-kpi__hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-dashboard__section {
  margin-bottom: 1.85rem;
}

.admin-dashboard__section-head {
  margin-bottom: 0.95rem;
}

.admin-dashboard__section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.admin-dashboard__section-desc {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-quick-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.admin-quick-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.admin-quick-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.admin-quick-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-quick-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-quick-card__desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

.admin-quick-card__arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-stat-card {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.admin-stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-stat-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-stat-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

.admin-stat-card__badge--sales {
  border-color: rgba(59, 130, 246, 0.35);
  color: rgba(191, 219, 254, 0.95);
  background: rgba(59, 130, 246, 0.1);
}

.admin-stat-card__rows {
  display: grid;
  gap: 0.15rem;
}

.admin-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-stat-row:last-child {
  border-bottom: none;
}

.admin-stat-row__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

.admin-stat-row__value {
  text-align: right;
  font-size: 0.88rem;
}

.admin-stat-row__value strong {
  display: block;
  font-weight: 700;
  color: #ffffff;
}

.admin-stat-row__value em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-stat-card__foot {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .admin-dashboard__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-dashboard__head {
    flex-direction: column;
  }

  .admin-dashboard__head-meta {
    align-self: flex-start;
    text-align: left;
  }

  .admin-dashboard__kpis,
  .admin-quick-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Admin Inventario —— */
.admin-inventory__kpis {
  margin-bottom: 1.25rem;
}

.admin-inventory__toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-inventory__search {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}

.admin-inventory__search input {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.admin-inventory__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.admin-inventory__table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.92);
  overflow-x: auto;
}

.admin-inventory-table {
  min-width: 980px;
}

.admin-inventory-table__subhead th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 0;
  border-top: none;
}

.admin-inventory-product {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-inventory-product__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-inventory-product__name {
  display: block;
  font-size: 0.92rem;
}

.admin-inventory-product__cat {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.48);
}

.admin-inventory-table__stock {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-inventory-table__stock--low {
  color: #fbbf24;
}

.admin-inventory-table__stock--out {
  color: #f87171;
}

.admin-inventory-table__foot td {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* —— Admin Editar licencia —— */
.admin-license-edit {
  max-width: 820px;
}

.admin-license-edit__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-license-edit__back:hover {
  color: #ffffff;
}

.admin-license-edit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.admin-license-edit__chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-license-edit__chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.admin-license-edit__chip strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.admin-license-edit__chip a {
  color: #93c5fd;
  text-decoration: none;
}

.admin-license-edit__chip a:hover {
  text-decoration: underline;
}

.admin-license-edit__card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.92);
  padding: 1.35rem 1.4rem;
}

.admin-license-edit__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-license-edit__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.admin-license-edit__field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  min-width: 0;
}

.admin-license-edit__field--wide {
  grid-column: 1 / -1;
}

.admin-license-edit__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.admin-license-edit__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.68rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-license-edit__field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.admin-license-edit__field input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.admin-license-edit__hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.admin-license-edit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .admin-license-edit__fields {
    grid-template-columns: 1fr;
  }

  .admin-license-edit__field--wide {
    grid-column: auto;
  }

  .admin-license-edit__card {
    padding: 1.1rem 1rem;
  }

  .admin-license-edit__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* —— Admin Licencias (listado) —— */
.admin-licenses__filters {
  margin-bottom: 0.85rem;
}

.admin-licenses__toolbar {
  margin-bottom: 0.35rem;
}

.admin-licenses__bulk {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.admin-licenses__table-wrap {
  margin-top: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.92);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-licenses-table {
  min-width: 1120px;
  font-size: 0.84rem;
}

.admin-licenses-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(18, 18, 18, 0.98);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.admin-licenses-table tbody tr {
  transition: background 0.12s ease;
}

.admin-licenses-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-licenses-table td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.65rem;
}

.admin-licenses-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-licenses-table__check {
  width: 2.2rem;
}

.admin-licenses-table__id {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.admin-licenses-table__date {
  white-space: nowrap;
  min-width: 6.5rem;
}

.admin-licenses-table__date-day {
  display: block;
  font-variant-numeric: tabular-nums;
}

.admin-licenses-table__date-time {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}

.admin-licenses-table__platform {
  font-weight: 600;
  white-space: nowrap;
  max-width: 7rem;
}

.admin-licenses-table__clip {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-licenses-table__code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.admin-licenses-table__note {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-licenses-table__status {
  white-space: nowrap;
}

.admin-licenses-table__archived {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
}

.admin-licenses-table__expiry {
  white-space: nowrap;
  min-width: 5.5rem;
}

.admin-licenses-table__expiry-date {
  display: block;
  font-variant-numeric: tabular-nums;
}

.admin-licenses-table__expiry-state {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-licenses-table__expiry-state--ok {
  color: #86efac;
}

.admin-licenses-table__expiry-state--expired {
  color: #f87171;
}

.admin-licenses-table__expiry-state--none {
  color: rgba(255, 255, 255, 0.38);
}

.admin-licenses-table__order a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.admin-licenses-table__order a:hover {
  text-decoration: underline;
}

.admin-licenses-table__actions {
  white-space: nowrap;
}

.admin-licenses__empty {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.52);
}

/* —— Roles de tienda (admin + precios en catálogo) —— */
.roles-admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.roles-admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.roles-admin__card {
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.72);
}

.roles-admin__card--off {
  opacity: 0.55;
}

.roles-admin__card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.roles-admin__key {
  font-size: 0.75rem;
  color: var(--muted);
}

.roles-admin__meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.roles-admin__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.role-price-admin {
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 0.75rem;
}

.role-price-admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.role-price-admin__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
}

.role-price-admin__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--role-badge-bg, #3b82f6);
  color: var(--role-badge-fg, #fff);
}

.role-price-admin__item input {
  width: 100%;
}

.price-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.product-detail__price .price-role {
  align-items: flex-start;
}

.price-role--has-badge .price-role__value {
  color: #e0f2fe;
}

.price-role__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.2;
}

.price-role__badge--lg {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

.price-role__badge--guest {
  background: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.price-role__value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-detail__price .price-role__value {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.card--product .price-role__value {
  font-size: 1.05rem;
}
