body {
  background-color: #f8f9fa;
  color: #2e3755;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header.py-2.borde-inferior {
  background-color: #a3b8fd;
  color: #2e5530;
}

footer {
  background-color: #6d8fff;
  color: white;
  text-align: center;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
}

.seccion-hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 60px 0 10px 0;
  margin-bottom: 10px;
}

.seccion-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.seccion-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 24px;
}

.hero-left {
  text-align: center;
}

.hero-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-left { position: relative; z-index: 2; }

.collage-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 0;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.tile { 
  position: relative; 
  overflow: hidden; 
  border-radius: 8px; 
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.tile img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transform: scale(1.03); 
  transition: transform 0.6s ease;
}
.tile:hover img { transform: scale(1.08); }

/* Grid perfecto - 20x15 = 300 celdas, cobertura total garantizada */
.tile-a { grid-column: 1 / span 6; grid-row: 1 / span 5; }
.tile-b { grid-column: 7 / span 4; grid-row: 1 / span 4; }
.tile-c { grid-column: 11 / span 5; grid-row: 1 / span 4; }
.tile-d { grid-column: 16 / span 5; grid-row: 1 / span 3; }
.tile-e { grid-column: 1 / span 3; grid-row: 6 / span 3; }
.tile-f { grid-column: 4 / span 3; grid-row: 6 / span 3; }
.tile-g { grid-column: 7 / span 3; grid-row: 5 / span 3; }
.tile-h { grid-column: 10 / span 3; grid-row: 5 / span 3; }
.tile-i { grid-column: 13 / span 3; grid-row: 4 / span 3; }
.tile-j { grid-column: 16 / span 5; grid-row: 4 / span 3; }
.tile-k { grid-column: 1 / span 2; grid-row: 9 / span 2; }
.tile-l { grid-column: 3 / span 2; grid-row: 9 / span 2; }
.tile-m { grid-column: 5 / span 2; grid-row: 9 / span 2; }
.tile-n { grid-column: 7 / span 2; grid-row: 8 / span 2; }
.tile-o { grid-column: 9 / span 2; grid-row: 8 / span 2; }
.tile-p { grid-column: 11 / span 2; grid-row: 7 / span 2; }
.tile-q { grid-column: 13 / span 2; grid-row: 7 / span 2; }
.tile-r { grid-column: 15 / span 2; grid-row: 7 / span 2; }
.tile-s { grid-column: 17 / span 4; grid-row: 7 / span 2; }
.tile-t { grid-column: 11 / span 2; grid-row: 9 / span 2; }
.tile-u { grid-column: 13 / span 2; grid-row: 9 / span 2; }
.tile-v { grid-column: 15 / span 2; grid-row: 9 / span 2; }
.tile-w { grid-column: 17 / span 2; grid-row: 9 / span 2; }
.tile-x { grid-column: 19 / span 2; grid-row: 9 / span 2; }
.tile-y { grid-column: 11 / span 2; grid-row: 7 / span 2; }
.tile-z { grid-column: 13 / span 2; grid-row: 7 / span 2; }
.tile-aa { grid-column: 15 / span 6; grid-row: 7 / span 2; }

/* extensiones para completar filas 11-12 sin huecos */
.tile-ab { grid-column: 1 / span 4; grid-row: 11 / span 2; }
.tile-ac { grid-column: 5 / span 4; grid-row: 11 / span 2; }
.tile-ad { grid-column: 9 / span 4; grid-row: 11 / span 2; }
.tile-ae { grid-column: 13 / span 4; grid-row: 11 / span 2; }
.tile-af { grid-column: 17 / span 4; grid-row: 11 / span 2; }

/* relleno preciso del hueco en fila 9, cols 7-10 */
.tile-ag { grid-column: 7 / span 2; grid-row: 9 / span 2; }
.tile-ah { grid-column: 9 / span 2; grid-row: 9 / span 2; }

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 35%, rgba(0,0,0,0.6) 100%);
}

.logo-hero {
  width: 320px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: logoEntrada 1.2s ease-out 0.5s forwards;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  position: relative;
}

