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

.texto-blanco {
  color: white;
}

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

.seccion-reglamentos-generales {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

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

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

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

.nota-importante {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
}

.tabla-reglamento {
  width: 100%;
  margin-bottom: 20px;
}

.tabla-reglamento th {
  background-color: #6d8fff;
  color: white;
}

.tabla-reglamento td, .tabla-reglamento th {
  padding: 10px;
  border: 1px solid #dee2e6;
}

.tabla-reglamento tr:nth-child(even) {
  background-color: #f8f9fa;
}

.contenido-reglamentos {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.texto-reglamento-completo {
  margin-top: 24px;
  background: #f1f3f4;
  border-radius: 8px;
  padding: 20px;
  font-size: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

.seccion-reglamentos-generales h2 {
  color: #1a237e;
  font-weight: 700;
}

.seccion-reglamentos-generales ul {
  margin-bottom: 1.5rem;
}

.seccion-reglamentos-generales details summary {
  cursor: pointer;
  font-weight: 600;
  color: #1976d2;
  margin-top: 1.5rem;
}

.seccion-reglamentos-generales details[open] summary {
  color: #0d47a1;
}

.boton-elegante {
  background: linear-gradient(90deg, #6d8fff 0%, #2e3755 100%);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 40px;
  box-shadow: 0 4px 16px rgba(109,143,255,0.15);
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.boton-elegante:hover, .boton-elegante:focus {
  background: linear-gradient(90deg, #2e3755 0%, #6d8fff 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

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

.indice-reglamento {
  background: #f8f9fa;
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 500px;
  margin: 0 auto 40px auto;
  box-shadow: 0 2px 8px rgba(109,143,255,0.07);
}
.indice-reglamento h5 {
  color: #2e3755;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}
.indice-reglamento ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.indice-reglamento li {
  border-left: 4px solid #6d8fff;
  padding-left: 12px;
  transition: background 0.2s;
}
.indice-reglamento li:hover {
  background: #e3eaff;
}
.indice-reglamento a {
  color: #2e3755;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  transition: color 0.2s;
}
.indice-reglamento a:hover {
  color: #1a237e;
  text-decoration: underline;
}