/* =========================================================
   Hero: foto real a sangre, barra crema arriba, «ilo» escrito
   en el centro y datos en tipografía ancha.
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 2vh, 22px) 24px;
  padding: 14px clamp(14px, 2.4vw, 32px) clamp(18px, 3vh, 30px);
  color: var(--cream);
  background: #2a0b08;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture { display: contents; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transform: scale(1.14);
  opacity: 0;
  transition: transform 2.8s var(--ease), opacity 1.1s ease;
  will-change: transform;
}
.hero.is-in .hero__media img { transform: scale(1.02); opacity: 1; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
  transform: scale(1.02);
}
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(20 4 3 / .55) 0%, rgb(20 4 3 / .08) 28%, rgb(20 4 3 / .12) 60%, rgb(20 4 3 / .62) 100%),
    radial-gradient(70% 55% at 50% 48%, rgb(20 4 3 / .28), transparent 75%);
}

/* barra superior (Café Matin) */
.topbar, .hero__title, .hero__facts { grid-column: 1 / -1; }
.topbar {
  display: flex; justify-content: center; align-items: center; gap: clamp(22px, 5vw, 72px);
  height: 30px;
  border-radius: 4px;
  background: var(--cream-2);
  color: var(--red);
  font-family: var(--wide); font-stretch: 125%; font-weight: 500; font-size: 13px; letter-spacing: .01em;
}
.topbar a { text-decoration: none; position: relative; }
.topbar a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.topbar a:hover::after { transform: scaleX(1); transform-origin: left; }

/* logo escrito */
.hero__title { position: relative; min-height: 0; margin: 0; }
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--cream-2);
}
.hero__canvas { will-change: transform; } /* la sombra va pintada dentro del lienzo: sin filtros que se repinten con el scroll */
.hero__fallback { fill: currentColor; display: none; }
html:not(.js) .hero__canvas { display: none; }
html:not(.js) .hero__fallback { display: block; }

/* datos (tipografía ancha) */
.hero__facts {
  display: flex; justify-content: space-between; gap: 18px;
  font-family: var(--wide); font-stretch: 125%; font-weight: 500;
  font-size: 11px; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase;
}
.hero__facts li:nth-child(n+2):nth-child(-n+4) { text-align: center; }
.hero__facts li:last-child { text-align: right; }

.hero__claim {
  grid-row: 4; grid-column: 1; align-self: end;
  font-family: var(--wide); font-stretch: 112%; font-weight: 400;
  font-size: clamp(15px, 1.45vw, 20px); line-height: 1.18;
}
.hero__link {
  grid-row: 4; grid-column: 2; justify-self: end; align-self: end;
  font-family: var(--wide); font-stretch: 112%; font-size: 13px;
  text-underline-offset: 4px;
}
.hero__link:hover { text-decoration-thickness: 2px; }

/* entrada */
.js [data-hero-in] { opacity: 0; transform: translateY(14px); }
.hero.is-in [data-hero-in] {
  opacity: 1; transform: none;
  transition: opacity 1s ease, transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms + 1.1s);
}
.hero.is-in .topbar[data-hero-in] { transition-delay: .35s; }

@media (max-width: 860px) {
  .hero__facts li:nth-child(2), .hero__facts li:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 58px; } /* deja sitio al sello de Nukleo, abajo a la derecha */
  .topbar { gap: 18px; font-size: 12px; }
  .hero { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  .hero__facts { font-size: 10px; }
  .hero__facts li:nth-child(3) { display: none; }
  .hero__claim { grid-row: 4; }
  .hero__link { grid-row: 5; grid-column: 1; justify-self: start; }
}
