/* =========================================================
   MONTERREY RP
   Paleta basada en el logo: negro, blanco y morado.
   ========================================================= */

:root {
  --background: #07070a;
  --background-soft: #101017;
  --surface: #15151f;
  --surface-light: #1d1d29;
  --text: #ffffff;
  --text-soft: #b9b9c7;
  --purple: #8a00ff;
  --purple-light: #b84cff;
  --purple-dark: #4f0097;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

/* -------------------- HEADER -------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 10, 0.64);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(7, 7, 10, 0.92);
}

.nav-wrapper {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img,
.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a:not(.button) {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.main-nav > a:not(.button):hover {
  color: var(--text);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

/* -------------------- BUTTONS -------------------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--purple);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 14px 34px rgba(138, 0, 255, 0.28);
  color: #fff;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(138, 0, 255, 0.4);
  filter: brightness(1.08);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.button-outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.button-outline:hover {
  border-color: rgba(184, 76, 255, 0.7);
  box-shadow: none;
}

/* -------------------- HERO -------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px 0 90px;
  isolation: isolate;
  background:
    linear-gradient(rgba(7, 7, 10, 0.84), rgba(7, 7, 10, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 80px
    );
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
  align-items: center;
  gap: 58px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: var(--purple-light);
  text-shadow: 0 0 34px rgba(138, 0, 255, 0.38);
}

.hero-text {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.server-box {
  max-width: 540px;
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.server-box > div {
  min-width: 0;
}

.server-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.server-box strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(184, 76, 255, 0.55);
  border-radius: 12px;
  background: rgba(138, 0, 255, 0.16);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(138, 0, 255, 0.28);
}

.hero-logo-card {
  position: relative;
  z-index: 1;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  width: min(90%, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 76, 255, 0.26);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(138, 0, 255, 0.08),
    0 0 90px rgba(138, 0, 255, 0.13);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  filter:
    drop-shadow(0 28px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 22px rgba(138, 0, 255, 0.2));
  animation: float-logo 5s ease-in-out infinite;
}

.logo-shadow {
  position: absolute;
  bottom: 10%;
  width: 65%;
  height: 70px;
  border-radius: 50%;
  background: rgba(138, 0, 255, 0.22);
  filter: blur(32px);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-glow-one {
  top: -180px;
  right: -160px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(138, 0, 255, 0.28), transparent 68%);
}

.hero-glow-two {
  bottom: -220px;
  left: -160px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 76, 255, 0.14), transparent 70%);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple-light);
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

/* -------------------- GENERAL SECTIONS -------------------- */

.section {
  padding: 112px 0;
}

.section-dark {
  background:
    radial-gradient(circle at 20% 0, rgba(138, 0, 255, 0.12), transparent 30%),
    var(--background-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-heading h2,
.city-content h2,
.community-content h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child,
.city-content > p,
.community-content > p {
  color: var(--text-soft);
}

/* -------------------- FEATURES -------------------- */

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

.feature-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(138, 0, 255, 0.2);
  filter: blur(18px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 76, 255, 0.58);
}

.card-number {
  color: var(--purple-light);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.feature-card h3 {
  margin: 58px 0 12px;
  font-size: 1.5rem;
}

.feature-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text-soft);
}

/* -------------------- CITY -------------------- */

.city-section {
  overflow: hidden;
  background:
    linear-gradient(135deg, #f7f7fa, #ffffff);
  color: #101017;
}

.city-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.city-image {
  position: relative;
}

.city-image::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: rgba(138, 0, 255, 0.13);
  filter: blur(36px);
}

.city-image img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 24px 28px rgba(35, 0, 65, 0.18));
}

.city-content .eyebrow {
  color: var(--purple);
}

