:root {
  --paper: #f3efe5;
  --paper-2: #e8e1d2;
  --ink: #17231f;
  --ink-2: #183c31;
  --ink-3: #0e2a22;
  --gold: #b98a35;
  --gold-soft: #d5b56e;
  --gold-deep: #92691f;
  --cream: #fffdf7;
  --cream-dim: #d7ddd9;
  --muted: #65716b;
  --line: rgba(23, 35, 31, .17);
  --line-soft: rgba(23, 35, 31, .09);
  --maxw: 1240px;
  --serif: "Spectral", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

html { scroll-padding-top: 78px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}
body::before, body::after { display: none; }
.wrap { max-width: var(--maxw); }
.skip-nav {
  position: fixed; z-index: 1000; top: -80px; left: 18px;
  background: var(--cream); color: var(--ink); padding: 12px 16px;
  font-size: .85rem; font-weight: 600;
}
.skip-nav:focus { top: 18px; }
.gold-text { background: none; -webkit-text-fill-color: currentColor; color: var(--gold); }
.eyebrow {
  color: var(--gold); font-family: var(--serif); font-size: .76rem;
  font-weight: 600; letter-spacing: .2em; gap: .8em;
}
.eyebrow::before { background: var(--gold); }
.eyebrow.center::after { background: var(--gold); }

/* Header */
.topbar {
  min-height: 92px; padding: 15px 32px; color: var(--cream);
  background: linear-gradient(90deg, rgba(14,42,34,.98) 0%, rgba(14,42,34,.95) 52%, rgba(14,42,34,.90) 100%);
  border-bottom-color: rgba(213,181,110,.34);
  box-shadow: 0 10px 34px rgba(7,24,19,.16);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}
.topbar.scrolled {
  min-height: 70px; padding: 9px 32px;
  background: rgba(14, 42, 34, .985); border-bottom-color: rgba(213,181,110,.28);
  box-shadow: 0 8px 28px rgba(7,24,19,.22);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.brand { gap: 13px; }
.brand .crest { width: 52px; height: 52px; }
.brand .bn b { color: var(--cream); font-size: 1.1rem; font-weight: 500; }
.brand .bn span { color: var(--gold-soft); font-size: .58rem; letter-spacing: .34em; }
.nav { gap: 25px; }
.nav a.lnk { color: rgba(255,255,255,.9); font-size: .9rem; font-family: var(--serif); font-weight: 500; }
.nav a.lnk:hover { color: white; }
.nav a.lnk::after { background: var(--gold-soft); }
.langtog { border-color: rgba(255,255,255,.22); border-radius: 0; }
.langtog button { color: rgba(255,255,255,.6); min-width: 42px; min-height: 34px; padding: 5px 10px; }
.langtog button.active { background: var(--gold); color: var(--ink-3); }
.btn-quote { border-radius: 0; border-color: var(--gold-soft); color: white; font-size: .85rem; padding: 10px 16px; }
.btn-quote:hover { background: var(--gold); color: var(--ink-3); box-shadow: none; }

/* Hero */
.hero {
  min-height: 850px; padding: 178px 0 120px; align-items: flex-start;
  color: var(--cream); background: var(--ink-3); isolation: isolate;
}
.hero-bg { background: var(--ink-3); }
.hero-rays { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink-3) 0%, rgba(14,42,34,.94) 42%, rgba(14,42,34,.28) 70%), linear-gradient(0deg, rgba(14,42,34,.54), transparent 55%);
}
.hero .wrap { display: block; position: static; }
.hero-copy { width: min(650px, 57%); max-width: none; position: relative; z-index: 4; }
.hero-copy .eyebrow { margin-bottom: 28px; color: var(--gold-soft); opacity: 1; animation: none; }
.firmname {
  margin: 0 0 28px; color: var(--cream); font-size: clamp(3.6rem, 6.4vw, 5.9rem);
  font-weight: 500; line-height: .93; letter-spacing: -.035em;
}
.firmname .l1, .firmname .l2, .firmname .l3 { display: block; opacity: 1; animation: none; }
.hero-lead { max-width: 570px; color: rgba(255,255,255,.75); font-size: 1.17rem; line-height: 1.65; opacity: 1; animation: none; }
.hero-cta { gap: 12px; margin: 34px 0 0; }
.hero .hero-cta, .hero-stats, .hero-emblem { opacity: 1; animation: none; }
.btn { min-height: 50px; border-radius: 0; padding: 12px 22px; font-family: var(--serif); font-size: .89rem; }
.btn-gold { border-color: var(--gold); background: var(--gold); color: var(--ink-3); box-shadow: none; }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink-3); box-shadow: none; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.42); color: white; }
.btn-ghost:hover { border-color: white; background: transparent; color: white; transform: translateY(-2px); }
.hero-stats { gap: 0; margin-top: 48px; }
.hero-stats .s { min-width: 135px; padding: 0 22px 0 14px; border-left: 1px solid rgba(255,255,255,.25); }
.hero-stats .s:first-child { padding-left: 14px; }
.hero-stats .s b { color: white; font-size: 1.65rem; font-weight: 500; }
.hero-stats .s span { color: rgba(255,255,255,.55); font-size: .72rem; }
.hero-emblem {
  display: block; position: absolute; z-index: 0; inset: 0 0 0 45%;
  width: auto; height: auto; opacity: 1; overflow: hidden;
}
.hero-emblem::before, .hero-emblem::after, .hero-emblem .ring, .hero-emblem .logo-big { display: none; }
.hero-emblem picture, .hero-emblem .photo { width: 100%; height: 100%; }
.hero-emblem .photo { border: 0; border-radius: 0; object-fit: cover; box-shadow: none; filter: saturate(.82); }

