/* FREE hub — modelo La Timba (mint / glass / overlay). Fuente: Poppins en index.html */

:root {
  --free-mint: #00ff88;
  --free-mint-dark: #00aa55;
  --free-overlay: rgba(0, 0, 0, 0.88);
}

body.free-hub-mode {
  background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82)), #0a1a0f url('../images/fondo_body.png') no-repeat center center fixed;
  background-size: cover;
}

body.free-hub-mode #appContainer {
  font-family: 'Poppins', system-ui, sans-serif;
  background: transparent;
}

body.free-hub-mode .main {
  background: transparent;
}

body.free-hub-mode .header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 255, 136, 0.25);
}

body.free-hub-mode .header-banner {
  background: var(--header-bg) url('../images/cabecera_banner.png') no-repeat center center;
  background-size: contain;
}

.free-hub-header-juego-wrap {
  display: none;
  align-items: center;
  gap: 8px;
}

body.free-hub-mode .provincia-selector label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

body.free-hub-mode .provincia-selector select,
body.free-hub-mode .free-hub-select {
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  border: 1px solid var(--free-mint);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.85rem;
}

/* Botón usuario: fondo oscuro + mint, evita rojo+verde */
body.free-hub-mode .btn-acceder {
  background: rgba(0, 40, 25, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: var(--free-mint);
}
body.free-hub-mode .btn-acceder:hover {
  background: rgba(0, 55, 35, 0.9);
  border-color: var(--free-mint);
}

/* Hub shell */
.free-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  color: #fff;
}

.free-hub-label-select {
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  margin: 8px 0 4px;
}

.free-hub-hero {
  text-align: center;
  margin: 24px 0;
}

.free-hub-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
}

.free-hub-sub {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

/* Hub sin Laboratorio PRO: no revelar cifras sugeridas (Quini, Loto, poceadas, quinielas, etc.) */
.free-hub-mask-blur {
  filter: blur(14px);
  -webkit-filter: blur(14px);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.88;
  pointer-events: none;
}

.free-hub-mask-hint {
  margin: 0.65rem auto 0;
  max-width: 26rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(232, 237, 243, 0.72);
  text-align: center;
}

.free-hub-numbers {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  margin: 16px 0;
  color: var(--free-mint);
  letter-spacing: 0.12em;
  line-height: 1.2;
  word-break: break-word;
}

.free-hub-numbers.free-hub-numbers--slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2em 0.35em;
  letter-spacing: 0.04em;
}

.free-hub-numbers--slots .free-hub-num-sep {
  color: rgba(0, 255, 136, 0.45);
  font-weight: 600;
  user-select: none;
}

.free-hub-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15em;
  padding: 0.08em 0.2em;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.free-hub-slot--open {
  color: var(--free-mint);
}

.free-hub-slot--tapado {
  color: rgba(232, 237, 243, 0.35);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(0, 255, 136, 0.28);
  font-size: 0.72em;
  letter-spacing: 0.02em;
  filter: blur(0.35px);
}

.free-hub-insight-tease {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  justify-content: center;
}

.free-hub-highlight--tease {
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
}

.free-hub-btn-play {
  background: linear-gradient(135deg, var(--free-mint), var(--free-mint-dark));
  color: #000;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.free-hub-btn-play:hover {
  filter: brightness(1.08);
}

.free-hub-timer {
  text-align: center;
  margin: 20px 0;
  font-size: 1rem;
  color: #ccc;
}

.free-hub-timer b {
  color: var(--free-mint);
  font-weight: 700;
}

.free-hub-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.free-hub-section-icon {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}

.free-hub-section-icon--ranking {
  color: #fbbf24;
}

.free-hub-section-icon--datos {
  color: var(--free-mint);
}

.free-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Caliente / Tendencia / Atrasado / horas referencia */
.free-hub-cards--insights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 900px) {
  .free-hub-cards--insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .free-hub-cards--insights {
    grid-template-columns: 1fr;
  }
}

.free-hub-card-sub {
  margin: -4px 0 10px;
  font-size: 0.72rem;
  font-weight: 400;
  color: #888;
  line-height: 1.35;
}

/* Caliente / Tendencia / Atrasado / tiempo: mismos pictos que la app (Phosphor thin) */
.free-hub-card--insight {
  text-align: center;
}

.free-hub-card--insight h3 {
  margin-top: 0;
}

