/* ════════════════════════════════════════════════
   Jakotango — main.css
   Global: variables, reset, nav, footer, photo-modal
   Mobile-first: base → 768px → 1025px
════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-2:         #111110;
  --ink:          #e8e3d8;
  --ink-body:     #b8b2a8;
  --ink-dim:      #8a8579;
  --ink-faint:    #7c7a77;
  --rule:         rgba(232, 227, 216, 0.10);
  --rule-strong:  rgba(232, 227, 216, 0.22);
  --gold:         #b59770;
  --gold-soft:    #8c7556;
  --serif:        "Cormorant Garamond", "Times New Roman", serif;
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-sm:   16px;
  --spacing-md:   32px;
  --spacing-lg:   64px;
  --spacing-xl:   120px;
  --ease-out:     cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ── Type system ───────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px 2px 0;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 0.98;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1;
}
.wordmark .small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 6px;
  font-weight: 400;
}

/* ── Layout helpers ────────────────────────────── */
section { position: relative; }
.wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px;
}
.rule { height: 1px; background: var(--rule); width: 100%; }

/* ── Nav logo ──────────────────────────────────── */
.nav__logo { display: flex; align-items: center; }
.nav__logo img { width: 120px; height: auto; display: block; }

/* ────────────────────────────────────────────────
   NAV
──────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.nav__logo--sticky { display: none; }
.nav__logo--hero img { width: 130px; }
.nav__logo--sticky img { width: 120px; }

.nav.is-sticky {
  position: fixed;
  align-items: center;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(232, 227, 216, 0.06);
  animation: navSlideDown 500ms var(--ease-out) forwards;
}
.nav.is-sticky .nav__logo--hero   { display: none; }
.nav.is-sticky .nav__logo--sticky { display: flex; }

@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
  z-index: 51;
}
.nav__burger-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav__burger.is-active .nav__burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-active .nav__burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-active .nav__burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Nav overlay ─────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-overlay__links a {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.1;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease, color 200ms ease;
}
.nav-overlay__links li:nth-child(1) a { transition-delay: 80ms; }
.nav-overlay__links li:nth-child(2) a { transition-delay: 150ms; }
.nav-overlay__links li:nth-child(3) a { transition-delay: 220ms; }
.nav-overlay.is-open .nav-overlay__links a { opacity: 1; transform: none; }
.nav-overlay__links a:hover { color: var(--gold); }
.nav-overlay__cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 12px 24px;
  border: 1px solid var(--rule-strong);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease 300ms, transform 500ms ease 300ms,
              border-color 200ms, color 200ms;
}
.nav-overlay.is-open .nav-overlay__cta { opacity: 1; transform: none; }
.nav-overlay__cta:hover { border-color: var(--gold); color: var(--gold); }

/* ────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 28px;
  background: var(--bg);
}
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.foot a {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 200ms, color 200ms;
}
.foot a:hover { opacity: 1; color: var(--gold); }
.foot__logo { display: inline-block; }
.foot__logo img { width: 120px; height: auto; }
.foot__expeditions {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.foot__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 200ms;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.foot__contact:hover { color: var(--gold); }
.foot__contact svg { flex-shrink: 0; }

/* ── Photo modal — shared ────────────────────── */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.photo-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.photo-modal__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 60px 0;
}
#photo-modal-img {
  width: 100%;
  max-height: calc(100vh - 120px);
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 220ms ease;
}
#photo-modal-img.is-fading { opacity: 0; }
.photo-modal__close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 2;
  width: 36px; height: 36px;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms;
}
.photo-modal__close:hover { opacity: 1; }
.photo-modal__close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 1px;
  background: var(--ink);
  display: block;
}
.photo-modal__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.photo-modal__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.photo-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  padding: 0;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-modal__nav:hover { opacity: 1; }
.photo-modal__prev { left: 16px; }
.photo-modal__next { right: 16px; }
.photo-modal__prev::after,
.photo-modal__next::after {
  content: '';
  display: block;
  width: 11px; height: 11px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.photo-modal__prev::after { transform: rotate(-135deg); margin-left: 5px; }
.photo-modal__next::after { transform: rotate(45deg);   margin-right: 5px; }
.photo-modal__footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}
.photo-modal__credit {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,227,216,0.38);
}
.photo-modal__counter {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(232,227,216,0.22);
}

/* ── Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1000ms ease, transform 1000ms ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── lineLight keyframe (reutilizado en home + expedition) */
@keyframes lineLight {
  0%   { left: -80px; opacity: 0; }
  2%   { left: -80px; opacity: 1; }
  48%  { left: 100%;  opacity: 1; }
  50%  { left: 100%;  opacity: 0; }
  51%  { left: -80px; opacity: 0; }
  100% { left: -80px; opacity: 0; }
}

/* ════════════════════════════════════════════════
   TABLET — 768px+
════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .foot__bottom { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════
   DESKTOP — 1025px+
════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .wrap { padding: 0 44px; }

  .nav { padding: 24px 44px; }
  .nav__logo--sticky img { width: 150px; }
  .nav__burger-bar { width: 34px; height: 3px; }
  .nav__burger.is-active .nav__burger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav__burger.is-active .nav__burger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .photo-modal__stage { padding: 60px 80px; }
  #photo-modal-img { width: auto; }

  footer { padding: 56px 0 28px; }
  .foot__bottom { flex-direction: column; align-items: center; margin-top: 56px; padding-top: 22px; }
}
