/* --- HERO QUE SUBE CON EL SCROLL (NO FIJO) --- */
.hero-pilotos-section {
  position: relative;
  height: 50vh;
  min-height: 350px;
  width: 100%;
  margin-top: 60px;
  /* Espacio para que el menú fijo no lo tape */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, #000000 100%),
    url("../uploads/utilidades/hero_pilotos.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 3px solid #e63946;
}

.hero-pilotos-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* --- CONTENEDOR PRINCIPAL DE CONTENIDO --- */
.content-section {
  padding: 60px 0 80px 0;
  background-color: #000000;
}

.block-title {
  font-weight: 800;
  text-transform: uppercase;
  border-left: 5px solid #2b90ef;
  padding-left: 15px;
  margin-bottom: 40px;
}

/* --- ESTILOS DE TARJETAS DE PILOTOS (POP-OUT CON LIENZO 1080x1080) --- */
.piloto-card-wrapper {
  position: relative;
  padding-top: 45px;
  /* Espacio superior reservado para que la cabeza sobresalga */
  margin-bottom: 35px;
}

.piloto-card {
  position: relative;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 16px;
  padding: 25px 20px 25px 180px;
  /* Padding izquierdo ampliado para dar espacio al render */
  min-height: 160px;
  transition: all 0.3s ease;
}

.piloto-card:hover {
  transform: translateY(-5px);
  border-color: #3ac8ed;
  box-shadow: 0 10px 25px rgba(58, 200, 237, 0.2);
}

/* Imagen del piloto sobresaliendo de la tarjeta */
.piloto-img-pop {
  position: absolute;
  bottom: 0px;
  /* Eleva la imagen por encima del borde superior de la tarjeta */
  left: 1px;
  width: 180px;
  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;
}

.piloto-card-wrapper:hover .piloto-img-pop {
  transform: scale(1.06) translateY(-3px);
  bottom: 0px;
  left: 1px;
  /* Efecto dinámico en hover */
}

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

.piloto-nombre {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.piloto-categoria {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3ac8ed;
  /* Celeste del logo */
  margin-bottom: 4px;
}

.piloto-escuderia {
  font-size: 0.85rem;
  color: #2b90ef;
  /* Azul del logo */
  margin-bottom: 0;
}

.piloto-numero {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  font-style: italic;
}

/* Ajuste móvil para mantener la proporción sin deformar la grilla */
@media (max-width: 576px) {
  .piloto-card {
    padding: 20px 15px 20px 140px;
  }

  .piloto-img-pop {
    width: 140px;
    height: 180px;
    /*bottom: -25px;*/
  }
}
