/* — Hero “carta” centrada y ancha con efecto hover — */
/* Hero “carta” más alto y con menor ancho lateral */
.hero {
  position: relative;
  margin: 120px auto 2rem;       /* mantiene el espacio al header */
  
  /* Más estrecho: ocupa el 80% en lugar del 95% */
  width: 80%;
  max-width: none;

  /* Más alto: 85% de la altura de la ventana, pero nunca más bajo que el
     contenido — en laptops (viewport bajo) el contenido no cabe en 85vh y
     "height" fijo + overflow:hidden lo recortaba arriba y abajo. */
  height: auto;
  min-height: max(600px, 85vh);  /* altura mínima garantizada */

  background: url('../img/Hero_Festival.PNG') no-repeat center/cover;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;

  /* Hover animado */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Hover: ligera elevación y scale */
.hero:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* capa oscura semitransparente */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}

/* Contenido sobre la capa */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
}

/* Título */
.hero-content h1 {
  font-size: 2.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Subtexto */
.hero-content p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Botón “Regístrate” centrado */
.hero-content .btn-primary {
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.9rem 2rem;
  border-radius: 0.75rem;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none !important;
}
.hero-content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

/* Flecha para invitar a hacer scroll */
.scroll-down {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #fff;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* — Responsive — */
@media (max-width: 768px) {
  .hero {
    margin: 2rem auto;
    padding: 2rem 1rem;
    height: auto;
    min-height: 350px;
  }
  .hero-content h1 {
    font-size: 2.25rem;
    font-family: var(--font-heading) !important;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-content .btn-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }
}
