/* Reset básico: Elimina márgenes y rellenos predeterminados para control total del diseño */
* {
  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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

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 mejorado: Sección principal con imagen de fondo llamativa */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/FOTO INICIO.png') 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.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero .btn {
  background-color: #2563eb;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}

.hero .btn:hover {
  background-color: #1e4db7;
}

/* Sección club visual: Información sobre el club con estadísticas */
#el-club {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#el-club h3, #noticias-inicio h3 {
  font-size: 2.5rem;
  color: #0b1c3d;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -1px;
}

.gray-section-wrapper {
  background-color: #ededed; /* Gris suave solicitado */
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.section-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.section-content .text {
  flex: 1;
  min-width: 280px;
}

.section-content .text p {
  margin-bottom: 15px;
}

.section-content .stats {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats div {
  background-color: #2563eb;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.stats div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.section-content .img-placeholder {
  flex: 1;
  min-width: 280px;
  height: 300px;
  background: url('../img/FOTO INICIOCAMPO.JPG') center/cover no-repeat;
  border-radius: 20px;
}

/* Bloques generales: Tarjetas de información para diferentes secciones */
.general-blocks {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.block {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.block:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.block img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #ccc;
}

.block-content {
  padding: 15px;
}

.block-content h4 {
  font-size: 1.3rem;
  color: #0b1c3d;
  margin-bottom: 10px;
}

.block-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.block-content a {
  display: inline-block;
  padding: 8px 18px;
  background-color: #2563eb;
  color: #fff;
  border-radius: 8px;
  transition: 0.3s;
}

.block-content a:hover {
  background-color: #1e4db7;
}

/* Sección de enlaces extra (Calendario, Recuerdos, Gilete) */
.extra-links-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.extra-links-section h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 800;
}

.extra-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.extra-link-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.extra-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.extra-link-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.extra-link-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #ccc;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h4 {
  font-size: 1.4rem;
  color: #0b1c3d;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

@media(max-width: 1024px) {
  .extra-links-grid {
    gap: 20px;
  }
}

/* Banner Únete a nosotros mejorado: Sección de llamada a la acción */
.join-banner-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.join-us-banner {
  background: white;
  color: #1f2937;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.banner-text {
  flex: 1.2;
}

.banner-content h3 {
  font-size: 2.5rem;
  color: #0b1c3d;
  margin-bottom: 20px;
  font-weight: 800;
}

.banner-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #4b5563;
  line-height: 1.6;
}

.banner-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.banner-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: #374151;
}

.banner-list li i {
  color: #10b981;
  font-size: 1.2rem;
}

.btn-banner {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 15px 35px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-banner:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.banner-image {
  flex: 1;
}

.banner-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sección de Video: Contenedor para el video promocional */
.video-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.video-section h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 30px;
  text-align: center;
}

.video-container {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.video-container video {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media(max-width: 992px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-list li {
    justify-content: center;
  }

  .banner-content h3 {
    font-size: 2rem;
  }
}

@media(max-width: 1024px) {
  .join-us-banner {
    padding: 30px 20px;
  }
}

/* Footer: Pie de página con enlaces sociales y derechos */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

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) {
  .general-blocks {
    gap: 20px;
  }

  .block img {
    height: 160px;
  }
}

/* Small Mobile: Ajustes para móviles pequeños (ej. iPhone 12 Pro) */
@media(max-width: 430px) {
  .hero {
    height: 70vh;
    padding: 30px 15px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .general-blocks {
    padding: 0 15px;
    gap: 15px;
  }

  .stats {
    gap: 15px;
  }

  .stats div {
    min-width: 120px;
    padding: 15px;
  }
}

/* Responsive General: Ajustes para tablets y 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;
  }

  .section-content {
    flex-direction: column;
    gap: 20px;
  }

  /* Corrección de visibilidad de bloques en móvil */
  .general-blocks {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px;
    margin: 20px auto;
  }

  .block {
    max-width: 100%;
  }

  .block img {
    height: 200px;
  }

  /* Corrección de tamaño de video en móvil */
  .video-container {
    padding: 20px 15px;
  }

  .video-container video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* Mobile en horizontal (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 320px;
    padding: 20px 20px;
  }

  .logo {
    height: 80px;
  }

}

/* --- MEJORAS ESTÉTICAS --- */

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 2;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.2px);
  height: 60px;
}

.hero-wave .shape-fill {
  fill: #f5f7fa;
}

.extra-links-section {
  padding: 40px 20px;
}

.join-banner-section {
  padding: 40px 20px 80px 20px;
}

