/* Sistema editorial: marfil, azul tinta y separadores cálidos. Sin recursos externos. */
:root {
  --ink: #183744;
  --text: #41494b;
  --muted: #626a6b;
  --paper: #faf9f6;
  --surface: #f0f1ed;
  --line: #d9ddd8;
  --accent: #8a7757;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
p + p { margin-top: 1.3rem; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #3e6271; }
a:focus-visible, button:focus-visible { outline: 3px solid #916b36; outline-offset: 5px; }
button { font: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
h1 { font-size: clamp(43px, 4.5vw, 66px); }
h2 { font-size: clamp(31px, 3.1vw, 43px); }
h1 em { font-weight: 400; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 88px; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.skip { position: absolute; top: -100px; left: 16px; padding: 10px 20px; background: white; z-index: 10; }
.skip:focus { top: 10px; }
/* Un único eje de navegación en escritorio. */
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 108px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 335px; min-width: 240px; }
.brand img { width: 100%; aspect-ratio: 425/52; }
.navigation { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 29px); margin-left: auto; }
.navigation a { position: relative; padding: 12px 0; color: var(--text); font-size: 12px; white-space: nowrap; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current] { color: var(--ink); }
.navigation a[aria-current]::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 22px; }
.language { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 6px 0 6px 22px; border-left: 1px solid var(--line); text-decoration: none; font-size: 11px; letter-spacing: .08em; }
.menu-toggle { display: none; }
/* Portada: mensaje institucional, introducción y fotografía original completa. */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px 70px; padding-block: 72px 0; }
.hero-copy .eyebrow { margin-bottom: 20px; font-size: 10px; }
.hero h1 { font-size: clamp(40px, 4.3vw, 63px); line-height: 1.14; }
.hero-summary { align-self: end; padding-bottom: 5px; }
.lead { max-width: 360px; font-size: 17px; line-height: 1.8; }
.hero-summary .text-link { margin-top: 20px; }
.hero-photo { grid-column: 1 / -1; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 1; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px 0; }
.caption, figcaption { color: var(--muted); font-size: 11px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding-block: 8px; border-bottom: 1px solid var(--accent); text-decoration: none; font-size: 12px; font-weight: 500; }
.text-link span { font-size: 18px; font-weight: 400; }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.intro h2 { margin-bottom: 25px; }
.intro > div { max-width: 700px; }
.intro > div > p { max-width: 620px; }
.intro .text-link { margin-top: 22px; }
.practice { background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.practice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.practice-list > a { padding: 25px 0; border-top: 1px solid #cdd3cd; text-decoration: none; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink); }
.practice-list > a:hover { color: #47616a; }
.team-teaser { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 80px; }
.team-teaser img { width: 100%; }
.team-teaser .caption { margin-top: 12px; }
.team-teaser h2 { margin-bottom: 24px; }
.team-teaser .text-link { margin-top: 24px; }
.contact-band { background: var(--ink); color: white; padding-block: 58px; }
.contact-band > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band h2 { max-width: 570px; color: var(--paper); font-size: 35px; }
.contact-band .eyebrow { color: #c8d0ca; margin-bottom: 14px; }
.band-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band-actions { flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.6; }
.button:hover { background: #e4e8e0; color: var(--ink); }
.button.secondary { background: transparent; border-color: #aebdb8; color: var(--paper); }
.button.secondary:hover { background: #294b57; color: white; }
/* Interiores: títulos amplios y anchos de lectura contenidos. */
.page-heading { padding-block: 64px 48px; }
.page-heading .eyebrow { font-size: 10px; margin-bottom: 20px; }
.panorama { width: 100%; height: auto; }
.reading { width: min(740px, calc(100% - 96px)); padding-block: 60px; }
.reading p:first-child { color: var(--ink); font-family: var(--serif); font-size: 25px; line-height: 1.55; }
.reading p + p { margin-top: 28px; }
.end-link { padding-bottom: 72px; }
.end-link > img { width: 100%; margin-bottom: 28px; }
.service-banner { margin-bottom: 48px; }
.services-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 88px; padding-bottom: 50px; }
.area-index { padding-top: 12px; }
.area-index .eyebrow { margin-bottom: 18px; }
.area-index a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 12px; line-height: 1.6; }
.service { padding-block: 32px 38px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.number { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.service h2 { margin-block: 12px 24px; font-size: 33px; }
.service p { max-width: 710px; }
.subnav { display: flex; gap: 36px; border-bottom: 1px solid var(--line); }
.subnav a { padding-block: 0 18px; text-decoration: none; font-size: 13px; }
.subnav a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--accent); }
.person { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 64px; padding-block: 52px; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; padding-bottom: 80px; }
.person img { width: 136px; }
.person h2 { font-size: 35px; margin-bottom: 20px; }
.person p { max-width: 760px; font-size: 16px; }
.person p + p { margin-top: 18px; }
.person .specialty { color: var(--ink); padding-left: 20px; border-left: 1px solid var(--accent); }
.person .identity { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 20px; }
.translation-note { font-size: 13px; padding-top: 25px; }
.clients { padding-top: 0; }
.clients ul { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 48px; }
.clients li { break-inside: avoid; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.75; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 90px; padding-top: 0; }
.contact-layout h2 { font-size: 33px; margin-bottom: 18px; }
.email-link { color: var(--ink); font-family: var(--serif); font-size: clamp(25px, 3vw, 37px); overflow-wrap: anywhere; }
.contact-actions { margin-block: 30px 48px; }
.contact-actions .button { background: var(--ink); border-color: var(--ink); color: white; }
.contact-actions .secondary { background: transparent; color: var(--ink); border-color: var(--accent); }
.contact-actions .button:hover { background: #294b57; color: white; }
.office-info { border-top: 1px solid var(--line); padding-top: 30px; }
.office-info h2 { font-size: 27px; }
address { font-style: normal; }
.institutional { margin-top: 22px; font-size: 13px; }
.contact-layout figure { justify-self: end; width: min(100%, 350px); }
.contact-layout figure > a { display: block; }
.map { width: 100%; aspect-ratio: 1; }
.contact-layout figcaption { padding-top: 16px; }
/* Pie institucional, sin llamadas repetidas ni adornos. */
.footer { padding-block: 50px 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; font-size: 12px; line-height: 1.9; }
.footer-name { color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.footer-grid p:not(.footer-name) { font-size: 9px; letter-spacing: .2em; margin-top: 0; }
.footer-grid a { text-decoration: none; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .page-heading { animation: enter .6s ease-out; }
  @keyframes enter { from { transform: translateY(6px); } to { transform: translateY(0); } }
}
/* Tablet: navegación desplegable antes de que el encabezado pierda espacio. */
@media (max-width: 1100px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; min-height: 98px; padding-block: 25px; }
  .brand { width: min(335px, 100%); min-width: 0; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .language { padding-left: 0; border: 0; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; gap: 12px; }
  .menu-toggle { min-height: 44px; border: 0; padding: 10px 0 10px 18px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; border-left: 1px solid var(--line); }
  .menu-icon { width: 17px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .navigation { grid-column: 1 / -1; margin: 22px 0 0; justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
  .menu-ready .navigation:not(.is-open) { display: none; }
  .menu-ready .navigation.is-open { display: flex; }
  .hero { gap: 36px 40px; }
  .hero h1 { font-size: clamp(38px, 4.5vw, 51px); }
  .team-teaser { gap: 45px; }
  .services-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 45px; }
  .contact-band > .wrap { align-items: flex-start; flex-direction: column; gap: 25px; }
  .contact-layout { gap: 45px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  .header-inner { min-height: 90px; padding-block: 22px; }
  .brand { max-width: 100%; }
  .header-tools { gap: 12px; }
  .menu-toggle { font-size: 11px; padding-left: 12px; gap: 8px; }
  .language { font-size: 10px; }
  .navigation { gap: 0; flex-direction: column; align-items: stretch; }
  .navigation a { padding-block: 14px; border-top: 1px solid var(--line); font-size: 14px; }
  .navigation a[aria-current]::after { display: none; }
  .navigation a[aria-current] { font-weight: 600; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 42px; }
  .hero-copy .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(35px, 7.5vw, 49px); line-height: 1.18; }
  .hero-summary { padding: 0; }
  .hero .lead { max-width: 440px; font-size: 16px; }
  .hero-summary .text-link { margin-top: 12px; }
  .hero-photo { margin-top: 8px; }
  .hero-photo figcaption { font-size: 10px; gap: 15px; flex-wrap: wrap; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .intro .eyebrow { margin-bottom: 18px; }
  .intro h2 { font-size: 33px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading .text-link { margin-top: 18px; }
  .practice-list { grid-template-columns: minmax(0, 1fr); }
  .practice-list > a { padding-block: 22px; font-size: 19px; }
  .team-teaser { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .team-teaser h2 { font-size: 33px; }
  .contact-band { padding-block: 42px; }
  .contact-band h2 { font-size: 31px; }
  .band-actions { width: 100%; flex: auto; }
  .button { gap: 18px; padding-inline: 18px; }
  .page-heading { padding-block: 42px 34px; }
  .page-heading h1 { font-size: 44px; }
  .page-heading .eyebrow { font-size: 9px; }
  .reading { width: calc(100% - 40px); padding-block: 40px; }
  .reading p:first-child { font-size: 22px; }
  .end-link { padding-bottom: 45px; }
  .service-banner { margin-bottom: 30px; }
  .services-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 30px; }
  .area-index { columns: 2; column-gap: 24px; }
  .area-index .eyebrow { column-span: all; }
  .area-index a { break-inside: avoid; font-size: 11px; }
  .service { padding-block: 25px 30px; }
  .service h2 { font-size: 30px; }
  .subnav { gap: 26px; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 36px; }
  .person img { width: 120px; }
  .person h2 { font-size: 31px; }
  .person p { font-size: 15px; }
  .person:last-child { padding-bottom: 50px; }
  .clients { padding-top: 0; }
  .clients ul { columns: 1; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 0; }
  .contact-layout figure { justify-self: start; }
  .email-link { font-size: 27px; }
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Acceso discreto al inicio, con área táctil amplia y espacio para zonas seguras. */
.back-to-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 10px #18374418;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}
.back-to-top:hover { background: #294b57; color: white; }
.back-to-top[hidden] { display: none; }
.footer-bottom { padding-right: 55px; }