/* Case finder */
.case-finder {
  display: grid; grid-template-columns: 1.05fr repeat(4, 1fr); position: relative; z-index: 8;
  margin-top: -73px; padding: 0; background: var(--cream); box-shadow: 0 24px 60px rgba(18,32,27,.14);
}
.case-intro { padding: 27px 30px; background: var(--gold); }
.case-intro > span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.case-intro h2 { margin: 8px 0 0; font-family: var(--display); font-size: 1.7rem; line-height: 1.05; font-weight: 500; }
.case-option {
  min-width: 0; padding: 25px 23px; border: 0; border-right: 1px solid var(--line);
  background: var(--cream); color: var(--ink); text-align: left; cursor: pointer;
  transition: background .25s, color .25s;
}
.case-option:last-child { border-right: 0; }
.case-option .case-no { display: block; margin-bottom: 15px; color: var(--gold); font-family: var(--display); font-size: 1.25rem; }
.case-option strong { display: block; font-family: var(--display); font-size: 1.22rem; line-height: 1.12; font-weight: 500; }
.case-option small { display: block; margin-top: 7px; color: var(--muted); font-family: var(--serif); line-height: 1.4; }
.case-option:hover, .case-option:focus-visible { outline: 0; background: var(--ink-2); color: white; }
.case-option:hover small, .case-option:focus-visible small { color: rgba(255,255,255,.65); }
.strip { display: none; }

