:root {
  --black: #111;
  --charcoal: #1b1b1b;
  --white: #fff;
  --stone: #f3f2ef;
  --line: #e3e1dc;
  --muted: #5f5d58;
  --accent: #f2b01e; /* logo amber, used sparingly */
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; gap: 1rem; }
.brand img { height: 72px; width: auto; }
nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
nav a:not(.btn):hover { color: var(--muted); }
.nav-toggle { display: none; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid var(--black); padding: .5rem .9rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--black); color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.8rem; border: 2px solid var(--black); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.btn-small { padding: .55rem 1.1rem; font-size: .75rem; }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Hero */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: var(--white); background: var(--charcoal); isolation: isolate; }
.hero-pic { position: absolute; inset: 0; z-index: -2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 100%; transform: scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%); }
.hero-text { padding: 4rem 0 clamp(2.5rem, 7vw, 5rem); }
.eyebrow { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 1.2rem; max-width: 13ch; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.lead { max-width: 38em; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e8e6e1; margin: 0 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.motto { margin: 1.8rem 0 0; font-style: italic; color: #cfcdc7; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.stone { background: var(--stone); }
.section.dark { background: var(--charcoal); color: var(--white); }
h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.1; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kicker { margin: 0 0 .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dark .kicker { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.two-col > * { min-width: 0; }
.two-col p { margin-top: 0; }
.wide { margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0; }
.wide img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center 58%; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 65%; }
.big { font-size: 1.2rem; }

.tiles { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles li { background: var(--white); padding: 1.8rem; }
.tiles p { margin: 0; color: var(--muted); }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.values li { border-top: 2px solid var(--accent); padding-top: 1rem; }
.values strong { display: block; margin-bottom: .3rem; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.values span { color: #cfcdc7; }

.steps { counter-reset: s; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.steps li { counter-increment: s; display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.note { color: var(--muted); font-size: .95rem; }

.contact { text-align: center; }
.contact p { max-width: 36em; margin-inline: auto; }
.contact .btn { margin: .5rem 0 1.5rem; word-break: break-word; }
.small { font-size: .9rem; color: var(--muted); }

.site-footer { background: var(--black); color: #bdbbb5; padding: 1.8rem 0; font-size: .85rem; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.foot p { margin: 0; }

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  nav { position: absolute; inset: 100% 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  nav li a { display: block; padding: .9rem 0; }
  nav li a.btn { text-align: center; margin-top: .5rem; }
  .two-col { grid-template-columns: 1fr; }
  .wide img { aspect-ratio: 4/3; }
  .gallery { grid-template-columns: 1fr; }
}

/* Content additions */
.mission { max-width: 46em; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; border-left: 2px solid var(--accent); }
.timeline li { padding: 0 0 1.5rem 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; background: var(--black); border-radius: 50%; }
.timeline strong { display: block; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.timeline span { color: var(--muted); display: block; max-width: 48em; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.fee { background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.fee-amount { margin: 0 0 .5rem; font-size: 3.2rem; font-weight: 800; line-height: 1; }
.fee-amount span { font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.facts { background: var(--black); color: var(--white); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 1.4rem 1rem; border-left: 1px solid #ffffff22; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.facts span { font-size: .85rem; color: #bdbbb5; }
@media (max-width: 800px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid #ffffff22; }
}
#actividades, #socios, #objetivos, #valores, .gallery { content-visibility: auto; contain-intrinsic-size: auto 600px; }
@media (prefers-reduced-motion: no-preference) { .tiles li, .values li, .btn { transition: transform .2s; } }
.wide picture, .gallery picture { display: block; }
.gallery picture { min-width: 0; }
@media (max-width: 800px) { .brand img { height: 60px; } .bar { min-height: 4.5rem; } }
