html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb { background: #C59D5F; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b08d55; }
.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #C59D5F 20%, #C59D5F 80%, transparent);
  transform: translateX(-50%);
}

/* =============================================
   CARRUSEL DE ESPECIALIDADES
   ============================================= */
.specialty-carousel {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
}

.specialty-carousel__track-wrapper {
  overflow: hidden;
  width: 100%;
}

.specialty-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.specialty-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.specialty-carousel__slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .specialty-carousel__slide img {
    height: 260px;
  }
}

/* Gradiente oscuro sobre la imagen */
.specialty-carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Botones prev / next */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(197,157,95,0.35);
  color: #C59D5F;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(197,157,95,0.2);
  border-color: #C59D5F;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

@media (max-width: 480px) {
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-btn--prev { left: 10px; }
  .carousel-btn--next { right: 10px; }
}

/* Indicadores (dots) */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.carousel-dot.active {
  background: #C59D5F;
  transform: scale(1.3);
}

/* Caption opcional */
.specialty-carousel__caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  padding: 0 60px;
}

.specialty-carousel__caption span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

