/* La cabecera y la portada forman una sola pantalla, sin recortar su contenido. */
.home-page { --header-height: 96px; }
.home-page .hero {
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  display: block;
  min-height: 0;
}
@supports (height: 100dvh) {
  .home-page .hero { height: calc(100dvh - var(--header-height)); }
}
.home-page .hero-inner {
  display: grid;
  height: 100%;
  min-height: 0;
  align-content: center;
  gap: clamp(18px, 3vh, 36px);
  padding-block: clamp(18px, 4vh, 50px);
}
.home-page .hero h1 { font-size: clamp(3rem, min(8.2vw, 13vh), 7.5rem); line-height: 1.04; }
.home-page .hero-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
  margin: 0;
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
}
.home-page .hero-description { padding: 0; width: 100%; justify-self: center; text-align: center; }
.home-page .hero-description > p:first-child {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.home-page .hero-description .button { margin: 25px auto 0; }
.home-page .hero-note { max-width: 220px; }
.home-page .hero-note { padding-bottom: 36px; }
.home-page .hero-note .note-doodle { bottom: 5px; right: 10px; }
.home-page .scallop { position: absolute; bottom: 0; left: 0; right: 0; }
.home-page .hero-world { width: 100%; max-width: 280px; max-height: 29vh; margin: 0; justify-self: center; object-fit: contain; }
.home-page .hero-pencil { top: 26%; }
.home-page .hero-spark { top: 24%; }
.home-page .hero-note .icon { margin-bottom: 12px; }
@media (max-width: 850px) {
  .home-page { --header-height: 86px; }
  .home-page .hero-stage { gap: 20px; }
  .home-page .hero-note { padding: 20px 15px 36px; }
  .home-page .hero-note p { font-size: 1rem; }
  .home-page .hero-description > p:first-child { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
}
@media (max-width: 620px) {
  .home-page { --header-height: 79px; }
  .home-page .hero-inner { gap: clamp(16px, 3vh, 28px); padding-block: 22px 28px; }
  .home-page .hero h1 { font-size: clamp(2.5rem, min(12vw, 10vh), 4.7rem); }
  .home-page .hero-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 28px; }
  .home-page .hero-description { grid-column: 1 / -1; grid-row: 1; }
  .home-page .hero-description > p:first-child { font-size: clamp(1.4rem, 6vw, 1.85rem); max-width: 22ch; }
  .home-page .hero-description .button { margin-top: 20px; font-size: .82rem; }
  .home-page .hero-note { margin: 0; width: 100%; max-width: 170px; padding: 20px 15px 34px; }
  .home-page .hero-note p { font-size: clamp(.85rem, 3.7vw, 1.05rem); }
  .home-page .hero-note .icon { width: 23px; height: 23px; margin-bottom: 9px; }
  .home-page .hero-world { max-height: 23vh; max-width: 180px; }
  .home-page .hero-pencil { top: 12%; left: 0; }
  .home-page .hero-spark { top: 12%; right: 0; }
}
@media (max-height: 600px) and (min-width: 621px) {
  .home-page .hero-inner { padding-block: 16px; gap: 20px; grid-template-columns: 1fr 1fr; }
  .home-page .hero h1 { font-size: clamp(2.5rem, 10vh, 4.3rem); }
  .home-page .hero-stage { display: block; }
  .home-page .hero-note, .home-page .hero-world, .home-page .hero-pencil, .home-page .hero-spark { display: none; }
  .home-page .hero-description > p:first-child { font-size: clamp(1.3rem, 4.8vh, 1.8rem); }
  .home-page .hero-description .button { margin-top: 18px; }
}
@media (max-height: 610px) and (max-width: 620px) {
  .home-page .hero-inner { padding-block: 16px 24px; gap: 16px; }
  .home-page .hero-stage { gap: 16px 24px; }
  .home-page .hero-note { padding: 16px 12px 27px; }
  .home-page .hero-note .icon { display: none; }
  .home-page .hero-world { max-height: 21vh; }
  .home-page .hero-description .button { margin-top: 16px; }
}
/* A gran ampliación prima la lectura: el contenido puede extender la portada. */
@media (max-height: 390px) and (max-width: 620px) {
  .home-page .hero { height: auto; min-height: calc(100svh - var(--header-height)); }
  .home-page .hero-note, .home-page .hero-world { display: none; }
}
