/* ===================================
   ESTILOS PARA INDUMENTARIA - CENTRADO
   =================================== */

/* Grid principal CENTRADO */
.members-grid,
.attire-grid,
.management-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* Grupos de uniformes - SIEMPRE CENTRADO */
.uniform-pair {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

/* Cuando hay pocos items, se centran perfectamente */
.uniform-pair[data-gender="male"].visible,
.uniform-pair[data-gender="female"].visible {
  display: grid;
}

/* Para 2 tarjetas - centradas */
.uniform-pair[data-gender]:has(.attire-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(320px, 400px));
  justify-content: center;
}

/* Para 3 tarjetas - centradas en una fila */
.uniform-pair[data-gender]:has(.attire-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(320px, 380px));
  justify-content: center;
}

/* Para 4 tarjetas - 4 en una fila centradas */
.uniform-pair[data-gender]:has(.attire-card:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(280px, 350px));
  justify-content: center;
}

/* Cards de uniformes con ancho máximo */
.attire-card {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid #333;
  width: 100%;
  max-width: 400px;
}
/* ===== ESTILOS PARA UNIFORMES ===== */
#attire.section {
  padding: 80px 5%;
}

#attire .section-title {
  font-size: 2.5rem;
  color: #FF3333;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

#attire .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 100px;
  height: 4px;
  background: #FF3333;
}

/* === PESTAÑAS === */
.attire-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.attire-tab {
  padding: 12px 25px;
  background: rgba(70, 70, 70, 0.5);
  border: none;
  border-radius: 30px;
  color: #DDD;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.attire-tab.active {
  background: #FFBD00;
  color: #0A090D;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

/* === SELECTOR DE GÉNERO === */
.gender-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.gender-btn {
  padding: 8px 20px;
  background: rgba(70, 70, 70, 0.5);
  border: 1px solid #555;
  border-radius: 20px;
  color: #DDD;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gender-btn.active {
  background: #8B0000;
  color: white;
  border-color: #FF3333;
}

/* === CONTENIDO DE UNIFORMES === */
.attire-content {
  display: none;
}

.attire-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Grid principal */
.members-grid,
.attire-grid,
.management-grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Grupos de uniformes (masculino/femenino) */
.uniform-pair {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Mostrar solo el género activo */
.uniform-pair[data-gender="male"].visible,
.uniform-pair[data-gender="female"].visible {
  display: grid;
}

/* Cards de uniformes */
.attire-card {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.attire-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
}

.attire-image {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.attire-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.attire-card:hover .attire-image img {
  transform: scale(1.05);
}

.attire-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid #FF3333;
}

.attire-info {
  padding: 20px;
}

.uniform-features {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.uniform-features li {
  margin-bottom: 10px;
  color: #ddd;
  font-size: 0.95rem;
}

.uniform-features li:before {
  color: #FF3333;
  left: 0;
  font-weight: bold;
}

/* Estilos especiales para jefatura */
.management-grid .attire-card {
  border: 2px solid #FF3333;
}

.management-grid .attire-badge {
  background: #FF3333;
  color: #000;
  font-weight: bold;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .members-grid,
  .attire-grid,
  .management-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  
  .uniform-pair {
    grid-template-columns: 1fr;
  }
  
  .attire-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .attire-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .attire-image {
    height: 250px;
  }
}
.attire-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
  border-color: var(--primary);
}

.attire-image {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.attire-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.attire-card:hover .attire-image img {
  transform: scale(1.05);
}

.attire-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid var(--primary);
}

.attire-info {
  padding: 20px;
}

.attire-info h3 {
  font-family: 'Playfair Display SC', serif;
  color: #FFBD00;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.uniform-features {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

/* Estilos especiales para jefatura */
.management-grid .attire-card {
  border: 2px solid var(--primary);
}

.management-grid .attire-badge {
  background: var(--primary);
  color: #000;
  font-weight: bold;
}

/* Responsive para indumentaria */
@media (max-width: 1400px) {
  /* Para 4 tarjetas en pantallas medianas - 2x2 */
  .uniform-pair[data-gender]:has(.attire-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(320px, 400px));
  }
}

@media (max-width: 1024px) {
  /* Para 3 tarjetas - 2 arriba, 1 abajo centrada */
  .uniform-pair[data-gender]:has(.attire-card:nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(320px, 400px));
  }
}

@media (max-width: 768px) {
  .members-grid,
  .attire-grid,
  .management-grid {
    padding: 10px;
  }
  
  .uniform-pair,
  .uniform-pair[data-gender]:has(.attire-card:nth-child(2):last-child),
  .uniform-pair[data-gender]:has(.attire-card:nth-child(3):last-child),
  .uniform-pair[data-gender]:has(.attire-card:nth-child(4):last-child) {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .attire-card {
    max-width: 100%;
  }
  
  .attire-image {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .attire-image {
    height: 300px;
  }
}
