/* ============================================================
   ESPACIAL-BASE.CSS — Sistema de diseño AngulismoTV
   Tema: espacio oscuro sobrio
   Ultra-optimizado: sin scroll-behavior, sin overflow-x,
   sin fixed+cover, sin rgba acumulativos, sin selector universal.
   Medidas y colores intactos.
   ============================================================ */

:root {
  /* Fondo (sólidos premezclados) */
  --bg-void: #04050c;
  --bg-deep: #090c1a;
  --bg-panel: #0d1120;
  --bg-panel-hover: #131830;
  --bg-panel-strong: #0a0d1a;

  /* Bordes (sólidos premezclados) */
  --border-soft: #1c2236;
  --border-strong: #2a3350;
  --border-accent: #3fe2ff;

  /* Texto */
  --text-primary: #eef2fb;
  --text-secondary: #93a8c9;
  --text-dim: #5d6c88;

  /* Acentos */
  --accent: #3498db;
  --accent-rgb: 63, 226, 255;
  --accent-soft: #1a3a4a;
  --accent-2: #9d5bff;
  --accent-2-rgb: 157, 91, 255;
  --accent-2-soft: #2a1a4a;
  --accent-3: #ff4fd8;
  --accent-3-rgb: 255, 79, 216;
  --accent-3-soft: #3a1a3a;
  --live: #ff4568;
  --warn: #ffc857;

  /* Legado */
  --card-primary: var(--accent);
  --card-secondary: var(--accent-2);
  --card-accent: #5be3a6;
  --text-secondary-legacy: var(--text-secondary);

  /* Forma y movimiento */
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --transition: 0.18s ease;
  --animation-speed: 0.18s ease;

  /* Bisel (sólidos) */
  --bevel-top: #2a2a3e;
  --bevel-bottom: #0a0a14;
}
/* ==================== RESET ==================== */
/* box-sizing universal (necesario para que las medidas no se rompan) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset de margin/padding solo en elementos HTML */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img,
ul, ol, li, form, label, table, article, aside, footer,
header, nav, section, button, input, textarea, select {
  margin: 0;
  padding: 0;
}

/* Tap highlight solo en interactivos */
a, button, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  /* sin scroll-behavior: smooth */
}

    body {
background: url("fondos/fondo01.png") no-repeat center center fixed;    background-size: cover;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    
}

@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }
/* ==================== FOOTER ==================== */
#footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 40px;
  font-size: 14px;
  color: #ccc;
  font-family: 'Segoe UI', sans-serif;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-left img:hover {
  opacity: 1;
}

.footer-center {
  text-align: center;
  flex: 1;
  color: #aaa;
}

.footer-right a {
  text-decoration: none;
  color: #ccc;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #fff;
}

/* ==================== SCROLLBAR ==================== */
html {
  scrollbar-width: thin;
  scrollbar-color: #2a5a70 var(--bg-deep);
}

/* ==================== FIX ADCASH (scroll fantasma) ==================== */
div[zniid],
div[bis_skin_checked][style*="z-index: 2147483647"] {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ============================================================
   BOTTOM-NAV.CSS — Navegación inferior estilo Netflix
   Ultra-ligero: sin gradientes, sin rgba, sin transition,
   sin box-shadow, sin will-change.
   ============================================================ */

.bottom-nav {
  --nav-h: 58px;
  position: fixed;              /* 🔥 fixed, no sticky */
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: #0a0d1a;          /* color sólido, no gradiente */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom)) 0;
  border-top: 1px solid #2a3350;
  z-index: 100;                 /* valor razonable */
  gap: 2px;
  box-sizing: border-box;       /* border-box, no content-box */
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #93a8c9;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  /* sin transition */
  position: relative;
  min-width: 44px;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.bottom-nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.bottom-nav-icon svg[fill="currentColor"] {
  fill: currentColor;
}

.bottom-nav-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
}

.bottom-nav-item:hover {
  color: #eef2fb;
}

.bottom-nav-item.active {
  color: #eef2fb;
}

.bottom-nav-item.active .bottom-nav-icon {
  color: #9d5bff;
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: #3fe2ff;          /* color sólido, no gradiente */
}

.bottom-nav-item .badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ff4568;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 400px) {
  .bottom-nav-item { padding: 4px 4px; min-width: 36px; }
  .bottom-nav-icon svg { width: 20px; height: 20px; }
  .bottom-nav-label { font-size: 7px; }
}

@media (max-width: 360px) {
  .bottom-nav-item { padding: 3px 2px; min-width: 32px; }
  .bottom-nav-icon svg { width: 18px; height: 18px; }
  .bottom-nav-label { font-size: 6px; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