.logo-hero::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle, rgba(109, 143, 255, 0.12) 0%, rgba(109, 143, 255, 0.06) 30%, rgba(109, 143, 255, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: all 0.5s ease;
  transform: scale(0.7);
}

.logo-hero::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02) 70%, transparent 90%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: all 0.5s ease;
  transform: scale(0.8);
}

.logo-hero:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 25px 50px rgba(109, 143, 255, 0.25)) drop-shadow(0 0 40px rgba(109, 143, 255, 0.15));
}

.logo-hero:hover::before {
  opacity: 1;
  transform: scale(1.3);
  background: radial-gradient(circle, rgba(109, 143, 255, 0.18) 0%, rgba(109, 143, 255, 0.12) 30%, rgba(109, 143, 255, 0.06) 60%, rgba(109, 143, 255, 0.02) 80%, transparent 100%);
}

.logo-hero:hover::after {
  opacity: 1;
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.04) 70%, rgba(255, 255, 255, 0.02) 90%, transparent 100%);
}

@keyframes logoEntrada {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.7);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-15px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-hero.scroll-anim {
  animation: logoScroll 0.8s ease-out;
}

@keyframes logoScroll {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.titulo-hero.scroll-anim .char {
  animation: charScroll 0.8s ease-out forwards;
}

.titulo-hero.scroll-anim .char:nth-child(1) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(2) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(3) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(4) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(5) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(6) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(7) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(8) { animation-delay: 0s; }
.titulo-hero.scroll-anim .char:nth-child(9) { animation-delay: 0s; }

@keyframes charScroll {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.titulo-hero {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2em;
}

.titulo-hero .char {
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.titulo-hero .char:hover {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.titulo-hero .char {
  animation: charEntrance 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.titulo-hero .char:nth-child(1) { animation-delay: 0.1s; }
.titulo-hero .char:nth-child(2) { animation-delay: 0.2s; }
.titulo-hero .char:nth-child(3) { animation-delay: 0.3s; }
.titulo-hero .char:nth-child(4) { animation-delay: 0.4s; }
.titulo-hero .char:nth-child(5) { animation-delay: 0.5s; }
.titulo-hero .char:nth-child(6) { animation-delay: 0.6s; }
.titulo-hero .char:nth-child(7) { animation-delay: 0.7s; }
.titulo-hero .char:nth-child(8) { animation-delay: 0.8s; }
.titulo-hero .char:nth-child(9) { animation-delay: 0.9s; }

@keyframes charEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.subtitulo-hero {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 991.98px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-left { text-align: center; }
  .titulo-hero { justify-content: center; }
  .collage-grid { grid-auto-rows: 32px; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 575.98px) {
  .titulo-hero { font-size: 2.6rem; }
  .subtitulo-hero { font-size: 1.2rem; }
  .logo-hero { width: 240px; }
  .collage-grid { grid-auto-rows: 24px; gap: 8px; }
}

.tarjeta-deporte {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-deporte:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tarjeta-deporte .contenido-deporte {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-deporte .descripcion-deporte {
  margin-bottom: 20px;
}

.icono-deporte {
  font-size: 3rem;
  color: #6d8fff;
  margin-bottom: 15px;
}

.titulo-deporte {
  color: #2e3755;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.descripcion-deporte {
  color: #666;
  font-size: 1rem;
}

.seccion-noticias {
  background-color: white;
  padding: 50px 0;
  margin: 50px 0;
}

.seccion-quienes-somos {
  background-color: white;
  padding: 50px 0;
  margin: 50px 0;
}

.contenido-quienes-somos {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.titulo-quienes-somos {
  color: #2e3755;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.texto-quienes-somos {
  color: #2e3755;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.lista-quienes-somos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-quienes-somos li {
  color: #2e3755;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.lista-quienes-somos li:before {
  content: "●";
  color: #6d8fff;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.tarjeta-noticia {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.tarjeta-noticia:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.imagen-noticia {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contenido-noticia {
  padding: 20px;
}

.fecha-noticia {
  color: #6d8fff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.titulo-noticia {
  color: #2e3755;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.texto-noticia {
  color: #666;
  font-size: 1rem;
}

.seccion-estadisticas {
  background: linear-gradient(145deg, #6d8fff, #a3b8fd);
  color: white;
  padding: 50px 0;
  margin: 50px 0;
}

.tarjeta-estadistica {
  text-align: center;
  padding: 20px;
}

.numero-estadistica {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.etiqueta-estadistica {
  font-size: 1.2rem;
  opacity: 0.9;
}

.seccion-contacto {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(109,143,255,0.08);
  padding: 50px 0 30px 0;
  margin: 50px 0;
}

.info-contacto {
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(109,143,255,0.07);
  padding: 30px 25px 20px 25px;
  margin-bottom: 30px;
  min-height: 320px;
}

.info-contacto h3, .info-contacto h4 {
  color: #2e3755;
  font-weight: 700;
  margin-bottom: 18px;
}

.info-contacto ul {
  padding-left: 0;
}

.info-contacto li {
  margin-bottom: 12px;
  font-size: 1.08rem;
  color: #2e3755;
  border-left: 3px solid #6d8fff;
  padding-left: 10px;
  background: #fff;
  border-radius: 6px;
}

.info-contacto a {
  color: #6d8fff;
  font-weight: 500;
  word-break: break-all;
}

.info-contacto a:hover {
  color: #2e3755;
  text-decoration: underline;
}

.info-contacto strong {
  color: #1a237e;
}

@media (max-width: 767px) {
  .info-contacto {
    min-height: unset;
    padding: 20px 10px;
  }
}

.enlaces-sociales {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.enlace-social {
  color: #6d8fff;
  font-size: 2.1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(109,143,255,0.10);
}

.enlace-social:hover {
  color: #fff;
  background: #6d8fff;
  transform: translateY(-3px) scale(1.1);
}

.borde-inferior {
  border-bottom: 2px solid #6d8fff;
}

.enlace-logo {
  text-decoration: none;
  color: inherit;
}

.enlace-logo:hover {
  color: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #2e3755;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover, .nav-link:focus {
  background: #6d8fff;
  color: #fff;
  text-decoration: none;
}

.nav-link.active {
  background: #2e3755;
  color: #fff !important;
}

.dropdown-menu {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(109,143,255,0.10);
  border: none;
  min-width: 180px;
  margin-top: 8px;
}

.dropdown-item {
  color: #2e3755;
  font-size: 1.05rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: #e3eaff;
  color: #1a237e;
}

.dropdown-item.active {
  background: #6d8fff;
  color: #fff !important;
}

.dropdown-toggle::after {
  margin-left: 8px;
}

.pequeno {
  font-size: 0.95rem;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.me-3 {
  margin-right: 1rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.btn-link {
  text-decoration: none;
  color: #2e3755;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #6d8fff;
}

.elemento-nav.dropdown {
  position: relative;
}

.boton-ancla {
  background: #6d8fff !important;
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 32px;
  box-shadow: 0 4px 16px rgba(109,143,255,0.15);
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  text-align: center;
  margin-top: 10px;
}
.boton-ancla:hover, .boton-ancla:focus {
  background: #2e3755 !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  text-decoration: none !important;
}

.boton-fijo, .boton-fijo:visited, .boton-fijo:active {
  text-decoration: none !important;
}
.boton-fijo:hover, .boton-fijo:focus {
  text-decoration: none !important;
}

.boton, .boton:visited, .boton:active {
  text-decoration: none !important;
}
.boton:hover, .boton:focus {
  text-decoration: none !important;
}

.texto-blanco {
  color: white;
}

.texto-centrado {
  text-align: center;
}

.seccion-aranceles {
  margin-top: 0;
  margin-bottom: 0;
} 

.navbar-toggler {
  background: #6d8fff;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler .fa-bars {
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  .nav {
    gap: 0;
  }
  #menuPrincipal .nav-link {
    width: 100%;
    padding-left: 0;
  }
  #menuPrincipal .dropdown-menu {
    position: static;
    float: none;
    transform: none !important;
    box-shadow: none;
    margin: 0.25rem 0 0.75rem 0;
  }
  #menuPrincipal {
    background: #fff;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
} 