/* ==========================================================================
   POISONCRAFT WEBSTORE — SISTEMA DE DISEÑO CLARO (CON MODO OSCURO OPCIONAL)
   Calculado al milímetro: márgenes simétricos, tarjetas de altura uniforme,
   animaciones suaves en hover y compatibilidad completa móvil / escritorio.
========================================================================== */

:root,
html[data-theme="light"] {
  color-scheme: light;

  --bg-page: #f4f7f5;
  --bg-surface: #ffffff;
  --bg-subtle: #edf3ef;
  --bg-elevated: #ffffff;
  --bg-locked: #f8faf9;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-showcase: #0d1612;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-400: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.11);
  --emerald-border: rgba(5, 150, 105, 0.28);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-emerald: #ffffff;

  --border-subtle: #dce5df;
  --border-strong: #c2d3c9;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 18px 40px rgba(5, 150, 105, 0.14);

  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;

  --info-bg: #fffbeb;
  --info-border: #fde68a;
  --info-text: #92400e;

  --code-bg: #ecfdf5;
  --code-text: #047857;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #090d0b;
  --bg-surface: #111915;
  --bg-subtle: #0e1511;
  --bg-elevated: #15201b;
  --bg-locked: #0d1410;
  --bg-header: rgba(9, 13, 11, 0.88);
  --bg-showcase: #0b130f;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-400: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(52, 211, 153, 0.34);

  --text-primary: #f1f5f3;
  --text-secondary: #a7b8af;
  --text-muted: #74887d;
  --text-on-emerald: #04150d;

  --border-subtle: rgba(52, 211, 153, 0.15);
  --border-strong: rgba(52, 211, 153, 0.36);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 20px 44px rgba(0, 0, 0, 0.52), 0 0 24px rgba(16, 185, 129, 0.14);

  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.38);
  --danger-text: #fca5a5;

  --info-bg: rgba(245, 158, 11, 0.1);
  --info-border: rgba(245, 158, 11, 0.35);
  --info-text: #fcd34d;

  --code-bg: rgba(16, 185, 129, 0.14);
  --code-text: #34d399;
}

:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-height: 74px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset estricto para alineación milimétrica */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 5px;
}

[hidden] {
  display: none !important;
}

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

.container {
  width: min(1260px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER FIJO
========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-600);
}

html[data-theme="dark"] .brand__tag {
  color: var(--emerald-400);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
}

.site-nav__link svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

.site-nav__link:hover {
  color: var(--emerald-600);
  background: var(--emerald-soft);
}

html[data-theme="dark"] .site-nav__link:hover {
  color: var(--emerald-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.header-player-chip:hover {
  border-color: var(--emerald-500);
}

.header-player-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  image-rendering: pixelated;
}

.ip-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ip-copy-btn:hover {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-card);
}

.ip-copy-btn:active {
  transform: scale(0.98);
}

.ip-copy-btn.is-copied {
  border-color: var(--emerald-500);
  background: var(--emerald-soft);
}

.ip-copy-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  flex-shrink: 0;
}

.ip-copy-btn__text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ip-copy-btn__badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald-700);
  transition: all var(--transition);
}

html[data-theme="dark"] .ip-copy-btn__badge {
  color: var(--emerald-400);
}

.ip-copy-btn.is-copied .ip-copy-btn__badge {
  background: var(--emerald-600);
  color: #ffffff;
}

/* ==========================================================================
   HERO DE CONFIANZA + BUSCADOR DE USUARIO
========================================================================== */
.hero {
  position: relative;
  padding: 48px 0 44px;
  background:
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.11), transparent 44%),
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.06), transparent 40%),
    var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-700);
  margin-bottom: 16px;
}

