/* ── RESET & VARIABLES ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #1a130d;
  --brown:  #8a6040;
  --cream:  #f5f0e8;
  --warm:   #fdfaf6;
  --mid:    #4e3d2c;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background: var(--warm);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  overflow: visible;
  padding: 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

nav.scrolled,
nav.solid {
  background: rgba(26,19,13,0.96);
  backdrop-filter: blur(14px);
  padding: 10px 56px;
}

.nav-logo { height: 110px; transition: height 0.4s; }
nav.scrolled .nav-logo,
nav.solid .nav-logo { height: 56px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a.active {
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}

/* ── SHARED UTILITIES ─────────────────────────────── */
.eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brown);
}

.rule { width: 44px; height: 1px; background: var(--brown); opacity: 0.45; display: block; }

.section-head {
  text-align: center;
  margin-bottom: 52px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--dark);
}

/* ── PAGE HEADER (inner pages) ───────────────────── */
.page-hero {
  position: relative;
  height: 44vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 52px;
}

.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18,12,6,0.30) 0%, rgba(18,12,6,0.72) 100%);
}

.page-hero .page-title {
  position: relative;
  z-index: 2;
  padding: 0 56px;
  color: var(--cream);
}

.page-hero .page-title span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  display: block;
  margin-bottom: 10px;
}

.page-hero .page-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 36px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer img { height: 36px; filter: brightness(0) invert(1); opacity: 0.32; }

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-center p {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-center a {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-center a:hover { color: rgba(255,255,255,0.65); }

.footer-lic {
  font-size: 0.54rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.7;
}

/* ── LIGHTBOX ────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; display: block; }

#lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 2.4rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}

#lightbox-close:hover { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  nav, nav.scrolled, nav.solid { padding: 12px 24px; }
  .nav-logo { height: 80px; }
  nav.scrolled .nav-logo, nav.solid .nav-logo { height: 48px; }
  .nav-links { gap: 20px; }

  .page-hero .page-title { padding: 0 24px; }

  footer { padding: 24px; flex-direction: column; text-align: center; }
  .footer-lic { text-align: center; }
}

/* ── HAMBURGER ───────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: rgba(255,255,255,0.88);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 540px) {
  .nav-burger { display: flex; }

  /* Menú cae desde la barra de nav */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 12, 7, 0.98);
    backdrop-filter: blur(12px);
    z-index: 101;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    max-height: 600px;
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .nav-links a {
    display: block;
    padding: 20px 40px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.78);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