.city-content > p {
  color: #575764;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--purple-dark);
  font-weight: 900;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

/* -------------------- STEPS -------------------- */

.steps-section {
  background:
    radial-gradient(circle at 80% 0, rgba(138, 0, 255, 0.16), transparent 28%),
    var(--background);
}

.steps-grid {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.step > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 76, 255, 0.52);
  border-radius: 16px;
  background: rgba(138, 0, 255, 0.16);
  color: var(--purple-light);
  font-size: 1.15rem;
  font-weight: 950;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.step p {
  margin: 0;
  color: var(--text-soft);
}


/* -------------------- STORE -------------------- */

.store-section {
  padding-top: 76px;
  background:
    radial-gradient(circle at 15% 20%, rgba(138, 0, 255, 0.14), transparent 30%),
    var(--background);
}

.store-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 38px;
  margin-bottom: 34px;
}

.store-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.store-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.store-heading-actions {
  display: grid;
  justify-items: end;
  gap: 13px;
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.store-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c29b27;
  box-shadow: 0 0 14px rgba(194, 155, 39, 0.55);
}

.store-status.is-connected::before {
  background: #45d483;
  box-shadow: 0 0 14px rgba(69, 212, 131, 0.55);
}

.store-status.is-error::before {
  background: #f45c68;
  box-shadow: 0 0 14px rgba(244, 92, 104, 0.55);
}

.button-compact {
  min-height: 44px;
  width: auto;
  padding-inline: 18px;
}

.store-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 76, 255, 0.35);
  border-radius: 15px;
  background: rgba(138, 0, 255, 0.1);
  color: #e9d9ff;
  font-weight: 700;
}

.store-notice[data-type="success"] {
  border-color: rgba(69, 212, 131, 0.38);
  background: rgba(69, 212, 131, 0.1);
  color: #bff5d5;
}

.store-notice[data-type="error"] {
  border-color: rgba(244, 92, 104, 0.4);
  background: rgba(244, 92, 104, 0.1);
  color: #ffd0d5;
}

.store-categories {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 7px;
  scrollbar-width: thin;
}

.store-filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-weight: 850;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.store-filter:hover,
.store-filter.is-active {
  border-color: rgba(184, 76, 255, 0.7);
  background: rgba(138, 0, 255, 0.17);
  color: #fff;
}

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

.tebex-product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.tebex-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 76, 255, 0.55);
}

.tebex-product-card[hidden] {
  display: none;
}

.tebex-product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(138, 0, 255, 0.27), transparent 48%),
    #0b0b10;
}

.tebex-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.tebex-product-media img.is-fallback {
  padding: 34px;
  object-fit: contain;
}

.tebex-product-card:hover .tebex-product-media img {
  transform: scale(1.035);
}

.tebex-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tebex-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 23px;
}

.tebex-product-body h3 {
  margin: 0 0 9px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.tebex-product-body > p {
  flex: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tebex-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.tebex-product-price {
  color: var(--purple-light);
  font-size: 1.22rem;
  white-space: nowrap;
}

.tebex-buy-button {
  min-height: 44px;
  width: auto;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.tebex-buy-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.tebex-loading-card,
.tebex-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.tebex-loading-card p,
.tebex-empty-state p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--text-soft);
}

.tebex-empty-state .button {
  margin-top: 18px;
}

.tebex-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.tebex-spinner {
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  border: 3px solid rgba(255, 255, 255, 0.13);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: tebex-spin 800ms linear infinite;
}

.store-noscript {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-soft);
}

.store-noscript a {
  color: var(--purple-light);
  font-weight: 900;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

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

/* -------------------- COMMUNITY -------------------- */

.community-section {
  padding-top: 20px;
  background: var(--background);
}

.community-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 30px;
  padding: 58px;
  border: 1px solid rgba(184, 76, 255, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(138, 0, 255, 0.18), rgba(255, 255, 255, 0.03)),
    var(--surface);
  box-shadow: var(--shadow);
}

.community-card::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(138, 0, 255, 0.24);
  filter: blur(65px);
}

.community-content {
  position: relative;
  z-index: 2;
}

.community-content > p {
  max-width: 620px;
}

.community-logo {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  justify-self: end;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.42));
}

/* -------------------- FOOTER -------------------- */

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: #050507;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* -------------------- TOAST -------------------- */

