:root {
  --ocre-claro: #d4a574;
  --ocre-dourado: #c8963e;
  --ocre-escuro: #b8860b;
  --verde-medio: #697d3b;
  --verde-escuro: #4a5d23;
  --marrom-medio: #8b4513;
  --marrom-escuro: #3e2723;
  --bege-trigo: #f5deb3;
  --bege-tan: #d2b48c;

  --bg: #fbf5e8;
  --bg-2: #f5e8d0;
  --bg-paper: #fff9ed;
  --ink: #2a1810;
  --ink-soft: #6b4423;
  --line: rgba(107, 68, 35, 0.15);

  --display: 'Cinzel', serif;
  --script: 'Pinyon Script', cursive;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-paper);
  padding: 3px;
  border: 1px solid var(--line);
  filter: drop-shadow(0 4px 10px rgba(184, 134, 11, 0.15));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--marrom-escuro);
  letter-spacing: 0.05em;
}
.brand-tag {
  font-family: var(--script);
  font-size: 13px;
  color: var(--ocre-dourado);
  margin-top: 2px;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ocre-dourado);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--marrom-escuro); }
.nav a:hover::after { width: 100%; }
@media (max-width: 760px) { .nav { display: none; } }

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  padding: 100px 28px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--bg-paper) 0%, var(--bg) 60%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184, 134, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(74, 93, 35, 0.08) 0%, transparent 40%);
}
.orbit {
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  margin: -400px 0 0 -400px;
  border-radius: 50%;
  border: 1px dashed var(--ocre-dourado);
  opacity: 0.18;
  animation: spin 140s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ocre-escuro);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--ocre-claro); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--marrom-escuro);
  margin-bottom: 18px;
}
.hero h1 em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--ocre-dourado) 0%, var(--ocre-escuro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--marrom-escuro);
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.hero-cue {
  display: inline-block;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--ocre-dourado);
  border-radius: 14px;
}
.hero-cue span {
  position: absolute;
  top: 8px; left: 50%;
  margin-left: -2px;
  width: 4px; height: 6px;
  background: var(--ocre-dourado);
  border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(18px); }
}

/* SECTIONS */
.section {
  padding: 80px 28px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.section--alt { background: var(--bg-2); max-width: none; padding-left: 28px; padding-right: 28px; }
.section--alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--marrom-escuro);
}
.section-head h2 em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  color: var(--ocre-dourado);
  letter-spacing: 0;
}

/* MASONRY */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
@media (max-width: 1080px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 480px) { .masonry { grid-template-columns: 1fr; grid-auto-rows: 280px; } }

.m-cell {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--marrom-escuro);
  cursor: zoom-in;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.m-cell:hover {
  transform: translateY(-4px);
  border-color: var(--ocre-dourado);
  box-shadow: 0 20px 40px -16px rgba(62, 39, 35, 0.4);
}
.m-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.96);
}
.m-cell:hover img { transform: scale(1.05); filter: brightness(1.05); }

.m-cell figcaption {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(62, 39, 35, 0.78);
  color: var(--ocre-claro);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.m-cell:hover figcaption { opacity: 1; transform: translateY(0); }

.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .m-wide { grid-column: span 2; }
  .m-tall { grid-row: span 2; }
}
@media (max-width: 480px) {
  .m-wide { grid-column: span 1; }
  .m-tall { grid-row: span 1; }
}

/* DIVIDER */
.divider {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ocre-dourado) 50%, transparent 100%);
  opacity: 0.4;
}
.divider::before { left: 5%; }
.divider::after { right: 5%; }
.divider-mark {
  font-size: 24px;
  color: var(--ocre-dourado);
  background: var(--bg);
  padding: 0 16px;
  z-index: 1;
}

/* CLOSING */
.closing {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--marrom-escuro) 100%);
  color: var(--bege-trigo);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200, 150, 62, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(139, 69, 19, 0.25) 0%, transparent 50%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.closing-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  color: var(--bege-trigo);
  margin-bottom: 18px;
}
.closing-title em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  color: var(--ocre-claro);
}
.closing-sub {
  font-size: 17px;
  color: rgba(245, 222, 179, 0.78);
  margin-bottom: 32px;
}
.closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ocre-dourado) 0%, var(--ocre-escuro) 100%);
  color: var(--bg-paper);
  box-shadow: 0 8px 24px -6px rgba(184, 134, 11, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(184, 134, 11, 0.7); }
.btn-secondary {
  background: rgba(245, 222, 179, 0.08);
  color: var(--bege-trigo);
  border: 1px solid var(--ocre-claro);
}
.btn-secondary:hover { background: rgba(245, 222, 179, 0.16); transform: translateY(-2px); }

/* FOOTER */
.foot {
  background: #1a0e08;
  padding: 28px 28px;
  border-top: 1px solid rgba(212, 165, 116, 0.18);
  color: var(--bege-trigo);
}
.foot-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bege-trigo);
  padding: 3px;
}
.foot-name { display: block; color: rgba(245, 222, 179, 0.85); font-size: 13px; }
.foot-tag {
  display: block;
  font-family: var(--script);
  font-size: 14px;
  color: var(--ocre-claro);
  margin-top: 2px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 8, 4, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-stage {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lb-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 165, 116, 0.18);
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: var(--ocre-claro);
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  border-radius: 999px;
}

.lb-close, .lb-nav {
  position: absolute;
  z-index: 3;
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.35);
  color: var(--ocre-claro);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover, .lb-nav:hover {
  background: var(--ocre-dourado);
  color: var(--marrom-escuro);
  transform: scale(1.05);
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 760px) {
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 20px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
