@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #0E0E0E;
  --paper: #FAFAF8;
  --stone: #8C8C86;
  --sand: #D8D6CF;
  --brass: #C9A876;
  --paper-on-ink: #FAFAF8;

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: #2A2A28; }

.btn-brass {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: #b8966a; border-color: #b8966a; color: var(--ink); }

.btn-ghost-light {
  border-color: rgba(250,250,248,0.4);
  color: var(--paper);
}
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo span { color: var(--brass); }

.main-nav ul {
  display: flex;
  gap: 36px;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--brass); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250,250,248,0.14);
}
.footer-logo {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-logo span { color: var(--brass); }
.footer-top p { color: rgba(250,250,248,0.6); max-width: 320px; font-size: 14.5px; }

.footer-col h4 {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p {
  font-size: 14.5px;
  color: rgba(250,250,248,0.85);
}
.footer-col a:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom small {
  color: rgba(250,250,248,0.45);
  font-size: 12.5px;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.7);
}
.footer-social a:hover { color: var(--brass); }

/* ===== WhatsApp float button ===== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 2px;
  border: 1px solid var(--brass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); background: #2A2A28; }
.wa-float svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-rule {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--sand);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  max-width: 920px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero-sub {
  margin-top: 28px;
  max-width: 540px;
  font-size: 17px;
  color: var(--stone);
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-coords {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-sand { background: var(--sand); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-dark .eyebrow { color: rgba(250,250,248,0.55); }
.section-dark .eyebrow::before { background: var(--brass); }
.section-head .lead {
  max-width: 420px;
  color: var(--stone);
  font-size: 15.5px;
}
.section-dark .section-head .lead { color: rgba(250,250,248,0.6); }

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(250,250,248,0.16);
}
.stat {
  padding: 40px 24px 0;
  border-right: 1px solid rgba(250,250,248,0.16);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
}
.stat .label {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.6);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--sand);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.card-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sand), #c7c4ba);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-status {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.card-status.future { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body .loc {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.card-body h3 { font-size: 22px; margin-bottom: 12px; }
.card-body p { color: var(--stone); font-size: 14.5px; flex: 1; }
.card-meta {
  display: flex;
  gap: 18px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sand);
  font-size: 12.5px;
  color: var(--stone);
  flex-wrap: wrap;
}

/* ===== Timeline (Trayectoria) ===== */
.timeline { border-top: 1px solid var(--sand); }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--sand);
}
.timeline-item .year {
  font-family: var(--display);
  font-size: 28px;
  color: var(--brass);
}
.timeline-item h3 { font-size: 20px; margin-bottom: 10px; }
.timeline-item p { color: var(--stone); font-size: 15px; max-width: 560px; }

/* ===== Values ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.value-item {
  background: var(--paper);
  padding: 36px 28px;
}
.value-item .vnum {
  font-family: var(--display);
  font-size: 14px;
  color: var(--brass);
  margin-bottom: 18px;
}
.value-item h4 { font-size: 17px; margin-bottom: 10px; font-family: var(--display); font-weight: 600; }
.value-item p { font-size: 14px; color: var(--stone); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 24px; }
.contact-info p.lead { color: var(--stone); font-size: 16px; max-width: 420px; margin-bottom: 44px; }
.contact-detail {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--sand);
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--sand); }
.contact-detail .ico {
  width: 20px; flex-shrink: 0; color: var(--brass);
}
.contact-detail strong { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-detail span { font-size: 14px; color: var(--stone); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--sand);
  background: transparent;
  padding: 12px 2px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-note { font-size: 12.5px; color: var(--stone); margin-top: 8px; }

.map-strip {
  margin-top: 0;
  border: 1px solid var(--sand);
  aspect-ratio: 21/6;
  background: linear-gradient(120deg, var(--sand), #cfccc2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Page hero (interior pages) ===== */
.page-hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--sand);
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); margin-top: 18px; max-width: 760px; }
.page-hero .lead { margin-top: 22px; max-width: 540px; color: var(--stone); font-size: 16px; }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); max-width: 700px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(250,250,248,0.16); padding-bottom: 28px; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .hero-coords { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .header-actions .btn span.btn-label { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: 40px var(--gutter);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--sand);
  font-family: var(--display);
  font-size: 24px;
}