.toast {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  border: 1px solid rgba(184, 76, 255, 0.42);
  border-radius: 12px;
  background: #181821;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- ANIMATIONS -------------------- */

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }

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

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(12, 12, 18, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a {
    padding: 10px;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-grid,
  .city-grid,
  .store-card,
  .community-card {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    min-height: 430px;
  }

  .hero-logo {
    width: min(100%, 560px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 240px;
  }

  .city-grid {
    gap: 28px;
  }

  .city-content {
    max-width: 720px;
  }

  .store-visual {
    min-height: 220px;
  }

  .community-logo {
    width: min(80%, 360px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 90px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .server-box {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .hero-logo-card {
    min-height: 340px;
  }

  .section {
    padding: 82px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .store-card,
  .community-card {
    min-height: auto;
    padding: 34px 22px;
    border-radius: 24px;
  }

  .community-actions {
    display: grid;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}


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

  .store-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .store-heading-actions {
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .tebex-products {
    grid-template-columns: 1fr;
  }

  .tebex-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tebex-buy-button,
  .store-heading-actions .button {
    width: 100%;
  }

  .tebex-empty-actions {
    display: grid;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   PÁGINA DE TIENDA SEPARADA
   ========================================================= */

.store-page {
  background: var(--background);
}

.store-page .site-header {
  position: fixed;
}

.store-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 78px;
  isolation: isolate;
  background:
    linear-gradient(rgba(7, 7, 10, 0.82), rgba(7, 7, 10, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 80px
    );
}

.store-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.store-page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.store-page-intro {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.store-page-logo {
  width: min(100%, 500px);
  justify-self: end;
  filter:
    drop-shadow(0 28px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 22px rgba(138, 0, 255, 0.2));
}

.store-login-panel {
  max-width: 760px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(184, 76, 255, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.store-login-info {
  min-width: 0;
}

.store-login-label {
  display: block;
  color: var(--purple-light);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-login-info strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 1.18rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-login-info small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
}

.store-login-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.store-login-actions .button {
  min-height: 46px;
  width: auto;
  padding-inline: 18px;
  cursor: pointer;
}

.store-login-actions .button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.tebex-authenticated .store-login-panel {
  border-color: rgba(69, 212, 131, 0.4);
  box-shadow: 0 0 34px rgba(69, 212, 131, 0.08);
}

.auth-return-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 30px;
  background: #08080c;
  color: #fff;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.auth-return-screen strong {
  font-size: 1.4rem;
}

.auth-return-screen p {
  color: #bbb;
}

@media (max-width: 920px) {
  .store-page-hero-grid {
    grid-template-columns: 1fr;
  }

  .store-page-logo {
    width: min(75%, 430px);
    justify-self: center;
  }

  .store-login-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .store-login-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .store-page-hero {
    padding-top: 125px;
  }

  .store-login-actions {
    display: grid;
  }

  .store-login-actions .button {
    width: 100%;
  }
}


/* =========================================================
   CARRITO TEBEX
   ========================================================= */

.store-heading-tools {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.cart-nav-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.cart-nav-button:hover,
.cart-nav-button.has-items {
  border-color: rgba(184, 76, 255, 0.65);
  background: rgba(138, 0, 255, 0.15);
}

.cart-nav-icon {
  font-size: 1rem;
}

.cart-nav-button strong,
.inline-cart-count {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
}

.cart-layer {
  position: fixed;
  z-index: 3000;
  inset: 0;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  cursor: default;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 470px);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid rgba(184, 76, 255, 0.35);
  background:
    radial-gradient(circle at 100% 0, rgba(138, 0, 255, 0.18), transparent 32%),
    #0c0c12;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.48);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-open {
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 25px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header .eyebrow {
  margin-bottom: 3px;
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.cart-close-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-auth-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 25px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.cart-auth-summary span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.cart-auth-summary strong {
  overflow: hidden;
  color: var(--purple-light);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-items {
  overflow-y: auto;
  padding: 18px 20px;
}

.cart-empty {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  color: var(--text-soft);
  text-align: center;
}

.cart-empty strong {
  color: var(--text);
}

.cart-empty p {
  margin: 7px 0 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item > img {
  width: 68px;
  height: 68px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #08080c;
  object-fit: cover;
}

.cart-item-content {
  min-width: 0;
  display: grid;
}

.cart-item-content strong {
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-content span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.cart-item-content small {
  margin-top: 3px;
  color: var(--purple-light);
  font-weight: 850;
}

.cart-remove-button {
  padding: 7px 9px;
  border: 1px solid rgba(244, 92, 104, 0.28);
  border-radius: 9px;
  background: rgba(244, 92, 104, 0.08);
  color: #ffb9c0;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.cart-remove-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.cart-drawer-footer {
  padding: 20px 25px 25px;
  border-top: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.86);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart-total-row span {
  color: var(--text-soft);
}

.cart-total-row strong {
  color: var(--purple-light);
  font-size: 1.35rem;
  text-align: right;
}

.cart-tax-note {
  margin: 7px 0 17px;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.cart-checkout-button {
  width: 100%;
  cursor: pointer;
}

.cart-checkout-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.5;
  transform: none;
}

.cart-clear-button {
  width: 100%;
  margin-top: 11px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 750;
  cursor: pointer;
}

.cart-clear-button:hover:not(:disabled) {
  color: #fff;
}

.cart-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.auth-return-screen button {
  min-height: 44px;
  margin-top: 15px;
  padding: 0 18px;
  border: 1px solid #8a00ff;
  border-radius: 11px;
  background: #8a00ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .store-heading-tools {
    justify-items: start;
  }
}

@media (max-width: 980px) {
  .store-main-nav .cart-nav-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .cart-drawer {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cart-item > img {
    width: 58px;
    height: 58px;
  }

  .cart-remove-button {
    grid-column: 2;
    justify-self: start;
  }
}


/* =========================================================
   CORRECCIÓN DEL PANEL DE LOGIN — v5
   Evita que el texto se comprima y muestra un solo botón.
   ========================================================= */

.store-login-panel {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.store-login-info {
  width: 100%;
  min-width: 0;
}

.store-login-info strong {
  overflow: visible;
  max-width: 100%;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.store-login-info small {
  max-width: 62ch;
  line-height: 1.55;
}

.store-login-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.store-login-actions .button {
  width: auto;
  max-width: 100%;
  min-width: min(100%, 220px);
  white-space: normal;
  text-align: center;
}

.store-login-actions [hidden],
body:not(.tebex-authenticated) #tebexLogoutButton,
body.tebex-authenticated #tebexLoginButton {
  display: none !important;
}

@media (max-width: 640px) {
  .store-login-panel {
    padding: 20px;
  }

  .store-login-actions,
  .store-login-actions .button {
    width: 100%;
  }
}


/* =========================================================
   APARTADO DE NORMATIVAS — v6
   ========================================================= */

.rules-content > p {
  margin-bottom: 22px;
}

.rules-preview {
  display: grid;
  gap: 12px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.rules-preview li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid rgba(138, 0, 255, 0.16);
  border-radius: 14px;
  background: rgba(138, 0, 255, 0.055);
  color: #353542;
  font-weight: 700;
}

.rules-preview li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  transform: translateY(-50%);
}

.rules-image img {
  filter:
    drop-shadow(0 24px 28px rgba(35, 0, 65, 0.18))
    drop-shadow(0 0 18px rgba(138, 0, 255, 0.12));
}

@media (max-width: 640px) {
  .rules-preview li {
    padding-left: 43px;
    font-size: 0.92rem;
  }
}


/* =========================================================
   ACCESO A NORMATIVAS — v7
   ========================================================= */

.rules-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rules-image-link::after {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: 34px;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.rules-image-link:hover::after {
  border-color: rgba(138, 0, 255, 0.26);
  background: rgba(138, 0, 255, 0.035);
}

.rules-image-link img {
  transition: transform 220ms ease;
}

.rules-image-link:hover img {
  transform: scale(1.025);
}

.rules-image-label {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 12%;
  padding: 9px 13px;
  border: 1px solid rgba(138, 0, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--purple-dark);
  box-shadow: 0 12px 28px rgba(35, 0, 65, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.rules-category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 23px 0 27px;
}

.rules-category-preview span {
  padding: 8px 12px;
  border: 1px solid rgba(138, 0, 255, 0.18);
  border-radius: 999px;
  background: rgba(138, 0, 255, 0.06);
  color: #393944;
  font-size: 0.8rem;
  font-weight: 850;
}

.rules-open-button {
  width: auto;
  gap: 10px;
}

.inline-rule-link {
  color: var(--purple-light);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(184, 76, 255, 0.45);
  text-underline-offset: 3px;
}

/* =========================================================
   PÁGINA DE NORMATIVAS — v7
   ========================================================= */

.rules-page {
  background: var(--background);
}

.rules-page .site-header {
  position: fixed;
}

.rules-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 86px;
  isolation: isolate;
  background:
    linear-gradient(rgba(7, 7, 10, 0.82), rgba(7, 7, 10, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 80px
    );
}

.rules-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.62fr);
  align-items: center;
  gap: 56px;
}

.rules-page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.2rem, 7.4vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.rules-page-intro {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.rules-page-logo {
  width: min(100%, 430px);
  justify-self: end;
  filter:
    drop-shadow(0 28px 30px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 22px rgba(138, 0, 255, 0.18));
}

.rules-draft-warning {
  max-width: 760px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 196, 61, 0.3);
  border-radius: 17px;
  background: rgba(255, 196, 61, 0.075);
}

.rules-draft-warning strong {
  color: #ffd980;
}

.rules-draft-warning p {
  margin: 4px 0 0;
  color: #d7c59e;
  font-size: 0.9rem;
}

.rules-directory-section {
  padding: 85px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(138, 0, 255, 0.13), transparent 30%),
    var(--background-soft);
}

.rules-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 36px;
  margin-bottom: 36px;
}

.rules-directory-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.rules-search {
  display: grid;
  gap: 8px;
}

.rules-search span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.rules-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.rules-search input:focus {
  border-color: rgba(184, 76, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(138, 0, 255, 0.11);
}

.rules-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.rules-category-card {
  min-height: 162px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.rules-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 76, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(138, 0, 255, 0.12), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.rules-category-number {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 76, 255, 0.45);
  border-radius: 15px;
  background: rgba(138, 0, 255, 0.14);
  color: var(--purple-light);
  font-weight: 950;
}

.rules-category-card h3 {
  margin: 0;
  font-size: 1.26rem;
}

.rules-category-card p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.rules-category-arrow {
  color: var(--purple-light);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.rules-category-card:hover .rules-category-arrow {
  transform: translateY(5px);
}

.rules-content-section {
  padding: 100px 0 120px;
  background: #f8f8fb;
  color: #101017;
}

.rules-content-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 45px;
}

.rules-side-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 7px;
  padding: 19px;
  border: 1px solid rgba(16, 16, 23, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 14, 49, 0.07);
}

.rules-side-nav > span {
  margin-bottom: 6px;
  color: #777781;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rules-side-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #44444e;
  font-size: 0.87rem;
  font-weight: 800;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.rules-side-nav a:hover {
  background: rgba(138, 0, 255, 0.08);
  color: var(--purple-dark);
}

.rules-articles {
  min-width: 0;
  display: grid;
  gap: 35px;
}

.rule-category-section {
  scroll-margin-top: 115px;
  padding: 33px;
  border: 1px solid rgba(16, 16, 23, 0.1);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(31, 14, 49, 0.07);
}

.rule-category-section[hidden] {
  display: none;
}

.rule-category-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 27px;
}

.rule-category-header > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 13px 28px rgba(138, 0, 255, 0.22);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
}

.rule-category-header .eyebrow {
  margin-bottom: 6px;
}

.rule-category-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rule-category-header p:last-child {
  max-width: 720px;
  margin: 11px 0 0;
  color: #62626d;
}

.rule-accordion-list {
  display: grid;
  gap: 11px;
}

.rule-detail {
  overflow: hidden;
  border: 1px solid rgba(16, 16, 23, 0.11);
  border-radius: 15px;
  background: #fbfbfd;
}

.rule-detail summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  color: #202029;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.rule-detail summary::-webkit-details-marker {
  display: none;
}

.rule-detail summary::after {
  content: "+";
  color: var(--purple);
  font-size: 1.35rem;
  line-height: 1;
}

.rule-detail[open] summary::after {
  content: "−";
}

.rule-detail summary span {
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 950;
}

.rule-detail > div {
  padding: 0 19px 18px 73px;
}

.rule-detail p {
  margin: 0;
  color: #60606b;
}

.rules-help-card {
  scroll-margin-top: 115px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 34px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 76, 255, 0.22), transparent 38%),
    #101017;
  color: #fff;
}

.rules-help-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rules-help-card p:last-child {
  max-width: 690px;
  color: var(--text-soft);
}

.rules-help-card .button {
  width: auto;
  white-space: nowrap;
}

.rules-no-results {
  padding: 45px;
  border: 1px dashed rgba(16, 16, 23, 0.18);
  border-radius: 22px;
  text-align: center;
}

.rules-no-results strong {
  font-size: 1.2rem;
}

.rules-no-results p {
  margin: 6px 0 0;
  color: #676771;
}

.rules-top-button {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184, 76, 255, 0.4);
  border-radius: 14px;
  background: #15151f;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  cursor: pointer;
}

.rules-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .rules-page-hero-grid,
  .rules-directory-heading,
  .rules-content-layout {
    grid-template-columns: 1fr;
  }

  .rules-page-logo {
    width: min(70%, 360px);
    justify-self: center;
  }

  .rules-directory-heading {
    align-items: start;
  }

  .rules-side-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 7px;
  }

  .rules-side-nav > span {
    display: none;
  }

  .rules-side-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .rules-category-grid {
    grid-template-columns: 1fr;
  }

  .rules-category-card {
    min-height: 140px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rules-category-arrow {
    display: none;
  }

  .rule-category-section {
    padding: 23px 18px;
  }

  .rule-category-header {
    grid-template-columns: 1fr;
  }

  .rule-detail summary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding-inline: 14px;
  }

  .rule-detail > div {
    padding: 0 14px 16px;
  }

  .rules-help-card {
    grid-template-columns: 1fr;
    padding: 26px 21px;
  }

  .rules-help-card .button,
  .rules-open-button {
    width: 100%;
  }

  .rules-image-label {
    right: 6%;
    bottom: 6%;
  }
}


/* =========================================================
   ATAJOS SUPERIORES A NORMATIVAS — v8
   ========================================================= */

.top-rules-shortcut {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(184, 76, 255, 0.48);
  border-radius: 11px;
  background: rgba(138, 0, 255, 0.11);
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.top-rules-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 76, 255, 0.85);
  background: rgba(138, 0, 255, 0.22);
  box-shadow: 0 12px 26px rgba(138, 0, 255, 0.18);
}

.top-rules-shortcut span {
  color: var(--purple-light);
  font-size: 1rem;
  line-height: 1;
}

.hero-rules-button {
  gap: 9px;
  border-color: rgba(184, 76, 255, 0.58);
}

.hero-rules-button span {
  color: var(--purple-light);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.hero-rules-button:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 980px) {
  .main-nav .top-rules-shortcut {
    width: 100%;
    min-height: 46px;
  }
}


/* =========================================================
   CORRECCIÓN DE ANCLAS Y PORTADA — v10
   ========================================================= */

/*
 * Evita que las secciones internas queden ocultas debajo del menú fijo.
 */
html {
  scroll-padding-top: 100px;
}

/*
 * Inicio y Servidor están al principio del documento, por lo que no necesitan
 * margen adicional. El navegador no desplazará la portada hacia el cuadro de
 * conexión.
 */
#inicio,
#servidor {
  scroll-margin-top: 0;
}

/*
 * Mantiene el contenido principal por debajo del encabezado incluso en
 * pantallas con poca altura.
 */
.hero {
  min-height: 100svh;
}

@supports not (height: 100svh) {
  .hero {
    min-height: 100vh;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .hero {
    align-items: start;
    padding-top: 122px;
  }

  .hero-logo-card {
    min-height: 500px;
  }
}


/* =========================================================
   BOTÓN SUPERIOR DE TIENDA — v12
   ========================================================= */

.top-store-shortcut {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(184, 76, 255, 0.48);
  border-radius: 11px;
  background: rgba(138, 0, 255, 0.11);
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.top-store-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 76, 255, 0.85);
  background: rgba(138, 0, 255, 0.22);
  box-shadow: 0 12px 26px rgba(138, 0, 255, 0.18);
}

.top-store-shortcut span {
  color: var(--purple-light);
  font-size: 0.95rem;
  line-height: 1;
}

.top-store-shortcut.is-current,
.top-store-shortcut[aria-current="page"] {
  border-color: var(--purple-light);
  background: linear-gradient(
    135deg,
    rgba(184, 76, 255, 0.26),
    rgba(138, 0, 255, 0.16)
  );
  box-shadow:
    0 0 0 1px rgba(184, 76, 255, 0.12),
    0 12px 30px rgba(138, 0, 255, 0.2);
}

@media (max-width: 980px) {
  .main-nav .top-store-shortcut {
    width: 100%;
    min-height: 46px;
  }
}


/* =========================================================
   NORMATIVA MARINA COMPLETA — v15
   ========================================================= */

.marine-rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -3px 0 25px 82px;
}

.marine-rules-summary span {
  padding: 7px 11px;
  border: 1px solid rgba(138, 0, 255, 0.17);
  border-radius: 999px;
  background: rgba(138, 0, 255, 0.055);
  color: #4f306b;
  font-size: 0.75rem;
  font-weight: 900;
}

.rule-detail-content {
  display: grid;
  gap: 13px;
}

.rule-detail-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.rule-subheading {
  margin: 9px 0 1px;
  color: #25252e;
  font-size: 1rem;
  line-height: 1.25;
}

.rule-list,
.rule-article-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: #595964;
}

.rule-list li,
.rule-article-list li {
  padding-left: 4px;
}

.rule-list li::marker,
.rule-article-list li::marker {
  color: var(--purple);
  font-weight: 950;
}

.rule-article-list {
  counter-reset: marine-article;
  padding-left: 28px;
}

.rule-article-list li {
  line-height: 1.58;
}

.rule-rank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 20px;
}

.rule-code-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 20px;
}

.rule-code-priority-list {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid rgba(16, 16, 23, 0.09);
}

.rule-emphasis-paragraph {
  padding: 14px 16px;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: rgba(138, 0, 255, 0.055);
}

.rule-uppercase-callout,
.rule-danger-callout {
  padding: 13px 15px;
  border-radius: 12px;
  font-weight: 900;
}

.rule-uppercase-callout {
  border: 1px solid rgba(53, 132, 255, 0.25);
  background: rgba(53, 132, 255, 0.07);
  color: #244a7b !important;
}

.rule-danger-callout {
  border: 1px solid rgba(205, 42, 54, 0.24);
  background: rgba(205, 42, 54, 0.065);
  color: #8d252e !important;
}

@media (max-width: 680px) {
  .marine-rules-summary {
    margin-left: 0;
  }

  .rule-rank-list,
  .rule-code-list {
    grid-template-columns: 1fr;
  }

  .rule-list,
  .rule-article-list {
    padding-left: 19px;
  }
}


/* =========================================================
   NORMATIVA DELICTIVA COMPLETA — v16
   ========================================================= */

.delictiva-rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -3px 0 25px 82px;
}

