/* 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 Navideño: Cabecera con foto */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  background-image: url("../img/TORNEO NAVIDAD/Encabezado-Navidad.jpg");
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 61, 0.4);
  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.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  font-weight: 300;
}

/* Contenido Principal: Información detallada sobre el torneo */
#contenido-principal {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.texto-seccion h3 {
  font-size: 2rem;
  color: #0b1c3d;
  margin-bottom: 20px;
  font-weight: 700;
}

.texto-seccion p {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 18px;
  line-height: 1.8;
}

.texto-seccion p:last-of-type {
  margin-bottom: 25px;
}

/* Contenedor de Video: Muestra contenido multimedia del torneo */
.video-container {
  align-self: start;
  margin-top: 50px;
}

.video-container video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #cbd5e1;
  border-radius: 10px;
}

/* Aspectos destacados (Highlights): Puntos clave del evento */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: #f3f4f6;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
}

.highlight-item i {
  font-size: 1.5rem;
  color: #2563eb;
}

.highlight-item span {
  font-weight: 500;
  color: #0b1c3d;
}

/* Estilo del Video: Ajustes visuales para el reproductor */
.video-seccion {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-seccion iframe {
  display: block;
  width: 100%;
  height: 100px;
}

/* Detalles del Torneo: Cuadrícula con información específica del evento */
#detalles-torneo {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#detalles-torneo h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 35px;
  text-align: center;
}

.detalles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.detalle-card {
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #2563eb;
  text-align: center;
  transition: all 0.3s ease;
}

.detalle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.detalle-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #e0f2fe;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: #2563eb;
}

.detalle-card h4 {
  font-size: 1.3rem;
  color: #0b1c3d;
  margin-bottom: 12px;
  font-weight: 700;
}

.detalle-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Galería: Fotos de ediciones anteriores del torneo */
#galeria {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#galeria h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 35px;
  text-align: center;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 280px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-item:hover img {
  transform: scale(1.12);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 28, 61, 0.95), transparent);
  padding: 25px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

.galeria-overlay p {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Próxima Edición: Llamada a la acción para el próximo torneo */
#proximaEdicion {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#proximaEdicion h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 35px;
  text-align: center;
}

.proxima-content {
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  padding: 50px 40px;
  border-radius: 20px;
  color: #fff;
}

.proxima-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.8;
}

.btn-info {
  display: inline-block;
  padding: 15px 45px;
  background-color: #fff;
  color: #2563eb;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer: Pie de página de la sección de navidad */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
  margin-top: 60px;
}

footer a {
  color: #2563eb;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
}

.social-links {
  margin-top: 20px;
}

.social-links a { color: #ffffff;
  margin: 0 15px;
  font-size: 30px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #ffffff;
}

/* Tablet Responsive: Ajustes para pantallas de tamaño medio */
@media(max-width: 1024px) {

  .detalles-grid,
  .galeria-grid {
    gap: 20px;
  }
}

/* Responsive General: Ajustes para móviles */
@media(max-width: 1024px) {
  .nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px;
  }

  .detalles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .logo {
    height: 100px;
  }

  header {
    position: relative;
  }

  .proxima-content {
    padding: 30px 20px;
  }
}

@media(max-width: 480px) {
  .detalles-grid {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile en horizontal (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 320px;
    padding: 20px 20px;
  }

  .logo {
    height: 80px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

