/* 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;
  top: 0;
  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 destacada */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/EQUIPOS_FONDO.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;
}

/* Equipos: Sección que muestra las tarjetas de los diferentes equipos */
#equipos {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#equipos h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 30px;
  text-align: center;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.equipo {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: 0.3s;
}

/* Efecto "hacia adelante" al pasar el ratón */
.equipo:hover {
  transform: scale(1.05) translateY(-8px);
  /* Se agranda un poco más y sube un pelín más */
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  /* Sombra más profunda para dar profundidad */
  z-index: 10;
  /* Se pone por encima de los demás */
}

.equipo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #ccc;
}

.equipo-content {
  padding: 15px;
  text-align: center;
}

.equipo-content h4 {
  font-size: 1.3rem;
  color: #0b1c3d;
  margin-bottom: 10px;
}

.equipo-content p {
  font-size: 0.95rem;
  color: #555;
}

/* Footer: Pie de página de la sección de equipos */
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;
}

/* Tablet Responsive: Ajustes para pantallas de tamaño medio */
@media(max-width: 1024px) {
  .equipos-grid {
    gap: 20px;
  }

  .equipo img {
    height: 180px;
  }
}

/* Small Mobile: Ajustes para móviles pequeños */
@media(max-width: 430px) {
  .hero {
    padding: 30px 15px;
  }

  .equipos-grid {
    gap: 10px;
    padding: 0 10px;
  }

  .equipo img {
    height: 160px;
  }
}

/* Responsive General: Ajustes para móviles */
@media(max-width: 1024px) {
  body {
    padding-top: 0;
  }

  .logo {
    height: 100px;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .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: 30px 20px;
  }

  .logo {
    height: 80px;
  }
}

