/* ============================================================
   EFECTOS ESTILO EDITORIAL DE LUJO
   Scroll suave (Lenis), reveals, intro del hero,
   marquesina, barra inferior y menú de pantalla completa.
============================================================ */

/* ----- Lenis (scroll suave) ----- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }


/* ============================================================
   REVEAL AL HACER SCROLL
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   INTRO DEL HERO (al cargar)
============================================================ */
.hero .h-rise {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1s var(--ease-out) var(--d, 0s);
}
body.is-loaded .hero .h-rise {
  opacity: 1;
  transform: none;
}

/* Líneas del título con máscara (suben desde abajo) */
.hero-heading .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-heading .line-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out) var(--d, 0s);
}
body.is-loaded .hero-heading .line-inner {
  transform: none;
}


/* ============================================================
   MARQUESINA
============================================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
  padding: 24px 0;
}
.marquee-track {
  display: inline-flex;
  will-change: transform;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group > span:not(.marquee-dot) {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0 30px;
  font-variation-settings: "opsz" 34;
}
.marquee-dot {
  color: var(--accent);
  font-size: 9px;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   BARRA INFERIOR FIJA
============================================================ */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hair-dark);
  transform: translateY(115%);
  transition: transform 0.55s var(--ease-out);
}
.bottom-bar.visible { transform: none; }

.bottom-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  transition: opacity 0.2s;
}
.bottom-brand:hover { opacity: 0.6; }

.bottom-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
}
.bottom-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.bottom-menu-icon span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.bottom-menu-icon span:first-child { width: 22px; }
.bottom-menu-icon span:last-child { width: 14px; margin-left: auto; }
.bottom-menu-btn:hover .bottom-menu-icon span:last-child { width: 22px; }


/* ============================================================
   MENÚ DE PANTALLA COMPLETA
============================================================ */
.fs-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-in-out), opacity 0.4s ease;
  display: flex;
}
.fs-menu.open {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}

.fs-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg);
  border: 1px solid rgba(250, 250, 247, 0.25);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s;
}
.fs-close:hover {
  background: var(--bg);
  color: var(--ink);
}

.fs-menu-inner {
  margin: auto;
  width: 100%;
  max-width: 1100px;
  padding: 100px 48px 60px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.fs-links { list-style: none; }
.fs-link-item { overflow: hidden; }
.fs-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--bg);
  font-variation-settings: "opsz" 144;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 0.85s var(--ease-out),
    opacity 0.85s var(--ease-out),
    color 0.3s ease,
    font-style 0s;
  transition-delay: calc(0.12s + var(--i) * 0.07s);
}
.fs-menu.open .fs-link {
  transform: none;
  opacity: 1;
}
.fs-link:hover {
  font-style: italic;
  color: var(--accent-light);
}
.fs-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transform: translateY(-0.4em);
}

.fs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}
.fs-menu.open .fs-foot { opacity: 1; }
.fs-foot-link {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 247, 0.7);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 2px;
}
.fs-foot-link:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}
.fs-foot-loc {
  margin-left: auto;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 247, 0.45);
}


/* ============================================================
   REFINAMIENTOS DE HOVER (sutil)
============================================================ */
.nav-link {
  position: relative;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 680px) {
  .marquee { padding: 18px 0; }
  .fs-menu-inner { padding: 90px 28px 48px; gap: 40px; }
  .fs-close { top: 18px; right: 20px; }
  .fs-foot { gap: 14px; }
  .fs-foot-loc { margin-left: 0; width: 100%; }
  .bottom-bar { padding: 0 20px; height: 54px; }
}


/* ============================================================
   ACCESIBILIDAD: respeta "reducir movimiento"
============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero .h-rise,
  .hero-heading .line-inner,
  .fs-link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track { animation: none !important; }
}
