/* ==========================================================================
   RMarin · Page hero
   Banner at the top of the subpages (Nosotros, Contacto).
   ========================================================================== */

/* ---------- Page hero (subpages) ---------- */
/* The banner photo already has the light veil applied. */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  max-width: var(--container-max);
  min-height: 260px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  overflow: hidden;
  background: var(--color-hero-bg);
  text-align: center;
}

.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-hero__title {
  max-width: 640px;
  margin-top: 10px;
  color: var(--color-black);
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-hero { min-height: 340px; }

  .page-hero__eyebrow { font-size: 22px; }

  .page-hero__title { max-width: 720px; font-size: clamp(34px, 5vw, 48px); }
}

@media (min-width: 1024px) {
  .page-hero {
    height: calc(511 * var(--u));
    min-height: 0;
    padding: 0;
  }

  .page-hero__image {
    object-position: center;
  }

  .page-hero__content {
    margin-top: calc(-36 * var(--u));
  }

  .page-hero__eyebrow {
    font-size: calc(32 * var(--u));
  }

  .page-hero__title {
    max-width: calc(1240 * var(--u));
    margin-top: calc(14 * var(--u));
    font-size: calc(64 * var(--u));
    line-height: 1.17;
  }
}
