/* ----- Altura del header (ajusta el valor si tu header mide diferente) ----- */
:root {
  --header-height: 70px; /* cambia este valor al alto real de tu header */
}

/* ----- Contenedor hero ----- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height); /* empuja el contenido debajo del header */
  box-sizing: border-box;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
  color: #fff;
}

/* ----- Tablets ----- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px; /* el header suele reducirse en móvil */
  }

  .hero {
    height: 100svh;
    min-height: 500px;
  }
}

/* ----- Móviles pequeños ----- */
@media (max-width: 480px) {
  :root {
    --header-height: 55px;
  }

  .hero {
    height: 100svh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}