/* Hero base */
.hero-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  box-sizing: border-box;
  font-family: var(--font-paragraph);
}

/* inner centrado */
.hero-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Slider: each slide full-bleed; use scroll-snap para swipe y drag nativo */
.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  /* UX para arrastrar en desktop */
  cursor: grab;
  user-select: none; /* evita seleccionar texto mientras arrastras */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  /* Permitir que el script capture movimientos horizontales sin interferir con el scroll vertical.
     Esto ayuda a que el pointerdown/pointermove funcione bien en móviles. */
  touch-action: pan-y;
}

/* Cuando se está arrastrando */
.hero-slider.dragging {
  cursor: grabbing;
}

/* Remove scrollbar */
.hero-slider::-webkit-scrollbar {
  display: none;
}
.hero-slider {
  scrollbar-width: none;
}

/* Slide (100% width) */
.hero-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  scroll-snap-align: center;
  display: block;
}

/* Imagen de fondo — ocupa todo el slide, object-fit cover */
.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* Evita que la imagen capture eventos pointer/mouse que interfieran con el drag */
  pointer-events: none;

  /* Evita arrastre nativo en muchos navegadores */
  -webkit-user-drag: none;

  /* Evita que la imagen sea seleccionable (por si acaso) */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  /* Evita el menú contextual/touch-callout en iOS cuando mantienen pulsado */
  -webkit-touch-callout: none;
}

/* También añadir regla genérica para <img> por si alguna imagen no usa .slide-media */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* evita que el navegador intente iniciar un "drag" sobre la imagen */
}

/* Overlay: gradiente oscuro a la izquierda para que el texto se lea */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.65) 20%,
    rgba(0, 0, 0, 0.3) 45%,
    rgba(0, 0, 0, 0.02) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Texto y CTA: colocados a la izquierda, con ancho limitado */
.slide-content {
  position: absolute;
  top: 50%;
  left: clamp(28px, 6vw, 60px);
  transform: translateY(-50%);
  max-width: min(700px, 80%);
  color: white;
  z-index: 5;
  pointer-events: auto;
}

.slide-content a,
.slide-content button {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 9;
}

.slide-content:hover ~ .hero-slider,
.slide-content:hover {
  cursor: default !important;
}

/* Title grande */
.slide-title {
  margin: 0 0 8px 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(48px, 7.2vw, 110px);
  line-height: 0.9;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  word-break: keep-all;
  white-space: normal;
  hyphens: none;
}

.slide-title::first-line {
  display: block;
}

/* Subtitle: two parts, highlight last word */
.slide-subtitle {
  margin: 6px 0 20px 0;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* Paragraph */
.slide-desc {
  margin: 0 0 26px 0;
  font-size: var(--font-size-paragraph);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--font-lh-paragraph);
  max-width: 44ch;
}

/* CTA outline button */
.slide-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--color-bg);
  font-size: var(--font-size-button);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.slide-cta:hover {
  background: var(--color-light-green);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Dots centered at bottom */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(18px, 3.6vw, 34px);
  display: flex;
  gap: 12px;
  z-index: 8;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.hero-dot.active {
  background: var(--color-bg);
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Responsivo: en pantallas pequeñas reduce tamaños y centra algo más */
@media (max-width: 900px) {
  .hero-section {
    height: var(--fixed-dvh);
  }
  .slide-content {
    left: 4vw;
    max-width: 86%;
  }
  .slide-title {
    font-size: clamp(36px, 9.6vw, 72px);
    line-height: 1;
  }
  .slide-subtitle {
    font-size: clamp(16px, 4.2vw, 20px);
  }
}
@media (max-width: 520px) {
  .slide-overlay {
    background: linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.7) 0%,
      rgba(8, 8, 8, 0.6) 20%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
  .slide-title {
    font-size: clamp(28px, 11.6vw, 44px);
  }
  .slide-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .slide-cta {
    padding: 12px 18px;
    font-size: clamp(14px, 3.6vw, 16px);
  }
}
