.hero {
  padding: 4rem 1rem 2rem 1rem;
}

.hero__container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.hero__title {
  font-size: 3rem;
  margin: 1rem 0;
}

.hero__description {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero__date {
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

/* =========================
   Contenedor imagen / video
========================= */
.hero__image {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 7 / 5; /* ✅ desktop horizontal */
  overflow: hidden;
  border-radius: 20px;
}

/* Imagen */
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.hero__image img.fade-out {
  opacity: 0;
}

/* Video (desktop) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ desktop sin recorte */
  background-color: #000;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {

  .hero {
  padding: 1.25rem 1rem;
  }
  .hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__image {
    order: -1;
    max-width: 100%;
    aspect-ratio: 9 / 16;   /* 🔑 CLAVE: contenedor vertical */
  }

  .hero__video {
    object-fit: cover;     /* 🔑 llena el vertical (recorte natural) */
    width: 100%;
    height: 100%;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__tag {
    font-size: 1.1rem;
  }

  .hero__date {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions .btn--outline {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 0.85rem 1.5rem;
  }
}

/* Desktop / Tablet button fix */
.hero__actions .btn--outline {
  padding: 0.75rem 1.5rem;
}