.free-hub-insight-icon {
  display: block;
  margin: 0 auto 14px;
  font-size: 3.5rem;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.free-hub-insight-icon--caliente {
  color: #fb923c;
}

.free-hub-insight-icon--tendencia {
  color: var(--free-mint);
}

.free-hub-insight-icon--atrasado {
  color: #7dd3fc;
}

.free-hub-insight-icon--tiempo {
  color: #c4b5fd;
}

.free-hub-highlight--elapsed {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Ranking: tarjetas #1–#10 */
.free-hub-card--rank {
  text-align: center;
}

.free-hub-card--rank h3 {
  margin-top: 0;
}

.free-hub-rank-icon {
  display: block;
  margin: 0 auto 10px;
  font-size: 2.5rem;
  line-height: 1;
  color: #fcd34d;
  -webkit-font-smoothing: antialiased;
}

/* Datos gratis: último sorteo + top 3 */
.free-hub-card--dato {
  text-align: center;
}

.free-hub-card--dato h3 {
  margin-top: 0;
}

.free-hub-dato-icon {
  display: block;
  margin: 0 auto 14px;
  font-size: 3.25rem;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.free-hub-dato-icon--ultimo {
  color: #93c5fd;
}

.free-hub-dato-icon--top3 {
  color: var(--free-mint);
}

.free-hub-card--ultimo.free-hub-card--dato .free-hub-ultimo-sorteo {
  text-align: left;
}

/* Datos gratis: 2 tarjetas por fila (Último sorteo | Top 3) */
.free-hub-cards--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 640px) {
  .free-hub-cards--pair {
    grid-template-columns: 1fr;
  }
}

.free-hub-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 136, 0.12);
  position: relative;
}

.free-hub-card h3 {
  margin: 0 0 10px;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 600;
}

.free-hub-ultimo-sorteo {
  width: 100%;
  min-height: 1.25rem;
}

.free-hub-ultimo-embed.game-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.free-hub-ultimo-embed .ultimo-sorteo-content {
  width: 100%;
}

.free-hub-ultimo-empty {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.free-hub-highlight {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--free-mint);
}

.free-hub-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff2e2e;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.free-hub-section {
  margin-top: 28px;
}

.free-hub-section > h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #eee;
}

/* Teaser PRO: se entiende que hay más datos, sin ocultarlos del todo */
.free-hub-lock {
  filter: blur(2.5px);
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
}

.free-hub-lock .free-hub-card {
  border-color: rgba(0, 255, 136, 0.22);
  background: rgba(255, 255, 255, 0.085);
}

.free-hub-lock .free-hub-card h3 {
  color: #d1d5db;
}

.free-hub-lock .free-hub-highlight {
  color: rgba(110, 255, 190, 0.98);
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
}

.free-hub-pro-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--free-mint), #004d2a);
  padding: 22px;
  padding-inline-end: clamp(28px, 4vw, 44px);
  border-radius: 15px;
  color: #000;
  overflow: visible;
}

.free-hub-pro-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 32px;
  padding-inline-end: min(16px, 2vw);
}

.free-hub-pro-banner__main {
  flex: 1 1 240px;
  min-width: 0;
}

.free-hub-pro-banner h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.free-hub-pro-banner__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.free-hub-pro-banner__title .ph-thin {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}

.free-hub-pro-banner .free-hub-pro-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.free-hub-pro-banner .free-hub-pro-benefits li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.free-hub-pro-banner .free-hub-pro-benefit-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: 0.06em;
  -webkit-font-smoothing: antialiased;
}

.free-hub-pro-banner .free-hub-pro-tagline {
  margin: 12px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.free-hub-pro-banner p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

.free-hub-pro-banner .free-hub-pro-slogan {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.45;
}

.free-hub-pro-banner .free-hub-pro-price {
  margin-top: 8px;
  font-weight: 700;
}

.free-hub-pro-banner .free-hub-pro-slogan:empty {
  display: none;
}

.free-hub-pro-banner button {
  margin-top: 14px;
  background: #000;
  color: var(--free-mint);
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.free-hub-pro-banner button:hover {
  opacity: 0.92;
}

/* Tarjeta Play Store: “flotando” inclinada a la derecha del CTA PRO */
.free-hub-play-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  padding: 18px 16px 16px;
  margin: 8px clamp(20px, 3vw, 36px) 12px 0;
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  text-decoration: none;
  color: #0f172a;
  transform: rotate(-6deg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.free-hub-play-card:hover {
  transform: rotate(-3deg) translateY(-2px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  color: #0f172a;
}

.free-hub-play-card:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.free-hub-play-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.free-hub-play-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.free-hub-play-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: Poppins, Inter, sans-serif;
}

.free-hub-play-card__sub {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
  margin-bottom: 12px;
}

.free-hub-play-card__badge {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .free-hub-pro-banner {
    padding-inline-end: 22px;
  }

  .free-hub-pro-banner__inner {
    justify-content: center;
    padding-inline-end: 0;
  }

  .free-hub-play-card {
    margin: 4px auto 8px;
    max-width: 240px;
    transform: rotate(-4deg);
  }

  .free-hub-play-card:hover {
    transform: rotate(-2deg) translateY(-2px);
  }
}

.free-hub-loading {
  text-align: center;
  padding: 24px;
  color: #aaa;
}

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