/* Landing temporal: pantallas a pantalla completa con el texto fijo encima */
.page-landing { --lp-side: clamp(24px, 4.2vw, 84px); }
.page-landing { overflow: hidden; height: 100%; background: #1d1b1a; }
html:has(.page-landing) { height: 100%; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-bar { position: fixed; inset: 0 0 auto; z-index: 20; height: 46px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--lp-side), env(safe-area-inset-right)) 0 max(var(--lp-side), env(safe-area-inset-left)); background: var(--beige); color: var(--blue); border-bottom: 1px solid rgba(62, 90, 208, .25); }
.lp-bar__logo svg { display: block; width: 40px; height: auto; }
.lp-bar__logo svg path { fill: currentColor; }
.lp-bar__nav { display: flex; align-items: center; gap: 28px; }
.lp-bar__langs { display: inline-flex; gap: 10px; font-size: var(--fs-s); }
.lp-bar__langs a { opacity: .45; transition: opacity .3s var(--ease); }
.lp-bar__langs a.is-active, .lp-bar__langs a:hover { opacity: 1; }
.lp-bar__link { font-size: var(--fs-body); letter-spacing: var(--ls-tight); }
.lp-bar a:focus-visible, .lp__arrow:focus-visible, .lp__contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.lp { position: fixed; inset: 46px 0 0; overflow: hidden; color: var(--beige); touch-action: none; }
.lp__stage { position: absolute; inset: 0; }
.lp__slide { position: absolute; inset: 0; visibility: hidden; overflow: hidden; background: #3a3734; }
.lp__slide.is-active, .lp__slide.is-entering, .lp__slide.is-leaving { visibility: visible; }
.lp__media { position: absolute; inset: 0; transform-origin: 50% 50%; }
.lp__media img, .lp__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* velo para que el texto se lea siempre */
.lp__slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 18, 16, .52) 0%, rgba(20, 18, 16, .32) 55%, rgba(20, 18, 16, .22) 100%); transition: background-color 1.1s var(--ease); }
.lp__slide--contact { background: var(--blue); }

/* Cambio de pantalla (inspirado en las expertises de Akaru): la pantalla nueva sube y se apila encima de la anterior,
   con la foto moviéndose a otra velocidad (paralaje); la anterior se queda debajo, se encoge como una tarjeta y se oscurece. */
.lp__slide.is-entering { z-index: 2; animation: lp-stack-in 1.25s cubic-bezier(.76, 0, .24, 1) both; }
.lp__slide.is-entering .lp__media { animation: lp-parallax-in 1.25s cubic-bezier(.76, 0, .24, 1) both; }
.lp__slide.is-leaving { z-index: 1; animation: lp-stack-out 1.25s cubic-bezier(.76, 0, .24, 1) both; }
.lp__slide.is-leaving .lp__media { animation: lp-dim 1.25s cubic-bezier(.76, 0, .24, 1) both; }
.lp[data-dir="back"] .lp__slide.is-entering { animation-name: lp-stack-in-back; }
.lp[data-dir="back"] .lp__slide.is-entering .lp__media { animation-name: lp-parallax-in-back; }
@keyframes lp-stack-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes lp-stack-in-back { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes lp-parallax-in { from { transform: translateY(-38%) scale(1.12); } to { transform: none; } }
@keyframes lp-parallax-in-back { from { transform: translateY(38%) scale(1.12); } to { transform: none; } }
@keyframes lp-stack-out { from { transform: none; clip-path: inset(0 0 0 0 round 0); } to { transform: scale(.88); clip-path: inset(3% 3% 3% 3% round 18px); } }
@keyframes lp-dim { from { filter: brightness(1); } to { filter: brightness(.35); } }

.lp__overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  padding: clamp(24px, 3.4vw, 64px) max(var(--lp-side), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--lp-side), env(safe-area-inset-left)); display: flex; flex-direction: column; }
.lp__overlay a, .lp__overlay button { pointer-events: auto; }
.lp__star { width: clamp(96px, 9vw, 178px); color: var(--beige); }
.lp__star svg { display: block; width: 100%; height: auto; transition: transform 1s var(--spring); transform: rotate(var(--rot, 0deg)); }
.lp__star svg path, .lp__wordmark svg path, .lp__note-star svg path { fill: currentColor; }
.lp__wordmark { margin: clamp(22px, 2.6vw, 50px) 0 0; line-height: 0; }
.lp__wordmark svg { width: clamp(180px, 18.6vw, 372px); height: auto; color: var(--beige); }
.lp__texts { position: relative; margin-top: clamp(24px, 2.8vw, 54px); }
.lp__text { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.lp__text--contact { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(16px); }
.lp.is-contact .lp__text--intro { opacity: 0; transform: translateY(-16px); }
.lp.is-contact .lp__text--intro * { pointer-events: none; }
.lp.is-contact .lp__text--contact { opacity: 1; transform: none; }
.lp__lead { max-width: 15.5em; font-size: clamp(34px, 3.75vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.lp__contact { display: flex; flex-direction: column; list-style: none; padding: 0; }
.lp__contact a { display: inline-flex; align-items: flex-start; gap: .18em; color: inherit; text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .14em; text-decoration-color: rgba(245, 240, 232, .45); transition: text-decoration-color .3s var(--ease); }
.lp__contact a:hover, .lp__contact a:focus-visible { text-decoration-color: currentColor; }
.lp__link-arrow { width: .36em; height: .36em; margin-top: .22em; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .35s var(--ease); }
.lp__contact a:hover .lp__link-arrow { transform: translate(.08em, -.08em); }
.lp__note { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 34px); margin: clamp(26px, 3vw, 58px) 0 0; font-size: clamp(16px, 1.55vw, 30px); letter-spacing: -0.01em; }
.lp__note-star { flex: none; width: clamp(18px, 1.6vw, 32px); color: var(--beige); }
.lp__note-star svg { display: block; width: 100%; height: auto; }
.lp__arrow { margin-top: clamp(26px, 3vw, 56px); width: clamp(40px, 2.8vw, 56px); height: clamp(40px, 2.8vw, 56px); padding: 0; border: 0; background: none; color: var(--beige); cursor: pointer; }
.lp__arrow svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s cubic-bezier(0, 0, .58, 1); }
.lp__arrow:hover svg { transform: rotate(45deg); }
.lp__caption { position: absolute; right: max(var(--lp-side), env(safe-area-inset-right)); bottom: max(calc(var(--lp-side) * .6), env(safe-area-inset-bottom)); margin: 0; display: flex; gap: 18px; align-items: baseline;
  font-size: var(--fs-s); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.lp__caption [data-lp-name] { transition: opacity .4s var(--ease); }
.lp__count { opacity: .7; }

@media (max-width: 767px) {
  .lp__slide::after { background: linear-gradient(180deg, rgba(20, 18, 16, .55), rgba(20, 18, 16, .35)); }
  .lp__lead { font-size: clamp(28px, 8.4vw, 40px); }
  .lp-bar__nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp__slide.is-entering, .lp__slide.is-entering .lp__media, .lp__slide.is-leaving, .lp__slide.is-leaving .lp__media { animation: none; }
  .lp__slide.is-entering { animation: lp-fade .4s linear both; }
  @keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
  .lp__star svg { transition: none; }
}
