/* Cabecera y portada de GMLianes, revisión de noviembre de 2026. */
@font-face {
  font-family: "Inter Home";
  src: url("./inter-latin-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

body.home-strata {
  --he-ink: #111;
  --he-paper: #ededeb;
  --he-accent: #8986ff;
  --he-soft: #dbdaff;
  --he-line: #1114;
  --he-gutter: max(3vw, 18px);
  --he-header-height: 90px;
  --he-cover-title-size: clamp(62px, min(10.35vw, 27svh), 194px);
  --he-font: "Inter Home", Inter, Arial, sans-serif;
  margin: 0;
  background: var(--he-paper);
  color: var(--he-ink);
  font-family: var(--he-font);
}

.home-strata ::selection {
  color: var(--he-ink);
  background: var(--he-soft);
}

.aviso-origen {
  padding: 0.55rem var(--he-gutter);
  border-block-end: 1px solid var(--he-line);
  background: var(--he-paper);
  color: var(--he-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.aviso-origen p {
  max-width: 98rem;
  margin: 0 auto;
}

.aviso-origen a {
  margin-inline-start: 0.3em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.home-strata .he-site-header,
.home-strata .he-page {
  font-family: var(--he-font);
}
.home-strata :is(.he-site-header, .he-page) a {
  color: inherit;
  text-decoration: none;
}
.home-strata :is(.he-site-header, .he-page) :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.he-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--he-header-height);
  padding-inline: var(--he-gutter);
  background: var(--he-paper);
  transition:
    transform 0.3s ease,
    opacity 0.25s ease;
}
.he-site-header.he-header-hidden:not(:has(.he-menu[open], :focus-visible)) {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.he-home-link {
  display: inline-flex;
}
.he-header-mark {
  display: block;
  width: min(174px, 52vw);
  height: auto;
}
.he-menu summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  cursor: pointer;
  list-style: none;
}
.he-menu summary::-webkit-details-marker {
  display: none;
}
.he-menu summary span,
.he-menu summary span::before,
.he-menu summary span::after {
  display: block;
  width: 35px;
  height: 2px;
  background: currentColor;
}
.he-menu summary span::before,
.he-menu summary span::after {
  content: "";
}
.he-menu summary span::before {
  transform: translateY(-7px);
}
.he-menu summary span::after {
  transform: translateY(5px);
}
.he-menu[open] summary span {
  background: transparent;
}
.he-menu[open] summary span::before {
  transform: rotate(45deg);
}
.he-menu[open] summary span::after {
  transform: translateY(-2px) rotate(-45deg);
}
.he-menu nav {
  position: absolute;
  inset: 100% var(--he-gutter) auto auto;
  width: min(390px, calc(100% - 2 * var(--he-gutter)));
  max-height: calc(100dvh - var(--he-header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  padding: 20px 28px;
  background: var(--he-accent);
  color: var(--he-ink);
}
.home-strata .he-menu nav a {
  padding-block: 12px;
  border-bottom: 1px solid var(--he-line);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.home-strata .he-menu nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.he-page :is(h1, h2, h3, p) {
  margin: 0;
  color: inherit;
}
.he-page :is(h1, h2, h3) {
  font-family: var(--he-font);
  font-weight: 780;
  letter-spacing: -0.065em;
  word-spacing: 0.06em;
  line-height: 0.96;
}
.he-page :is(i, em) {
  font-style: normal;
}
.he-container {
  width: calc(100% - 2 * var(--he-gutter));
  margin-inline: auto;
}
.he-page section[id] {
  scroll-margin-top: var(--he-header-height);
}
.he-hero .he-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--he-header-height));
  padding-block: clamp(22px, 7.8svh, 100px) clamp(22px, 5.2svh, 64px);
}
.he-hero-kicker,
.home-strata .he-page .he-kicker {
  color: inherit;
  font-size: 14px;
  font-weight: 650;
}
.he-hero-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.5%;
  margin-top: 34px;
}
.he-hero h1 {
  font-size: var(--he-cover-title-size);
}
.he-hero-mark {
  display: block;
  width: min(100%, 640px, 59svh);
  margin: -35px 0 0 auto;
}
.he-hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: auto;
  padding-top: clamp(20px, 4svh, 64px);
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 690;
  line-height: 1.16;
}
.he-hero-bottom p {
  font: inherit;
}
.he-hero-bottom a {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 24px;
  align-items: center;
}
.he-hero-bottom a span {
  font-size: 2.25em;
  font-weight: 400;
}

@media (hover: hover) and (min-width: 891px) {
  .he-menu:not([open]) summary:not(:hover, :focus-visible) span::before,
  .he-menu:not([open]) summary:not(:hover, :focus-visible) span::after {
    opacity: 0;
  }
}
@media (max-width: 890px), (hover: none) and (pointer: coarse) {
  body.home-strata {
    --he-header-height: 72px;
  }
  html:has(.he-menu[open]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .he-site-header:has(.he-menu[open]) {
    background: var(--he-accent);
  }
  .he-menu nav {
    position: fixed;
    inset: var(--he-header-height) 0 0;
    width: 100%;
    height: calc(100dvh - var(--he-header-height));
    align-content: start;
    padding: clamp(22px, 4.8dvh, 44px) var(--he-gutter) max(24px, env(safe-area-inset-bottom));
  }
  .home-strata .he-menu nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: clamp(9px, 1.3dvh, 19px);
    font-size: clamp(25px, min(9vw, 4.25dvh), 42px);
    line-height: 1.08;
  }
}
@media (max-width: 890px) {
  .he-hero .he-container {
    padding-block: clamp(23px, 6svh, 58px) clamp(24px, 5svh, 48px);
  }
  body.home-strata {
    --he-cover-title-size: clamp(62px, 14.7vw, 124px);
  }
  .he-hero-composition {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
  }
  .he-hero-mark {
    width: min(66%, 390px, 40svh);
    margin: -12px 0 0 auto;
  }
  .he-hero-bottom a {
    position: static;
    margin-left: auto;
    transform: none;
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .he-hero-kicker {
    font-size: 12px;
  }
  body.home-strata {
    --he-cover-title-size: clamp(45px, 14.4vw, 91px);
  }
  .he-hero-mark {
    width: min(80%, 340px, 42svh);
    margin-top: 5px;
  }
  .he-hero-bottom {
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    font-size: 13px;
  }
  .he-hero-bottom a {
    max-width: 120px;
    margin-left: 0;
  }
}

@media (max-width: 890px), (hover: none) and (pointer: coarse) {
  .he-site-header:has(.he-menu[open]) .he-header-mark {
    filter: brightness(0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .he-site-header {
    transition: none;
  }
}
