.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.h {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .6px;
  font-size: 32px;
  line-height: 1;
  color: #eaeaea;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 6px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  position: relative;
}

.card .content {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollThumb) transparent;
}

.card .content:hover {
  scrollbar-color: var(--scrollThumbHover) transparent;
}

.card .content::-webkit-scrollbar {
  width: 10px;
}

.card .content::-webkit-scrollbar-track {
  background: transparent;
}

.card .content::-webkit-scrollbar-thumb {
  background: var(--scrollThumb);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.card .content:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollThumbHover), color-mix(in srgb, var(--accent) 18%, var(--scrollThumbHover)));
}

.card .content:active::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollThumbActive), color-mix(in srgb, var(--accent) 25%, var(--scrollThumbActive)));
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .18s ease;
}

.content::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0));
}

.content::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0));
}

.content.hasTopFade::before,
.content.hasBottomFade::after {
  opacity: 1;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  border-bottom: 1px dashed #222;
  padding: 8px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

.ad-slot {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.ad-desktop,
.ad-mobile {
  width: 100%;
  border: 2px dashed rgba(255, 255, 255, .15);
  color: #bbb;
  font-weight: 600;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-update {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .3px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

/* ===== Tooltips info — legibilidad global, solo visible en hover/focus ===== */

.info {
  position: relative;
  z-index: 50;
}

/* Estado base: oculto, pero con fondo sólido cuando aparezca */
.info::after {
  background: rgb(18, 18, 18) !important;

  color: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.45) !important;

  font-family: Arial, system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;

  z-index: 9999 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Estado activo: visible solo al pasar el cursor o enfocar */
.info:hover::after,
.info:focus::after,
.info:focus-visible::after {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== Páginas legales / contacto ===== */

/*
  Importante:
  Estas páginas usan <div class="stage legal-stage">,
  así heredan EXACTAMENTE el mismo fondo difuminado del index principal.
*/

.legal-stage {
  place-items: center;
  overflow: hidden;
}

.legal-stage .legal-page {
  position: relative;
  z-index: 1;

  width: min(1360px, calc(100vw - 48px));
  min-height: calc(100vh - var(--footerH));
  height: auto;

  margin: 0 auto;
  padding: 48px 0 72px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: visible;
}

.legal-card {
  width: 100%;
  max-width: 860px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);

  padding: 34px 38px;
  color: #eaeaea;
}

.legal-card h1 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.legal-card h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 28px 0 8px;
  color: #fff;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.76);
  margin: 0 0 12px;
}

.legal-card a {
  color: #f4c542;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.62) !important;
  text-decoration: none !important;
}

.legal-back:hover {
  color: #fff !important;
}

.legal-updated {
  margin-top: 30px !important;
  font-size: 12px !important;
  color: rgba(255,255,255,.48) !important;
}

@media (min-width: 900px) {
  .ad-desktop {
    width: 300px;
    height: 600px;
  }

  .ad-mobile {
    display: none;
  }
}

@media (max-width: 899px) {
  .ad-mobile {
    width: 300px;
    height: 250px;
  }

  .ad-desktop {
    display: none;
  }
}

@media (max-width: 700px) {
  .legal-stage .legal-page {
    width: min(100%, calc(100vw - 28px));
    padding: 28px 0 64px;
  }

  .legal-card {
    padding: 26px 22px;
  }

  .legal-card h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .last-update .upd-sep-time,
  .last-update .upd-time {
    display: none;
  }
}