.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-slides {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active { z-index: 1; opacity: 1; }

/* Hero subtitle — cycling service description */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.03em;
  margin: 10px 0 0;
  line-height: 1.5;
  max-width: 480px;
}

/* Background video autoplay */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-slide .hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0d1f35;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

/* Canvas dots */
#hero-canvas {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  width: 50%;
  height: 280px;
  z-index: 2;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 var(--gutter) 80px;
}

.hero-content-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 60px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero, clamp(58px, 7.5vw, 108px));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-headline span { display: block; }

.hero-var-wrap {
  overflow: hidden;
  display: block;
}

.hero-var {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin-top: 8px;
  will-change: transform, opacity;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.hero-cta-text {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  position: relative;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.hero-cta-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s var(--ease-out);
}
.hero-cta-text:hover { color: #fff; }
.hero-cta-text:hover::after { width: 100%; }

/* Slide indicators */
.hero-indicators {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 4px;
}

.hero-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.hero-indicator:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

.hero-indicator.is-active { opacity: 1; }

.hero-indicator__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #fff;
}

.hero-indicator__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.hero-indicator.is-active .hero-indicator__dot {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .hero-content-inner {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: clamp(44px, 11vw, 72px);
  }
  .hero-var {
    font-size: clamp(28px, 8.5vw, 52px);
  }
  .hero-indicators {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
  }
  /* Etiqueta oculta visualmente pero disponible para lectores de pantalla */
  .hero-indicator__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .hero-indicator { position: relative; padding: 6px; }
  .hero-content { padding-bottom: 56px; }
  .hero-slide__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.20) 30%,
      rgba(0,0,0,0.75) 75%,
      rgba(0,0,0,0.90) 100%
    );
  }
  .hero-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(10,18,28,0.55) 60%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    border-radius: 0;
  }
}