html[data-theme="dark"] .hero__eyebrow {
  color: var(--emerald-400);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-emerald {
  color: var(--emerald-600);
}

html[data-theme="dark"] .text-emerald {
  color: var(--emerald-400);
}

.hero__subtitle {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero__subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Buscador de jugador dentro del Hero */
.player-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.player-card:focus-within {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px var(--emerald-soft), var(--shadow-card);
}

.player-card.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  animation: shakeX 0.36s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.player-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.player-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  image-rendering: pixelated;
  background: var(--bg-subtle);
}

.player-card__edition {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--emerald-600);
  color: #ffffff;
  border: 2px solid var(--bg-surface);
  white-space: nowrap;
}

.player-card__edition--bedrock {
  background: #0284c7;
}

.player-card__form {
  flex: 1;
  min-width: 0;
}

.player-card__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.player-card__input-row {
  display: flex;
  gap: 10px;
}

.input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.player-input {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.player-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.player-input:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}

.input-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.input-clear-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.player-card__meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-helper {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-status {
  margin: 0;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--emerald-600);
}

html[data-theme="dark"] .player-status {
  color: var(--emerald-400);
}

.player-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger-text);
}

.hero__highlights {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__highlights svg {
  width: 17px;
  height: 17px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

html[data-theme="dark"] .hero__highlights svg {
  color: var(--emerald-400);
}

/* Tarjeta derecha con emblema oficial en el Hero */
.hero__showcase {
  display: flex;
  justify-content: flex-end;
}

.hero-emblem-card {
  width: 100%;
  max-width: 340px;
  padding: 22px 20px 16px;
  border-radius: var(--radius-xl);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-emblem-card__img {
  width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.16));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-emblem-card:hover .hero-emblem-card__img {
  transform: translateY(-4px) scale(1.03);
}

.hero-emblem-card__footer {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.status-pill-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--emerald-700);
}

html[data-theme="dark"] .status-pill-online {
  color: var(--emerald-400);
}

.status-pill-online__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.hero-emblem-card__ip {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   BOTONES REUTILIZABLES
========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
  color: #ffffff;
  border-color: var(--emerald-600);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.22);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn--secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--emerald-soft);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
}

html[data-theme="dark"] .btn--secondary:hover:not(:disabled) {
  color: var(--emerald-400);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none !important;
}

.btn__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ENCABEZADOS CENTRADOS (ESTILO REFERENCIA MILIMÉTRICA)
========================================================================== */
.section-heading-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-heading-centered__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-heading-centered__bar {
  width: 84px;
  height: 3px;
  margin: 12px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
}

.section-heading-centered__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN 1: MODALIDADES (PRISON OP CON ANIMACIÓN EN HOVER)
========================================================================== */
.modalities-section {
  padding: 56px 0 44px;
}

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 959px) {
  .modalities-grid {
    grid-template-columns: 1fr;
  }
}

.modality-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

/* Animación interactiva al pasar el mouse sobre la modalidad activa */
.modality-card--active:hover {
  transform: translateY(-7px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-hover);
}

.modality-card__banner {
  position: relative;
  height: 224px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.24) 0%, rgba(13, 22, 18, 0.96) 72%),
    var(--bg-showcase);
  border-bottom: 1px solid var(--border-subtle);
}

.modality-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.modality-card--active:hover .modality-card__shine {
  transform: translateX(120%);
}

.modality-card__logo {
  max-height: 188px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease;
}

.modality-card--active:hover .modality-card__logo {
  transform: scale(1.07);
  filter: drop-shadow(0 12px 24px rgba(16, 185, 129, 0.35));
}

.modality-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--emerald-600);
  color: #ffffff;
}

.modality-card__banner--muted {
  background: var(--bg-subtle);
}

