.team-card {
    border: 2px solid #001f8f;
    margin-bottom: 30px;
    position: relative;
    padding-top: 30px;
    background-color: white;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 80%; /* O cualquier porcentaje más pequeño */
    margin-bottom: 20px; /* Reduce el margen si es necesario */
  }

  .team-card:hover {
    transform: scale(1.03);
  }

  .team-card img.team-photo {
    width: 90%; /* Puedes ajustar el tamaño de la imagen */
    height: auto; /* Mantén la proporción de la imagen */
    border-radius: 4px;
  }

  .team-logo {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #001f8f;
    border-radius: 50%;
    padding: 5px;
    height: 50px; /* Ajusta el tamaño del logo */
    width: 50px; /* Ajusta el tamaño del logo */
  }

  .team-info {
    padding: 10px 5px;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;
    position: relative;
  }

  .team-info .division {
    color: #001f8f;
    text-transform: uppercase;
  }

  .team-info .categoria {
    color: gray;
    font-size: 12px;
    margin-top: 5px;
  }

  .team-info .temporada {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  @media (max-width: 768px) {
    .team-logo {
      height: 50px;
      width: 50px;
    }
  }

  /* Estilos Modal */
  .modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .modal-footer a {
    float: right;
  }

@media (max-width: 768px) {
  .team-card {
    width: 100%;
    margin: 10px auto;
  }

  .team-card img.team-photo {
    width: 100%;
  }

  .team-logo {
    height: 40px;
    width: 40px;
  }

  .team-info {
    font-size: 12px;
  }
}
