#h1-contenedor {
    margin-left: 30px; 
    text-align: left;

}

#h1-contenedor h1 {
    font-size: 48px;
}

#teams-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6em;
    width: 90vw;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 40px;
}

.team-card {
    overflow: hidden;
    width: 550px;
    height: 300px;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: .2s;
    outline: 2px solid #262626;
}

.team-card img {
    width: 100%;
}

.team-card:hover {
    filter: grayscale(0%);
    transform: scale(1.04);
   outline: 5px solid #00ffff;
}

@media (max-width: 1235px) {
    #teams-contenedor {
        grid-template-columns: repeat(2,1fr);
}
}


@media (max-width: 600px) {

}
@media (max-width: 600px) {
    #teams-contenedor {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .team-card {
        width: 90vw;
        height: 200px;
    }
}


/* CSS Equipos CSS*/

#main-teams {
    margin: 0 auto;
    width: 90vw;
    max-height: 65vh;
    display: grid;
    grid-template-columns: 0.5fr 2fr;
    gap: 0.5em;
}

#container-players-info {
    background: url(img/fondo_teams.png);
    background-size: cover;
    background-position: center center;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    transition: opacity 0.3s ease;
    height: max-content;
}

.players-info {
    width: 650px;
    height: 500px;
    margin: 0 auto;
    display: grid;
    padding: 15px;
    grid-template-rows: 0.5fr 1fr 1fr 0.5fr;
    gap: .6em;
    color: #fff;
}


.player-info-title {
    border-bottom: 2px solid #00ffff;
}

.player-info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-content: center;
    gap: 2em;
    
}

.info {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-family: 'MiFuenteLigth';
    font-size: .8em;
    color: #00ffff;
}

.info-content {
    font-family: 'MiFuente';
    font-size: 1.6em;
}
.player-info-bio {
    font-family: Rubik;
}

.player-info-title .child-h2 {
    font-family: 'MiFuenteLigth';
}

.player-info-title h2 {
    font-family: 'MiFuente';
    font-size: 2em;
}

.player-redes {
    display: flex;
    gap: 1em;  
    margin-top: 10px;
}

.player-redes img {
    width: 32px;
    height: 32px;
}
.player-redes li a:hover img {
    animation: psychedelic 0.5s infinite alternate ease-in-out; /* Cambia los colores y rota sin parar */
    transform: scale(1.2); /* Aumenta ligeramente el tamaño */
}

.player-img img {
    position: relative;
    top: 5px;
    width: 100%;
}

#container-players-grid{
    background: #111213;
    display: grid;
    place-content: flex-start;
    padding: 20px;
    
}

.players-grid {
    display: flex;
    flex-direction: column;
}

.grid-title {
    font-family: 'MiFuenteLigth';
    font-size: 1em;
    color: #fff;
}

.grid-title::after{
    content: "";
    display: inline-block;
    width: 300px;
    vertical-align: middle;
    position: relative;
    border-bottom: 2px solid #00ffff;
}

.player-mini-container {
    display: flex;
    justify-content: center;
    gap: .5em;
    flex-wrap: wrap;
}

.player-mini img {
    width: 92px;
    height: 92px;
    outline: 2px solid #262626;
    transition: .4s;
    filter: grayscale(100%);
}

.player-mini img:hover {
    outline: 2px solid #00ffff;
    transform: scale(1.08);
    filter: grayscale(0%);
}

#default-background {
  
}

#default-background img {
  
}

.players-info,
.player-img {
    display: none; /* Ocultos por defecto */
}

#container-players-info.active .players-info,
#container-players-info.active .player-img {
    display: grid; /* Mostrar cuando hay selección */
}

#container-players-info.active #default-background {
    display: none; /* Ocultar imagen por defecto */
}

@media (max-width: 1454px) {
   #main-teams {
    grid-template-columns: 1fr;
   }

}
@media (max-width: 1121px) {

    #default-background{
        display: flex;
        justify-content: center;
       
        height: 450px;
        background-size: contain;
        background-position: center;
    }
    #default-background img {
      width: max-content;

    }
 }
 @media (max-width: 843px) {

    #default-background{
        display: flex;
        justify-content: center;
       
        height: 350px;
        background-size: contain;
        background-position: center;
    }
    #default-background img {
      width: max-content;

    }
 }
@media (max-width: 900px) {
    #container-players-info {
        grid-template-columns: 1fr;
        background-position: center;
    }
 
    .player-img img {
      width: 70%;
    }
    .player-img img {
       
    }
}

@media (max-width: 670px){

    #container-players-info {
        grid-template-columns: 1fr;
        background-position: right 40% top 5em;
        background-size: cover;
 }

    .player-info-content {
        grid-template-columns: 300px;
    }

    .players-info { 
        width: 300px;
    }

    .player-img img {
        width: 60%;
        left: 145px;

    }

    .player-info-title h2{ 
        font-size: 1.6em;
    }

    
    #default-background{
        display: flex;
        justify-content: center;
       
        height: 200px;
        background-size: contain;
        background-position: center;
    }
    #default-background img {
      width: max-content;

    }
    #container-players-grid{
        background: #111213;
        display: grid;
        place-content: flex-start;
        padding: 20px;
        
        
    }
}
