:root {
  --brown: #4b3327;
  --gold: #c9a14c;
  --cream: #f4f1eb;
  --card: #f2eee7;
  --paper: #f8f4ed;
  --sand: #eee8dd;
  --ink: #2f2f2f;
  --muted: #646361;
  --soft: #8c837a;
  --line: rgba(75, 51, 39, 0.14);
  --cream-text: #f3efe8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, .brand-name, .firma-lead, .stats strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-light { color: #d9c48a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--brown);
}

.btn-gold:hover { background: #d4ad58; }

.btn-brown {
  background: var(--brown);
  color: var(--cream-text);
}

.btn-brown:hover { background: #5c4032; }

.btn-line {
  background: transparent;
  border-color: var(--gold);
  color: #e4cc8a;
}

.btn-line:hover { background: rgba(201, 161, 76, 0.12); }

.nav {
  background: var(--brown);
  color: var(--cream-text);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name { font-size: 22px; line-height: 1; }

.brand-tag {
  color: #e7d7bc;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--gold); }

.nav-panel {
  display: contents;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(201, 161, 76, 0.75);
  background: transparent;
  color: var(--cream-text);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.nav.is-open .menu-icon { background: transparent; }

.nav.is-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

.hero-banner {
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 72px 24px;
  background:
    linear-gradient(180deg, rgba(43, 27, 20, 0.28), rgba(43, 27, 20, 0.34) 48%, rgba(43, 27, 20, 0.46)),
    url("img/hero.jpg") center 32% / cover no-repeat;
  color: var(--cream-text);
  text-align: center;
}

.hero-copy { width: min(920px, 100%); }

.hero-banner .eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 26px auto 32px;
  color: #f6f1e8;
  font-size: 16px;
  font-weight: 300;
}

.bienvenidos {
  background: var(--brown);
  color: var(--cream-text);
  padding: 88px 0;
}

.bienvenidos-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.bienvenidos h2,
.nosotros h2,
.servicios h2,
.direccion h2,
.contacto h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.bienvenidos-grid > div > p,
.nosotros-grid > div > p { color: #f0e7dc; }

.firma-card p { color: var(--ink); }

.firma-card .eyebrow { color: var(--gold); }

.bienvenidos h2 + p,
.nosotros h2 + p,
.contacto h2 + p { margin-top: 18px; }

.bienvenidos .btn { margin-top: 28px; }

.firma-card {
  background: var(--paper);
  color: var(--ink);
  padding: 36px 36px 28px;
}

.firma-lead {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stats strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.servicios { padding: 92px 0 100px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-aside {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 22px 22px;
  background: var(--card);
  border: 1px solid rgba(75, 51, 39, 0.05);
}

.card-num {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
}

.card h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.card a {
  margin-top: auto;
  padding-top: 28px;
  color: #333232;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card a:hover { color: var(--brown); }

.nosotros {
  background: var(--brown);
  color: var(--cream-text);
  padding: 88px 0;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.nosotros img { width: 100%; height: auto; }

.nosotros .btn { margin-top: 32px; }

.direccion { padding-top: 92px; }

.socios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.socios img { width: 100%; aspect-ratio: 3 / 1.92; object-fit: cover; }

.role {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.socios h3 { font-size: 30px; font-weight: 500; }

.socios p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.perspectivas {
  margin-top: 72px;
  padding: 72px 0 28px;
  background: #efe8dc;
}

.center { text-align: center; }

.perspectivas h2 { margin-bottom: 32px; }

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

blockquote {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--paper);
}

.quote-mark {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.8;
}

blockquote p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
}

blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
}

blockquote strong { font-size: 14px; font-weight: 600; }

blockquote span { color: var(--muted); font-size: 13px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  padding: 16px 12px;
  background: rgba(248, 244, 237, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.contacto { padding: 92px 0 80px; }

.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contacto-lead {
  max-width: 460px;
  margin-top: 16px;
  color: var(--muted);
}

.datos {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
  padding: 26px 24px;
  list-style: none;
  background: var(--card);
}

.datos li { display: flex; gap: 14px; }

.dato-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.dato-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dato-label {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.datos p:last-child { color: var(--ink); font-size: 15px; }

.mapas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.mapa {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e6f0e3;
}

.mapa figcaption {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mapa img,
.mapa svg {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.mapa-lienzo { position: relative; }

.mapa-pin {
  position: absolute;
  left: 14%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.mapa-punto {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: radial-gradient(circle, var(--brown) 0 5px, #f7f3ec 6px);
}

.mapa-etiqueta {
  padding: 7px 12px;
  background: #f7f3ec;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.formulario {
  padding: 32px 32px 28px;
  background: #f7f3ec;
  border: 1px solid rgba(75, 51, 39, 0.06);
}

.formulario h3 { font-size: 32px; font-weight: 500; }

.form-note {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.fields label, .check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3dcd1;
  border-radius: 2px;
  background: #fbf9f6;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

textarea { resize: vertical; min-height: 120px; }

input::placeholder, textarea::placeholder { color: #b1aaa2; }

.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brown); }

.site-footer {
  background: var(--sand);
  color: var(--ink);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1.35fr;
  gap: 32px;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-name span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.footer-brand p, .footer-sede, .site-footer li {
  color: var(--muted);
  font-size: 14px;
}

.footer-brand p + p { margin-top: 12px; }

.footer-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }

.site-footer li + li { margin-top: 8px; }

.site-footer a:hover { color: var(--brown); }

.subscribe {
  display: flex;
  margin-top: 14px;
}

.subscribe input { border-right: 0; }

.subscribe button {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  background: var(--gold);
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.subscribe button:hover { background: #d4ad58; }

.footer-sede { margin-top: 18px; line-height: 1.6; }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 16px 0 18px;
  border-top: 1px solid #c9a14c;
  color: var(--soft);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .nav-inner { min-height: 72px; flex-wrap: wrap; gap: 0 16px; }

  .menu-button { display: grid; place-items: center; }

  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px 0 18px;
  }

  .nav.is-open .nav-panel { display: flex; }

  .nav-links { flex-direction: column; gap: 0; }

  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid rgba(243, 239, 232, 0.14);
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .nav-panel .btn { width: 100%; margin-top: 14px; }

  .cards, .socios { grid-template-columns: 1fr 1fr; }

  .bienvenidos-grid,
  .nosotros-grid,
  .contacto-grid,
  .section-head,
  .quotes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-aside { max-width: 460px; }

  .hero-banner { min-height: 560px; }
}

@media (max-width: 680px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }

  .brand-tag { display: none; }

  .cards, .socios, .fields, .pillars, .mapas { grid-template-columns: 1fr; }

  .stats { gap: 8px; text-align: center; }

  .stats strong { font-size: 22px; }

  .stats span { font-size: 10px; letter-spacing: 0.06em; }

  .card { min-height: 0; }

  .card h3 { font-size: 22px; }

  .firma-card, .formulario { padding: 24px 20px; }

  .formulario h3 { font-size: 30px; }

  input, select, textarea { font-size: 16px; }

  .subscribe { min-width: 0; }

  .subscribe input { min-width: 0; flex: 1 1 140px; }

  .legal { flex-direction: column; }

  .hero-banner {
    min-height: 0;
    padding: 52px 16px 48px;
  }

  .hero h1 { font-size: clamp(34px, 10vw, 46px); }

  .hero h1 br { display: none; }

  .hero-lead { font-size: 15px; margin-top: 18px; }

  .bienvenidos h2,
  .nosotros h2,
  .servicios h2,
  .direccion h2,
  .contacto h2 { font-size: clamp(30px, 8.6vw, 40px); }

  .bienvenidos, .nosotros, .servicios, .contacto { padding: 56px 0; }

  .direccion { padding-top: 56px; }

  .perspectivas { margin-top: 48px; padding: 48px 0 20px; }

  .socios h3 { font-size: 28px; }
}
