/* ==========================================================================
   Kori Labs · landing temporal
   Paleta: verde bosque + crema (primarios); durazno, verde Kori y turquesa (acentos)
   ========================================================================== */

:root {
  --forest: #1f4f37;
  --cream: #f7f3ea;
  --cream-dim: #c9d4c8;   /* texto secundario, contraste ≥ 6:1 sobre --forest */
  --peach: #fee4c1;
  --line: rgb(247 243 234 / 0.22);

  --font: "Istok Web", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--forest);
  background-image: url("../assets/pattern.svg");
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.5;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Cabecera ----------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: block;
  width: clamp(6.5rem, 22vw, 9rem);
  height: auto;
  color: var(--cream);
}

.badge {
  margin: 0;
  color: var(--peach);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* --- Contenido principal ------------------------------------------------ */

.hero {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.75rem, 5vw, 3rem);
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
  text-align: center;
}

.hero__art {
  margin: 0;
  width: min(100%, 15.5rem);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

.hero__copy {
  max-width: 34rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 1.2rem + 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.accent {
  display: block;
  color: var(--peach);
}

.hero__lead {
  margin: 1.25rem auto 0;
  max-width: 30rem;
  color: var(--cream-dim);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  text-wrap: pretty;
}

.hero__motto {
  margin: 1.5rem 0 0;
  color: var(--peach);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Redes sociales ----------------------------------------------------- */

.social {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.social__title {
  margin: 0 0 0.9rem;
  color: var(--cream-dim);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: grid;
  place-items: center;
  width: 3.25rem;   /* 52 px: objetivo táctil cómodo */
  height: 3.25rem;
  border: 2px solid rgb(247 243 234 / 0.55);
  border-radius: 50%;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.social__link:hover {
  background-color: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
  transform: translateY(-2px);
}

.social__link:active {
  transform: translateY(0);
}

.social__link:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

/* --- Pie ---------------------------------------------------------------- */

.site-footer {
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* --- Animación mínima (las "zzz" del gato) ------------------------------- */

.zzz text {
  animation: zzz 3.2s ease-in-out infinite;
}

.zzz .z2 { animation-delay: 0.5s; }
.zzz .z3 { animation-delay: 1s; }

@keyframes zzz {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* --- Escritorio: texto a la izquierda, escena a la derecha -------------- */

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    justify-items: stretch;
    align-items: center;
    column-gap: clamp(2rem, 6vw, 5rem);
    text-align: left;
  }

  .hero__copy {
    order: 1;
    max-width: 36rem;
  }

  .hero__art {
    order: 2;
    justify-self: center;
    width: min(100%, 26rem);
  }

  .hero__lead {
    margin-inline: 0;
  }

  .social__list {
    justify-content: flex-start;
  }

  .site-footer {
    text-align: left;
  }
}

/* Pantallas bajas en horizontal (móvil girado): escena más pequeña */
@media (max-height: 30rem) and (orientation: landscape) {
  .hero__art {
    width: min(100%, 10rem);
  }
}

/* --- Preferencias del usuario ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .social__link {
    border-color: ButtonText;
  }

  .social__link:focus-visible {
    outline-color: Highlight;
  }
}
