/* 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 destacada */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/EL%20CLUB/FOTOANTIGUA.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.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* Typography & Utilities */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.badge.center {
  display: block;
  width: max-content;
  margin: 0 auto 15px auto;
}

/* Main Sections */
.club-main {
  background-color: #f8fafc;
  position: relative;
  z-index: 2;
}

.info-section {
  padding: 100px 20px;
}

.info-section.alternate {
  background-color: #ffffff;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.info-container.reverse {
  flex-direction: row-reverse;
}

.info-text {
  flex: 1;
}

.info-text h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 25px;
  line-height: 1.2;
}

.info-text p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.8;
}

.info-text strong {
  color: #0f172a;
}

.action-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #0f172a;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Images & Placeholders */
.info-image {
  flex: 1;
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.image-wrapper:hover {
  transform: translateY(-10px);
}

.image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.image-overlay span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Vision Banner */
.vision-banner {
  background: #0b1c3d;
  background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 40%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.1), transparent 40%);
  padding: 100px 20px;
  color: #ffffff;
  text-align: center;
}

.vision-content {
  max-width: 1200px;
  margin: 0 auto;
}

.vision-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vision-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.vision-card i {
  font-size: 2.5rem;
  color: #60a5fa;
  margin-bottom: 20px;
}

.vision-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.vision-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Valores Section */
#valores {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
}

/* Secciones: Estilos para Historia y Valores del club */
#historia,
#valores {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#historia h3,
#valores h3,
#otras-areas h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 30px;
  text-align: center;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.valor {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s;
}

.valor:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.valor h4 {
  font-size: 1.3rem;
  color: #0b1c3d;
  margin-bottom: 10px;
}

.valor i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 20px;
}

/* Estilo especial para la tarjeta femenina */
.valor.feminine i {
  color: #ec4899;
}

.link-femenino {
  display: inline-block;
  margin-top: 10px;
  color: #ec4899;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.link-femenino:hover {
  gap: 10px;
}
/* Sponsor CTA */
.sponsor-cta {
  background: #2563eb;
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.sponsor-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.sponsor-cta h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.sponsor-cta p {
  font-size: 1.15rem;
  color: #dbeafe;
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn-outline-light {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #ffffff;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 60px 20px;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #60a5fa;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

.social-links a { color: #ffffff;
  margin: 0 15px;
  font-size: 30px;
}

.social-links a:hover {
  color: #ffffff;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media(max-width: 992px) {

  .info-container,
  .info-container.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .badge.center {
    margin: 0 auto 15px auto;
  }

  .badge {
    margin: 0 auto 15px auto;
    display: block;
    width: max-content;
  }

  .action-buttons {
    justify-content: center;
  }

  .image-wrapper img {
    height: 300px;
  }
}

@media(max-width: 1024px) {
  .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 {
    height: 60px;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav ul li a {
    display: block;
    padding: 10px;
  white-space: nowrap;
}

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .info-text h3,
  .vision-content h2,
  .section-header h3,
  .sponsor-cta h3 {
    font-size: 2rem;
  }

  .info-section,
  .vision-banner,
  #valores,
  .sponsor-cta {
    padding: 60px 20px;
  }
}

/* Bloques generales: Tarjetas de informaci?n para diferentes secciones */
.general-blocks {
  max-width: 1200px;
  margin: 40px auto 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 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;
  display: flex;
  flex-direction: column;
}

.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: #f5f7fa;
}

.block-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.block-content h4 {
  font-size: 1.25rem;
  color: #0b1c3d;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.block-content p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 20px;
  flex-grow: 1;
}

.block-content a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2563eb;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  align-self: center;
}

.block-content a:hover {
  background-color: #1e4db7;
}


/* Teams Carousel Styles */
#teams-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
}

#carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

#carousel-img.fade {
  opacity: 0.3;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  padding: 40px 20px 20px;
  color: white;
  text-align: center;
}

#team-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

@media(max-width: 992px) {
  .carousel-container {
    height: 300px;
  }
}

