/* =============================================
   LANDING — la puerta. Dos mundos.
   ============================================= */

body.landing {
  color: var(--c-grey);
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--c-mint);
  animation: l-bg-cycle 18s ease-in-out infinite;
}

@keyframes l-bg-cycle {
  0%   { background-color: var(--c-mint);   }
  25%  { background-color: var(--c-purple); }
  50%  { background-color: var(--c-pink);   }
  75%  { background-color: var(--c-purple); }
  100% { background-color: var(--c-mint);   }
}

/* ---------- Header ---------- */
.l-head {
  padding: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--gutter);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
}
.l-head__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.l-head__center {
  text-align: center;
  color: var(--d-mute);
}
.l-head__right {
  text-align: right;
  color: var(--d-mute);
}
.l-head a:hover { color: var(--d-accent); }

/* ---------- Doors: cajas flotantes, por encima del wordmark, centradas en el stage ---------- */
.l-doors {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 60px);
  width: 100%;
  height: 100%;
  padding: var(--gutter);
  min-height: 0;
}
.l-doors > a {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: clamp(12px, 1.4vw, 22px);
  width: clamp(180px, 28vw, 380px);
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  border: 2px solid var(--c-grey);
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.l-doors > a:hover {
  animation-play-state: paused;
}

/* Vibración rápida — pequeña amplitud, alta velocidad. Las dos puertas con timing
   y patrones ligeramente distintos para que no parezcan sincronizadas. */
.l-door--design { animation: l-float-a 0.42s linear infinite; }
.l-door--obra   { animation: l-float-b 0.47s linear infinite; }

@keyframes l-float-a {
  0%    { transform: translate(0, 0); }
  12.5% { transform: translate(1px, 0); }
  25%   { transform: translate(0, 1px); }
  37.5% { transform: translate(-1px, 0); }
  50%   { transform: translate(0, -1px); }
  62.5% { transform: translate(1px, 1px); }
  75%   { transform: translate(0, -1px); }
  87.5% { transform: translate(-1px, 0); }
  100%  { transform: translate(0, 0); }
}
@keyframes l-float-b {
  0%    { transform: translate(0, 0); }
  12.5% { transform: translate(-1px, 0); }
  25%   { transform: translate(0, -1px); }
  37.5% { transform: translate(1px, 0); }
  50%   { transform: translate(0, 1px); }
  62.5% { transform: translate(-1px, -1px); }
  75%   { transform: translate(0, 1px); }
  87.5% { transform: translate(1px, 0); }
  100%  { transform: translate(0, 0); }
}

/* Mundo 1: Diseño */
.l-door--design {
  color: var(--c-grey);
}
.l-door--design:hover {
  background: var(--c-mint);
  color: var(--c-purple);
  border-color: var(--c-mint);
}

/* Mundo 2: Obra */
.l-door--obra {
  color: var(--c-grey);
  font-family: var(--f-serif);
}
.l-door--obra:hover {
  background: var(--c-pink);
  color: var(--c-purple);
  border-color: var(--c-pink);
}

.l-door__title {
  font-size: clamp(28px, 18cqw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
.l-door--obra .l-door__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 28cqw, 150px);
  line-height: 0.96;
}

/* ---------- Saludo arriba — grande ---------- */
.l-hello {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding: clamp(110px, 14vh, 180px) var(--gutter) 0;
  margin-bottom: clamp(20px, 4vh, 60px);
  color: var(--c-grey);
}
.l-hello em {
  font-family: var(--f-serif);
  font-style: normal;
  font-weight: 400;
  color: var(--c-grey);
  font-size: 1.15em;
  letter-spacing: -0.02em;
}
.l-hello__sub {
  font-weight: 500;
  font-size: 1em;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0;
}

/* ---------- Stage: wordmark al fondo, puertas encima ---------- */
.l-stage {
  position: relative;
  display: grid;
  min-height: 0;
  /* overflow visible: las puertas se animan y no queremos que se recorten */
}

/* Wordmark monumental — centrado vertical+horizontal, detrás de las puertas */
.l-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 1500px;
  max-height: 70%;
  height: auto;
  pointer-events: none;
  fill: none;
  stroke: var(--c-mint);
  stroke-width: 4;
  z-index: 1;
}
.l-wordmark path,
.l-wordmark rect,
.l-wordmark polygon {
  fill: none;
  stroke: var(--c-mint);
  stroke-width: 4;
}


.l-door__arrow {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  font-size: 28px;
  transition: transform 0.4s ease;
}
.l-doors > a:hover .l-door__arrow {
  transform: translate(8px, -8px);
}

/* ---------- Footer ---------- */
.l-foot {
  padding: var(--gutter);
  background: transparent;
  color: var(--c-grey);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
}
.l-foot a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.l-foot a:hover { border-bottom-color: currentColor; }
.l-foot__col p { margin-top: 6px; color: var(--d-mute); text-transform: none; letter-spacing: 0; font-family: var(--f-display); font-size: 13px; }

/* ---------- Marquee ---------- */
.l-marquee {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: transparent;
  color: var(--c-grey);
}
.l-marquee .marquee__item::after {
  content: '◉';
  margin-left: 3rem;
  color: var(--d-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .l-head {
    grid-template-columns: 1fr 1fr;
  }
  .l-head__center { display: none; }
  /* Saludo más grande en móvil — hay espacio para mostrarse */
  .l-hello {
    font-size: clamp(40px, 9vw, 64px);
    line-height: 1.05;
    padding-top: 75px;
    margin-bottom: clamp(14px, 2vh, 32px);
  }
  .l-doors {
    flex-direction: column;
    gap: clamp(14px, 2.5vh, 28px);
  }
  .l-doors > a {
    width: clamp(150px, 55vw, 240px);
  }
  .l-foot {
    grid-template-columns: 1fr;
  }
}
