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

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Colors */
  --color-primary: #FF9E1B;
  --color-primary-dark: #E88A00;
  --color-secondary: #111C4E;
  --color-secondary-light: #2F4170;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: #53565A;
  --color-background: linear-gradient(to right, var(--color-secondary-light), var(--color-secondary));
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-overlay-bg: #1D296F;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease;

  /* Container */
  --container-max-width: 1200px;

  /* Fuente principal */
  --main-font: 'Montserrat', Arial, sans-serif;
}

/* ===========================
   RESET Y ESTILOS BÁSICOS
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--main-font);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===========================
   HEADER
   =========================== */
header {
  padding: 0;
  background: linear-gradient(to right, #2F4170, #111C4E);
  border-bottom: 1px solid #53565A;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.header-left nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 100px;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Manifold', Arial, sans-serif;
  font-weight: normal;
  font-size: 0.9em;
  cursor: pointer;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff;
}

/* Iconos no seleccionados a blanco */
.nav-item img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease-in-out;
}

.nav-item:hover img {
  filter: brightness(1.2) invert(1);
}

/* Icono activo en naranja #FF9E1B */
.nav-item.active img {
  filter: brightness(0) saturate(20%) invert(49%) sepia(100%) saturate(1200%) hue-rotate(358deg) brightness(102%) contrast(101%);
}

.nav-item.active svg {
  filter: brightness(0) saturate(20%) invert(49%) sepia(100%) saturate(1200%) hue-rotate(358deg) brightness(102%) contrast(101%);
}

.nav-item.active span {
  color: #FF9E1B;
}

.icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.icon:hover {
  filter: brightness(1.2) invert(1);
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
.container {
  max-width: var(--container-max-width);
  margin: var(--spacing-md) auto;
  padding: 0 var(--spacing-md);
}

/* ===========================
   FOOTER
   =========================== */
.feb-footer {
  background: linear-gradient(to right, #2F4170, #111C4E);
  color: #fff;
  padding: 40px 0 0 0;
  font-size: 1em;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-container {
  width: 100%;
}

.footer-left {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  height: 52px;
}

.footer-text {
  line-height: 1.5;
  font-size: 1.1em;
}

.footer-link {
  color: #FF9E1B;
  text-decoration: none;
  font-weight: bold;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-right {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-right h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.1em;
  font-weight: bold;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.partner-logo {
  height: 64px;
  max-width: 140px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: none;
  filter: brightness(0) invert(1); /* blanco puro */
}

.footer-bottom {
  background-color: #0D173A;
  text-align: center;
  padding: 14px 20px 10px 20px;
  margin-top: 32px;
  font-size: 0.95em;
}

.footer-bottom a {
  color: #FF9E1B;
  text-decoration: none;
  margin: 0 6px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===========================
   NAVEGACIÓN INFERIOR MÓVIL
   =========================== */
.mobile-bottom-nav {
  display: none; /* Oculta por defecto */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #2F4170, #111C4E);
  border-top: 1px solid #53565A;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #ffffff;
  padding: 12px 2px;
  min-height: 60px;
  transition: all 0.2s ease;
}

.bottom-nav-item img,
.bottom-nav-item svg {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.bottom-nav-item span {
  display: none; /* Ocultar los nombres de los iconos */
}

/* Estado activo */
.bottom-nav-item.active {
  color: #FF9E1B;
  border-top: 3px solid #FF9E1B;
}

.bottom-nav-item.active img,
.bottom-nav-item.active svg {
  filter: brightness(0) saturate(20%) invert(49%) sepia(100%) saturate(1200%) hue-rotate(358deg) brightness(102%) contrast(101%);
}

/* Hover en móviles (para tablets) */
.bottom-nav-item:hover {
  color: #FF9E1B;
  background-color: rgba(255, 158, 27, 0.1);
}

.bottom-nav-item:hover img,
.bottom-nav-item:hover svg {
  filter: brightness(0) saturate(20%) invert(49%) sepia(100%) saturate(1200%) hue-rotate(358deg) brightness(102%) contrast(101%);
}

/* Efecto de tap/click para feedback táctil */
.bottom-nav-item:active {
  transform: scale(0.95);
  background-color: rgba(255, 158, 27, 0.2);
}

/* Animación de entrada desde abajo */
@keyframes slideUpNav {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Menu toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===========================
   ESTILOS ESPECÍFICOS DE EQUIPOS
   =========================== */

/* Título de la página */
.container h1 {
  color: white;
  text-align: center;
  margin: 20px 0 20px 0;
  font-size: 2.2em;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.team-card {
  background-color: var(--color-card-bg, rgba(255,255,255,0.05));
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13);
}

.team-logo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #FF9E1B;
  background: #fff;
  margin-bottom: 12px;
}

.team-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #FF9E1B;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.team-league {
  color: #fff;
  font-size: 0.95em;
  margin-bottom: 10px;
  opacity: 0.85;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.team-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 48px;
}

.team-stat-value {
  font-size: 1.1em;
  font-weight: bold;
  color: white;
}

.team-stat-label {
  font-size: 0.7em;
  color: #fff;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stats-title {
  text-align: center;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Search Bar Styles */
.search-container-equipos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 10100;
  width: 100%;
  flex: 1;
  max-width: 500px;
}

.search-bar-wrapper {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  position: relative;
}

#teamSearchInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D7DAE3;
    border-radius: 4px;
    background-color:  #3D4B76;
    color: #D7DAE3;
    font-size: 1em;
    transition: border-color var(--transition-fast);
}

#teamSearchInput::placeholder {
    color: #D7DAE3;
}

#teamSearchInput:focus {
  border-color: #FF9E1B;
  outline: none;
}

.search-icon {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1) !important;
  opacity: 0.8;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 10100;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f4f4f4;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-logo-container {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #FF9E1B; /* Gold */
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.search-result-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-name {
  font-weight: 600;
}

  .search-result-context {
    font-size: 0.9em;
    color: #666;
  }

/* ===========================
   BARRA SUPERIOR
   =========================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-md);
}

.btn-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: #FF9E1B;
  color: #1D296F;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-filters img {
  width: 20px;
  height: 20px;
  filter: none;
}

.btn-filters:hover {
  background: #FF7D07;
  color: white;
}

.filters-indicator {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #1D296F;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 2px #888;
}

.btn-filters.has-active-filters .filters-indicator {
  display: block;
}

/* ===========================
   PANEL DE FILTROS (OVERLAY)
   =========================== */
.filters-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: #2C3967;
  border-left: 1px solid #53565A;
  z-index: 10200;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: scroll;
}

.filters-overlay.open { 
  transform: translateX(0); 
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 4px;
}

.filters-header h3 { 
  color: #FF9E1B; 
  font-size: 1.8em; 
}

.close-filters {
  background: none; 
  color: #fff; 
  font-size: 1.5em; 
  border: none; 
  cursor: pointer;
}

.filters-active {
  margin-bottom: 15px;
  min-height: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3D4B76;
  color: #D7DAE3;
  border-radius: 4px;
  padding: 4px 8px 4px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 0.95em;
  font-weight: bold;
  border: 1px solid #D7DAE3;
}

.remove-filter {
  background: none;
  border: none;
  color: #D7DAE3;
  font-size: 1.2em;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.remove-filter:hover {
  color: #FF9E1B;
  transform: scale(1.1);
}

.remove-filter:focus {
  outline: none;
  color: #FF9E1B;
}

.filter-section { 
  margin-bottom: 18px; 
}

.filter-section h4 { 
  color: #FF9E1B; 
  margin-bottom: 8px; 
  font-size: 1em; 
}

.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  border-bottom: 1px solid #ff9c1b8f;
}

.filter-section-header h4 {
  margin: 0;
  color: white;
  font-size: 1em;
  font-weight: bold;
  
}

.stats-toggle-btn {
  background: none;
  border: none;
  color: #FF9E1B;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stats-toggle-btn:hover {
  background: rgba(255, 158, 27, 0.1);
}

.stats-toggle-btn:focus {
  outline: none;
  background: rgba(255, 158, 27, 0.1);
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.stats-toggle-btn.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

.stats-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 800px;
  opacity: 1;
}

.stats-filters.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.filters-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.btn-clear, .btn-apply {
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
}

.btn-clear { 
  background: #B0B8D1; 
  color: #1D296F; 
}

.btn-clear:hover { 
  background: #1D296F; 
  color: white; 
}

.btn-apply { 
  background: #FF9E1B; 
  color: #1D296F; 
}

.btn-apply:hover { 
  background: #FF7D07; 
}

.gender-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 200px;
  opacity: 1;
}

.gender-btn-group.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.gender-btn {
  background-color: #1D296F;
  color: #fff;
  border: 1px solid #53565A;
  border-radius: 4px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 0.95em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.gender-btn:hover {
  background-color: #FF9E1B;
  color: #111C4E;
}

.gender-btn.active {
  background-color: #FF9E1B;
  color: #111C4E;
  font-weight: bold;
}

.competition-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 400px;
  opacity: 1;
}

.competition-btn-group.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.competition-btn {
  background-color: #1D296F;
  color: #fff;
  border: 1px solid #53565A;
  border-radius: 4px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 0.95em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.competition-btn:hover {
  background-color: #FF9E1B;
  color: #1D296F;
}

.competition-btn.active {
  background-color: #FF9E1B;
  color: #1D296F;
  font-weight: bold;
}

.stat-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-filter label {
  color: #FF9E1B;
  font-size: 0.9em;
  font-weight: bold;
}

.stat-filter input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #53565A;
  border-radius: 4px;
  background-color: #3D4B76;
  color: #D7DAE3;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.stat-filter input:focus {
  border-color: #FF9E1B;
  outline: none;
}

.stat-filter input::placeholder {
  color: #D7DAE3;
  opacity: 0.7;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Responsive Design */
@media (max-width: 900px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .team-card {
    padding: 18px 8px 14px 8px;
  }
  
  .team-logo {
    width: 60px;
    height: 60px;
  }
  
  .team-name {
    font-size: 0.95em;
  }
  
  .team-league {
    font-size: 0.85em;
  }

  .team-stats{
    gap: 4px;
  }
  
  .team-stat-value {
    font-size: 0.8em;
  }

  .team-stat-item{
    padding: 2px 4px;
  }
  
  .team-stat-label {
    font-size: 0.7em;
  }
  
  .stats-title {
    font-size: 0.7em;
    margin-bottom: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px 20px 0 20px;
  }

  .footer-left, .footer-right {
    flex: 1 1 auto;
    text-align: center;
  }

  .partner-logos {
    justify-content: center;
  }

  .main-nav ul {
    gap: 20px;
  }

  .nav-item {
    font-size: 0.8em;
  }

  .filters-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .top-bar {
    flex-direction: column;
    gap: 12px;
  }

  .search-container-equipos {
    width: 100%;
  }

  .btn-filters {
    width: 100%;
    justify-content: center;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 65px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(to right, #2F4170, #111C4E);
    padding: 80px 20px 20px;
    transition: 0.3s;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px;
  }

  .nav-item img {
    width: 24px;
    height: 24px;
  }

  .nav-item span {
    font-size: 1em;
  }

  /* Animación del menú hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Overlay cuando el menú está abierto */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }

  .filter-chip {
    font-size: 0.9em;
    padding: 3px 6px 3px 10px;
    margin-right: 4px;
    margin-bottom: 4px;
    gap: 6px;
  }

  .remove-filter {
    width: 18px;
    height: 18px;
    font-size: 1.1em;
  }

  .stats-toggle-btn {
    padding: 6px;
  }

  .chevron-icon {
    width: 14px;
    height: 14px;
  }

  .filter-section-header {
    margin-bottom: 6px;
  }

  .filter-section-header h4 {
    font-size: 0.95em;
  }
}

/* Ajustar para pantallas muy pequeñas */
@media (max-width: 480px) {
  .bottom-nav-item img,
  .bottom-nav-item svg {
    width: 28px;
    height: 28px;
  }

  .bottom-nav-item {
    font-size: 0.8em;
  }

  .team-name {
    font-size: 0.9em;
  }

  .team-league {
    font-size: 0.8em;
  }

  .team-stat-value {
    font-size: 0.75em;
  }

  .team-stat-label {
    font-size: 0.65em;
  }

  .stats-title {
    font-size: 0.65em;
  }

  .filter-chip {
    font-size: 0.85em;
    padding: 2px 4px 2px 8px;
    margin-right: 3px;
    margin-bottom: 3px;
    gap: 4px;
  }

  .remove-filter {
    width: 16px;
    height: 16px;
    font-size: 1em;
  }

  .filters-active {
    margin-bottom: 10px;
  }

  .stats-toggle-btn {
    padding: 4px;
  }

  .chevron-icon {
    width: 12px;
    height: 12px;
  }

  .filter-section-header {
    margin-bottom: 8px;
  }

  .filter-section-header h4 {
    font-size: 1em;
  }

  .stats-filters {
    gap: 8px;
  }

  .stat-filter {
    gap: 4px;
  }

  .stat-filter label {
    font-size: 0.85em;
  }

  .stat-filter input {
    padding: 6px 8px;
    font-size: 0.85em;
  }
  .gender-btn-group {
    gap: 8px;
  }

  .gender-btn {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  .competition-btn-group {
    gap: 8px;
  }

  .competition-btn {
    padding: 6px 12px;
    font-size: 0.9em;
  }
}
.page-header{
  width: 100vw;
  height: 100px;
  background-color: #4859AA;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 2px solid #FF9E1B;
  display: flex;
}

.page-header h1{
  margin: 0 auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0 32px 0;
  padding: 8px 0;
  min-height: 40px;
}

.page-btn {
  background: var(--color-card-bg);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  margin: 0 2px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.page-btn.active,
.page-btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary-dark);
}

.page-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-border);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

a.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5em 1em;
  border-radius: 30px;
  background: #181D37;
  transition: background 0.2s;
  color: #fff;
  border: 1px solid #D7DAE3;
  margin-left: auto;
}

@media (max-width: 900px) {
  a.login-btn span {
    display: none;
  }
  a.login-btn img {
    margin: 0;
  }
  a.login-btn {
    padding: 0.5em;
    min-width: 0;
    justify-content: flex-end;
  }
}

/* Estilos del dropdown de usuario */
.login-container {
  position: relative;
  margin-left: auto;
}

.login-btn:hover {
  background: #1e2245;
}

/* Estilos del dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #181D37;
  border: 1px solid #D7DAE3;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: fadeInDown 0.2s ease-out;
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #2a3049;
  color: #FF9E1B;
  font-weight: 600;
  font-size: 0.85rem;
}

.dropdown-content {
  padding: 8px 0;
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #1e2245;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el nombre del usuario en naranja */
.user-name {
  color: #FF9E1B !important;
  font-weight: 600;
}

/* Estilos responsive para el dropdown */
@media (max-width: 900px) {
  .user-dropdown {
    min-width: 160px;
    right: -5px;
  }
}

@media (max-width: 480px) {
  .user-dropdown {
    min-width: 180px;
    right: -10px;
  }
  
  .dropdown-header,
  .dropdown-item {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* Ensure collapsed filter sections do not block clicks */
.stats-filters.collapsed,
.gender-btn-group.collapsed,
.competition-btn-group.collapsed {
  pointer-events: none;
  overflow: hidden;
}