:root {
  --bg: #0F1B29;
  --bg-main: #0F1B29;
  --surface: rgba(6, 12, 22, 0.94);
  --surface2: rgba(10, 18, 30, 0.96);
  --surface-elevated: rgba(8, 16, 26, 0.98);
  --text: #ffffff;
  --muted: #ffffff;
  --heading: #ffffff;
  --heading-dark: #3b82f6;
  --neon-purple: #3b82f6;
  --neon-blue: #2563eb;
  --accent: #3b82f6;
  --accent2: #2563eb;
  --lime: #B6FF00;
  --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);
  --glow-lime: 0 0 18px rgba(182, 255, 0, 0.25);
  --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: #0F1B29;
  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(59, 130, 246, 0.07) 0%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 88% 72%, rgba(30, 80, 160, 0.06) 0%, transparent 54%),
    radial-gradient(ellipse 90% 50% at 48% 105%, rgba(15, 40, 90, 0.05) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 72% 12%, rgba(59, 130, 246, 0.04) 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(182, 255, 0, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 85% 58% at 92% 22%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 75% 52% at 8% 18%, rgba(30, 80, 160, 0.04) 0%, transparent 48%),
    radial-gradient(ellipse 110% 40% at 55% 45%, rgba(15, 30, 60, 0.03) 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(59, 130, 246, 0.12) 0%, rgba(30, 60, 120, 0.05) 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(182, 255, 0, 0.06) 0%, rgba(30, 60, 120, 0.04) 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(182, 255, 0, 0.1);
  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(182, 255, 0, 0.1);
  background: linear-gradient(165deg, rgba(8, 16, 28, 0.98) 0%, rgba(5, 12, 22, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 0, 0.05),
    0 0 0 1px rgba(182, 255, 0, 0.06);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 255, 0, 0.3) transparent;
}

.sidebar__panel::-webkit-scrollbar {
  width: 6px;
}

.sidebar__panel::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__panel::-webkit-scrollbar-thumb {
  background: rgba(182, 255, 0, 0.3);
  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(182, 255, 0, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 0, 0.05),
    0 0 0 1px rgba(182, 255, 0, 0.06),
    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-nav__tag {
  margin: 1rem 0.7rem 0.28rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(182, 255, 0, 0.55);
  opacity: 1;
  line-height: 1.2;
}
.sidebar-nav__tag:first-child { margin-top: 0.2rem; }
.site-shell--collapsed .sidebar-nav__tag { display: none; }
body.site.theme-light .sidebar-nav__tag { color: var(--accent); }

.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: #B6FF00;
  background: rgba(182, 255, 0, 0.07);
  border-color: rgba(182, 255, 0, 0.15);
  text-decoration: none;
}

.sidebar-nav__link.is-active {
  color: #B6FF00;
  background: rgba(182, 255, 0, 0.12);
  border-color: rgba(182, 255, 0, 0.28);
  box-shadow: var(--glow-lime);
}
.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: #B6FF00;
}

.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);
}

.sidebar-nav--app {
  gap: 0.28rem;
}
.sidebar-nav--app .sidebar-nav__link {
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}
.sidebar-nav--app .sidebar-nav__link:hover {
  color: #B6FF00;
  background: transparent;
  border-color: rgba(182, 255, 0, 0.4);
  box-shadow: none;
}
.sidebar-nav--app .sidebar-nav__link.is-active {
  color: #B6FF00;
  background: transparent;
  border-color: rgba(182, 255, 0, 0.55);
  box-shadow: none;
}
.sidebar-nav--app .sidebar-nav__link--group {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: transparent;
}
.sidebar-nav--app .sidebar-nav__link--group.is-current {
  color: var(--muted);
  background: transparent;
  border-color: rgba(182, 255, 0, 0.4);
}
.sidebar-nav--app .sidebar-nav__chevron {
  margin-left: auto;
  display: flex;
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.sidebar-nav--app .sidebar-nav__group.is-open > .sidebar-nav__link--group .sidebar-nav__chevron {
  transform: rotate(-90deg);
}
.sidebar-nav--app .sidebar-nav__sub {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0 0.35rem 0.85rem;
}
.sidebar-nav--app .sidebar-nav__group.is-open > .sidebar-nav__sub {
  display: flex;
}
.sidebar-nav--app .sidebar-nav__link--sub {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.sidebar-nav--app .sidebar-nav__link--sub.is-active {
  color: #B6FF00;
  background: transparent;
  border-color: rgba(182, 255, 0, 0.55);
  box-shadow: none;
}
.site-shell--collapsed .sidebar-nav--app .sidebar-nav__chevron,
.site-shell--collapsed .sidebar-nav--app .sidebar-nav__sub {
  display: none;
}
body.site.theme-light .sidebar-nav--app .sidebar-nav__link {
  color: #374151;
}
body.site.theme-light .sidebar-nav--app .sidebar-nav__link:hover,
body.site.theme-light .sidebar-nav--app .sidebar-nav__link--group.is-current {
  color: #111827;
  background: rgba(59, 130, 246, 0.08);
}
body.site.theme-light .sidebar-nav--app .sidebar-nav__link.is-active,
body.site.theme-light .sidebar-nav--app .sidebar-nav__link--sub.is-active {
  color: #0f172a;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
}

.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(182, 255, 0, 0.12);
  padding: 0.45rem 0;
  background: rgba(6, 12, 22, 0.95);
  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-copy {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.55);
  text-align: center;
}

.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(6, 14, 24, 0.97);
  border-bottom: 1px solid rgba(182, 255, 0, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}
.shop-utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.shop-utility-bar__tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}
.shop-utility-bar__brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

/* ─── Logo del sitio ─────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--text);
  min-width: 0;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.shop-utility-bar__brand .site-logo {
  width: calc(var(--sidebar-w) - 1.1rem);
  box-sizing: border-box;
  padding-right: 1rem;
  border-right: 1px solid rgba(182, 255, 0, 0.3);
}
@media (max-width: 980px) {
  .shop-utility-bar__brand .site-logo {
    width: auto;
    border-right: none;
    padding-right: 0;
  }
}
.site-logo__img {
  display: block;
  max-height: 2.8rem;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.site-logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}
/* Logo subido desde Admin → Logotipos: ocupa el lugar del ícono, sin el fondo azul. */
.site-logo__icon--img {
  width: auto;
  min-width: 2.5rem;
  max-width: 4.5rem;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}
