:root {
  --paper: #f3f0e8;
  --paper-deep: #e6e0d3;
  --ink: #172322;
  --muted: #59635e;
  --green: #002343;
  --green-light: #dce3e8;
  --gold: #c9a758;
  --line: rgba(23, 35, 34, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(0, 35, 67, .12);
  background: var(--paper);
  color: var(--ink);
}
.brand { display: block; text-decoration: none; }
.brand-logo { display: flex; width: 260px; height: 74px; align-items: center; }
.brand-logo img { display: block; width: auto; height: 62px; max-width: 100%; object-fit: contain; }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
nav a { text-decoration: none; }
.nav-cta { border-bottom: 1px solid var(--green); padding-bottom: 5px; }

.hero {
  min-height: calc(100vh - 96px);
  max-width: 1440px;
  margin: auto;
  padding: clamp(72px, 9vw, 138px) clamp(24px, 7.5vw, 110px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .6fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; width: 430px; height: 430px; right: -190px; top: 7%;
  border: 1px solid rgba(182, 138, 77, .3); border-radius: 50%; pointer-events: none;
}
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.eyebrow > span { width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(55px, 7.15vw, 104px); line-height: .91; letter-spacing: -.045em; max-width: 1040px; margin: 34px 0 30px; }
.hero-lead { color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 650px; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 20px;
  min-height: 56px; padding: 0 24px; border: 0; text-decoration: none; font: 600 13px var(--sans); cursor: pointer;
}
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #204b4b; }
.text-link { text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hero-signature { align-self: end; padding-bottom: 36px; }
.monogram {
  width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font: 58px var(--serif); color: var(--green); margin-bottom: 36px;
}
.signature-line { width: 48px; height: 1px; background: var(--gold); margin-bottom: 20px; }
.hero-signature p { font: italic 20px/1.45 var(--serif); color: var(--muted); }
.hero-signature .lawyer-name { margin: 0 0 8px; color: var(--ink); font-style: normal; font-size: 27px; }
.hero-signature .lawyer-name + p { margin-top: 0; }

.practice {
  background: var(--green); color: #f7f3ea;
  padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 1220px) / 2));
  display: grid; grid-template-columns: .8fr 1.45fr; gap: clamp(60px, 10vw, 150px);
}
.eyebrow.light { color: #b8c9c1; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1; letter-spacing: -.035em; }
.section-context { max-width: 430px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); color: #aebeb7; font-size: 14px; line-height: 1.7; }
.profile-block { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; border-top: 1px solid rgba(255,255,255,.24); padding: 22px 0 40px; }
.profile-name { margin: 0 0 7px; font: 31px/1.05 var(--serif); }
.profile-role { margin: 0; color: #94aaa1; font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .1em; }
.profile-summary { margin: 0; color: #d2dcd7; font-size: 17px; line-height: 1.65; }
.associate-profile { padding-top: 30px; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 38px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.credentials p { margin: 0; padding: 22px 20px; background: var(--green); }
.credentials strong, .credentials span { display: block; }
.credentials strong { margin-bottom: 9px; color: var(--gold); font: 29px/1 var(--serif); }
.credentials span { color: #c1cec8; font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; }
.practice-intro { color: #bdc9c3; max-width: 650px; font-size: 16px; line-height: 1.6; margin: 0 0 54px; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.practice-grid article { border-top: 1px solid rgba(255,255,255,.24); padding-top: 18px; }
.practice-grid article > span { color: #94aaa1; font-size: 11px; }
.practice-grid h3 { font-size: 27px; line-height: 1.08; margin: 28px 0 18px; }
.practice-grid p { color: #b8c8c1; font-size: 14px; line-height: 1.65; }
.method { border-top: 1px solid rgba(255,255,255,.24); margin-top: 62px; padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method p { margin: 0; }
.method strong, .method span { display: block; }
.method strong { font-size: 13px; margin-bottom: 9px; }
.method span { font: 16px/1.35 var(--serif); color: #b8c8c1; }

.intake {
  padding: clamp(84px, 10vw, 150px) max(24px, calc((100vw - 1160px) / 2));
  display: grid; grid-template-columns: .8fr 1.15fr; gap: clamp(60px, 10vw, 130px);
}
.intake-copy { position: sticky; top: 50px; align-self: start; }
.intake h2 { font-size: clamp(46px, 5vw, 70px); line-height: 1; letter-spacing: -.035em; margin: 25px 0; }
.intake-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; max-width: 420px; }
.contact-card { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: 14px; }
.contact-card p { margin: 4px 0; }
.contact-label { text-transform: uppercase; letter-spacing: .15em; font-size: 10px; color: var(--muted); margin-bottom: 12px !important; }
.contact-card a { color: var(--green); text-decoration-color: rgba(0, 35, 67, .3); text-underline-offset: 3px; }
.coverage-card { margin-top: 32px; font-size: 13px; }
.coverage-card ul { margin: 0; padding: 0; list-style: none; }
.coverage-card li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.coverage-card li::before { content: "—"; margin-right: 9px; color: var(--gold); }
.coverage-card small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.crossborder-callout { margin-top: 32px; padding: 25px; background: var(--green); color: #f7f3ea; }
.crossborder-callout .callout-label { margin: 0 0 17px; color: var(--gold); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.crossborder-callout h3 { margin: 0 0 13px; font-size: 25px; line-height: 1.08; }
.crossborder-callout > p:not(.callout-label) { margin: 0 0 20px; color: #becbc5; font-size: 12px; line-height: 1.6; }
.crossborder-callout a { color: #fff; font-size: 11px; font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.intake-form { background: #ebe6da; padding: clamp(26px, 4vw, 52px); }
.intake-form > label { display: block; margin-bottom: 30px; }
.intake-form label > span, legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 11px; }
select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid #9ea59e; border-radius: 0; background: transparent;
  color: var(--ink); padding: 13px 2px; font: 16px var(--sans); outline: none;
}
select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 2px 0 -1px var(--green); }
textarea { resize: vertical; line-height: 1.5; }
label small { display: block; text-align: right; color: var(--muted); margin-top: 5px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid #aaa99f; padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 400 !important; }
.choice input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.privacy-summary { margin: 0 0 18px; padding: 15px 17px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.38); }
.privacy-summary p { margin: 0 0 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.privacy-summary strong { color: var(--ink); }
.privacy-consent { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; row-gap: 7px; margin: 0 0 22px; align-items: start; }
.privacy-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); }
.privacy-consent label { color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-open { border: 0; padding: 0; background: none; color: var(--green); font: 600 11px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-consent .privacy-open { grid-column: 2; justify-self: start; }
.submit { width: 100%; }
.privacy-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.result { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 28px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; }
.result-heading p { font: 28px var(--serif); margin: 0; }
.result-heading button { border: 0; background: none; text-decoration: underline; cursor: pointer; }
.result pre { white-space: pre-wrap; font: 13px/1.6 var(--sans); background: rgba(255,255,255,.55); padding: 20px; margin: 20px 0; }
.button-secondary { background: transparent; border: 1px solid var(--green); color: var(--green); width: 100%; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.copy-button { display: block; margin: 15px auto 0; padding: 4px; border: 0; background: none; color: var(--muted); font: 12px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.copy-status { text-align: center; min-height: 16px; font-size: 12px; color: var(--green); }

footer {
  border-top: 1px solid var(--line); padding: 28px max(24px, calc((100vw - 1220px) / 2));
  display: flex; justify-content: space-between; color: var(--muted); font-size: 11px;
}
.footer-link { color: inherit; font-size: inherit; font-weight: 400; }
.privacy-dialog { width: min(760px, calc(100% - 28px)); max-height: min(820px, calc(100vh - 28px)); margin: auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 18, 35, .35); }
.privacy-dialog::backdrop { background: rgba(0, 24, 46, .72); backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding: 34px 38px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin: 0 0 12px; }
.dialog-header h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1; }
.dialog-close { align-self: start; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--green); font: 27px/1 var(--serif); cursor: pointer; }
.privacy-content { padding: 28px 38px 10px; }
.privacy-content h3 { margin: 30px 0 8px; color: var(--green); font-size: 13px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.privacy-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.privacy-content a { color: var(--green); }
.privacy-content .privacy-date { color: #8a5a38; font-size: 11px; }
.dialog-done { width: calc(100% - 76px); margin: 24px 38px 36px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-signature { display: none; }
  .practice, .intake { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .profile-block { grid-template-columns: 1fr; gap: 22px; }
  .credentials { grid-template-columns: 1fr; }
  .practice-intro { padding-left: 0; }
  .method { grid-template-columns: 1fr 1fr; }
  .intake-copy { position: static; }
}
@media (max-width: 580px) {
  .site-header { height: 76px; padding-inline: 16px; }
  nav > a:first-child { display: none; }
  .brand-logo { width: 170px; height: 58px; }
  .brand-logo img { width: auto; height: 48px; }
  .nav-cta { font-size: 0; }
  .nav-cta::after { content: "Valoración"; font-size: 12px; }
  h1 { font-size: 53px; }
  .hero { padding-top: 68px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .button { width: 100%; }
  .method { grid-template-columns: 1fr; }
  .intake-form { margin-inline: -8px; }
  .contact-actions { grid-template-columns: 1fr; }
  .dialog-header { padding: 25px 22px 19px; }
  .privacy-content { padding: 22px 22px 8px; }
  .dialog-done { width: calc(100% - 44px); margin: 20px 22px 28px; }
  footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
