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;
  border-bottom: 2px solid #6d8fff;
}

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

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

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

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

.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;
}

.category-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.15);
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.category-title {
  color: #2e3755;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.category-zone {
  color: #6d8fff;
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.category-card:hover .category-title {
  color: #6d8fff;
}

.category-card:hover .category-zone {
  color: #2e3755;
}

.carousel-item img {
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.reglamento-section {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.reglamento-title {
  color: #2e3755;
  border-bottom: 2px solid #6d8fff;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.reglamento-item {
  margin-bottom: 30px;
}

.reglamento-item h4 {
  color: #6d8fff;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #6d8fff;
  border-color: #6d8fff;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5a7de8;
  border-color: #5a7de8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 143, 255, 0.3);
}



.imagen-futbol-femenino {
  margin: 40px 0 20px 0;
}

.imagen-futbol-femenino img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-futbol-femenino img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.futbol-femenino-section {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-top: 40px;
}

.categoria-femenina {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.categoria-femenina:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.12);
  border-color: #6d8fff;
}

.categoria-titulo {
  color: #2e3755;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid #6d8fff;
  padding-bottom: 8px;
}

.sub-titulo {
  color: #6d8fff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
  text-align: center;
}

.lista-colegios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.lista-colegios li {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2e3755;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.lista-colegios li:hover {
  background: linear-gradient(145deg, #6d8fff, #5a7de8);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(109, 143, 255, 0.3);
}

@media (max-width: 768px) {
  .lista-colegios {
    grid-template-columns: 1fr;
  }
  
  .categoria-femenina {
    padding: 20px;
  }
  
  .categoria-titulo {
    font-size: 1.2rem;
  }
}


.imagen-futbol-cesped {
  margin: 40px 0 20px 0;
}

.imagen-futbol-cesped img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-futbol-cesped img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}


.futbol-cesped-section {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-top: 40px;
}

.categoria-cesped {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.categoria-cesped:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.12);
  border-color: #6d8fff;
}

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

.lista-grados li {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #2e3755;
  text-align: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.lista-grados li:hover {
  background: linear-gradient(145deg, #6d8fff, #5a7de8);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(109, 143, 255, 0.3);
}

.lista-colegios-cesped {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lista-colegios-cesped li {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2e3755;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.lista-colegios-cesped li:hover {
  background: linear-gradient(145deg, #6d8fff, #5a7de8);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(109, 143, 255, 0.3);
}

@media (max-width: 768px) {
  .categoria-cesped {
    padding: 20px;
  }
  
  .lista-colegios-cesped {
    grid-template-columns: 1fr;
  }
}

/* Tablas personalizadas para la página */
.table {
  border-radius: 10px 10px 0 0;
  background: #fff;
  font-size: 1.08rem;
  box-shadow: none;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.table thead th {
  background: #a3b8fd;
  color: #2e3755;
  font-weight: 700;
  border-bottom: 2px solid #a3b8fd;
  font-size: 1.13rem;
  padding: 16px 8px;
  border-top: 1.5px solid #a3b8fd;
}
.table thead th:first-child {
  border-top-left-radius: 10px;
}
.table thead th:last-child {
  border-top-right-radius: 10px;
}
.table-bordered > :not(caption) > * > * {
  border: 1.2px solid #a3b8fd;
}
.table tbody td {
  background: #fff;
  color: #2e3755;
  font-weight: 500;
  padding: 12px 8px;
  vertical-align: middle;
}
.table th, .table td {
  text-align: center;
}
.table-responsive {
  margin-bottom: 32px;
}

.atletismo-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(109,143,255,0.13);
  padding: 40px 28px;
  margin-top: 48px;
  margin-bottom: 32px;
}
.atletismo-section h3 {
  color: #2e3755;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.atletismo-section .table,
.futbol-cesped-section .table,
.futbol-femenino-section .table {
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: none;
}
.atletismo-section .table thead th,
.futbol-cesped-section .table thead th,
.futbol-femenino-section .table thead th {
  background: #a3b8fd;
  color: #2e3755;
  border-bottom: 2px solid #a3b8fd;
  border-top: 1.5px solid #a3b8fd;
}
.atletismo-section .table thead th:first-child,
.futbol-cesped-section .table thead th:first-child,
.futbol-femenino-section .table thead th:first-child {
  border-top-left-radius: 10px;
}
.atletismo-section .table thead th:last-child,
.futbol-cesped-section .table thead th:last-child,
.futbol-femenino-section .table thead th:last-child {
  border-top-right-radius: 10px;
}

@media (max-width: 768px) {
  .table {
    font-size: 0.98rem;
  }
  .table thead th {
    padding: 10px 4px;
    font-size: 1rem;
  }
  .table tbody td {
    padding: 8px 4px;
  }
}

.carousel-ficda {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 60px;
  text-align: center;
}

.slide-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.slide-btn {
  background: #6d8fff;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.slide-btn:hover {
  background: #5a7ce8;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(109, 143, 255, 0.4);
}

.carousel-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.nav-btn {
  background: rgba(109, 143, 255, 0.9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-btn:hover {
  background: #6d8fff;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #6d8fff;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(109, 143, 255, 0.8);
}

@media (max-width: 768px) {
  .carousel-ficda {
    height: 300px;
  }
  
  .slide-content {
    padding: 25px 15px 50px;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .carousel-nav {
    bottom: 10px;
    gap: 15px;
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}