.site-logo__icon--img img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 4.5rem;
  object-fit: contain;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.site-logo__name {
  font-family: var(--font-poppins);
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.site-logo__sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* Nombre de la tienda con efecto RGB suave en los colores de la página (verde lima ↔ azul rey). */
.site-logo__name,
body.site.theme-light .site-logo__name,
body.site:not(.site--admin) .logo--mobile {
  padding-bottom: 0.08em;
  background: linear-gradient(90deg, #b6ff00 0%, #3b82f6 50%, #b6ff00 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: site-logo-rgb 5s linear infinite;
}
/* Tema claro: el lima no se lee sobre blanco, se usa un verde más oscuro. */
body.site.theme-light .site-logo__name,
body.site.theme-light:not(.site--admin) .logo--mobile {
  background-image: linear-gradient(90deg, #4d7c0f 0%, #2563eb 50%, #4d7c0f 100%);
}
@keyframes site-logo-rgb {
  to { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-logo__name,
  body.site:not(.site--admin) .logo--mobile {
    animation: none;
  }
}

/* ─── Buscador ───────────────────────────────────────────────── */
.site-search {
  flex: 1;
  max-width: 38rem;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.site-search:focus-within {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.07);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.site-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  min-width: 0;
}
.site-search__input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}
.site-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  padding: 0;
}
.site-search__btn:hover { opacity: 0.85; }

/* ─── Logo / search responsive ───────────────────────────────── */
@media (max-width: 980px) {
  .site-logo__sub { display: none; }
  .site-logo__name { font-size: 1rem; }
  .shop-utility-bar__inner { gap: 0.8rem; }
}
@media (max-width: 768px) {
  .site-logo { display: none; }
  .shop-utility-bar {
    position: static;
  }
  .shop-utility-bar__inner {
    min-height: 3rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.55rem;
  }
  .site-search { max-width: none; }
  .utility-saldo { display: none; }
  .utility-currency--compact { display: none; }
}
.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__ico {
  opacity: 0.7;
  flex-shrink: 0;
}
.utility-saldo__value {
  color: #86efac;
  font-weight: 800;
}

/* ─── Utility bar: pill de usuario ─────────────────────────────── */
.utility-user {
  gap: 0.45rem;
  padding: 0.28rem 0.65rem 0.28rem 0.32rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.utility-user:hover {
  text-decoration: none;
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.1);
}
.utility-user__avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
}
.utility-user__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
}
.utility-user__initial--guest {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.utility-user__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

/* Tablet: acortar nombre */
@media (max-width: 980px) {
  .utility-user__name {
    max-width: 6rem;
  }
}

/* Móvil: solo mostrar avatar/inicial, sin texto */
@media (max-width: 768px) {
  .utility-user {
    padding: 0.3rem;
    border-radius: 50%;
    width: 2.35rem;
    height: 2.35rem;
    justify-content: center;
    gap: 0;
  }
  .utility-user__name {
    display: none;
  }
}

/* Tema claro: pill de usuario */
body.site.theme-light .utility-user {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #111827;
}
body.site.theme-light .utility-user:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}
body.site.theme-light .utility-user__name {
  color: #111827;
}

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;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
body.site.theme-light .site-logo__name { color: #111827; }
body.site.theme-light .site-logo__sub { color: #6b7280; }
body.site.theme-light .site-search {
  background: #f3f4f6;
  border-color: #d1d5db;
}
body.site.theme-light .site-search:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}
body.site.theme-light .site-search__input { color: #111827; }
body.site.theme-light .site-search__input::placeholder { color: #9ca3af; }
body.site.theme-light .card--product .card__price-value { color: #1d4ed8; }
body.site.theme-light .card--product .card__title { color: #111827; }
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: #16a34a;
}
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 {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}
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: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .grid.grid--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .grid.grid--products {
    gap: 1.1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .grid.grid--products {
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: rgba(12, 14, 26, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.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(-4px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.3), 0 0 36px rgba(59, 130, 246, 0.15);
}

.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--product .card__img {
  aspect-ratio: 4/3;
  background: rgba(16, 20, 36, 0.85);
}

.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: left;
  padding: 0.75rem 0.85rem 0.9rem;
}

.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: none;
  letter-spacing: -0.01em;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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: left;
}

.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: left;
  font-size: 1.15rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: -0.02em;
}

.card--product .card__price-block {
  margin-bottom: 0.65rem;
}

.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.6rem 0.75rem;
  font-size: 0.8rem;
  gap: 0.4rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.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;
}

.codigos-admin {
  max-width: 720px;
}
.codigos-admin__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
}
.codigos-admin__form {
  gap: 1.15rem;
}
.codigos-admin__preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.codigos-admin__preview img {
  max-width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface2);
}
.codigos-admin__preview span {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
}
.codigos-admin__section {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--surface2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.codigos-admin__section legend {
  padding: 0 0.4rem;
  color: var(--text);
  font-weight: 600;
}
.codigos-admin__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.codigos-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.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 {
  width: 100%;
  max-width: none;
  margin: 0;
}
.categories-admin__title {
  text-align: left;
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.categories-admin__lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.categories-admin__create {
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1421;
  box-sizing: border-box;
}
.categories-admin__create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) auto;
  gap: 0.85rem;
  align-items: end;
}
.categories-admin__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}
.categories-admin__field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}
.categories-admin__field em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
}
.categories-admin__field input,
.categories-admin__field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  font: inherit;
  box-sizing: border-box;
}
.categories-admin__field input:focus,
.categories-admin__field select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.categories-admin__create-btn {
  min-height: 2.6rem;
  white-space: nowrap;
  padding-inline: 1.2rem;
}
.categories-admin__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}
.categories-admin__count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.categories-admin__table-wrap {
  width: 100%;
  margin-top: 0;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #0a1421;
}
.categories-admin__empty {
  margin: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: #64748b;
}
.cat-img-wrap { display: flex; align-items: center; gap: 0.75rem; }
.cat-img-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #1e2d3d;
  display: block;
}
.cat-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #162233;
  border: 1px solid #1e2d3d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cat-img-form { display: flex; flex-direction: column; gap: 0.35rem; }
.cat-img-file { font-size: 0.78rem; color: #94a3b8; }

.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: 900px) {
  .categories-admin__create-grid {
    grid-template-columns: 1fr 1fr;
  }
  .categories-admin__create-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .categories-admin__create-grid {
    grid-template-columns: 1fr;
  }
  .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);
}
.admin-products__count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

@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);
}
.avatar-lg--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.perfil-avatar-form {
  margin: 0;
  flex-shrink: 0;
}
.perfil-avatar {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  cursor: pointer;
  border-radius: 50%;
}
.perfil-avatar .avatar-lg {
  display: block;
}
.perfil-avatar__hint {
  position: absolute;
  inset: auto 0 0;
  padding: 0.28rem 0.2rem;
  border-radius: 0 0 48px 48px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}
.perfil-avatar:hover .perfil-avatar__hint,
.perfil-avatar:focus-within .perfil-avatar__hint {
  background: rgba(37, 99, 235, 0.92);
}
.perfil-card__hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.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: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.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-page__links-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.aff-stats.billetera-hist-stats {
  grid-template-columns: repeat(3, 1fr);
}
.billetera-hist-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.billetera-hist-toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
}
.billetera-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.billetera-stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #141414;
  border: 1px solid #262626;
}
.billetera-stat-card__icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.billetera-stat-card__icon--available { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.billetera-stat-card__icon--pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.billetera-stat-card__icon--withdrawn { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.billetera-stat-card__label { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.82rem; }
.billetera-stat-card__value { display: block; font-size: 1.25rem; font-weight: 800; color: #fff; }
@media (max-width: 720px) {
  .billetera-stats { grid-template-columns: 1fr; }
}
.billetera-method-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
}
.billetera-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #60a5fa;
  cursor: pointer;
}
.billetera-eye-btn:hover { color: #93c5fd; }
.billetera-detail-row td {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--muted);
}
.billetera-withdraw-alert {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.85rem;
}
.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--wide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.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__method-icon--logo {
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  min-width: 1.9rem;
  max-width: 4.5rem;
  padding: 2px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.billetera-recharge__method-icon--logo img {
  display: block;
  height: 100%;
  max-height: 1.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.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;
}
/* Prefijo largo (US$): más espacio para que no se encime con el número */
.billetera-field__control--money-wide .billetera-field__input {
  padding-left: 3.1rem;
}
.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;
}
.billetera-binance,
.billetera-wompi {
  max-width: 32rem;
}
.billetera-method-tabs {
  width: 100%;
  max-width: 32rem;
}
.billetera-method-tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.billetera-method-tabs__bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.billetera-method-tabs__tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
/* Pestaña con logo: logo arriba y nombre debajo */
.billetera-method-tabs__tab.has-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem 0.55rem;
}
.billetera-method-tabs__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  min-width: 2.2rem;
  max-width: 5rem;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}
