/* =========================
   TÍTULO CLUBES
========================= */

.clubes-titulo {
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 2rem;
  margin-bottom: 10px;
}

.clubes-linea {
  width: 70px;
  height: 3px;
  background-color: #111;
  margin: 0 auto;
  border-radius: 2px;
}

/* =========================
   SECCIÓN CLUBES
========================= */

.clubes-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.clubes-section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 50px;
  letter-spacing: 3px;
}

/* =========================
   GRID 3 POR FILA
========================= */

.clubes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  justify-items: center;
}

/* =========================
   LOGOS (SOLO LOGO)
========================= */

.club-logo-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.club-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* Hover elegante */
.club-logo-container:hover {
  transform: translateY(-6px) scale(1.05);
}

/* =========================
   MODAL OVERLAY
========================= */

.club-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* =========================
   MODAL
========================= */

.club-modal {
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  animation: modalFade 0.25s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.modal-logo {
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.club-modal h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.club-modal p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.modal-link {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
  border-bottom: 2px solid transparent;
  transition: border 0.2s ease;
}

.modal-link:hover {
  border-bottom: 2px solid #111;
}

/* Botón cerrar */
.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s ease;
}

.cerrar-modal:hover {
  transform: scale(1.2);
}

/* Animación */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 992px) {
  .clubes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .clubes-grid {
    grid-template-columns: 1fr;
  }

  .club-logo-container {
    width: 150px;
    height: 150px;
  }
}
