/* Reset básico: Elimina márgenes y rellenos predeterminados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f7fa;
}

a {
  text-decoration: none;
}

/* Header profesional: Estilo de la barra de navegación superior */
header {
  background-color: #0b1c3d;
  color: #fff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
  max-width: 1600px; /* Ampliado para dar mÃ¡s espacio a los lados */
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px; /* MÃ¡s espacio a los lados */
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0; /* Evita que el logo y el tÃ­tulo se encojan */
}

.logo {
  height: 150px;
  width: auto;
}

.logo-title h1, .logo-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap; /* Fuerza a que estÃ© en una sola lÃ­nea siempre */
}

.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav ul li a {
  color: white;
  font-weight: 700;
  padding: 8px 12px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav ul li a:hover {
  background-color: #2563eb;
  border-radius: 6px;
}

.nav .btn-socio {
  background-color: #2563eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.3s;
}

.nav .btn-socio:hover {
  background-color: #1e4db7;
}

/* Hero: Sección de cabecera con imagen promocional */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('img/placeholder-equipos-hero.jpg') center/cover no-repeat;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 61, 0.6);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* Organigrama: Configuración de la cuadrícula de miembros */
#organigrama {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#organigrama h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 10px;
  text-align: center;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.organigrama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.miembro {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid #e2e8f0;
}

.miembro:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.foto-miembro {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f1f5f9;
}

.foto-miembro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.miembro:hover .foto-miembro img {
  transform: scale(1.05);
}

.info-miembro {
  padding: 20px;
  text-align: center;
}

.info-miembro h4 {
  font-size: 1.25rem;
  color: #0b1c3d;
  margin-bottom: 5px;
  font-weight: 700;
}

.info-miembro p {
  font-size: 0.95rem;
  color: #2563eb;
  font-weight: 600;
}

/* Footer: Pie de página de la sección */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
}

footer a {
  color: #2563eb;
}

.social-links a {
  color: #ffffff;
  margin: 0 15px;
  font-size: 30px;
}

.social-links a:hover {
  color: #ffffff;
}

/* Responsive: Ajustes para tablets y dispositivos móviles */
@media(max-width: 1024px) {
  body {
    padding-top: 0;
  }

  .logo {
    height: 80px;
    /* Reducimos el logo para que quepa mejor */
  }

  .nav {
    padding: 10px 20px;
  }

  /* Mostramos el menú de hamburguesa */
  .hamburger {
    display: block !important;
  }

  .nav ul {
    display: none;
    /* Ocultamos el menú horizontal */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0b1c3d;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav ul.active {
    display: flex;
    /* Se muestra al pulsar la hamburguesa */
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav ul li a {
    display: block;
    padding: 12px;
  white-space: nowrap;
}

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Mobile en horizontal (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 320px;
    padding: 20px 20px;
  }

  .logo {
    height: 80px;
  }
}

/* Role Tags Styling */
.role-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
  align-items: center;
}

.tag {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 90%;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag.directiva {
  background-color: #0b1c3d;
  color: #ffffff;
}

.tag.deportivo {
  background-color: #2563eb;
  color: #ffffff;
}

.tag.rrss {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(204, 35, 102, 0.2);
}

.tag.rrss::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.tag.institucional {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.tag.tech {
  background-color: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.tag.logistica {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.tag.general {
  background-color: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.miembro:hover .tag {
  transform: scale(1.02);
}