.modality-card__badge--muted {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.upcoming-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.upcoming-emblem svg {
  width: 28px;
  height: 28px;
}

.modality-card__content {
  flex: 1;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.modality-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modality-card__text {
  margin: 0 0 16px;
  font-size: 0.89rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.modality-card__tags {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.modality-card__tags li {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.modality-card__cta {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
}

.modality-card__cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.modality-card--active:hover .modality-card__cta svg {
  transform: translateX(4px);
}

.modality-card--upcoming {
  opacity: 0.76;
}

.modality-card__placeholder-btn {
  margin-top: auto;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   SECCIÓN 2: LAYOUT SIDEBAR + CATÁLOGO EN VIVO (CALCULADO AL MILÍMETRO)
========================================================================== */
.catalog-section {
  padding: 24px 0 64px;
}

.store-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1023px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
}

/* Barra lateral izquierda */
.store-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 1023px) {
  .store-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Selector Light / Dark Mode */
.theme-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.theme-switch__btn {
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-switch__btn.is-active {
  background: var(--bg-surface);
  color: var(--emerald-600);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .theme-switch__btn.is-active {
  color: var(--emerald-400);
}

/* Banner lateral del servidor */
.sidebar-banner-card {
  padding: 0;
  overflow: hidden;
}

.sidebar-banner-card__img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-banner-card__body {
  padding: 16px;
}

.sidebar-banner-card__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.sidebar-banner-card__body p {
  margin: 0 0 12px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.sidebar-ip-copy {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition);
}

.sidebar-ip-copy:hover {
  border-color: var(--emerald-500);
}

.sidebar-ip-copy__tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-600);
}

html[data-theme="dark"] .sidebar-ip-copy__tag {
  color: var(--emerald-400);
}

/* Paquete destacado en el sidebar */
.popular-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.popular-mini-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

.popular-mini-card img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.popular-mini-card__info {
  min-width: 0;
}

.popular-mini-card__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-mini-card__price {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald-600);
}

html[data-theme="dark"] .popular-mini-card__price {
  color: var(--emerald-400);
}

/* Panel principal derecho del catálogo */
.store-main {
  min-width: 0;
}

.store-main__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.store-main__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.store-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  width: 210px;
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.84rem;
}

.search-box input:focus,
.sort-select:focus {
  outline: none;
  border-color: var(--emerald-500);
}

.sort-select {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

/* Barra de categorías + contador */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.category-tab:hover {
  border-color: var(--emerald-500);
  color: var(--text-primary);
}

.category-tab.is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
}

html[data-theme="dark"] .category-tab.is-active {
  color: var(--emerald-400);
}

.category-tab__count {
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.category-tab.is-active .category-tab__count {
  background: var(--emerald-600);
  color: #ffffff;
}

.catalog-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Banners de estado / errores */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.notice-banner--info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

.notice-banner--error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.notice-banner__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid currentColor;
}

.notice-banner__content {
  flex: 1;
}

.notice-banner__close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

/* ==========================================================================
   CUADRÍCULA DE PAQUETES (ALINEACIÓN EXACTA Y ALTURA UNIFORME)
   3 columnas junto al sidebar en escritorio -> 2 en tablet -> 1 en móvil
========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 899px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-hover);
}

.package-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 12px;
}

.package-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--emerald-soft);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-border);
}

html[data-theme="dark"] .package-badge {
  color: var(--emerald-400);
}

.package-badge--discount {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: var(--info-border);
}

/* Marco uniforme para la imagen del producto */
.package-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.package-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.32s ease;
}

.package-card:hover .package-card__media img {
  transform: scale(1.04);
}

.package-card__fallback-icon {
  width: 54px;
  height: 54px;
  color: var(--emerald-600);
}

/* Cabecera de título y precio alineados */
.package-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 10px;
}

.package-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-card__price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.package-card__price-old {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.package-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-600);
  white-space: nowrap;
}

html[data-theme="dark"] .package-card__price {
  color: var(--emerald-400);
}

/* Cuerpo con altura controlada para simetría exacta */
.package-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.package-card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-card__desc p {
  margin: 0;
}

