/* ================================================================
   QUINIELA MUNDIALISTA 2026 — Rumbera Network Branding
   Colores: Navy #02093e | Amarillo #ffff00 | Cyan #00e5ff
   Font: Poppins (igual que radio.html)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

:root {
  --bg-main:    #02093e;
  --bg-card:    #030d52;
  --bg-glass:   rgba(255,255,255,0.05);
  --border:     rgba(255,255,255,0.10);
  --text:       #ffffff;
  --text2:      rgba(255,255,255,0.60);
  --yellow:     #ffff00;
  --cyan:       #00e5ff;
  --yellow-dim: rgba(255,255,0,0.15);
  --cyan-dim:   rgba(0,229,255,0.12);
  --gold:       #ffd700;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Subtle grid background (igual que la landing de Rumbera) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Glow orbs ── */
body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 65%);
  top: -150px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO BANNER — replica el hero de radio.html
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    aspect-ratio: 1080 / 602;
    background-image: url('/assets/landing/HEADER_LANDING_2.png');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero__inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15%;
    width: 100%;
}
.hero__inner h1.sr-only { display: none; }
.hero__logo {
    width: 75%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
}

.q-header__user-info {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(2,9,62,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0,229,255,0.2);
}
.q-header__user-info strong { color: var(--yellow); font-size: 0.75rem; }

/* Título Quiniela debajo del hero */
.q-hero__title {
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  color: var(--yellow);
  text-shadow: 0 0 30px rgba(255,255,0,0.5), 0 2px 8px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -6%;
  position: relative;
  z-index: 2;
}

.q-hero__sub {
  margin-top: 4px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,229,255,0.6);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   TABS — estilo Rumbera (borde amarillo activo)
   ═══════════════════════════════════════════════════════════ */
.q-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center; /* Centrado en PC */
  overflow-x: auto;
  gap: 0;
  padding: 0 12px;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(0,229,255,0.15);
  background: rgba(2,9,62,0.5);
}
.q-tabs::-webkit-scrollbar { display: none; }

.q-tab {
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.q-tab:hover { color: var(--text); }
.q-tab.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.q-tab-panel { display: none; }
.q-tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.q-main {
  position: relative;
  z-index: 1;
  max-width: 1440px; /* Expandido enormemente para monitores grandes */
  margin: 0 auto;
  padding: 24px 20px 80px;
}

#predictions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

#leaderboard-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

#live-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   REGISTER SCREEN
   ═══════════════════════════════════════════════════════════ */
#register-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.register-box img {
  width: 180px;
  margin-bottom: 20px;
}
.register-box h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255,255,0,0.4);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.register-box .tagline {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.privacy-note {
  font-size: 0.78rem;
  color: rgba(0,229,255,0.8);
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 8px;
  background: rgba(0,229,255,0.05);
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════
   INPUTS & BUTTONS — estilo Rumbera
   ═══════════════════════════════════════════════════════════ */
.q-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.q-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}
.q-input::placeholder { color: rgba(255,255,255,0.35); }

.q-btn {
  width: 100%;
  background: var(--yellow);
  border: none;
  border-radius: 10px;
  color: #02093e;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255,255,0,0.25);
}
.q-btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 28px rgba(255,255,0,0.4);
}
.q-btn:active { transform: scale(0.98); }
.q-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.q-btn--cyan {
  background: var(--cyan);
  box-shadow: 0 4px 20px rgba(0,229,255,0.25);
  color: #02093e;
}
.q-btn--outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}
.q-btn--sm {
  width: auto;
  padding: 8px 16px;
  font-size: 0.8rem;
  margin-top: 0;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   MATCH CARD (Predicciones)
   ═══════════════════════════════════════════════════════════ */
.match-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.match-card:hover { 
  border-color: rgba(0,229,255,0.4); 
  transform: translateY(-2px);
}
.match-card.locked { opacity: 0.65; pointer-events: none; filter: grayscale(20%); }

.match-card__group {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.match-card__date {
  font-size: 0.72rem;
  color: var(--text2);
  margin-bottom: 10px;
}
.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.match-card__flag { font-size: 1.6rem; line-height: 1; }
.match-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--text2);
}
.match-card__vs {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--text2);
}
.match-card__score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.score-input {
  width: 52px;
  text-align: center;
  background: rgba(2,9,62,0.8);
  border: 2px solid rgba(0,229,255,0.25);
  border-radius: 8px;
  color: var(--yellow);
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 900;
  padding: 7px 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.score-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}
.score-dash {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text2);
}
.match-card__save-hint {
  text-align: center;
  font-size: 0.68rem;
  color: var(--cyan);
  margin-top: 6px;
  min-height: 14px;
}

.save-all-btn-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 90%;
  max-width: 400px;
}
.save-all-btn-wrap .q-btn {
  box-shadow: 0 8px 32px rgba(255,255,0,0.5);
  font-size: 1.1rem;
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════════════════════════ */
.leaderboard-row {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.leaderboard-row:hover { 
  border-color: rgba(0,229,255,0.3); 
  transform: translateY(-2px);
}
.leaderboard-row.me {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.leaderboard-row.pos-1 { border-color: var(--gold); background: rgba(255,215,0,0.07); }
.leaderboard-row.pos-2 { border-color: silver; }
.leaderboard-row.pos-3 { border-color: #cd7f32; }

.lb-pos { font-size: 1rem; font-weight: 900; text-align: center; color: var(--text2); }
.pos-1 .lb-pos { color: var(--gold); }
.pos-2 .lb-pos { color: silver; }
.pos-3 .lb-pos { color: #cd7f32; }
.lb-name { font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-weight: 900; font-size: 1rem; color: var(--yellow); white-space: nowrap; }
.lb-detail { font-size: 0.68rem; color: var(--text2); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   LIVE TAB
   ═══════════════════════════════════════════════════════════ */
.live-match-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.live-match-card:hover { transform: translateY(-2px); }
.live-match-card.is-live {
  border-color: var(--yellow);
  background: var(--yellow-dim);
  animation: pulse-yellow 2.5s infinite;
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,0,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255,255,0,0); }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--yellow);
  color: #02093e;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #02093e;
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.live-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.live-match__team { display: flex; align-items: center; gap: 8px; }
.live-match__team--right { justify-content: flex-end; }
.live-match__flag { font-size: 1.4rem; }
.live-match__name { font-size: 0.85rem; font-weight: 700; }
.live-match__score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  text-align: center;
  min-width: 70px;
  text-shadow: 0 0 20px rgba(255,255,0,0.5);
}

.info-banner {
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════════════════ */
.section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,229,255,0.3), transparent);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
  font-size: 0.9rem;
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.spinner {
  border: 3px solid rgba(0,229,255,0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  width: 28px; height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--yellow);
  color: #02093e;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.9rem;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255,255,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── FOOTER ── */
.q-footer {
  width: 100%;
  margin-top: auto;
  padding: 40px 20px 20px;
  text-align: center;
}
.q-footer img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    aspect-ratio: auto;
    padding-top: 55.74%; /* Ratio exacto en móvil */
  }
  .q-tabs {
    justify-content: flex-start; /* Scroll nativo en móvil */
  }
  .match-card__flag { font-size: 1.3rem; }
  .score-input { width: 46px; font-size: 1.2rem; }
  .live-match__score { font-size: 1.6rem; min-width: 56px; }
  .q-tab { font-size: 0.78rem; padding: 10px 12px; }
}
