/* Deliberate mobile hero composition. Desktop remains governed by the original styles. */
@media screen and (max-width: 767px) {
  [data-theme-nav="dark"] .bloque-brand {
    --wordmark-ink: #191b20;
    --wordmark-accent: var(--color-primary, #ff4600);
  }

  .sticky-wrap.is--header .sticky-wrap-inner {
    position: relative;
    top: 0;
  }

  .sticky-wrap-invisible.is--header {
    display: none;
  }

  .home-header {
    z-index: 3;
    min-height: 0;
    overflow: hidden;
  }

  .home-header .container.is--medium {
    position: relative;
    z-index: 1;
  }

  .home-header-full-height {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto clamp(230px, 38svh, 340px) auto auto;
    column-gap: 1rem;
    row-gap: 12px;
    min-height: 0;
    padding-top: max(5.5rem, 12svh);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .home-header__start {
    display: contents;
  }

  .home-header-row-title {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
  }

  .home-header .h1 {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    line-height: 1.05;
  }

  .home-header-row-name {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, .7fr) 1px minmax(0, 1.6fr);
    align-items: stretch;
    gap: clamp(.7rem, 3vw, 1rem);
    min-width: 0;
  }

  .home-header-name-p {
    max-width: none;
    min-width: 0;
    margin: 0;
    font-size: clamp(.72rem, 3.35vw, .9rem);
    line-height: 1.3;
  }

  .home-header-name-line-y {
    width: 1px;
    height: 100%;
    min-height: 2.5rem;
  }

  .home-header-row-btn {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    min-width: 0;
    margin-top: 20px;
  }

  .home-header__end {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    min-width: 0;
    margin-top: 20px;
  }

  .bloque-hero-socials {
    justify-content: flex-end;
    gap: .35rem;
  }

  .bloque-social {
    width: clamp(44px, 12vw, 52px);
    height: clamp(44px, 12vw, 52px);
  }

  /* The second grid row explicitly reserves this artwork zone. */
  .home-header .header-bg {
    top: calc(max(5.5rem, 12svh) + clamp(1.6rem, 6.5vw, 2rem) * 3.15 + 12px);
    bottom: auto;
    width: 100%;
    height: clamp(230px, 38svh, 340px);
    overflow: hidden;
  }

  .home-header .header-bg .media,
  .home-header .header-bg .cover-media {
    width: 100%;
    height: 100%;
  }

  .home-header .bloque-hero-poster,
  .home-header .bloque-hero-video {
    top: 50%;
    left: 50%;
    width: auto;
    max-width: none;
    height: 100%;
    aspect-ratio: 80 / 33;
    object-fit: fill;
    object-position: center;
    transform: translate(-57.5%, -50%);
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media screen and (max-width: 380px) and (max-height: 700px) {
  .home-header-full-height {
    grid-template-rows: auto 230px auto auto;
    row-gap: 10px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .home-header .header-bg {
    height: 230px;
  }

  .home-header-name-p {
    font-size: .7rem;
  }
}
