/* ============================================================
   MRP — Estudio Jurídico
   Editorial, modern, trilingual (ZH / ES / EN)
   ============================================================ */

:root {
  --bg: #f6f1e7;
  --bg-soft: #efe8d8;
  --bg-deep: #1a2420;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6f6a5e;
  --line: #c9bfa9;
  --line-soft: #d9d0bc;
  --accent: #1d3a36;      /* botanical deep green */
  --accent-soft: #2d524d;
  --gold: #a48a4a;
  --cream: #fbf7ee;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", serif;
  --serif-zh: "Noto Serif SC", "Songti SC", "STSong", "Cormorant Garamond", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}
html[lang="zh"] { font-family: var(--sans-zh); }
html[lang="es"], html[lang="en"] { font-family: var(--sans); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

html[lang="zh"] body { font-family: var(--sans-zh); }

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

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

::selection { background: var(--accent); color: var(--cream); }

/* ============================================================
   FILM GRAIN BACKDROP
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms ease, padding 400ms ease, background 400ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.brand-logo {
  height: 84px;
  width: auto;
  display: block;
  /* Fondo blanco del JPG se funde con el cream del sitio */
  mix-blend-mode: multiply;
  transition: transform 400ms ease, height 400ms ease;
}
.brand:hover .brand-logo { transform: scale(1.02); }
.site-header.scrolled .brand-logo { height: 64px; }
@media (max-width: 980px) {
  .brand-logo { height: 64px; }
  .site-header.scrolled .brand-logo { height: 52px; }
}
@media (max-width: 540px) {
  .brand-logo { height: 56px; }
  .site-header.scrolled .brand-logo { height: 48px; }
}
/* Pantallas muy chicas tipo iPhone SE / mini en portrait (≤400px) */
@media (max-width: 400px) {
  .brand-logo { height: 76px; }
  .site-header.scrolled .brand-logo { height: 60px; }
  /* Switcher compacto: que casi no robe espacio al logo */
  .lang-switch { padding: 1px; }
  .lang-switch button {
    padding: 2px 4px;
    font-size: 7.5px;
    letter-spacing: 0.03em;
    min-width: 0;
  }
  /* Reducir padding lateral del header */
  .site-header { padding-left: 12px; padding-right: 12px; gap: 6px; }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-primary a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 200ms;
}
html[lang="zh"] .nav-primary a {
  font-family: var(--sans-zh);
  letter-spacing: 0.1em;
  font-size: 13px;
}
.nav-primary a:hover { color: var(--accent); }
.nav-primary a.active {
  color: var(--accent);
}
.nav-primary a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--cream);
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all 250ms ease;
  text-transform: uppercase;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  background: var(--accent);
  color: var(--cream);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: 300ms;
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section {
  position: relative;
  z-index: 2;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
html[lang="zh"] .eyebrow {
  font-family: var(--sans-zh);
  letter-spacing: 0.24em;
  font-size: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4 {
  font-family: var(--serif-zh);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(48px, 7.5vw, 116px); }
h2 { font-size: clamp(36px, 5vw, 76px); }
h3 { font-size: clamp(24px, 2.6vw, 38px); }

p { color: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-left {
  position: relative;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 38px;
}
.hero-meta .row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="zh"] .hero-meta .row { font-family: var(--sans-zh); letter-spacing: 0.18em; }
.hero-meta .dot {
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

.hero h1 {
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 32px;
  max-width: 520px;
}
html[lang="zh"] .hero-sub {
  font-family: var(--serif-zh);
  font-style: normal;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 250ms;
}
html[lang="zh"] .btn-line { font-family: var(--sans-zh); letter-spacing: 0.14em; }
.btn-line:hover { background: var(--ink); }
.btn-line .arrow { display: inline-block; transition: transform 280ms; }
.btn-line:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  cursor: pointer;
  background: transparent;
  border-top: 0; border-left: 0; border-right: 0;
  transition: color 250ms;
}
.btn-ghost:hover { color: var(--accent); }

.hero-right {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.05);
  transition: transform 16s ease-out;
}
.hero-right.in-view img { transform: scale(1); }
.hero-right::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,36,32,0.05) 0%, rgba(26,36,32,0.35) 100%);
}