.billetera-method-tabs__logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.billetera-method-tabs__name {
  line-height: 1.1;
}
#rechargeTabBinance:checked ~ .billetera-method-tabs__bar label[for="rechargeTabBinance"],
#rechargeTabWompi:checked ~ .billetera-method-tabs__bar label[for="rechargeTabWompi"],
#rechargeTabPaypal:checked ~ .billetera-method-tabs__bar label[for="rechargeTabPaypal"] {
  background: var(--accent, #b6ff00);
  border-color: var(--accent, #b6ff00);
  color: #0b1220;
}
.billetera-method-tabs__panel {
  display: none;
}
#rechargeTabBinance:checked ~ .billetera-method-tabs__panel--binance {
  display: block;
}
#rechargeTabWompi:checked ~ .billetera-method-tabs__panel--wompi {
  display: block;
}
#rechargeTabPaypal:checked ~ .billetera-method-tabs__panel--paypal {
  display: block;
}
.billetera-binance__payto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.06);
  margin-bottom: 1rem;
}
.billetera-binance__payto-id {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}
.billetera-binance__qr {
  width: min(100%, 160px);
  height: auto;
  border-radius: 10px;
  display: block;
}
.billetera-binance__limits {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.billetera-binance__how {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
.billetera-binance__how-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.billetera-binance__how-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.billetera-binance__pending-row {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}
.billetera-binance__pending-row:last-child {
  margin-bottom: 0;
}
.billetera-binance__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.billetera-binance__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: binance-status-pulse 1.4s ease-in-out infinite;
}
.billetera-binance__status--ok {
  margin: 0;
  font-size: 0.92rem;
  color: #22c55e;
}
.billetera-binance__pending-row--done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}
@keyframes binance-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
body.site.theme-light .billetera-binance__payto,
body.site.theme-light .billetera-binance__how,
body.site.theme-light .billetera-binance__pending-row {
  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-receipt__raw,
.purchase-card__raw {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  color: inherit;
  background: transparent;
  border: 0;
}

.purchase-card__raw-wrap {
  margin: 0;
}

.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);
}

.purchase-card__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.85rem; }
.purchase-card__actions .purchase-card__copy { margin-top: 0; }
.purchase-card__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.purchase-card__chat .purchase-card__copy-ico .nav-ico { width: 18px; height: 18px; }

@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: none;
  width: 100%;
  margin: 0;
}

.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;
  }
}

