:root {
  --forest: #26362d;
  --forest-deep: #15221c;
  --sage: #7d8c78;
  --copper: #bd7430;
  --copper-light: #d99a59;
  --parchment: #f2eee5;
  --parchment-deep: #e5dccd;
  --ink: #28251f;
  --mist: #cbd5cc;
  --white: #fffdf7;
  --line: rgba(38, 54, 45, 0.2);
  --shadow: 0 24px 70px rgba(17, 27, 22, 0.2);
  --radius: 1.4rem;
  --content: min(1180px, calc(100vw - 2.5rem));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--forest-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--copper-light);
  outline-offset: 4px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .brand-name, .display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(3.2rem, 8vw, 7.7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
p { margin: 0 0 1rem; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.7rem;
  left: 0.7rem;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 0.5rem;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(21, 34, 28, 0.96);
  box-shadow: 0 10px 35px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  width: var(--content);
  min-height: 5.4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.75rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: var(--copper-light);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.6rem);
}

.desktop-nav a {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--copper-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.mobile-menu {
  display: none;
}

.hero,
.page-hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(12,20,16,0.32), rgba(12,20,16,0.92)),
    radial-gradient(circle at 72% 25%, rgba(217,154,89,0.35), transparent 24%),
    linear-gradient(135deg, #3f5c4b 0%, #15221c 55%, #0c1510 100%);
}

.page-hero { min-height: 70svh; }

.page-hero.photo-hero {
  background:
    linear-gradient(90deg, rgba(12,20,16,0.88) 0%, rgba(12,20,16,0.62) 52%, rgba(12,20,16,0.34) 100%),
    linear-gradient(180deg, rgba(12,20,16,0.16), rgba(12,20,16,0.76)),
    var(--hero-image) var(--hero-position, center 48%) / cover no-repeat;
}

.hero {
  background:
    linear-gradient(90deg, rgba(12,20,16,0.9) 0%, rgba(12,20,16,0.68) 48%, rgba(12,20,16,0.34) 100%),
    linear-gradient(180deg, rgba(12,20,16,0.18), rgba(12,20,16,0.72)),
    url('/assets/fotos/start-hero.webp') center 48% / cover no-repeat;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,0.035) 48% 50%, transparent 50%),
    radial-gradient(ellipse at 30% 100%, rgba(125,140,120,0.32), transparent 58%);
  pointer-events: none;
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,0.012) 48% 50%, transparent 50%),
    radial-gradient(ellipse at 30% 100%, rgba(125,140,120,0.08), transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 10rem 0 6rem;
}

.hero-content.narrow { max-width: 920px; margin-left: max(1.25rem, calc((100vw - 1180px) / 2)); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--copper-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }

.hero h1 { max-width: 1050px; }
.page-hero h1 { max-width: 980px; }

