.contenedor-equipos {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

.contenedor-equipos .form-selector {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contenedor-equipos .temporada-selector {
  margin: 0 auto;
}

.contenedor-equipos .tabla-resultados {
  width: min(95vw, 1100px);
  margin: 0 auto;
}

.contenedor-equipos .tabla-resultados h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--naranja);
  margin-bottom: 0.25rem;
}

.contenedor-equipos .tabla-resultados h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

/* HTML real generado por equipos.xsl */
.contenedor-equipos .equipo-container {
  width: 100%;
  margin: 1.1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.contenedor-equipos .equipo-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.contenedor-equipos .equipo-escudo {
  width: clamp(52px, 6vw, 86px);
  height: clamp(52px, 6vw, 86px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.35rem;
}

.contenedor-equipos .equipo-header h3 {
  margin: 0;
  color: var(--naranja);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contenedor-equipos h4 {
  margin: 0.2rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 600;
}

/* Carrusel horizontal de jugadores dentro de cada equipo */
.contenedor-equipos .jugadores-horizontal {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.5rem;
  scroll-snap-type: x mandatory;
}

.contenedor-equipos .jugadores-horizontal::-webkit-scrollbar {
  height: 8px;
}

.contenedor-equipos .jugadores-horizontal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.contenedor-equipos .jugadores-horizontal::-webkit-scrollbar-thumb {
  background: var(--naranja);
  border-radius: 8px;
}

.contenedor-equipos .jugador-card {
  flex: 0 0 auto;
  width: clamp(110px, 13vw, 145px);
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid transparent;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contenedor-equipos .jugador-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 175, 39, 0.45);
  background: rgba(248, 175, 39, 0.15);
}

.contenedor-equipos .jugador-foto {
  width: clamp(58px, 5vw, 76px);
  height: clamp(58px, 5vw, 76px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  background: rgba(255, 255, 255, 0.12);
}

.contenedor-equipos .jugador-dorsal {
  color: var(--naranja);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 800;
  line-height: 1;
}

.contenedor-equipos .jugador-nombre {
  margin-top: 0.35rem;
  color: var(--blanco);
  font-size: clamp(0.67rem, 0.92vw, 0.84rem);
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 700px) {
  .contenedor-equipos .equipo-container {
    padding: 0.8rem;
  }

  .contenedor-equipos .equipo-header {
    gap: 0.65rem;
  }

  .contenedor-equipos .jugador-card {
    width: 110px;
    padding: 0.6rem;
  }
}