.hero-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 22px 28px;
  background: var(--cream);
  z-index: 2;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--ink);
  max-width: min(420px, 70vw);
}
.hero-corner span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-top: 2px;
}

/* ============================================================
   THE FIRM / ABOUT
   ============================================================ */
.firm {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.firm-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.firm h2 {
  margin-bottom: 32px;
}
.firm-lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 40px;
  font-style: italic;
}
html[lang="zh"] .firm-lede {
  font-family: var(--serif-zh);
  font-style: normal;
  font-weight: 500;
}
.firm-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 680px;
}

.firm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.firm-stats .stat {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}
.firm-stats .stat:first-child { padding-left: 0; }
.firm-stats .stat:last-child { border-right: 0; }
.firm-stats .num {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.firm-stats .lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="zh"] .firm-stats .lbl {
  font-family: var(--sans-zh);
  letter-spacing: 0.16em;
}

/* ============================================================
   TEAM / PARTNERS
   ============================================================ */
.team {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.team-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
}
.team-header h2 { max-width: 60%; }
.team-header .aside {
  max-width: 380px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}
html[lang="zh"] .team-header .aside {
  font-family: var(--serif-zh);
  font-style: normal;
}

.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  max-width: 1140px;
  margin: 0 auto;
}
.partner-card {
  cursor: default;
}
.partner-img {
  position: relative;
  aspect-ratio: 4/4.4;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-soft);
}
.partner-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% calc(50% + 15px);
  filter: saturate(0.9);
  transition: transform 1.4s ease, filter 800ms ease;
}
.partner-card:hover .partner-img img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.partner-name {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
html[lang="zh"] .partner-name { font-family: var(--serif-zh); font-weight: 500; }
.partner-role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
html[lang="zh"] .partner-role { font-family: var(--sans-zh); letter-spacing: 0.14em; }
.partner-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ============================================================
   AREAS / PRACTICE
   ============================================================ */
.areas {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.areas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(45,82,77,0.4), transparent 60%);
  pointer-events: none;
}
.areas .eyebrow { color: rgba(251,247,238,0.6); }
.areas .eyebrow::before { background: var(--gold); }
.areas h2 { color: var(--cream); margin-bottom: 16px; }
.areas-intro {
  max-width: 640px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: rgba(251,247,238,0.78);
  margin-bottom: 72px;
}
html[lang="zh"] .areas-intro { font-family: var(--serif-zh); font-style: normal; }

.areas-list {
  border-top: 1px solid rgba(251,247,238,0.16);
}
.area-row {
  border-bottom: 1px solid rgba(251,247,238,0.16);
  position: relative;
  /* Espacio que dejar arriba cuando scrollIntoView lleva esta row a la vista */
  scroll-margin-top: 110px;
}
.area-head {
  display: grid;
  grid-template-columns: 80px 1fr 240px 40px;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  cursor: pointer;
  transition: padding 300ms ease;
}
.area-head:hover { padding-left: 12px; }
.area-num {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.area-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.005em;
}
html[lang="zh"] .area-title { font-family: var(--serif-zh); font-weight: 500; }
.area-keywords {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251,247,238,0.5);
}
html[lang="zh"] .area-keywords { font-family: var(--sans-zh); letter-spacing: 0.1em; text-transform: none; font-size: 13px; }
.area-toggle {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid rgba(251,247,238,0.25);
  border-radius: 50%;
  transition: all 250ms;
  justify-self: end;
}
.area-row.open .area-toggle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}
.area-toggle svg {
  width: 14px; height: 14px;
  transition: transform 300ms ease;
}
.area-row.open .area-toggle svg { transform: rotate(45deg); }

.area-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 700ms cubic-bezier(.6,.04,.2,1);
}
.area-body-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 40px 0 56px 112px;
}
.area-body img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
  /* Marco esfumado blanco fino — halo cream alrededor de la imagen */
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 18px 6px rgba(251, 247, 238, 0.55),
    0 0 32px 8px rgba(251, 247, 238, 0.25);
}
.area-detail {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251,247,238,0.82);
}
.area-detail p { color: inherit; margin-bottom: 14px; }
.area-detail h4 {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 22px;
  margin-bottom: 8px;
}
html[lang="zh"] .area-detail h4 { font-family: var(--serif-zh); font-style: normal; font-weight: 500; }
.area-detail ul { list-style: none; padding: 0; margin: 12px 0; }
.area-detail li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 14.5px;
  line-height: 1.65;
}
.area-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--gold);
}

