/* BILLARCAN - publica.min.css - Auto-generado */

/* === nav.css === */
/* ============================================================
   BILLARCAN — Navegación pública
   ============================================================ */

.pub-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  height: 64px;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.pub-logo {
  flex-shrink: 0;
}
.pub-logo img {
  height: 74px;
  width: auto;
  display: block;
}
.pub-logo:hover { opacity: 0.92; }

/* Botón hamburguesa — visible en ambos */
.pub-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
}
.pub-nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Links — escritorio: fila horizontal oculta porque usamos el menú lateral */
.pub-nav-links {
  display: none;
}

body.pub-nav-open { overflow: hidden; }

/* ── Menú lateral tipo app (Global) ── */
.mobile-sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  background: #0c0c0c;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0,0,0,0.7);
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pub-nav-open .mobile-sidebar {
  transform: translateX(0);
}

.pub-nav-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.pub-nav-open .pub-nav-overlay {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Header del menú */
.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
}
.sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.sidebar-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* Perfil */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  padding: 4px;
}
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.profile-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  gap: 4px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-nav a svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
}
.sidebar-nav a:hover svg,
.sidebar-nav a.active svg {
  color: var(--text-primary);
}

/* ── Móvil ── */
@media (max-width: 768px) {
  .pub-nav {
    padding: 0 12px;
    height: 56px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .pub-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .pub-logo img { height: 40px; }
}


/* === hero.css === */
/* ============================================================
   BILLARCAN — Hero (web pública)
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 64px 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.65);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-text p { margin-left: auto; margin-right: auto; }

.hero-text h1 {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.65;
}

.hero-img {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-img model-viewer {
  --progress-bar-color: transparent;
  background: transparent;
}

@media (max-width: 860px) {
  .hero-img model-viewer { width: 280px !important; height: 280px !important; }
}

@media (max-width: 768px) {
  /* Barra pública ~56px: evitar que el título quede bajo la nav fija */
  .hero {
    padding-top: calc(56px + 28px);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 32px;
  }
  .hero-text h1 { 
    font-size: clamp(2rem, 8vw, 2.5rem);
    letter-spacing: -1px;
  }
  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 28px;
  }
}


/* === ligas.css === */
/* ============================================================
   BILLARCAN — Secciones y ligas (web pública)
   ============================================================ */

.pub-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-divider {
  height: 1px;
  background: var(--border);
}

footer { text-align: center; padding: 40px 20px; }
footer img { height: 74px; width: auto; opacity: 0.7; display: block; margin: 0 auto 8px; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 52px;
}

/* Grid de ligas */
.liga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.liga-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  cursor: default;
  transition: background .15s;
}
.liga-card:hover { background: #0e0e0e; }

.liga-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.liga-card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .pub-section {
    padding: 56px 16px;
  }
  .section-title {
    font-size: 1.65rem;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
  }
  .section-label {
    margin-bottom: 10px;
  }
  .liga-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .liga-card {
    padding: 20px 16px;
  }
  footer {
    padding: 32px max(16px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-right));
  }
  footer img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .liga-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* === resultados.css === */
/* ============================================================
   BILLARCAN — Resultados (web pública)
   ============================================================ */

.results-list {
  display: flex;
  flex-direction: column;
}

.encuentro-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.encuentro-row:last-child { border-bottom: none; }

.eq-local  { text-align: right; }
.eq-visitante { text-align: left; }
.eq-nombre {
  font-size: 0.9rem;
  font-weight: 600;
}

.eq-resultado {
  text-align: center;
  min-width: 110px;
}

.enc-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.resultado-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.resultado-sep { color: var(--text-muted); margin: 0 6px; }
.resultado-pending { color: var(--text-faint); font-size: 0.75rem; }

