/* ============================================================
   HERO — Carrusel de fondo + contenido principal
   ============================================================ */

.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* para no quedar bajo el nav */
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  will-change: transform;
}

.hero-slide.active img {
  animation: kenBurnsA 8s ease-in-out forwards;
}
.hero-slide:nth-child(2).active img {
  animation: kenBurnsB 8s ease-in-out forwards;
}
@keyframes kenBurnsA {
  0%   { transform: scale(1.0)  translate(0,    0);    }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kenBurnsB {
  0%   { transform: scale(1.12) translate(2%,   1%); }
  100% { transform: scale(1.0)  translate(0,    0);  }
}
.hero-slide:nth-child(3).active img {
  animation: kenBurnsC 8s ease-in-out forwards;
}
@keyframes kenBurnsC {
  0%   { transform: scale(1.0)  translate(1%,  1%); }
  100% { transform: scale(1.1)  translate(-1%, -2%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding-top: 70px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
}