/* ============================================================
   OFFICE / SEDE
   ============================================================ */
.office {
  padding: clamp(80px, 12vw, 160px) 0;
}
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.office-img-stack {
  position: relative;
  aspect-ratio: 4/5;
}
.office-img-stack .main-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.office-img-stack .accent {
  position: absolute;
  right: -32px; bottom: -32px;
  width: 48%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 28% center;
  border: 8px solid var(--bg);
  filter: saturate(0.85);
}
.office-content h2 { margin-bottom: 32px; }
.office-content p {
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 22px;
  color: var(--ink-soft);
  max-width: 540px;
}

.office-features {
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.office-features .row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.office-features .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.office-features .lbl {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
html[lang="zh"] .office-features .lbl { font-family: var(--sans-zh); }

.global-network {
  margin-top: 80px;
  padding: 48px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.global-network h3 {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 24px;
}
.network-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.network-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
html[lang="zh"] .network-col h4 { font-family: var(--sans-zh); letter-spacing: 0.14em; }
.network-col ul { list-style: none; }
.network-col li {
  font-family: var(--serif);
  font-size: 18px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
html[lang="zh"] .network-col li { font-family: var(--serif-zh); font-size: 16px; }
.network-col li:last-child { border-bottom: 0; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vw, 130px) 0 60px;
  position: relative;
}
.contact .eyebrow { color: rgba(251,247,238,0.55); }
.contact .eyebrow::before { background: var(--gold); }
.contact h2 { color: var(--cream); margin-bottom: 50px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 44px clamp(24px, 4vw, 56px);
  background: rgba(251, 247, 238, 0.04);
  border: 1px solid rgba(251, 247, 238, 0.12);
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-form .form-field {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.contact-form .form-row .form-field { margin-bottom: 22px; }
.contact-form label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.65);
  margin-bottom: 9px;
  font-weight: 500;
}
html[lang="zh"] .contact-form label { font-family: var(--sans-zh); letter-spacing: 0.1em; }
.contact-form input,
.contact-form textarea {
  appearance: none;
  background: rgba(251, 247, 238, 0.04);
  border: 1px solid rgba(251, 247, 238, 0.18);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 13px 16px;
  border-radius: 2px;
  width: 100%;
  transition: border-color 220ms ease, background 220ms ease;
  line-height: 1.5;
}
html[lang="zh"] .contact-form input,
html[lang="zh"] .contact-form textarea { font-family: var(--sans-zh); }
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(251, 247, 238, 0.32);
  font-weight: 300;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(251, 247, 238, 0.07);
}

.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 6px 0 26px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(251, 247, 238, 0.7);
  text-transform: none;
  font-weight: 300;
  line-height: 1.6;
}
.contact-form .form-consent input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(251, 247, 238, 0.35);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  padding: 0;
}
.contact-form .form-consent input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.contact-form .form-consent input[type="checkbox"]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -1px);
}
.contact-form .form-consent a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}
.contact-form .form-consent a:hover { border-bottom-color: var(--gold); }

.contact-form .form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--cream);
  border: 0;
  padding: 17px 38px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, transform 240ms ease, opacity 220ms ease;
  border-radius: 2px;
}
html[lang="zh"] .contact-form .form-submit { font-family: var(--sans-zh); letter-spacing: 0.14em; }
.contact-form .form-submit:hover:not(:disabled) {
  background: var(--accent-soft);
}
.contact-form .form-submit:hover:not(:disabled) .arrow { transform: translateX(5px); }
.contact-form .form-submit .arrow { display: inline-block; transition: transform 280ms; }
.contact-form .form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.contact-form .form-feedback {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border: 1px solid;
}
html[lang="zh"] .contact-form .form-feedback { font-family: var(--sans-zh); }
.contact-form .form-feedback-success {
  border-color: var(--gold);
  background: rgba(164, 138, 74, 0.12);
  color: var(--cream);
}
.contact-form .form-feedback-error {
  border-color: rgba(204, 100, 100, 0.6);
  background: rgba(204, 100, 100, 0.1);
  color: rgba(255, 220, 220, 0.95);
}

