@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Spectral:wght@400;500;600&display=swap');

:root {
  --navy: #173552;
  --deep: #11263b;
  --blue: #eaf1f7;
  --line: #cdd9e3;
  --gold: #b7824d;
  --ink: #293746;
  --muted: #4b5b68;
  --serif: Spectral, Georgia, serif;
  font: 16px/1.6 Roboto, system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #bd8042; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }
address { font-style: normal; }

.utility { background: var(--deep); color: #fff; font-size: .84rem; }
.utility-inner, .bar, .languages, nav { display: flex; align-items: center; }
.utility-inner { justify-content: end; gap: 24px; min-height: 39px; }
.utility a, .brand, nav a { text-decoration: none; }
.utility a:hover, nav a:hover { text-decoration: underline; }
.languages { gap: 2px; }
.languages button { padding: 4px 8px; color: #fff; background: transparent; border: 0; }
.languages [aria-pressed="true"] { color: #ffdda9; text-decoration: underline; text-underline-offset: .25em; }
.bar { min-height: 79px; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy); font: 600 1.5rem var(--serif); }
nav { gap: clamp(15px, 4vw, 42px); font-size: .94rem; font-weight: 500; }

.hero {
  color: #fff;
  background: linear-gradient(rgba(13, 22, 30, .64), rgba(13, 22, 30, .58)),
    #26323d url("firma-documentos.jpg") center 57% / cover no-repeat;
  text-align: center;
}
.hero-layout { padding-block: clamp(76px, 11vw, 154px); }
.hero h1 { font-size: clamp(2.9rem, 7vw, 6.1rem); letter-spacing: -.035em; }
.place { margin: 12px 0 25px; font-size: 1rem; letter-spacing: .11em; }
.place::before { content: ""; display: block; width: 54px; margin: 0 auto 14px; border-top: 2px solid #d5ad83; }
.primary { display: inline-block; padding: 11px 23px; border: 1px solid transparent; background: #e3c29e; color: #172938; text-decoration: none; text-transform: uppercase; letter-spacing: .07em; font-size: .82rem; font-weight: 700; }
.primary:hover { background: #f0d4b5; }
.office { background: var(--blue); border-bottom: 1px solid var(--line); }
.office-layout { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 50px; padding-block: 51px; }
.intro { max-width: 490px; margin: 10px 0 15px; }
.text-link { color: var(--navy); font-weight: 700; }
.office-names { border-left: 2px solid var(--gold); padding: 4px 0 4px 25px; }
.office-names h3 { font-family: inherit; font-size: .85rem; font-weight: 700; }
.office-names p { margin: 7px 0 0; font: 500 clamp(1.1rem, 2.2vw, 1.55rem)/1.4 var(--serif); color: var(--navy); }

.directory { padding-block: 65px; }
.lead { color: var(--muted); margin: 10px 0 25px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input { width: 100%; padding: 12px; border: 1px solid #91a6b8; background: #fff; color: inherit; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.filters button { background: #fff; color: var(--navy); border: 1px solid #aebfcc; padding: 5px 11px; font-size: .88rem; }
.filters button:hover { background: var(--blue); }
.filters [aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#count, .note { color: var(--muted); font-size: .9rem; }
#results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 44px; }
.group h3 { color: var(--navy); font-size: 1.66rem; margin: 0 0 10px; }
.group details { border-top: 1px solid var(--line); }
.group details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "−"; }
summary:hover { color: #285c88; }
details ul { padding-left: 22px; margin: 2px 0 15px; }
.note { margin-top: 29px; }

.contact { background: var(--blue); border-top: 1px solid var(--line); padding-block: 52px; }
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 32px; }
.contact h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 10px; }
footer { background: var(--deep); color: #fff; padding-block: 22px; }

@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .bar { flex-direction: column; align-items: start; gap: 6px; padding-block: 12px; }
  nav { flex-wrap: wrap; gap: 4px 20px; }
  .hero-layout { padding-block: 65px; }
  .office-layout, .contact-layout, #results { grid-template-columns: 1fr; gap: 25px; }
  .office-layout, .directory, .contact { padding-block: 38px; }
}

.contact-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-block: 45px;
  padding: 0;
  background: var(--blue);
  border: 1px solid var(--line);
}
.contact-extra > div { min-width: 0; padding: 32px; }
.contact-extra > div + div { border-left: 1px solid var(--line); }
.contact-extra > div:first-child { display: flex; flex-direction: column; }
.contact-extra > div:first-child iframe { flex: none; height: 190px; min-height: 190px; }
.contact-extra h2 { font-size: 2.3rem; margin-bottom: 18px; }
.contact-extra iframe { width: 100%; height: 190px; border: 1px solid var(--line); }
#contact-form label { margin-top: 12px; }
#contact-form textarea { width: 100%; padding: 12px; border: 1px solid #91a6b8; font: inherit; resize: vertical; }
#contact-status { font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) {
  .contact-extra { grid-template-columns: 1fr; margin-block: 30px; }
  .contact-extra > div { padding: 22px; }
  .contact-extra > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (min-width: 481px) and (max-width: 900px) {
  .contact-extra { width: calc(100% - 24px); }
  .contact-extra > div { padding: 16px; }
  .contact-extra h2 { font-size: 1.8rem; }
  .contact-extra iframe { min-height: 190px; }
}

#contact-form label { margin-top: 7px; margin-bottom: 3px; font-size: .88rem; }
#contact-form input:not([type="hidden"]) { padding: 7px 10px; line-height: 1.3; }
#contact-form textarea { padding: 7px 10px; min-height: 72px; line-height: 1.4; }
#contact-form .note { margin: 10px 0; font-size: .8rem; line-height: 1.4; }
#contact-form .primary { padding: 8px 16px; }
#contact-status:empty { display: none; }