.delictiva-rules-summary span {
  padding: 7px 11px;
  border: 1px solid rgba(138, 0, 255, 0.17);
  border-radius: 999px;
  background: rgba(138, 0, 255, 0.055);
  color: #4f306b;
  font-size: 0.75rem;
  font-weight: 900;
}

.rule-prohibited-list li::marker {
  color: #c83243;
}

.rule-sanctions-list li::marker {
  color: #d19120;
}

.rule-example-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.robbery-limits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.robbery-limit-card {
  padding: 17px;
  border: 1px solid rgba(16, 16, 23, 0.1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 14, 49, 0.05);
}

.robbery-limit-card h4 {
  margin: 0 0 13px;
  color: #22222a;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.robbery-limit-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
  border-top: 1px solid rgba(16, 16, 23, 0.08);
}

.robbery-limit-card span {
  color: #6b6b75;
  font-size: 0.8rem;
}

.robbery-limit-card strong {
  color: var(--purple-dark);
  font-size: 0.88rem;
  text-align: right;
}

.rule-red-zone-list li::marker {
  color: #d32235;
}

.rule-warning-list li::marker {
  color: #dc8f13;
}

@media (max-width: 680px) {
  .delictiva-rules-summary {
    margin-left: 0;
  }

  .rule-example-list,
  .robbery-limits-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   NORMATIVA EMS COMPLETA — v17
   ========================================================= */

.ems-rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -3px 0 25px 82px;
}

