/* ============================================
   Hero — 3 variantes
   v1: video de fondo   v2: imagen fija + split   v3: mini-carrusel
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* -------- contenido centrado (v1 y v3) -------- */
.hero__medio {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__medio video,
.hero__medio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* si el recorte no queda centrado en el punto justo (p. ej. corta
     cabezas o el texto de un banner), ajustar este valor: el primer
     número mueve el corte a los costados, el segundo arriba/abajo.
     "50% 30%" muestra más de la parte de arriba de la imagen/video. */
  object-position: var(--recorte-hero, 50% 50%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(61, 90, 36, 0.75) 0%,
    rgba(61, 90, 36, 0.2) 45%,
    rgba(61, 90, 36, 0) 100%
  );
}

.hero__contenido {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  color: var(--crema);
  max-width: 640px;
}

.hero__contenido h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

.hero__contenido p {
  font-size: 1.05rem;
  color: var(--crema-oscuro);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

/* -------- v3: puntos del carrusel -------- */
.hero__puntos {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  right: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  gap: 0.5rem;
}

.hero__punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 247, 239, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero__punto[aria-current="true"] {
  background: var(--crema);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero__slide[data-activo="true"] {
  opacity: 1;
}

/* -------- v2: split imagen fija + panel de texto -------- */
.hero--split {
  flex-direction: row;
  align-items: stretch;
}

.hero__panel {
  position: relative;
  z-index: 3;
  width: min(46%, 560px);
  min-width: 340px;
  background: var(--verde-bosque);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
}

.hero__panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--crema);
  margin-bottom: 1.1rem;
}

.hero__panel p {
  font-size: 1.02rem;
  color: var(--crema-oscuro);
  margin-bottom: 1.75rem;
  max-width: 420px;
}

.hero__imagen-split {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hero__imagen-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__imagen-split::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 26, 14, 0.45) 0%, rgba(20, 26, 14, 0) 22%);
}

@media (max-width: 860px) {
  .hero--split {
    flex-direction: column;
  }
  .hero__panel {
    width: 100%;
    min-width: 0;
    order: 2;
    padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
  }
  .hero__imagen-split {
    order: 1;
    min-height: 46vh;
  }
}