.score-win  { color: var(--text-primary); }
.score-lose { color: #333; }

/* Score compacto (admin) */
.score {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.score-sep  { color: var(--text-faint); }
.score-win  { color: var(--success); }
.score-lose { color: var(--danger); }
.score-draw { color: var(--warning); }

@media (max-width: 540px) {
  .encuentro-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
    justify-items: center;
    text-align: center;
  }
  .eq-local,
  .eq-visitante {
    text-align: center;
  }
  .eq-resultado {
    order: -1;
    min-width: unset;
    width: 100%;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  .eq-nombre {
    font-size: 0.88rem;
    line-height: 1.35;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
  }
  .resultado-num {
    font-size: 1.65rem;
  }
}



/* === clasificacion.css === */
/* ============================================================
   BILLARCAN — Clasificación (web pública)
   ============================================================ */

.clasif-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.tab-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text-primary); }
.tab-btn.active {
  border-color: rgba(255,255,255,0.5);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.tabla-clasif {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.tabla-clasif th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tabla-clasif td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.tabla-clasif tr:last-child td { border-bottom: none; }
.tabla-clasif tr:hover td { background: rgba(255,255,255,0.015); }

.pts {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tabla-clasif .pos {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
}
.tabla-clasif .pos-1 { color: #fbbf24; }
.tabla-clasif .pos-2 { color: var(--text-muted); }
.tabla-clasif .pos-3 { color: #b45309; }
.tabla-clasif .pts { font-weight: 800; color: var(--text-primary); }

.equipo-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

td.td-center, th.td-center { text-align: center; }

#clasif-tabla {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width: 620px) {
  .clasif-tabs {
    gap: 8px;
  }
  .tab-btn {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 0.82rem;
  }
  #clasif-tabla {
    max-width: 100%;
  }
  /* Ancho mínimo ligeramente mayor que pantallas muy estrechas → scroll horizontal táctil */
  .tabla-clasif {
    min-width: 460px;
  }
  .tabla-clasif th {
    padding: 10px 8px;
    font-size: 0.62rem;
  }
  .tabla-clasif td {
    padding: 10px 10px;
    font-size: 0.83rem;
  }
  .tabla-clasif .pts {
    font-size: 1.2rem;
  }
}



/* === banners.css === */
/* ============================================================
   BILLARCAN — Banners publicitarios (patrocinadores + AdSense)
   ============================================================ */

/* ── Contenedor principal de patrocinadores ── */
.ad-banner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  padding: 18px 24px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 20px 0;
  transition: border-color 0.2s, background 0.2s;
}
.ad-banner:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* ── Etiqueta y contenedor de sponsors ── */
.ad-label {
  text-align: center; margin-bottom: 14px; font-size: 0.65rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint);
}
.ad-sponsors {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ad-sponsor {
  display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none;
  flex: 1; min-width: 220px; padding: 10px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ad-sponsor:hover {
  border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ad-sponsor:hover .ad-icon { transform: scale(1.2); }
.ad-sponsor:hover .ad-arrow { opacity: 1; transform: translateX(4px); }
.ad-sponsor:hover strong { color: #fff; }
.ad-icon { font-size: 1.8rem; transition: transform 0.3s; }
.ad-info strong { font-size: 0.85rem; display: block; transition: color 0.3s; }
.ad-info span { font-size: 0.7rem; color: var(--text-muted); }
.ad-arrow { margin-left: auto; font-size: 0.7rem; opacity: 0.3; transition: opacity 0.3s, transform 0.3s; }

/* ── Barra de patrocinadores estática ── */
.sponsors-bar {
  margin: 20px 0 0;
  padding: 12px 0;
}
.sponsors-label {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 8vw, 72px);
  flex-wrap: wrap;
}
.sponsor-logo-item {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.25s, transform 0.25s;
}
.sponsor-logo-item:hover {
  opacity: 1;
  transform: scale(1.05);
}
.sponsor-logo-item img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .sponsors-bar {
    margin-top: 8px;
  }
  .sponsor-logo-item img {
    max-height: 38px;
    max-width: 130px;
  }
}



/* === pricing.css === */
/* ============================================================
   BILLARCAN — Pricing Styles (Aesthetic Premium)
   ============================================================ */

.pricing {
  padding: 80px 24px;
  background: var(--bg-base);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.pricing-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.p-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.p-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.p-price {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.p-price .val {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
}

.p-price .unit {
  color: var(--text-faint);
  font-size: 1rem;
  font-weight: 500;
}

.p-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex: 1;
}

.p-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.p-features li.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

.p-features li::before {
  content: '✓';
  color: var(--text-primary);
  font-weight: bold;
}

.p-features li.disabled::before {
  content: '✕';
  color: var(--text-faint);
}

@media (max-width: 600px) {
  .pricing { padding: 60px 20px; }
  .p-price .val { font-size: 2.5rem; }
}

