.detalle-categoria-section {
  padding-top: 130px;
  padding-bottom: 70px;
  min-height: 90vh;
}

.bg-numero-gigante {
  position: absolute;
  top: 4px;
  left: 12px;
  z-index: 0;
  max-width: 90%;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
}

.detalle-categoria-img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.9));
  position: relative;
  z-index: 1;
}

.z-index-1 {
  position: relative;
  z-index: 1;
}

.reglamento-texto {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d2d2d2;
  max-height: 72vh;
  overflow-y: auto;
  padding: 8px 18px 8px 20px;
  border-left: 3px solid #e63946;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.reglamento-texto::-webkit-scrollbar {
  width: 8px;
}

.reglamento-texto::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.reglamento-texto::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 8px;
}

.reglamento-texto::-webkit-scrollbar-thumb:hover {
  background: #e63946;
}

.reglamento-pdf-card {
  border-top: 3px solid #e63946;
  background:
    radial-gradient(circle at top, rgba(230, 57, 70, 0.12), transparent 55%),
    #111111;
}

.reglamento-pdf-card .fa-file-pdf {
  filter: drop-shadow(0 10px 18px rgba(230, 57, 70, 0.35));
}

@media (max-width: 576px) {
  .detalle-categoria-section {
    padding-top: 115px;
  }

  .reglamento-texto {
    max-height: none;
    font-size: 0.88rem;
    padding-right: 10px;
  }
}
/* Imagen del piloto sobresaliendo de la tarjeta */
.piloto-img-pop {
  bottom: 0px;
  /* Eleva la imagen por encima del borde superior de la tarjeta */
  left: 1px;
  width: 50px;
  /*height: 210px;
  /* Forzamos altura para rebasar los 160px de la tarjeta */
  object-fit: cover;
  object-position: top center;
  /* Alinea al rostro para aprovechar la imagen 1080x1080 */
  z-index: 2;
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.3s ease;
}
