@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CalSans';
  src: url('../fonts/CalSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.sin-estilos body {
  visibility: hidden;
}

html {
  scrollbar-width: none;
  display: flex;
  justify-content: center;
  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

body {
  max-width: 500px;
  background-color: #1b1b22;
  box-sizing: border-box;
  width: 100%;
}

.pantalla-crear {
  max-width: 500px;
}

.bg-a-equipo1 {
  background-color: #6C5B7B !important;
}

.bg-a-equipo2 {
  background-color: #F8B195 !important;
}

.bg-b-equipo1 {
  background-color: #1B6B56 !important;
}

.bg-b-equipo2 {
  background-color: #F7AE4D !important;
}

.bg-c-equipo1 {
  background-color: #2F442A !important;
}

.bg-c-equipo2 {
  background-color: #98CC09 !important;
}

.bg-d-equipo1 {
  background-color: #2C2A44 !important;
}

.bg-d-equipo2 {
  background-color: #F54B58 !important;
}

input:-webkit-autofill {
  background-color: #3F374E !important;
  -webkit-box-shadow: 0 0 0 1000px #3F374E inset !important;
  -webkit-text-fill-color: white !important;
  caret-color: white !important;
  border-radius: 5px !important;
  transition: background-color 5000s ease-in-out 0s;
}




/* Fuente global */
:root {
  font-family: 'Outfit', sans-serif;
  --fuente-global: 'Outfit', sans-serif;

  --color-primario: #4F9639;
  --color-secundario: #3F374E;
  --color-fondo: #161618;
  --color-texto: #FFFFFF;
  --color-error: #FF0C0C;
}

p {
  margin-bottom: 0;
}

.texto-verde {
  color: var(--color-primario) !important;
}

.texto-transparente {
  opacity: 0.5;
}

.M-boton {
  color: #FFF;

  /* M-Boton */
  font-family: 'CalSans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.M-titulo {
  color: #FFF;

  /* M-Titulo */
  font-family: 'CalSans';
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.M-body {
  color: #FFF;

  /* M-Body */
  font-family: Outfit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

.M-body-s {
  color: var(--Texto, #FFF);
  text-align: center;

  /* M-Body S */
  font-family: Outfit;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.M-Boton{
  color: #FFF;

font-family: 'CalSans';
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.M-subtitulos {
  color: #FFF;

  /* M-Subtitulos */
  font-family: Outfit;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.transparent-text {
  opacity: 0.5;
}

.escudo {
  border-radius: 5px;
}

/* ///////////////////////// BOTONES ///////////////////////// */

.btn-primario {
  display: inline-flex;
  padding: 15px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  background: #4F9639;
  width: 160px;
  border: none;
  height: 51px;
  color: #FFF;
}

.btn-primario:disabled {
  background: #5E605E;
  color: rgba(255, 255, 255, 0.50);
}

.btn-primario:active:not(:disabled) {
  background-color: #1D570A;
  border: 5px solid rgba(17, 37, 10, 0.25);
  color: rgba(255, 255, 255, 0.50);
}

.btn-secundario {
  display: flex;
  width: 160px;
  height: 51px;
  padding: 15px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  background: #11250A;
  border: none;
  color: #4F9639;
}

.btn-secundario:active:not(:disabled) {
  border: 5px solid rgba(0, 0, 0, 0.50);
  background: #0C2005;
}

.btn-secundario .M-boton {
  color: #4F9639;
}

/* /////////// COMPONENTE FORMATO DE TORNEO VIOLETA ////////// */

.formato-torneo-violeta {
  display: flex;
  padding: 5px 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 15px;
  background: var(--color-secundario);
}

/* ///////////////////// BLUR OFFCANVAS ////////////////////// */

.offcanvas-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
  z-index: 1040;
  /* justo debajo del offcanvas (1045) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.offcanvas-blur.active {
  opacity: 1;
  pointer-events: auto;
}

/* ////////////////////// NAVBAR /////////////////////// */

.navbar {
  padding-top: 20px;
}

.navbar-toggler {
  border: none;
  box-shadow: none;
  padding: 13px;
  color: #FFF !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  color: #FFF !important;
  opacity: 1 !important;
}


.btn-close {
  border: none;
  outline: none;
  box-shadow: none;
}

.btn-close:focus,
.btn-close:active {
  outline: none;
  box-shadow: none;
}

/* ////////////////// SELECTOR VIOLETA ANIMACION /////////////////// */

.contenedor-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.toggle-selector {
  position: relative;
  display: flex;
  width: fit-content;
  background: #373639;
  border-radius: 10px;
  height: 40px;
  width: 170px;
  align-items: center;
  padding: 5px;
  justify-content: space-between;
}

.toggle-selector .tag {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  cursor: pointer;
  color: #aaa;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px;
}

.toggle-selector .slider {
  position: absolute;
  z-index: 1;
  width: 83px;
  height: 30px;
  background-color: #7b3cff;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.toggle-selector .tag.activo {
  border-radius: 5px;
  color: #FFF;
}

/* ////////////////// MENU NAVEGACION OFFCANVAS /////////////////// */

.offcanvas-custom.offcanvas.offcanvas-start.text-white {
  display: flex;
  background: rgba(63, 55, 78, 0.50);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  max-width: 268px;
  margin: 25px 76px 25px 16px;
}

.offcanvas .offcanvas-header {
  padding: 0;
}

.offcanvas .offcanvas-header .btn-close-white {
  width: 24px;
  height: 24px;
  padding: 13px;
  margin: 0;
}

.offcanvas .offcanvas-body {
  display: flex;
}

.offcanvas .offcanvas-body .navbar-nav .nav-item {
  display: flex;
  gap: 5px;
  align-items: center;
  align-self: stretch;
  padding: 5px 10px;
}

.offcanvas .offcanvas-body .navbar-nav .logout-link {
  margin-top: auto;
}

.navbar {
  background-color: transparent;
}

/* ////////////////////// TARJETA PARTIDO /////////////////////// */

.container-partidos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
  margin-bottom: 50px;
  padding: 0 16px;
}

.container-partidos .container-titulo {
  width: 100%;
  display: flex;
  justify-content: start;
}


.partido-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: -5px;
}

.partido-card .container-resultado {
  display: flex;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 15px;
  background: #535368;
  box-shadow: 0px 54px 15px 0px rgba(89, 0, 255, 0.00), 0px 34px 14px 0px rgba(89, 0, 255, 0.01), 0px 19px 12px 0px rgba(89, 0, 255, 0.05), 0px 9px 9px 0px rgba(89, 0, 255, 0.09), 0px 2px 5px 0px rgba(89, 0, 255, 0.10);
}

.partido-card .container-resultado .container-equipos {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-right: 13px;
}

.partido-card .container-resultado .container-equipos .equipo {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  flex-direction: row;
  height: 48px;
}

.partido-card .container-resultado .container-equipos .equipo .container-1 img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.partido-card .container-resultado .container-equipos .equipo .container-2 {
  display: flex;
  flex-direction: row;
  width: 4rem;
  justify-content: space-between;
}

.partido-card .container-resultado .container-equipos .equipo .container-2 .alineado-gol {
  display: flex;
  align-items: center;
  font-size: 14px;
  /* ajustá según tu diseño */
  color: white;
  flex-direction: row;
}

.partido-card .container-resultado .container-equipos .equipo .container-2 svg {
  height: 1em;
  display: block;
}

.partido-card .container-resultado .container-equipos .equipo .container-2 p {
  font-size: 25px;
}

.partido-card .container-resultado .container-equipos .equipo .container-2 .goles-jugador {
  font-size: 16px;
  color: #4F9639;
}

.partido-card .container-resultado .container-equipos .equipo div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.partido-card .container-resultado .container-equipos .equipo div p {
  text-align: center;
  /* margin-left: 10px; */
}

.partido-card .container-resultado .container-equipos .equipo .container-1 .equipo-usuario {
  background-color: #4F9639;
}

.partido-card .container-resultado .container-equipos .equipo .container-1 .nombre-equipo {
  padding: 5px;
  border-radius: 5px;
  margin-left: 5px;
}

.partido-card .container-resultado .container-fechahora {
  display: flex;

}

.partido-card .container-resultado .container-fechahora div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  width: 63px;
}

.partido-card .container-resultado .container-fechahora div .transparent-text {
  height: 13px;
}

.partido-card .container-resultado .container-fechahora div .container-empate {
  border-radius: 2px;
  background: #C9C9C9;
  display: flex;
  width: 35px;
  height: 35px;
  padding: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  margin-bottom: 5px;
}

.partido-card .container-resultado .container-fechahora div .container-derrota {
  border-radius: 2px;
  background: #E32C2C;
  display: flex;
  width: 35px;
  height: 35px;
  padding: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  margin-bottom: 5px;
}

.partido-card .container-resultado .container-fechahora div .container-victoria {
  border-radius: 2px;
  background: #27BA37;
  display: flex;
  width: 35px;
  height: 35px;
  padding: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  margin-bottom: 5px;
}

.partido-card .container-cancha {
  display: flex;
  padding: 5px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: var(--Secundario, #3F374E);
  margin-top: -5px;
  gap: 10px;
  box-shadow: 0px 54px 15px 0px rgba(89, 0, 255, 0.00), 0px 34px 14px 0px rgba(89, 0, 255, 0.01), 0px 19px 12px 0px rgba(89, 0, 255, 0.05), 0px 9px 9px 0px rgba(89, 0, 255, 0.09), 0px 2px 5px 0px rgba(89, 0, 255, 0.10);
}

/* Tarjeta de partido horizontal */

.card-partido {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  border-radius: 15px;
  color: white;
  text-align: center;
  position: relative;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.card-partido-contenido {
  display: flex;
  flex-direction: column;
  background: #535368;
  padding: 10px;
  border-radius: 15px;
  box-shadow:
    0px 54px 15px 0px rgba(89, 0, 255, 0.00),
    0px 34px 14px 0px rgba(89, 0, 255, 0.01),
    0px 19px 12px 0px rgba(89, 0, 255, 0.05),
    0px 9px 9px 0px rgba(89, 0, 255, 0.09),
    0px 2px 5px 0px rgba(89, 0, 255, 0.10);
  box-sizing: border-box;
  width: fit-content;
  width: 100%;
  max-width: 450px;
}

.card-partido-contenido .container-1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.card-partido-contenido .container-1 img {
  width: 76px;
  height: 76px;
}

.card-partido-contenido .container-2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 4px;
}

.equipo {
  display: flex;
  height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 4px;
}

.izq {
  text-align: left !important;
  align-items: flex-start;
  justify-content: center;
}

.der {
  text-align: right !important;
  align-items: flex-end;
  justify-content: center;
}

.equipo-nombre {
  overflow: hidden;
  color: var(--Texto, #FFF);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* ✅ Fuerza una línea */
  max-width: 144px;
  /* ✅ Evita que crezca más */
  font-family: Outfit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}


.info-central {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 90px;
  max-width: 150px;
  flex-shrink: 0;
}

.info-central .vs {
  font-size: 1.8rem;
  font-weight: 500;
  color: white;
  margin: 0;
}

.info-central .resultado {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.info-central .resultado p {
  font-size: 30px;
  font-weight: 500;
}

.badge-cancha {
  margin-top: -5px;
  gap: 10px;
  width: fit-content;
  position: relative;
  height: 34px;
  padding: 5px 10px;
  background: #3F374E;
  border-radius: 15px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  justify-content: center;
  box-shadow:
    0px 2px 5px 0px rgba(89, 0, 255, 0.10),
    0px 9px 9px 0px rgba(89, 0, 255, 0.09),
    0px 19px 12px 0px rgba(89, 0, 255, 0.05),
    0px 34px 14px 0px rgba(89, 0, 255, 0.01),
    4px 0px 10px rgba(89, 0, 255, 0.04),
    -4px 0px 10px rgba(89, 0, 255, 0.04);
}

.cancha-icon {
  display: flex;
  align-items: center;
}


.boton-fijo {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  padding: 0 1rem;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}




.buscador {
  display: flex;
  width: 328px;
  padding: 13px 10px;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  background: #373639;
}

.buscador img,
.buscador input {
  opacity: 0.5;
  transition: all 0.2s ease;
}

.buscador:focus-within {
  background: var(--Secundario, #3F374E);
}

.buscador:focus-within img,
.buscador:focus-within input {
  opacity: 1;
  color: #FFF;
}

.buscador input {
  width: 279px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #FFF;
}

#buscador:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}

.opacity {
  opacity: 0.5;
}

/* <form action="" id="form-busqueda" autocomplete="off" class="center">
<div class="buscador">
  <img src="{% static 'images/lupa.svg' %}" alt="Lupa">
<input type="text" id="buscador" placeholder="Busca jugadores..."></input>
</div>
</form> */