.ems-rules-summary span {
  padding: 7px 11px;
  border: 1px solid rgba(138, 0, 255, 0.17);
  border-radius: 999px;
  background: rgba(138, 0, 255, 0.055);
  color: #4f306b;
  font-size: 0.75rem;
  font-weight: 900;
}

#ems .rule-category-header > span {
  background: linear-gradient(135deg, #e25361, #8a00ff);
}

#ems .rule-detail[open] {
  border-color: rgba(226, 83, 97, 0.24);
}

@media (max-width: 680px) {
  .ems-rules-summary {
    margin-left: 0;
  }
}


/* =========================================================
   CUPONES Y GIFT CARDS EN EL CARRITO — v20
   ========================================================= */

.cart-discounts {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(138, 0, 255, 0.18);
  border-radius: 16px;
  background: rgba(138, 0, 255, 0.045);
}

.cart-discounts-heading {
  display: grid;
  gap: 3px;
}

.cart-discounts-heading > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-discounts-heading span {
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-discounts-heading h3 {
  margin: 0;
  color: #f4f0f9;
  font-size: 0.96rem;
}

.cart-discounts-heading p {
  margin: 0;
  color: #8f8897;
  font-size: 0.72rem;
  line-height: 1.45;
}

.cart-code-form {
  display: grid;
  gap: 6px;
}

.cart-code-form[hidden],
.cart-code-applied[hidden],
.cart-code-status[hidden] {
  display: none;
}

.cart-code-form label {
  color: #cfc7d7;
  font-size: 0.74rem;
  font-weight: 850;
}

.cart-code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.cart-code-control input {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.cart-code-control input::placeholder {
  color: #716b78;
}

.cart-code-control input:focus {
  border-color: rgba(184, 76, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(138, 0, 255, 0.13);
}

.cart-code-control button,
.cart-code-applied button {
  border: 1px solid rgba(184, 76, 255, 0.34);
  border-radius: 10px;
  background: rgba(138, 0, 255, 0.13);
  color: #d9a9ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-code-control button {
  padding: 0 12px;
}

.cart-code-control button:hover:not(:disabled),
.cart-code-applied button:hover:not(:disabled) {
  border-color: rgba(184, 76, 255, 0.7);
  background: rgba(138, 0, 255, 0.24);
  color: #fff;
}

.cart-code-control input:disabled,
.cart-code-control button:disabled,
.cart-code-applied button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.cart-code-applied {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(77, 196, 132, 0.2);
  border-radius: 11px;
  background: rgba(77, 196, 132, 0.075);
}

.cart-code-applied span {
  color: #8e8795;
  font-size: 0.68rem;
}

.cart-code-applied strong {
  grid-column: 1;
  color: #b9f0d1;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.cart-code-applied button {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 7px 10px;
}

.cart-code-status {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #bdb5c5;
  font-size: 0.72rem;
  line-height: 1.45;
}

.cart-code-status[data-type="success"] {
  background: rgba(77, 196, 132, 0.09);
  color: #a7e8c5;
}

.cart-code-status[data-type="error"] {
  background: rgba(230, 67, 83, 0.09);
  color: #ffadb6;
}

@media (max-width: 430px) {
  .cart-code-control {
    grid-template-columns: 1fr;
  }

  .cart-code-control button {
    min-height: 39px;
  }
}
