/* VOLVER */
.volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0aa0ff;
  text-decoration: none;
}

.volver:hover {
  transform: translateX(-3px);
  opacity: 0.85;
}

.flecha {
  font-size: 1.2rem;
}

/* MAIN */
.socios {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.socios h1 {
  font-size: 1.9rem;
}

.descripcion {
  opacity: 0.7;
  margin-bottom: 24px;
}

/* GRID */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  justify-content: start;
}

/* CARD BASE */
.socio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: transform 0.22s ease,
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  cursor: pointer;
}

/* HORIZONTAL */
.socio-card.horizontal {
  display: flex;
  align-items: center;
  height: 120px;
}

/* IMAGEN */
.socio-card img {
  width: 120px;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.95);
  transition: filter 0.22s ease, transform 0.22s ease;
}

/* INFO */
.socio-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.socio-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.socio-desc {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* HOVER */
.socio-card:hover {
  border-color: #0aa0ff;
  box-shadow:
    0 0 10px rgba(10,160,255,0.35),
    0 0 22px rgba(10,160,255,0.2);
  transform: translateY(-3px);
}

.socio-card:hover img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.04);
}

/* MOBILE */
@media (max-width: 420px) {
  .socio-card.horizontal {
    height: auto;
  }

  .socio-card img {
    width: 100px;
    height: 100px;
  }
}

/* =========================
   RESPONSIVE CENTRADO
   ========================= */
@media (max-width: 768px) {

  /* Centra el grid */
  .socios-grid {
    grid-template-columns: 1fr;
    justify-items: center;   /* centra las cards */
  }

  /* Card horizontal centrada */
  .socio-card.horizontal {
    width: 100%;
    max-width: 360px;        /* ancho controlado */
  }
}

@media (max-width: 420px) {

  .socio-card.horizontal {
    flex-direction: row;
    max-width: 320px;
  }

  .socio-card img {
    width: 90px;
    height: 90px;
  }

  .socio-info {
    padding: 10px;
  }
}