.contact-form .form-field.has-error input,
.contact-form .form-field.has-error textarea {
  border-color: rgba(204, 100, 100, 0.7);
  background: rgba(204, 100, 100, 0.06);
}
.contact-form .form-field.has-error input:focus,
.contact-form .form-field.has-error textarea:focus {
  border-color: rgba(204, 100, 100, 0.9);
  background: rgba(204, 100, 100, 0.08);
}
.contact-form .form-error {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(255, 180, 180, 0.95);
}
html[lang="zh"] .contact-form .form-error { font-family: var(--sans-zh); }
.contact-form .form-error-consent {
  margin-top: -8px;
  margin-bottom: 4px;
}
.contact-form .form-consent.has-error span {
  color: rgba(255, 200, 200, 0.92);
}

@media (max-width: 720px) {
  .contact-form { padding: 32px 22px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.6fr;
  gap: 60px;
  margin-bottom: 80px;
}
.contact-block h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251,247,238,0.55);
  margin-bottom: 18px;
  font-weight: 500;
}
html[lang="zh"] .contact-block h4 { font-family: var(--sans-zh); letter-spacing: 0.16em; }
.contact-block p, .contact-block a {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--cream);
  display: block;
  transition: color 250ms;
}
html[lang="zh"] .contact-block p,
html[lang="zh"] .contact-block a {
  font-family: var(--serif-zh);
  font-size: clamp(18px, 1.6vw, 22px);
}
.contact-block a:hover { color: var(--gold); }

.contact-foot {
  border-top: 1px solid rgba(251,247,238,0.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,247,238,0.5);
  gap: 24px;
  flex-wrap: wrap;
}
html[lang="zh"] .contact-foot { font-family: var(--sans-zh); letter-spacing: 0.1em; }

.contact-mark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: none;
}

.contact-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(251,247,238,0.08);
  color: rgba(251,247,238,0.45);
  text-transform: uppercase;
}
.contact-legal-links a {
  color: rgba(251,247,238,0.65);
  text-decoration: none;
  transition: color .25s ease;
}
.contact-legal-links a:hover { color: var(--gold); }
.contact-legal-links span { color: rgba(251,247,238,0.25); }
html[lang="zh"] .contact-legal-links { letter-spacing: 0.08em; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms ease-out, transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Slide animations are contained per-section to prevent horizontal
   overflow on mobile (translateX would otherwise extend the document
   scroll width and let iOS Safari / Chrome Android pan horizontally). */
main, section { overflow-x: clip; overflow-x: hidden; }

/* Directional slide variants */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1200ms cubic-bezier(.2,.7,.2,1), transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1200ms cubic-bezier(.2,.7,.2,1), transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1100ms cubic-bezier(.2,.7,.2,1), transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.slide-down {
  opacity: 0;
  transform: translateY(-32px);
  transition: opacity 900ms ease-out, transform 900ms cubic-bezier(.2,.7,.2,1);
}
.slide-left.in, .slide-right.in, .slide-up.in, .slide-down.in {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 340ms; }
.delay-4 { transition-delay: 460ms; }
.delay-5 { transition-delay: 580ms; }
.delay-6 { transition-delay: 700ms; }

/* Header slides down on page mount */
.site-header.boot {
  transform: translateY(-100%);
  opacity: 0;
}
.site-header.boot-in {
  transform: none;
  opacity: 1;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), opacity 600ms ease-out;
}