/* Shared sections */
.sec { padding: 120px 0; border-top: 0; background: var(--paper); color: var(--ink); }
.sec::before { display: none; }
.sec-head { max-width: none; display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; margin-bottom: 58px; }
.sec-head .eyebrow { grid-row: 1 / 3; margin-top: 10px; }
.sec-head h2, .about-text h2, .process-head h2 {
  margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(2.8rem, 4.6vw, 4.1rem);
  line-height: 1; letter-spacing: -.025em; font-weight: 500;
}
.sec-head p { max-width: 590px; margin: 20px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.sec-head.center { max-width: none; text-align: left; }
.sec-head.center .eyebrow { justify-self: start; }
.sec-head.center .eyebrow::after { display: none; }

/* Practices */
#servicios { padding-top: 140px; }
#servicios .sec-head h2::before { content: "Experiencia para las decisiones que más importan."; font-size: inherit; }
#servicios .sec-head h2 { font-size: 0; }
#servicios .sec-head h2::before { font-size: clamp(2.8rem, 4.6vw, 4.1rem); }
html[lang="en"] #servicios .sec-head h2::before { content: "Experience for the decisions that matter most."; }
.svc-list { display: block; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 68px .82fr 1.18fr; gap: 24px; align-items: center;
  min-height: 120px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.svc::before { display: none; }
.svc:hover { background: transparent; }
.svc .no { position: static; color: var(--gold); font-family: var(--display); font-size: 1.05rem; }
.svc-h { gap: 0; }
.svc .ic { display: none; }
.svc h3 { color: var(--ink); font-family: var(--display); font-size: 1.75rem; line-height: 1.12; font-weight: 500; }
.svc p { max-width: 640px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* Process */
.process { background: var(--paper-2); }
.process-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; margin-bottom: 55px; }
.process-head .eyebrow { margin-top: 10px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step { min-height: 265px; padding: 32px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step > span {
  display: block; color: var(--gold); font-family: var(--display);
  font-size: clamp(3.2rem, 4vw, 4.35rem); font-weight: 500; line-height: .82;
  letter-spacing: -.04em;
}
.process-step h3 { margin: 46px 0 12px; color: var(--ink); font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.process-step p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }

/* Firm */
#firma { padding: 0; background: var(--ink-2); color: white; }
#firma .wrap { max-width: none; padding: 0; }
#firma .split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.about-card {
  min-height: 690px; display: flex; flex-direction: column; justify-content: flex-end; position: relative;
  padding: 55px; border: 0; border-radius: 0; overflow: hidden;
  background: linear-gradient(0deg, rgba(14,42,34,.88), rgba(14,42,34,.05) 65%), url("assets/hero-library-1200.webp") center / cover;
  box-shadow: none;
}
.about-card::before { content: "35"; position: absolute; left: 35px; bottom: -60px; color: rgba(255,255,255,.13); font-family: var(--display); font-size: 16rem; line-height: 1; }
.about-card .yrs-wrap, .about-card hr, .about-card .about-feats { position: relative; z-index: 2; }
.about-card .yrs { color: white; font-size: 5.7rem; }
.about-card .yrs-sub { color: rgba(255,255,255,.72); }
.about-card hr { border-color: rgba(255,255,255,.2); }
.about-feats { display: none; }
.about-text { display: flex; flex-direction: column; justify-content: center; padding: 90px 8vw; }
.about-text .eyebrow { color: var(--gold-soft); }
.about-text h2 { color: white; max-width: 620px; }
.about-text p { max-width: 580px; color: rgba(255,255,255,.68); font-size: .98rem; line-height: 1.75; }
.about-text .btn-gold { color: var(--ink-3); }

/* Offices */
#sedes .sec-head { margin-bottom: 48px; }
.loc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loc { min-height: 178px; padding: 28px 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.loc:last-child { border-right: 0; }
.loc:hover { background: var(--ink-2); transform: none; }
.loc .flag { font-size: 1.25rem; }
.loc h4 { margin-top: 35px; color: var(--ink); font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.loc p { color: var(--muted); }
.loc:hover h4 { color: white; }
.loc:hover p { color: rgba(255,255,255,.6); }
.trust-band { display: none; }

/* FAQ */
#faq { background: var(--paper-2); }
.faq-list { max-width: 900px; margin: 0 0 0 auto; }
.faq-list details { border-bottom-color: var(--line); }
.faq-list summary { color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.faq-list summary::after { color: var(--gold); }
.faq-list summary:hover { color: var(--gold-deep); }
.faq-list .fq-a { color: var(--muted); }

/* Contact */
.contact { background: var(--gold); color: var(--ink); }
.contact .sec-head h2 { color: var(--ink); }
.contact .sec-head .eyebrow { color: var(--ink-2); }
.contact .sec-head .eyebrow::before { background: var(--ink-2); }
.contact .sec-head p { color: rgba(23,35,31,.72); }
.contact-grid { gap: 60px; }
.contact-pitch { padding: 12px 0; }
.cp-quote { color: var(--ink); font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.05; }
.cp-lead { color: rgba(23,35,31,.72); }
.cp-points { border-top-color: rgba(23,35,31,.2); }
.cp-points li { border-bottom-color: rgba(23,35,31,.2); }
.cp-n { color: var(--ink); }
.cp-t { color: rgba(23,35,31,.65); }
.form { border: 0; border-radius: 0; background: var(--cream); box-shadow: 0 20px 60px rgba(18,32,27,.13); }
.field label, .field-label { color: var(--ink); }
.field input, .field select, .field textarea { border-color: var(--line); border-radius: 0; background: white; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #87908c; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(185,138,53,.13); }
.wa-pick button { border-color: var(--line); color: var(--muted); }
.wa-pick button:hover { border-color: var(--gold); color: var(--ink); }
.wa-pick button.active { border-color: var(--ink-2); background: var(--ink-2); color: white; }
.btn-wa { border-color: #176b3b; background: #176b3b; color: white; box-shadow: none; }
.btn-wa:hover { background: #125932; box-shadow: none; }
.form-actions .btn-gold { background: var(--gold); color: var(--ink); }
.note { color: var(--muted); }

/* Footer and floating contact */
footer { background: #0c1d18; border-top: 0; color: white; }
.foot-brand p, .foot-col a, .foot-bottom { color: rgba(255,255,255,.55); }
.foot-col h5 { color: var(--gold-soft); }
.foot-col a:hover { color: white; }
.foot-bottom { border-top-color: rgba(255,255,255,.13); }
.wa-float { background: var(--gold); box-shadow: 0 10px 30px rgba(14,42,34,.25); }
.wa-float svg { fill: var(--ink-3); }
.wa-menu { border-color: var(--line); background: var(--cream); }
.wa-menu a { border-bottom-color: var(--line-soft); }
.wa-menu a:hover { background: var(--paper); }
.wm-l { color: var(--ink); }
.wm-n { color: var(--muted); }
.drawer { background: var(--ink-3); }

/* Focus and motion */
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--gold-soft); }

@media (max-width: 1180px) {
  .nav { gap: 17px; }
  .nav a.lnk { font-size: .82rem; }
  .case-finder { margin-inline: 24px; width: calc(100% - 48px); }
}

@media (max-width: 980px) {
  .topbar { min-height: 78px; padding: 12px 24px; }
  .topbar.scrolled { padding: 9px 24px; }
  .nav .lnk, .nav .langtog, .nav .btn-quote { display: none; }
  .menu-btn { display: block !important; flex: none; width: 44px; height: 44px; padding: 8px; position: relative; z-index: 2; }
  .hero { min-height: 820px; padding-top: 150px; }
  .hero-emblem { left: 35%; }
  .hero-copy { width: 72%; }
  .case-finder { grid-template-columns: 1fr 1fr; margin-top: -58px; }
  .case-intro { grid-column: 1 / -1; }
  .case-option { border-bottom: 1px solid var(--line); }
  .sec-head, .process-head { grid-template-columns: .5fr 1.5fr; }
  #firma .split { grid-template-columns: .82fr 1.18fr; }
  .about-text { padding: 75px 6vw; }
  .contact-grid { gap: 38px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 65px; }
  .wrap { padding-inline: 18px; }
  .topbar { min-height: 70px; padding: 10px 16px; }
  .topbar .brand .crest { width: 42px; height: 42px; }
  .brand .bn b { font-size: .96rem; }
  .brand .bn span { font-size: .5rem; }
  .hero { min-height: 840px; padding: 130px 0 125px; }
  .hero::after { background: linear-gradient(90deg, rgba(14,42,34,.94), rgba(14,42,34,.4)), linear-gradient(0deg, rgba(14,42,34,.92), transparent 60%); }
  .hero-emblem { inset: 0; opacity: .5; }
  .hero-copy { width: 100%; }
  .hero-copy .eyebrow { margin-bottom: 23px; letter-spacing: .13em; }
  .firmname { font-size: clamp(2.75rem, 13vw, 3.5rem); line-height: .96; }
  .hero-lead { font-size: 1rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 0; }
  .hero-stats .s { min-width: 0; flex: 1; padding: 0 8px; }
  .hero-stats .s b { font-size: 1.35rem; }
  .hero-stats .s span { font-size: .62rem; line-height: 1.25; }
  .case-finder { width: calc(100% - 32px); margin-inline: 16px; margin-top: -48px; }
  .case-intro { padding: 22px 18px; }
  .case-intro h2 { font-size: 1.5rem; }
  .case-option { padding: 20px 16px; }
  .case-option strong { font-size: 1.05rem; }
  .case-option small { display: none; }
  .sec { padding: 82px 0; }
  #servicios { padding-top: 92px; }
  .sec-head, .process-head { display: block; margin-bottom: 38px; }
  .sec-head .eyebrow, .process-head .eyebrow { display: inline-flex; margin: 0 0 20px; }
  .sec-head h2, .about-text h2, .process-head h2 { font-size: 2.65rem; }
  .sec-head p { font-size: .93rem; }
  .svc { grid-template-columns: 36px 1fr; gap: 10px; min-height: 94px; padding: 18px 0; }
  .svc h3 { font-size: 1.45rem; }
  .svc p { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .process-step > span { font-size: 3.25rem; }
  .process-step h3 { margin-top: 26px; }
  #firma .split { grid-template-columns: 1fr; }
  .about-card { min-height: 360px; padding: 35px 24px; }
  .about-card::before { font-size: 10rem; bottom: -38px; }
  .about-text { padding: 70px 22px; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc { min-height: 92px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; padding: 16px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .loc:last-child { border-bottom: 0; }
  .loc h4 { margin: 0; font-size: 1.35rem; }
  .loc p { margin: 0; }
  .faq-list summary { font-size: 1.22rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .form .row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .firmname .l3 { animation: none; opacity: 1; }
}