.package-card__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-card__bullets li {
  position: relative;
  padding-left: 15px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.package-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.package-card__actions .btn {
  height: 41px;
  padding: 0 12px;
  font-size: 0.85rem;
}

/* Tarjeta bloqueada "Próximo Rango / Muy Pronto" con dimensiones idénticas */
.package-card--locked {
  background: var(--bg-locked);
  border: 1px dashed var(--border-strong);
  box-shadow: none;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

.package-card--locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
}

.locked-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.locked-media__circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
}

.locked-media svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.locked-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.locked-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.locked-subtitle {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.locked-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.locked-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--border-subtle);
}

.locked-lines span:nth-child(2) {
  width: 82%;
}

.locked-lines span:nth-child(3) {
  width: 62%;
}

.locked-btn {
  margin-top: auto;
  width: 100%;
  height: 41px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.package-card--skeleton {
  min-height: 430px;
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-subtle) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 52px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN 3: TODAS LAS SECCIONES DE ÍTEMS EN PRISON OP
========================================================================== */
.sections-overview {
  padding: 52px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

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

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

.item-section-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.item-section-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-hover);
}

.item-section-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-showcase);
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.item-section-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.item-section-card:hover .item-section-card__media img {
  transform: scale(1.06);
}

.item-section-card__body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.item-section-card__tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
}

html[data-theme="dark"] .item-section-card__tag {
  color: var(--emerald-400);
}

.item-section-card__body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.item-section-card__body p {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.item-section-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.item-section-card__link:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-600);
  background: var(--emerald-soft);
}

/* ==========================================================================
   SECCIÓN 4: GUÍA DE 3 PASOS
========================================================================== */
.steps-section {
  padding: 48px 0 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-card__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

html[data-theme="dark"] .step-card__num {
  color: var(--emerald-400);
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ==========================================================================
   FOOTER
========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 26px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
}

.site-footer__disclaimer {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-ip-btn {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--emerald-700);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

html[data-theme="dark"] .footer-ip-btn {
  color: var(--emerald-400);
}

.footer-ip-btn:hover {
  border-color: var(--emerald-500);
  background: var(--emerald-soft);
}

/* ==========================================================================
   MODAL DE BENEFICIOS COMPLETOS
========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-dialog {
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header__info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.modal-header__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.modal-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-600);
}

html[data-theme="dark"] .modal-category-badge {
  color: var(--emerald-400);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.2;
}

.modal-price {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-600);
}

html[data-theme="dark"] .modal-price {
  color: var(--emerald-400);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  border-color: var(--emerald-500);
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

.modal-description p {
  margin: 0 0 10px;
}

.modal-description ul,
.modal-description ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.modal-description li {
  margin-bottom: 6px;
}

.modal-description strong,
.modal-description b {
  color: var(--text-primary);
}

.modal-description .tebex-section-heading {
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

html[data-theme="dark"] .modal-description .tebex-section-heading {
  color: var(--emerald-400);
}

.modal-description .tebex-bullet-line {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-description .tebex-bullet-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

.modal-player-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-player-summary img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  image-rendering: pixelated;
}

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

/* ==========================================================================
   TOAST NOTIFICATIONS
========================================================================== */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
  font-size: 0.88rem;
  font-weight: 500;
  animation: toastSlideIn 0.22s ease-out;
}

.toast--success {
  border-color: var(--emerald-500);
}

.toast--error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.toast--warning {
  border-color: var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE TABLET / MÓVIL
========================================================================== */
@media (max-width: 1023px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__showcase {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 639px) {
  .container {
    width: calc(100% - 28px);
  }

  .header-player-chip {
    display: none;
  }

  .hero {
    padding: 34px 0 32px;
  }

  .player-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .player-card__avatar-wrap {
    margin-inline: auto;
  }

  .player-card__label,
  .player-card__meta {
    text-align: center;
  }

  .player-card__input-row {
    flex-direction: column;
  }

  .ip-copy-btn__badge {
    display: none;
  }

  .store-controls,
  .search-box,
  .sort-box,
  .sort-select {
    width: 100%;
  }
}