.hero-lead {
  max-width: 760px;
  margin-top: 1.6rem;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--copper);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover { transform: translateY(-2px); background: #a95f26; }
.button.secondary { background: transparent; border-color: rgba(255,255,255,0.5); }
.button.secondary.dark { color: var(--forest); border-color: var(--forest); }

.section {
  padding: clamp(4.5rem, 9vw, 9rem) 0;
}

.section.dark { background: var(--forest-deep); color: var(--white); }
.section.forest { background: var(--forest); color: var(--white); }
.section.sage { background: #dfe5dc; }
.section.copper { background: var(--copper); color: var(--white); }
.section.compact { padding-block: clamp(3rem, 6vw, 5rem); }

.container { width: var(--content); margin: 0 auto; }
.measure { max-width: 760px; }
.measure.wide { max-width: 920px; }

.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading h2 { max-width: 950px; }
.section-heading p { max-width: 760px; margin-top: 1.2rem; font-size: 1.12rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.split.reverse .photo-slot { order: 2; }
.split.reverse .copy { order: 1; }
.copy > p:last-child { margin-bottom: 0; }
.copy h2 { margin-bottom: 1.5rem; }
.copy h3 { margin-bottom: 1rem; }

.photo-slot {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 62%, rgba(9,16,12,0.2)),
    var(--photo, none),
    radial-gradient(circle at 70% 20%, rgba(217,154,89,0.55), transparent 18%),
    linear-gradient(135deg, #78907b, #26362d 58%, #101a15);
  background-size: cover;
  background-position: var(--photo-position, center);
  box-shadow: 0 10px 30px rgba(17,27,22,0.12);
}

.photo-slot.tall { min-height: 650px; }
.photo-slot.wide { min-height: 360px; }
.photo-slot.small { min-height: 300px; }

.photo-label {
  position: relative;
  z-index: 1;
  margin: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 0.9rem;
  background: rgba(15,26,20,0.82);
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.statement {
  max-width: 1050px;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.08;
}

.statement strong { color: var(--copper-light); font-weight: 500; }

.feature-grid,
.card-grid,
.story-grid,
.people-grid,
.gallery {
  display: grid;
  gap: 1.2rem;
}

.feature-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.story-grid { grid-template-columns: repeat(2, 1fr); }
.people-grid { grid-template-columns: repeat(2, 1fr); }
.gallery { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; }

.feature,
.card,
.story-card,
.person-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.48);
}

.dark .feature,
.dark .card,
.forest .card,
.forest .story-card {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.feature-number,
.year {
  display: block;
  margin-bottom: 2rem;
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.dark .feature-number,
.forest .year { color: var(--copper-light); }

.feature h3,
.card h3,
.story-card h3 { margin-bottom: 0.9rem; }
.feature p,
.card p,
.story-card p { margin: 0; }

.card-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--copper);
  font-weight: 800;
  text-decoration: none;
}

.dark .card-link,
.forest .card-link { color: var(--copper-light); }

.event-list { display: grid; gap: 1rem; margin-top: 2rem; }
.event {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid currentColor;
  border-color: rgba(255,255,255,0.2);
}
.event:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }
.event .event-year { color: var(--copper-light); font-weight: 800; }
.event h3 { font-size: 1.35rem; }

.timeline { display: grid; gap: 0; }
.timeline article {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.timeline article:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { margin: 0; }

.gallery .photo-slot { min-height: auto; border-radius: 1rem; box-shadow: none; }
.gallery .photo-slot:nth-child(1) { grid-column: span 7; grid-row: span 3; }
.gallery .photo-slot:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.gallery .photo-slot:nth-child(3) { grid-column: span 5; grid-row: span 3; }
.gallery .photo-slot:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.gallery .photo-slot:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.gallery .photo-slot:nth-child(6) { grid-column: span 7; grid-row: span 2; }
.gallery .photo-slot:nth-child(n+7) { grid-column: span 5; grid-row: span 2; }

.quote-block {
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 4px solid var(--copper);
  background: rgba(189,116,48,0.08);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
}

.legal-copy h2 { margin-top: 4rem; }
.legal-copy > h2:first-child { margin-top: 0; }
.legal-copy h3 { margin-top: 3.5rem; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.legal-copy h4 { margin: 2.25rem 0 0.75rem; font-size: 1.15rem; }
.legal-copy hr { margin: 4.5rem 0; border: 0; border-top: 1px solid var(--line); }
.legal-copy ul { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.legal-copy li + li { margin-top: 0.45rem; }
.legal-copy a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.pill { padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }

.faq-groups { display: grid; gap: 3rem; }
.faq-group h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 1rem; }
.faq {
  border-top: 1px solid var(--line);
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-family: system-ui; }
.faq[open] summary::after { content: "−"; }
.faq .answer { max-width: 820px; padding: 0 0 1.5rem; }

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 750; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.form-status { min-height: 1.5rem; color: var(--copper-light); font-weight: 700; }

.site-footer {
  padding: 4rem 0 2rem;
  background: #0c1510;
  color: rgba(255,255,255,0.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-content: center;
    padding: 7rem 1.5rem 2rem;
    background: rgba(21,34,28,0.98);
    transform: translateY(-105%);
    transition: transform 220ms ease;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu nav { display: grid; gap: 0.6rem; }
  .mobile-menu a { color: var(--white); font-family: Georgia, serif; font-size: clamp(1.8rem, 7vw, 3.3rem); text-decoration: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --content: min(100% - 1.5rem, 1180px); }
  h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.8rem); }
  .nav-wrap { min-height: 4.8rem; }
  .hero, .page-hero { min-height: 88svh; }
  .hero-content { padding: 8rem 0 4rem; }
  .hero-content.narrow { margin-inline: auto; }
  .split, .contact-panel { grid-template-columns: 1fr; }
  .split.reverse .photo-slot,
  .split.reverse .copy { order: initial; }
  .photo-slot, .photo-slot.tall { min-height: 390px; }
  .feature-grid, .card-grid, .story-grid, .people-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 5rem 1fr; }
  .event .event-action { grid-column: 2; }
  .timeline article { grid-template-columns: 1fr; gap: 0.4rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .photo-slot:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery .photo-slot:nth-child(1), .gallery .photo-slot:nth-child(4) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .button-row, .button { width: 100%; }
}