/* —— Login split (form + panel de marca) —— */
body.login-split-body:has(.auth-page) { padding: 0; align-items: stretch; }
.auth-page { position: relative; width: 100%; max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.auth-back { position: absolute; top: 1.25rem; left: 1.5rem; z-index: 5; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.auth-back:hover { color: var(--text); }
.auth-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 0; border: 0; background: transparent; min-height: 100vh; min-height: 100dvh; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 2rem; }
.auth-form__inner { width: 100%; max-width: 22rem; }
.auth-form__logo { display: block; width: 3.5rem; height: 3.5rem; border-radius: 12px; margin: 0 auto 1rem; object-fit: cover; }
.auth-form__logo--mark { display: flex; align-items: center; justify-content: center; background: #B6FF00; color: #0F1B29; font-weight: 800; font-size: 1.3rem; }
.auth-form__title { text-align: center; margin: 0 0 0.4rem; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.auth-form__lead { text-align: center; margin: 0 0 1.5rem; color: var(--muted); font-size: 0.9rem; }
.auth-form__alert { margin: 0 0 1rem; }
.auth-form__form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.auth-field input { padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: #f4f6f8; color: #0f172a; font-size: 0.95rem; font: inherit; }
.auth-field input:focus { outline: 2px solid #B6FF00; outline-offset: 1px; }
.auth-field__control { position: relative; display: flex; }
.auth-field__control input { width: 100%; padding-right: 2.6rem; box-sizing: border-box; }
.auth-field__eye { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #64748b; cursor: pointer; display: flex; padding: 0; }
.auth-field__eye.is-active { color: #0f172a; }
.auth-phone { display: flex; align-items: stretch; gap: 0.5rem; }
.auth-phone__code { flex: none; width: 6.5rem; padding: 0.75rem 0.4rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: #f4f6f8; color: #0f172a; font-size: 0.85rem; font: inherit; }
.auth-phone__code:focus { outline: 2px solid #B6FF00; outline-offset: 1px; }
.auth-phone__number { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.auth-phone__number svg { position: absolute; left: 0.8rem; color: #64748b; pointer-events: none; }
.auth-phone__number input { width: 100%; padding-left: 2.4rem; box-sizing: border-box; }
.auth-field__hint { margin: -0.1rem 0 0; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
.auth-check { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); cursor: pointer; }
.auth-link { color: #86c500; text-decoration: none; font-weight: 700; }
.auth-link:hover { text-decoration: underline; }
.auth-submit { padding: 0.85rem; border-radius: 999px; border: 0; background: #B6FF00; color: #0F1B29; font-weight: 800; font-size: 1rem; cursor: pointer; }
.auth-submit:hover { filter: brightness(0.96); }
.auth-form__foot { margin: 1.25rem 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.auth-form__foot a { color: #86c500; font-weight: 700; text-decoration: none; }
.auth-brand { position: relative; display: flex; align-items: center; justify-content: center; padding: 2.5rem; background: radial-gradient(circle at 50% 30%, rgba(182,255,0,0.18), rgba(15,27,41,0.6) 60%, #0a1421 100%); }
.auth-brand__inner { text-align: center; max-width: 20rem; }
.auth-brand__logo { display: block; width: 5rem; height: 5rem; border-radius: 16px; margin: 0 auto 1.25rem; object-fit: cover; }
.auth-brand__logo--mark { display: flex; align-items: center; justify-content: center; background: #B6FF00; color: #0F1B29; font-weight: 800; font-size: 2rem; }
.auth-brand__name { margin: 0 0 0.75rem; font-size: 1.6rem; font-weight: 800; color: #fff; }
.auth-brand__tagline { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { display: none; }
}

/* —— 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;
}

.license-delivery-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.license-delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.license-delivery-option input {
  margin-top: 0.28rem;
  flex: 0 0 auto;
  accent-color: #60a5fa;
}

.license-delivery-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.license-delivery-option__body strong {
  color: #fff;
  font-size: 0.95rem;
}

.license-delivery-option__body span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.license-delivery-option:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.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,
.admin-license-edit__field textarea {
  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,
.admin-license-edit__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.admin-license-edit__field input:focus,
.admin-license-edit__field textarea: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;
  min-width: 10rem;
  max-width: 14rem;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.admin-licenses-table__vendor {
  min-width: 8rem;
  max-width: 12rem;
  overflow: hidden;
  white-space: nowrap;
}

.admin-licenses-table__vendor-name {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

.chat-admin__intro,
.chat-admin__hint {
  color: var(--muted);
}
.chat-admin__form {
  max-width: 980px;
}
.chat-admin__card,
.chat-admin__thread {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--surface2);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.chat-admin__card h2 {
  margin-top: 0;
}
.chat-admin__amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}
@media (min-width: 720px) {
  .chat-admin__amount-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.chat-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chat-admin__thread summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.chat-admin__messages {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.chat-admin__message {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}
.chat-admin__message--visitor {
  border-left: 3px solid #60a5fa;
}
.chat-admin__message--bot {
  border-left: 3px solid #a78bfa;
}
.chat-admin__message header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
}
.chat-admin__message p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.chat-orders__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.chat-orders__intro { max-width: 46rem; }
.chat-orders__stats { display: flex; gap: 0.75rem; }
.chat-orders__stat {
  min-width: 5.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.chat-orders__stat-value { display: block; font-size: 1.4rem; font-weight: 800; }
.chat-orders__stat-label { font-size: 0.75rem; color: var(--muted); }
.chat-orders__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}
body.site--admin a.chat-orders__nav-btn,
.chat-orders__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.42rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.site--admin a.chat-orders__nav-btn:hover,
.chat-orders__nav-btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}
.chat-orders__nav-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
body.site--admin a.chat-orders__nav-btn--ghost,
.chat-orders__nav-btn--ghost {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.chat-orders__nav-btn--ghost .chat-orders__nav-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body.site--admin a.chat-orders__nav-btn--ghost:hover,
.chat-orders__nav-btn--ghost:hover {
  color: #fff;
  background: rgba(109, 40, 217, 0.35);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28);
}
body.site--admin a.chat-orders__nav-btn--primary,
.chat-orders__nav-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.38);
}
.chat-orders__nav-btn--primary .chat-orders__nav-icon {
  background: rgba(255, 255, 255, 0.18);
}
body.site--admin a.chat-orders__nav-btn--primary:hover,
.chat-orders__nav-btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}
.chat-orders__chat-meta { margin-bottom: 1.25rem; }
.chat-orders__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.chat-orders__meta-item {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface2);
}
.chat-orders__meta-item--ok { border-color: rgba(52, 211, 153, 0.35); }
.chat-orders__meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.chat-orders__meta-value { font-weight: 650; }
.chat-orders__meta-value--sm { font-size: 0.82rem; font-weight: 500; }
.chat-orders__meta-sub, .chat-orders__meta-arrow { color: var(--muted); font-size: 0.85rem; }

/* Teléfono (historial del asistente) */
.phone-chat-stage {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 2rem;
}
.phone-chat {
  --pc-brand: #6d28d9;
  --pc-brand-2: #7c3aed;
  position: relative;
  width: min(390px, 100%);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
}
.phone-chat__bezel {
  border-radius: 42px;
  padding: 12px;
  background:
    linear-gradient(160deg, #3a3d46 0%, #1a1c22 40%, #0d0e12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 8px rgba(0, 0, 0, 0.55),
    0 0 0 1px #2a2d36;
}
.phone-chat__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(720px, 78vh);
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: #efeae2;
  color: #111827;
}
.phone-chat__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 118px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #0b0b0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-chat__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}
.phone-chat__statusbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-chat__sig,
.phone-chat__wifi,
.phone-chat__bat {
  display: inline-block;
  background: #111;
}
.phone-chat__sig {
  width: 14px;
  height: 10px;
  clip-path: polygon(0 100%, 25% 70%, 25% 100%, 50% 45%, 50% 100%, 75% 20%, 75% 100%, 100% 0, 100% 100%);
}
.phone-chat__wifi {
  width: 12px;
  height: 10px;
  border-radius: 10px 10px 0 0;
  background: transparent;
  border: 2px solid #111;
  border-bottom: 0;
}
.phone-chat__bat {
  width: 20px;
  height: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px #111;
  background: linear-gradient(90deg, #22c55e 70%, transparent 70%);
  position: relative;
}
.phone-chat__bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: #111;
}
.phone-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 10px;
  background: linear-gradient(135deg, var(--pc-brand), var(--pc-brand-2));
  color: #fff;
  flex-shrink: 0;
}
.phone-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.phone-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-chat__head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.phone-chat__head-text strong { font-size: 14px; }
.phone-chat__head-text span { font-size: 11px; opacity: 0.88; }
.phone-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(109, 40, 217, 0.07), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(0, 0, 0, 0.015) 12px);
}
.phone-chat__empty {
  margin: auto;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
.phone-chat__msg { display: flex; }
.phone-chat__msg--in { justify-content: flex-start; }
.phone-chat__msg--out { justify-content: flex-end; }
.phone-chat__msg--system { justify-content: center; }
.phone-chat__system {
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 4px 10px;
}
.phone-chat__bubble {
  max-width: 86%;
  padding: 8px 10px 6px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  word-break: break-word;
}
.phone-chat__bubble p { margin: 0 0 0.35rem; }
.phone-chat__bubble p:last-of-type { margin-bottom: 0.15rem; }
.phone-chat__msg--in .phone-chat__bubble {
  background: #fff;
  color: #1a1d26;
  border-bottom-left-radius: 5px;
}
.phone-chat__msg--out .phone-chat__bubble {
  background: linear-gradient(135deg, var(--pc-brand), var(--pc-brand-2));
  color: #fff;
  border-bottom-right-radius: 5px;
}
.phone-chat__time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.65;
  text-align: right;
}
.phone-chat__proof-caption { font-weight: 650; margin-bottom: 6px !important; }
.phone-chat__proof-hint { font-size: 11px; opacity: 0.75; }
.phone-chat__proof-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}
.phone-chat__proof-thumb img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.phone-chat__proof-pdf {
  color: inherit;
  font-weight: 650;
}
.phone-chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  background: #f7f7fb;
  border-top: 1px solid #e4e8f0;
  flex-shrink: 0;
}
.phone-chat__composer-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e8f0;
  color: #94a3b8;
  font-size: 12px;
}
.phone-chat__composer-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pc-brand);
  color: #fff;
  font-size: 13px;
}
.phone-chat__home {
  height: 10px;
  margin: 4px auto 8px;
  width: 118px;
  border-radius: 8px;
  background: #1a1a1a;
  opacity: 0.85;
  flex-shrink: 0;
}
.phone-chat__side {
  position: absolute;
  background: #2a2d34;
  border-radius: 2px;
}
.phone-chat__side--silent {
  left: -3px;
  top: 92px;
  width: 3px;
  height: 22px;
}
.phone-chat__side--vol-up {
  left: -3px;
  top: 128px;
  width: 3px;
  height: 36px;
}
.phone-chat__side--vol-down {
  left: -3px;
  top: 172px;
  width: 3px;
  height: 36px;
}
.phone-chat__side--power {
  right: -3px;
  top: 148px;
  width: 3px;
  height: 52px;
}
.wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.wa-lightbox[hidden] { display: none !important; }
.wa-lightbox__inner { position: relative; max-width: min(920px, 96vw); }
.wa-lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
}
.wa-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.zp-page {
  width: 100%;
  max-width: none;
  padding: 0.35rem 0.4rem 0;
  min-height: calc(100vh - 8.5rem);
  display: flex;
  flex-direction: column;
}
.zp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}
.zp-head h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.zp-head__meta {
  margin: 0.28rem 0 0;
  color: #9ca3af;
  font-size: 0.92rem;
}
.zp-head__actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.zp-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(182, 255, 0, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1.15rem 0.4rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.zp-icon-btn:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(182, 255, 0, 0.75);
  background: rgba(182, 255, 0, 0.1);
  box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.08);
}
.zp-icon-btn:active { transform: scale(0.96); box-shadow: none; }
.zp-icon-btn__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #262626;
  color: #fff;
}
.zp-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.15rem;
}
.zp-toolbar__field select {
  appearance: none;
  min-width: 12rem;
  height: 48px;
  padding: 0 2.2rem 0 1.15rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: #fff;
  font-size: 0.92rem;
}
.zp-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.zp-toolbar__search-ico {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
}
.zp-toolbar__search input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.7rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #fff;
  font-size: 0.95rem;
}
.zp-toolbar__search input::placeholder { color: #6b7280; }
.zp-search-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--btn-gradient);
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.28);
}
.zp-board {
  overflow-x: auto;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
}
.zp-board--empty { overflow: hidden; }
.zp-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #2a2a2a;
}
.zp-board:not(.zp-board--empty) .zp-grid { min-width: 860px; }
.zp-col-id { width: 8%; }
.zp-col-servicio { width: 16%; }
.zp-col-precio { width: 12%; }
.zp-col-cred { width: 20%; }
.zp-col-perf { width: 16%; }
.zp-col-estado { width: 14%; }
.zp-col-acc { width: 14%; }
.zp-grid th,
.zp-grid td {
  padding: 1.05rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #3f3f3f;
  vertical-align: middle;
}
.zp-grid thead th {
  color: #d1d5db;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #3a3a3a;
  border-bottom: 1px solid #4b4b4b;
}
.zp-grid tbody td {
  color: #fff;
  font-size: 0.92rem;
  background: #2a2a2a;
}
.zp-grid tbody tr:nth-child(even) td { background: #323232; }
.zp-grid__empty-row td {
  border-bottom: 0;
  padding: 0;
  background: #2a2a2a !important;
}
.zp-empty {
  text-align: center;
  padding: 6.4rem 1.2rem 5.4rem;
  background: #2a2a2a;
  border: 0;
}
.zp-empty__icon {
  width: auto;
  height: auto;
  margin: 0 auto 1.1rem;
  background: none;
  color: #9ca3af;
}
.zp-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
}
.zp-empty p {
  margin: 0 0 0.4rem;
  color: #9ca3af;
  font-size: 0.95rem;
}
.zp-empty__hint { margin: 0.85rem 0 1.2rem !important; }
.zp-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1.05rem 0.38rem 0.38rem;
  border-radius: 999px;
  background: var(--btn-gradient);
  color: #0f172a !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.28);
}
.zp-empty__cta:hover { color: #0f172a !important; text-decoration: none; }
.zp-empty__cta-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.18);
  font-size: 1.15rem;
  line-height: 1;
}
.zp-copy {
  margin: auto 0 0;
  padding: 2.4rem 0 0.4rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.86rem;
}
body.site.theme-light .zp-icon-btn {
  color: #111827;
  border-color: rgba(101, 163, 13, 0.4);
  background: rgba(190, 242, 100, 0.14);
}
body.site.theme-light .zp-icon-btn:hover {
  color: #111827;
  border-color: rgba(101, 163, 13, 0.75);
  background: rgba(190, 242, 100, 0.28);
  box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.1);
}
body.site.theme-light .zp-icon-btn__circle {
  background: #e5e7eb;
  color: #111827;
}
body.site.theme-light .zp-board,
body.site.theme-light .zp-grid,
body.site.theme-light .zp-grid tbody td,
body.site.theme-light .zp-empty {
  background: #e5e7eb;
}
body.site.theme-light .zp-board {
  border-color: #d1d5db;
}
body.site.theme-light .zp-grid thead th {
  background: #d1d5db;
  color: #4b5563;
  border-bottom-color: #c4c4c4;
}
body.site.theme-light .zp-grid th,
body.site.theme-light .zp-grid td {
  border-bottom-color: #d4d4d4;
}
body.site.theme-light .zp-grid tbody td { color: #111827; }
body.site.theme-light .zp-grid tbody tr:nth-child(even) td { background: #ececec; }
body.site.theme-light .zp-grid__empty-row td {
  background: #e5e7eb !important;
}
body.site.theme-light .zp-empty h2 { color: #111827; }
body.site.theme-light .zp-empty p,
body.site.theme-light .zp-empty__icon { color: #6b7280; }
body.site.theme-light .zp-choice {
  border-color: #e2e8f0;
  background: #f8fafc;
}
body.site.theme-light .zp-choice legend { color: #64748b; }
body.site.theme-light .zp-choice__opt {
  border-color: #dbe3ee;
  background: #fff;
  color: #334155;
}
body.site.theme-light .zp-choice__opt:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.zp-status {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.zp-status.is-ok { background: rgba(59, 130, 246, 0.18); color: #bfdbfe; }
.zp-status.is-out { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.zp-status.is-paused { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.zp-actions { display: flex; gap: 0.75rem; align-items: center; }
.zp-actions a,
.zp-actions button {
  background: none;
  border: 0;
  padding: 0;
  color: #93c5fd;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.zp-form { max-width: none; width: 100%; }
.zp-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.zp-choice {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
}
.zp-choice legend {
  padding: 0 0.35rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
}
.zp-choice__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.zp-choice__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.zp-choice__opt input { margin: 0; accent-color: #60a5fa; }
.zp-choice__opt:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}
@media (max-width: 640px) {
  .zp-choice-grid { grid-template-columns: 1fr; }
}
.zp-creds {
  margin: 0.4rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
}
.zp-creds__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.zp-creds__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
.zp-creds__hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .zp-creds__grid { grid-template-columns: 1fr; }
}

.af-plans {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.4rem 0 2rem;
}
.af-plans__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
}
.af-plans__mark {
  display: grid;
  place-items: center;
  color: #93c5fd;
}
.af-plans__mark .nav-ico { width: 22px; height: 22px; }
.af-plans__head h1,
.af-plans__head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.af-plans__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.af-plans__grid--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 26rem;
}
.af-plan {
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.45rem 1.35rem;
  border-radius: 18px;
  background: #1c1b00;
  border: 1.5px solid rgba(182, 255, 0, 0.28);
  box-shadow: 0 4px 24px rgba(182, 255, 0, 0.07), inset 0 1px 0 rgba(182, 255, 0, 0.08);
}
.af-plan__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.15rem;
}
.af-plan h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.af-plan__price {
  text-align: right;
  flex-shrink: 0;
}
.af-plan__price strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
}
.af-plan__price span {
  display: block;
  margin-top: 0.28rem;
  color: #9ca3af;
  font-size: 0.78rem;
}
.af-plan__benefits-label {
  margin: 0 0 0.7rem;
  color: #d1d5db;
  font-size: 0.92rem;
}
.af-plan__list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.af-plan__list li {
  position: relative;
  padding: 0 0 0.85rem 1.35rem;
  color: #e5e7eb;
  font-size: 0.92rem;
  line-height: 1.45;
}
.af-plan__list li:last-child { padding-bottom: 0; }
.af-plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #b6ff00;
  font-weight: 800;
}
.af-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--btn-gradient);
  color: #0f172a !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.28);
}
.af-plan__cta:hover { color: #0f172a !important; text-decoration: none; }
.af-plan__cta .nav-ico { width: 18px; height: 18px; }
.af-plan__cta--btn { border: 0; cursor: pointer; font: inherit; }
body.site.theme-light .af-plan {
  background: #fffde7;
  border-color: rgba(182, 255, 0, 0.65);
  box-shadow: 0 4px 24px rgba(182, 255, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.site.theme-light .af-plan h2,
body.site.theme-light .af-plan__price strong { color: #111827; }
body.site.theme-light .af-plan__benefits-label,
body.site.theme-light .af-plan__list li { color: #374151; }
body.site.theme-light .af-plans__mark,
body.site.theme-light .af-plan__list li::before { color: #5a7a00; }
.plan-modal {
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(182, 255, 0, 0.28);
  border-radius: 18px;
  background: #0a1421;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.plan-modal::backdrop {
  background: rgba(2, 8, 16, 0.72);
}
.plan-modal__box {
  padding: 1.35rem 1.4rem 1.5rem;
}
.plan-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.plan-modal__head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
  color: #eab308;
}
.plan-modal__close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.plan-modal__close:hover { color: #fff; }
.plan-modal__sub {
  margin: 0.15rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.plan-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}
.plan-modal__row--plan strong { display: block; font-size: 1rem; }
.plan-modal__duration {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.plan-modal__price { color: #eab308; font-size: 1.05rem; white-space: nowrap; }
.plan-modal__desc {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.45;
}
.plan-modal__highlight {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(182, 255, 0, 0.12);
  border: 1px solid rgba(182, 255, 0, 0.35);
  color: #d9ff66;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}
.plan-modal__note {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.plan-modal__insufficient {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.86rem;
  font-weight: 600;
}
#buy-now-step-receipt.license-receipt { text-align: left; }
#buy-now-step-receipt .license-receipt__products { margin-top: 0.9rem; }
.plan-modal__field {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--text);
}
.plan-modal__field em { font-weight: 400; color: var(--muted); }
.plan-modal__field input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.plan-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}
body.site.theme-light .plan-modal {
  background: #fff;
  border-color: rgba(182, 255, 0, 0.5);
  color: #111827;
}
body.site.theme-light .plan-modal__row {
  background: #f9fafb;
  border-color: #e5e7eb;
}
body.site.theme-light .plan-modal__field input {
  background: #fff;
  border-color: #d1d5db;
  color: #111827;
}
@media (max-width: 820px) {
  .af-plans__grid { grid-template-columns: 1fr; }
}

.card__vendor {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}
.product-detail__pill--vendor {
  text-decoration: none;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}
.mp-hero {
  max-width: none;
  width: 100%;
  margin: 0 0 1.75rem;
}
.mp-hero--compact { margin-bottom: 1.25rem; }
.mp-hero__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.mp-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.mp-hero__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}
.mp-hero__points {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: #d5dae2;
  line-height: 1.7;
}
.mp-apply-form {
  max-width: 32rem;
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.mp-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.mp-vendor-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.mp-vendor-card:hover {
  border-color: rgba(147, 197, 253, 0.45);
  transform: translateY(-2px);
}
.mp-vendor-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #1e3a5f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.25rem;
}
.mp-vendor-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-vendor-card__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.mp-vendor-card__body p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.mp-vendor-card__body span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
}
.mp-store-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
}
.mp-store-head__logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  background: #1e3a5f;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mp-store-head__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}
.mp-stat {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.mp-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mp-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
}
.mp-status-card {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  max-width: 40rem;
}
.mp-status-card--rejected,
.mp-status-card--suspended {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}
.mp-status-card p { color: var(--muted); line-height: 1.55; }

.aff-page { width: 100%; max-width: none; margin: 0 0 2rem; }
.aff-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(29, 78, 216, 0.16));
  border: 1px solid rgba(59, 130, 246, 0.28);
  margin: 0 0 1.1rem;
}
.aff-hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}
.aff-hero h1 { margin: 0 0 0.45rem; font-size: 1.45rem; }
.aff-hero p { margin: 0; color: #dbeafe; max-width: none; line-height: 1.5; }
.aff-hero__crown {
  display: grid;
  place-items: center;
  color: #93c5fd;
  opacity: 0.85;
}
.aff-hero__crown .nav-ico { width: 42px; height: 42px; }
.aff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.1rem;
}
.aff-stat {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: #141414;
  border: 1px solid #262626;
}
.aff-stat__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  color: #9ca3af;
  font-size: 0.88rem;
}
.aff-stat strong { display: block; font-size: 1.7rem; }
.aff-stat__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  min-height: 42px;
  padding: 0 1.1rem;
  width: 100%;
  border-radius: 999px;
  background: var(--btn-gradient);
  color: #0f172a !important;
  font-weight: 800;
  text-decoration: none;
}
.aff-stat__cta:hover { color: #0f172a !important; text-decoration: none; }
.aff-ref {
  padding: 1.2rem 1.25rem 1.35rem;
  border-radius: 16px;
  background: #141414;
  border: 1px solid #262626;
}
.aff-ref h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}
.aff-ref label { display: block; margin: 0 0 0.85rem; color: #d1d5db; }
.aff-ref__row { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.35rem; }
.aff-ref__row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  color: #fff;
  padding: 0 1rem;
}
.aff-copy {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #262626;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.aff-copy.is-copied { background: var(--accent); }
.aff-ref__hint { margin: 0.2rem 0 0; color: #9ca3af; font-size: 0.9rem; }
body.site.theme-light .aff-hero {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-color: #bfdbfe;
}
body.site.theme-light .aff-hero p { color: #1e3a8a; }
body.site.theme-light .aff-stat,
body.site.theme-light .aff-ref {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
body.site.theme-light .aff-ref__row input {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}
body.site.theme-light .aff-copy { background: #e5e7eb; color: #111827; }
.aff-stats--four { grid-template-columns: repeat(4, 1fr); }
.aff-stat__sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #9ca3af;
}
.aff-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.1rem;
}
.aff-withdraw-card { display: flex; flex-direction: column; }
.aff-withdraw-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
}
.aff-ref__row--link { flex-wrap: wrap; }
.aff-ref__row--link input {
  flex-basis: 100%;
  border-radius: 12px;
}
.aff-ref__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.aff-ref__btn .nav-ico { width: 16px; height: 16px; }

.aff-how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.aff-how__item { display: flex; align-items: flex-start; gap: 0.75rem; }
.aff-how__item strong { display: block; font-size: 0.94rem; }
.aff-how__item p { margin: 0.2rem 0 0; color: #9ca3af; font-size: 0.85rem; line-height: 1.4; }
.aff-how__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f1115;
}
.aff-how__num--1 { background: var(--accent, #b6ff00); }
.aff-how__num--2 { background: #22d3ee; }
.aff-how__num--3 { background: var(--accent, #b6ff00); }
.aff-how__num--4 { background: #a78bfa; }

.aff-recent__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.9rem; }
.aff-recent__head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1.05rem; }
.aff-recent__count {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #262626;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
}
.aff-recent__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.2rem 1rem;
  color: #6b7280;
  text-align: center;
}
.aff-recent__empty .nav-ico { width: 34px; height: 34px; opacity: 0.5; }
.aff-recent__empty p { margin: 0; color: #d1d5db; font-weight: 600; }
.aff-recent__empty span { font-size: 0.82rem; }
.aff-recent__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.aff-recent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid #232323;
  font-size: 0.85rem;
}
.aff-recent__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-recent__date { color: #9ca3af; font-size: 0.78rem; white-space: nowrap; }
.aff-recent__earned { color: #4ade80; font-weight: 700; white-space: nowrap; }
body.site.theme-light .aff-how__item p { color: #6b7280; }
body.site.theme-light .aff-recent__count { background: #e5e7eb; color: #4b5563; }
body.site.theme-light .aff-recent__row { background: #f9fafb; border-color: #e5e7eb; }
body.site.theme-light .aff-recent__empty { color: #9ca3af; }
body.site.theme-light .aff-recent__empty p { color: #374151; }

@media (max-width: 720px) {
  .aff-stats { grid-template-columns: 1fr; }
  .aff-stats--four { grid-template-columns: 1fr 1fr; }
  .aff-cards-row { grid-template-columns: 1fr; }
  .aff-hero { flex-direction: column; }
  .aff-recent__row { flex-wrap: wrap; }
}
.usuarios-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.75rem;
}
.usuarios-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.usuarios-tabs a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}
.usuarios-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.site.theme-light .usuarios-tabs a {
  border-color: #d1d5db;
  color: #4b5563;
}
body.site.theme-light .usuarios-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.aff-admin-tabs { margin: 1rem 0 1.1rem; }
.aff-admin-lead {
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.aff-admin-copy-form,
.aff-admin-config-form {
  max-width: 42rem;
  margin: 0 0 1.75rem;
}
.aff-admin-plans-form { margin: 0 0 1.75rem; max-width: 62rem; }
.aff-admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.15rem;
}
.aff-admin-plan-card {
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: #1a1a1a;
}
.aff-admin-plan-card legend {
  padding: 0 0.35rem;
  color: var(--accent);
  font-weight: 700;
}
.aff-admin-plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.aff-admin-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
}
.aff-admin-benefits__label {
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.aff-admin-benefits input[type="text"] {
  width: 100%;
}
.aff-admin-add-benefit {
  align-self: flex-start;
  margin-top: 0.15rem;
}
body.site.theme-light .aff-admin-plan-card {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
@media (max-width: 820px) {
  .aff-admin-plans-grid,
  .aff-admin-plan-row { grid-template-columns: 1fr; }
}
.aff-admin-table {
  margin-top: 0.35rem;
  background: #1a1a1a;
  border: 1px solid #2f2f2f;
}
.aff-admin-table table.data {
  min-width: 720px;
}
.aff-admin-table table.data th {
  background: #2a2a2a;
  color: #d1d5db;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #3a3a3a;
  padding: 0.85rem 1rem;
}
.aff-admin-table table.data td {
  background: #1f1f1f;
  color: #fff;
  border-bottom: 1px solid #2c2c2c;
  padding: 0.9rem 1rem;
  vertical-align: middle;
}
.aff-admin-table table.data tbody tr:nth-child(even) td {
  background: #242424;
}
.aff-admin-name {
  display: block;
  font-weight: 700;
}
.aff-admin-mail {
  display: block;
  margin-top: 0.15rem;
  color: #9ca3af;
  font-size: 0.8rem;
}
.aff-admin-code {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.aff-admin-btn {
  padding: 0.32rem 0.8rem;
  font-size: 0.82rem;
}
.aff-admin-empty {
  color: #9ca3af !important;
  text-align: center;
  padding: 1.4rem 1rem !important;
}
body.site.theme-light .aff-admin-table {
  background: #e5e7eb;
  border-color: #d1d5db;
}
body.site.theme-light .aff-admin-table table.data th {
  background: #d1d5db;
  color: #4b5563;
  border-bottom-color: #c4c4c4;
}
body.site.theme-light .aff-admin-table table.data td {
  background: #f3f4f6;
  color: #111827;
  border-bottom-color: #e5e7eb;
}
body.site.theme-light .aff-admin-table table.data tbody tr:nth-child(even) td {
  background: #ececec;
}
body.site.theme-light .aff-admin-mail { color: #6b7280; }

/* =========================================================
   ADMIN COLOR SCHEME — fondo #0F1B29, texto blanco,
   hover/activo en menú #B6FF00 (lima neón)
   ========================================================= */
body.site--admin {
  background: #0F1B29;
  color: #ffffff;
}
body.site--admin::before,
body.site--admin::after {
  display: none;
}

/* Sidebar fondo y panel */
body.site--admin .sidebar--admin {
  background: transparent;
}
body.site--admin .sidebar--admin .sidebar__panel {
  background: #0a1421;
  border-color: rgba(182, 255, 0, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Área de contenido */
body.site--admin .site-main {
  background: #0F1B29;
}
body.site--admin .main.main--full {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
body.site--admin .categories-admin,
body.site--admin .admin-dashboard,
body.site--admin .admin-licenses,
body.site--admin .recarga-admin-page,
body.site--admin .codigos-admin,
body.site--admin .contacto-admin,
body.site--admin .aff-page,
body.site--admin .aff-admin-plans-form {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.site--admin .form {
  max-width: none;
  width: 100%;
}
body.site--admin .table-wrap,
body.site--admin table.data {
  width: 100%;
}
body.site--admin h1 {
  text-align: left;
}

.product-quick {
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #0a1421;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.product-quick::backdrop {
  background: rgba(2, 8, 16, 0.72);
}
.product-quick__form { margin: 0; max-width: none; width: 100%; }
.product-quick__head,
.product-quick__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
}
.product-quick__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.product-quick__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.product-quick__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.product-quick__body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  overflow: auto;
  max-height: min(70vh, 34rem);
}
.product-quick__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.product-quick__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}
.product-quick__field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}
.product-quick__field input,
.product-quick__field select,
.product-quick__field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  font: inherit;
  box-sizing: border-box;
}
.product-quick__choice {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}
.product-quick__choice legend {
  padding: 0 0.3rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-quick__choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}
.product-quick__empty { margin: 0; color: #94a3b8; }
.product-quick__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .product-quick__row { grid-template-columns: 1fr; }
}

.provider-popup {
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #1c1d21;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.provider-popup::backdrop {
  background: rgba(2, 8, 16, 0.78);
}
.provider-popup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
}
.provider-popup__lock {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #9aa3af;
  margin-bottom: 0.4rem;
}
.provider-popup__lock-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1c1d21;
}
.provider-popup__body h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}
.provider-popup__msg {
  margin: 0 0 0.5rem;
  color: #9aa3af;
  font-size: 0.9rem;
  line-height: 1.5;
}
.provider-popup__plan {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(182, 255, 0, 0.08);
  border: 1px solid rgba(182, 255, 0, 0.25);
  text-align: left;
  box-sizing: border-box;
  margin-bottom: 0.35rem;
}
.provider-popup__plan-ico {
  flex: none;
  color: #eab308;
}
.provider-popup__plan strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}
.provider-popup__plan span {
  display: block;
  color: #9aa3af;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.provider-popup__benefits-label {
  width: 100%;
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  text-align: left;
}
.provider-popup__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.provider-popup__benefits li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  font-size: 0.86rem;
}
.provider-popup__check {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #22c55e;
  color: #06240f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider-popup__cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--lime, #B6FF00);
  color: #0a1421;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-sizing: border-box;
}
.provider-popup__cta:hover { filter: brightness(0.95); }
.provider-popup__close {
  margin-top: 0.35rem;
  background: none;
  border: 0;
  color: #9aa3af;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.provider-popup__close:hover { color: #cbd5e1; }

body.site--admin .footer.footer--admin-only {
  background: #0F1B29;
  border-top: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.42);
}
body.site--admin .footer.footer--admin-only .footer__inner {
  text-align: center;
}
body.site--admin .footer.footer--admin-only p {
  margin: 0;
}

/* Topbar móvil */
body.site--admin .topbar--mobile {
  background: #0a1421;
  border-bottom: 1px solid rgba(182, 255, 0, 0.12);
}

/* Usuario en sidebar */
body.site--admin .sidebar-user__name {
  color: #ffffff;
}
body.site--admin .sidebar-user__role {
  color: rgba(182, 255, 0, 0.7);
}

/* Tags de sección */
body.site--admin .sidebar-nav__tag {
  color: rgba(182, 255, 0, 0.55);
}

/* Links del menú — estado base */
body.site--admin .sidebar-nav__link {
  color: rgba(255, 255, 255, 0.7);
}

/* Hover */
body.site--admin .sidebar-nav__link:hover {
  color: #B6FF00;
  background: rgba(182, 255, 0, 0.08);
  border-color: rgba(182, 255, 0, 0.18);
}

/* Activo */
body.site--admin .sidebar-nav__link.is-active {
  color: #B6FF00;
  background: rgba(182, 255, 0, 0.12);
  border-color: rgba(182, 255, 0, 0.3);
  box-shadow: 0 0 12px rgba(182, 255, 0, 0.1);
}
body.site--admin .sidebar-nav__link.is-active::before {
  background: #B6FF00;
}

/* Logout */
body.site--admin .sidebar-nav__link--logout {
  color: rgba(255, 100, 100, 0.75);
}
body.site--admin .sidebar-nav__link--logout:hover {
  color: #f87171;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.25);
}

/* Colapso del sidebar */
body.site--admin .sidebar__collapse::before,
body.site--admin .sidebar__collapse::after {
  background: rgba(255, 255, 255, 0.5);
}
body.site--admin .sidebar__collapse:hover::before,
body.site--admin .sidebar__collapse:hover::after {
  background: #B6FF00;
}

/* Títulos y textos generales en el área admin */
body.site--admin h1,
body.site--admin h2,
body.site--admin h3,
body.site--admin h4,
body.site--admin h5 {
  color: #ffffff;
}
body.site--admin p,
body.site--admin td,
body.site--admin th,
body.site--admin label,
body.site--admin span:not([class*="badge"]):not([class*="alert"]) {
  color: inherit;
}

/* Tablas en admin */
body.site--admin table {
  color: #e2e8f0;
}
body.site--admin thead tr {
  background: rgba(10, 20, 33, 0.8) !important;
}
body.site--admin tbody tr {
  border-color: rgba(255, 255, 255, 0.06) !important;
}
body.site--admin tbody tr:hover {
  background: rgba(182, 255, 0, 0.04);
}

/* Cards / panels en el área de contenido admin */
body.site--admin .card {
  background: rgba(10, 20, 33, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* Inputs y selects */
body.site--admin input[type="text"],
body.site--admin input[type="number"],
body.site--admin input[type="email"],
body.site--admin input[type="password"],
body.site--admin input[type="url"],
body.site--admin textarea,
body.site--admin select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
body.site--admin input::placeholder,
body.site--admin textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
body.site--admin input:focus,
body.site--admin textarea:focus,
body.site--admin select:focus {
  border-color: #B6FF00;
  box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.12);
  outline: none;
}

/* Scrollbar del sidebar */
body.site--admin .sidebar__panel::-webkit-scrollbar-thumb {
  background: rgba(182, 255, 0, 0.3);
}
body.site--admin .sidebar__panel {
  scrollbar-color: rgba(182, 255, 0, 0.3) transparent;
}

/* ── Chats (comprador ↔ proveedor) ─────────────────────── */
.chats-inbox { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.chats-inbox__title { margin: 0 0 1rem; }
.chats-inbox__section { margin: 1.5rem 0 0.75rem; font-size: 0.95rem; color: var(--muted); }
.chats-inbox__empty { color: var(--muted); }
.chats-inbox__list { display: grid; gap: 0.5rem; }
.chats-inbox__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #141414;
  border: 1px solid #262626;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.chats-inbox__row:hover { border-color: rgba(182, 255, 0, 0.4); }
.chats-inbox__row--unread { border-color: rgba(182, 255, 0, 0.5); background: rgba(182, 255, 0, 0.05); }
.chats-inbox__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #262626;
  color: #fff;
}
.chats-inbox__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.chats-inbox__body strong { font-size: 0.94rem; }
.chats-inbox__sub { font-size: 0.78rem; color: #9ca3af; }
.chats-inbox__preview { font-size: 0.82rem; color: #d1d5db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chats-inbox__badge {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #22c55e;
  color: #04110a;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.chat-pedido {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 420px;
  border: 1px solid #262626;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
}
.chat-pedido__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #141414;
  border-bottom: 1px solid #262626;
}
.chat-pedido__back { color: #fff; display: flex; }
.chat-pedido__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #262626;
  color: #fff;
}
.chat-pedido__head-text { display: flex; flex-direction: column; min-width: 0; }
.chat-pedido__head-text strong { font-size: 0.95rem; }
.chat-pedido__head-text span { font-size: 0.78rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pedido__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
}
.chat-pedido__hint { margin: auto; color: #6b7280; font-size: 0.85rem; text-align: center; }
.chat-pedido__bubble {
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.chat-pedido__bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-pedido__bubble--theirs { align-self: flex-start; background: #1f1f1f; color: #fff; border-bottom-left-radius: 4px; }
.chat-pedido__bubble--mine { align-self: flex-end; background: #005c4b; color: #fff; border-bottom-right-radius: 4px; }
.chat-pedido__time { display: block; margin-top: 0.2rem; font-size: 0.68rem; color: rgba(255, 255, 255, 0.55); text-align: right; }
.chat-pedido__sender { display: block; font-size: 0.68rem; font-weight: 700; opacity: 0.75; margin-bottom: 0.15rem; }
.chat-pedido--admin { height: auto; min-height: 220px; border-color: #e5e7eb; background: #f9fafb; }
.chat-pedido--admin .chat-pedido__bubble--theirs { background: #fff; color: #111827; border: 1px solid #e5e7eb; }
.chat-pedido--admin .chat-pedido__bubble--mine { background: #dcf8c6; color: #111827; }
.chat-pedido--admin .chat-pedido__bubble--mine .chat-pedido__time,
.chat-pedido--admin .chat-pedido__bubble--theirs .chat-pedido__time { color: rgba(0, 0, 0, 0.45); }
.chat-pedido__composer {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #141414;
  border-top: 1px solid #262626;
}
.chat-pedido__composer textarea {
  flex: 1;
  resize: none;
  max-height: 120px;
  min-height: 40px;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.chat-pedido__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: var(--accent, #b6ff00);
  color: #0f1115;
}
body.site.theme-light .chats-inbox__row { background: #f9fafb; border-color: #e5e7eb; color: #111827; }
body.site.theme-light .chats-inbox__sub,
body.site.theme-light .chats-inbox__preview { color: #6b7280; }
body.site.theme-light .chat-pedido { background: #fff; border-color: #e5e7eb; }
body.site.theme-light .chat-pedido__head { background: #f9fafb; border-color: #e5e7eb; }
body.site.theme-light .chat-pedido__bubble--theirs { background: #f1f1f1; color: #111827; }
body.site.theme-light .chat-pedido__composer { background: #f9fafb; border-color: #e5e7eb; }
body.site.theme-light .chat-pedido__composer textarea { background: #fff; color: #111827; border-color: #d1d5db; }
@media (max-width: 640px) {
  .chat-pedido { height: calc(100vh - 160px); border-radius: 0; }
}
