:root {
  --navy: #101b2d;
  --navy-light: #172741;
  --paper: #f4f1eb;
  --white: #ffffff;
  --ink: #192231;
  --muted: #687386;
  --gold: #b99a5a;
  --gold-light: #d7c292;
  --line: rgba(16, 27, 45, 0.14);
  --shadow: 0 24px 65px rgba(16, 27, 45, 0.13);
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 7px;
}
.skip-link:focus { top: 16px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(16, 27, 45, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo-link {
  flex: 0 1 330px;
  min-width: 230px;
  background: #d8d5d2;
  padding: 5px 9px;
  border-radius: 7px;
}
.logo-link img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}
.menu {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #f4f6f9;
  font-size: 14px;
}
.menu > a:not(.menu-contact) {
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}
.menu > a:not(.menu-contact):hover,
.menu > a:not(.menu-contact):focus-visible {
  border-color: var(--gold-light);
}
.menu-contact {
  padding: 11px 18px;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 999px;
  font-weight: 700;
}
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 155px 0 80px;
  color: var(--white);
  background: linear-gradient(135deg, #0b1422 0%, #162842 62%, #0c1728 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 65px 65px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -340px;
  top: 90px;
  border: 1px solid rgba(215,194,146,0.18);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 68px;
}
.label,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.7px;
  text-transform: uppercase;
}
.label::before,
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.section-label { color: #967438; }
.section-label.light { color: var(--gold-light); }
.hero h1,
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -2.4px;
}
.hero h1 span {
  display: inline-block;
  margin-top: 12px;
  color: #dfe5ec;
  font-size: 0.56em;
  letter-spacing: -0.8px;
}
.hero-location {
  max-width: 610px;
  margin: 30px 0;
  color: #c8d1dc;
  font-size: 18px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--gold); }
.button-primary:hover { background: #c9ad72; }
.button-outline { color: var(--white); border: 1px solid rgba(255,255,255,0.28); }
.button-outline:hover { background: rgba(255,255,255,0.08); }
.phone-line {
  width: fit-content;
  display: flex;
  flex-direction: column;
  margin-top: 43px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.phone-line span {
  color: #8fa0b5;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.phone-line strong { margin-top: 5px; font-size: 15px; }
.hero-logo { display: grid; place-items: center; }
.logo-frame {
  width: min(520px, 100%);
  padding: 24px;
  background: #d8d5d2;
  border: 1px solid rgba(215,194,146,0.55);
  box-shadow: 0 38px 90px rgba(0,0,0,0.34);
}
.logo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section { padding: 108px 0; }
.section h2 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -1.3px;
}
.despacho { background: var(--white); }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 86px;
  align-items: start;
}
.despacho-info {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.despacho-info > p {
  margin: 0 0 27px;
  color: #4f5c6e;
  font-size: 19px;
}
.entity-row { display: flex; flex-wrap: wrap; gap: 10px; }
.entity-row span {
  padding: 9px 14px;
  color: #4d5969;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.areas { background: var(--paper); }
.section-heading { margin-bottom: 48px; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.area-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.area-card span {
  color: #9b7b41;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}
.area-card h3 {
  margin: auto 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.18;
}
.area-card-wide { grid-column: span 2; }

.coverage {
  position: relative;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.coverage::before {
  content: "";
  position: absolute;
  left: -260px;
  bottom: -410px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(215,194,146,0.13);
  border-radius: 50%;
}
.coverage-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 84px;
  align-items: center;
}
.coverage-title h2 { color: var(--white); }
.locations { display: grid; gap: 13px; }
.locations article {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 28px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.13);
}
.locations span {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
}
.locations h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
}

.contact { background: var(--white); }
.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 72px;
  padding: 58px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-list { display: grid; }
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list a:first-child { border-top: 1px solid var(--line); }
.contact-list a:hover { padding-inline: 10px; background: var(--white); }
.contact-list span {
  color: #8f713b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  text-align: right;
}

.footer {
  padding: 62px 0 24px;
  color: #d8e0e9;
  background: #0a1320;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 45px;
}
.footer-brand {
  width: min(330px, 100%);
  padding: 5px 9px;
  background: #d8d5d2;
  border-radius: 7px;
}
.footer-brand img { width: 100%; height: auto; }
.footer-copy { text-align: right; }
.footer-copy p { margin: 0 0 7px; color: #9aa8b9; }
.footer-copy a { font-size: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  color: #8291a5;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
}
.footer-bottom p { margin: 0; }

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #1fba69;
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}
.whatsapp svg { width: 31px; height: 31px; fill: var(--white); }

@media (max-width: 980px) {
  .header-inner { min-height: 82px; }
  .logo-link { flex-basis: 285px; min-width: 0; }
  .logo-link img { height: 56px; }
  .menu-button { display: block; }
  .menu {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: 0 22px 60px rgba(0,0,0,0.30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .menu a { padding: 13px 12px; }
  .menu-contact { margin-top: 7px; text-align: center; }
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-content { max-width: 780px; }
  .hero-logo { justify-content: start; }
  .logo-frame { width: min(560px, 100%); }
  .split,
  .coverage-grid,
  .contact-panel { grid-template-columns: 1fr; gap: 44px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .area-card-wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1160px); }
  .header-inner { min-height: 74px; }
  .logo-link { max-width: 238px; padding: 4px 7px; }
  .logo-link img { height: 47px; }
  .menu { top: 74px; left: 14px; right: 14px; }
  .hero { min-height: auto; padding: 114px 0 72px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); letter-spacing: -1.7px; }
  .hero h1 span { font-size: 0.53em; line-height: 1.14; }
  .hero-location { font-size: 16px; }
  .hero-buttons { display: grid; }
  .button { width: 100%; }
  .logo-frame { padding: 14px; }
  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(37px, 10vw, 49px); }
  .despacho-info > p { font-size: 17px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 185px; }
  .locations article { padding: 21px 18px; }
  .locations h3 { font-size: 25px; }
  .contact-panel { padding: 34px 22px; }
  .contact-list a { align-items: flex-start; flex-direction: column; gap: 5px; }
  .contact-list strong { text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 30px; }
  .footer-copy { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .whatsapp { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