/* Reveal animations should respect users with reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .slide-left, .slide-right, .slide-up, .slide-down {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-primary { display: none; }
  .mobile-toggle { display: flex; }
  .hero { display: flex; flex-direction: column; gap: 28px; padding-top: 110px; }
  .hero-left { display: contents; }
  .hero-meta    { order: 1; }
  .hero h1      { order: 2; }
  .hero-sub     { order: 3; }
  .hero-right   { order: 4; aspect-ratio: 4/3; margin-top: 8px; }
  .hero-cta-row { order: 5; margin-top: 8px; }
  .firm-grid { grid-template-columns: 1fr; gap: 40px; }
  .office { padding: 70px 0; }
  .office-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    padding-left: 14px;
    padding-right: 14px;
  }
  .office-content { display: contents; }
  .office-content > .eyebrow      { order: 1; margin: 0; align-self: flex-start; text-align: left; }
  .office-content > h2            { order: 2; font-size: clamp(28px, 7.5vw, 40px); margin: 4px 0 14px; line-height: 1.15; letter-spacing: 0; word-break: break-word; overflow-wrap: anywhere; padding-right: 8px; text-align: left; }
  .office-content > p             { order: 3; margin-bottom: 16px; padding-left: 4px; padding-right: 4px; }
  .office-img-stack               { order: 4; width: 100%; aspect-ratio: 4/3; margin: 16px 0 8px; }
  .office-img-stack .accent       { right: 8px; bottom: -12px; width: 38%; border-width: 6px; }
  .office-content > .office-features { order: 5; margin-top: 8px; padding-left: 4px; }
  .partners { grid-template-columns: 1fr; gap: 56px; }
  .partner-img { aspect-ratio: 4/4; }
  .area-head { grid-template-columns: 40px 1fr 32px; gap: 14px; padding: 24px 0; }
  .area-keywords { display: none; }
  .area-body-inner { grid-template-columns: 1fr; padding: 0 0 32px 54px; gap: 32px; }
  .area-body img { max-width: 240px; }
  .team-header { flex-direction: column; align-items: flex-start; }
  .team-header h2 { max-width: 100%; }
  .firm-stats { grid-template-columns: 1fr; }
  .firm-stats .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .firm-stats .stat:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .network-list { grid-template-columns: 1fr; gap: 24px; }
  .global-network { padding: 28px; }
}

/* Ajustes adicionales para pantallas pequeñas tipo iPhone */
@media (max-width: 540px) {
  :root { --gutter: 22px; }
  .office { padding: 56px 0; }
  .office-grid {
    gap: 16px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .office-content > h2 {
    font-size: clamp(26px, 8vw, 34px);
    margin: 4px 0 12px;
    line-height: 1.18;
    padding-right: 4px;
    text-align: left;
  }
  .office-content > p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .office-content > .eyebrow { margin: 0; text-align: left; padding-left: 6px; }
  .office-content > .office-features { padding-left: 6px; }
  h1 { font-size: clamp(40px, 11vw, 64px); }
  h2 { font-size: clamp(28px, 8.5vw, 44px); }
  .firm h2, .areas h2, .contact h2, .team-header h2 { line-height: 1.18; }

  /* Sections con padding superior excesivo en mobile */
  .firm, .team, .areas, .contact { padding-top: 56px; padding-bottom: 56px; }

  /* Eyebrow alineado a la izquierda en todas las secciones, no centrado */
  .eyebrow { text-align: left; margin-left: 0; }
  .eyebrow::before { margin-left: 0; }

  /* Reducir espacio excesivo entre eyebrow y h2 */
  .firm-grid > *, .team-header > * { text-align: left; }

  /* Formulario de contacto compacto en mobile — para que phone quede a la vista */
  .contact h2 { margin-bottom: 24px; }
  .contact-form {
    padding: 22px 18px;
    margin: 0 auto 28px;
  }
  .contact-form .form-row { gap: 14px; }
  .contact-form .form-field,
  .contact-form .form-row .form-field { margin-bottom: 14px; }
  .contact-form label { margin-bottom: 6px; font-size: 10px; }
  .contact-form input,
  .contact-form textarea { padding: 11px 13px; font-size: 14px; }
  .contact-form textarea { min-height: 84px; }
  .contact-form .form-consent { margin: 4px 0 16px; font-size: 12px; }
  .contact-form .form-submit { padding: 14px 24px; font-size: 12px; }
  .contact-grid { gap: 22px; margin-bottom: 40px; }
  .contact-block h4 { margin-bottom: 10px; }
  .contact-block p,
  .contact-block a { font-size: 19px; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(-100%);
  transition: transform 500ms cubic-bezier(.6,.04,.2,1);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
html[lang="zh"] .mobile-drawer a { font-family: var(--serif-zh); font-size: 28px; }
