:root {
  --header-height: 138px;
  --wine: #33151b;
  --deep-wine: #281015;
  --paper: #faf9f6;
  --cream: #eeebe5;
  --ink: #262322;
  --muted: #544f4b;
  --accent: #664039;
  --gold: #cbb99f;
  --line: #ded9d0;
  --heading: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #a46f52; outline-offset: 4px; }
img { display: block; width: 100%; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: -.027em; line-height: 1.13; margin: 0; }
h1 { font-size: clamp(2.8rem, 5vw, 5.3rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.55rem); }
h3 { font-size: clamp(1.55rem, 2vw, 2.2rem); }
h4 { margin: 1.35rem 0 .34rem; color: var(--wine); font-size: .95rem; }
p { margin: 0; }
p, .case-list li, .home-lawyer-uses dd, .legal-prose dd { text-align: justify; hyphens: auto; }
h2 + p, h3 + p { margin-top: .75rem; }
.container { width: min(1280px, 100% - 112px); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.skip { position: fixed; top: .5rem; left: 1rem; padding: .5rem 1rem; background: white; transform: translateY(-160%); z-index: 4; }
.skip:focus { transform: translateY(0); }

.header { background: var(--paper); position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: .55rem; }
.header-search-button:not([hidden]) { display: inline-flex; }
.header-search-button {
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--wine);
  font-size: .9rem;
  font-weight: 700;
}
.header-search-button:hover { background: var(--cream); }
.search-icon {
  position: relative;
  width: .85rem;
  height: .85rem;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  margin-right: .15rem;
}
.search-icon::after {
  position: absolute;
  content: "";
  left: 100%;
  top: 100%;
  width: .36rem;
  height: 1.6px;
  transform: translate(-.1rem, -.1rem) rotate(45deg);
  transform-origin: left center;
  background: currentColor;
}
.global-search {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--surface-radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 65px #2d161c38;
}
.global-search::backdrop { background: #23191bd4; }
.global-search-content { padding: clamp(1rem, 3vw, 1.9rem); }
.global-search-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.global-search-heading h2 { color: var(--wine); font-size: clamp(1.55rem, 4vw, 2.4rem); }
.global-search-close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--wine);
  background: var(--paper);
  font-size: 1.45rem;
}
.global-search-close:hover { background: var(--cream); }
.global-search-status { margin: .7rem 0 .2rem; font-size: .9rem; color: var(--muted); }
.global-search-results {
  list-style: none;
  margin: .5rem 0 0;
  padding: .15rem .25rem .25rem;
  max-height: min(52dvh, 28rem);
  overflow: auto;
}
.global-search-results:empty { display: none; }
.global-search-results li + li { border-top: 1px solid var(--line); }
.global-search-results a {
  display: grid;
  gap: .15rem;
  padding: .65rem .35rem;
  border-radius: .35rem;
  color: var(--wine);
  text-decoration: none;
}
.global-search-results a:is(:hover, :focus-visible) { background: var(--cream); }
.global-search-results a:focus-visible { outline-offset: -2px; }
.global-search-result-type { color: var(--accent); font-size: .73rem; font-weight: 700; }
.global-search-result-description { color: var(--muted); font-size: .85rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.15; text-decoration: none; flex-shrink: 0; }
.brand strong { display: block; font: 500 1.12rem var(--heading); color: var(--wine); }
.brand small { display: block; margin-top: .27rem; font-size: .59rem; font-weight: 700; letter-spacing: .18em; }
#nav { display: flex; align-items: center; gap: clamp(.85rem, 1.75vw, 1.8rem); }
#nav > a, .services-menu > summary, .header-button { white-space: nowrap; }
#nav > a, .services-menu > summary { font-size: 1.16rem; font-weight: 650; text-decoration: none; padding: 11px 0; }
#nav > a:hover, #nav > a[aria-current], .services-menu > summary:hover, .services-menu > summary[aria-current] { color: var(--wine); text-decoration: underline; text-decoration-color: #886960; text-underline-offset: 7px; }
#nav > .language-switch {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .45rem;
  min-height: 44px;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--wine);
  font-size: .85rem;
  line-height: 1.3;
}
#nav > .language-switch:hover { background: var(--cream); text-decoration: none; }
.language-switch img {
  width: 24px;
  height: 16px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0002;
}
.brand-logo { width: 152px; height: auto; mix-blend-mode: multiply; }
.menu-toggle { display: none; }
.services-menu > summary { cursor: pointer; list-style: none; }
.services-menu > summary::-webkit-details-marker { display: none; }
.services-menu > summary span { margin-left: .18rem; }
.services-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(900px, calc(100vw - 40px));
  transform: translateX(-50%);
  padding: 1.35rem 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wine);
  box-shadow: 0 16px 28px #2623221a;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
}
.service-menu-shortcuts { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; }
.menu-index { color: var(--wine); font-size: .93rem; font-weight: 700; }
.nav-service-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.nav-group-label { display: block; color: var(--wine); font-size: .78rem; font-weight: 700; }
.nav-service-groups ul { padding: 0; margin: .4rem 0 0; list-style: none; }
.nav-service-groups a { display: block; padding: .25rem 0; font-size: .87rem; text-decoration: none; }
.nav-service-groups a:hover, .nav-service-groups a:focus-visible { text-decoration: underline; color: var(--wine); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: .84rem 1.22rem; min-height: 47px; border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: .87rem; line-height: 1.3; transition: background-color .18s, color .18s; }
.button span, .text-link span { font-size: 1.16em; }
.primary, .header-button { color: white; background: var(--wine); }
.primary:hover, .header-button:hover { background: #51262a; }
.light { color: var(--deep-wine); background: #eee8dc; }
.light:hover { background: #fffafa; }

.eyebrow { text-transform: uppercase; font-size: .70rem; letter-spacing: .19em; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.home-hero { display: grid; grid-template-columns: 53% 47%; background: var(--wine); color: var(--paper); }
.hero-copy { align-self: center; padding: clamp(2.55rem, 4.1vw, 4.4rem) clamp(2rem, 5vw, 5.3rem) clamp(2.55rem, 4.1vw, 4.4rem) max(56px, calc((100vw - 1280px) / 2)); }
.hero-copy h1 { max-width: 100%; font-size: clamp(2.65rem, 3.6vw, 3.75rem); line-height: 1.08; text-align: left; }
.hero-copy h1 span { display: block; }
.hero-copy h1 em { color: #d2c4ac; font-weight: 400; }
.hero-copy p { max-width: 42ch; color: #ede6de; margin-top: 1.1rem; }
.hero-image { min-height: 100%; position: relative; overflow: hidden; }
.hero-image img { height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.actions { display: flex; align-items: center; gap: 1.55rem; flex-wrap: wrap; margin-top: 1.45rem; }
.hero-contact { font-size: .9rem; font-weight: 600; }
.hero-contact span { margin-left: .3rem; }

.section-header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.3rem; margin-bottom: 2rem; }
.section-header .eyebrow, .office-band .eyebrow { margin-bottom: .55rem; }
.text-link { color: var(--wine); text-decoration: none; display: inline-block; font-size: .89rem; font-weight: 700; border-bottom: 1px solid #a07b70; padding-block: .2rem; }
.text-link:hover { color: #683a37; border-color: currentColor; }
.text-link span { margin-left: .45rem; }
.home-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.home-service-group { background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--wine); padding: clamp(1rem, 2vw, 1.5rem); }
.home-service-group h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.home-service-group ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.home-service-group li { border-top: 1px solid var(--line); }
.home-service-group a { display: flex; align-items: baseline; min-height: 44px; justify-content: space-between; gap: .7rem; padding-block: .65rem; color: var(--wine); font-size: .92rem; text-decoration: none; }
.home-service-group h3 a { padding-block: 0; min-height: 0; font: inherit; line-height: 1.13; }
.home-service-group h3 a span { font: 650 .67em var(--body); }
.home-service-group a:hover { text-decoration: underline; }
.home-service-group a span { flex-shrink: 0; }
.home-lawyer-uses { margin: 1.3rem 0 0; }
.home-lawyer-uses dt { padding-top: .72rem; margin-top: .72rem; border-top: 1px solid #d4c9bf; color: var(--wine); font-weight: 700; }
.home-lawyer-uses dd { margin: .25rem 0 0; }
.judicial-courthouse { margin: 0; overflow: hidden; border: 1px solid #705155; background: #241419; }
.judicial-service-hero .judicial-courthouse img { width: 100%; aspect-ratio: 1.18; object-fit: cover; }
.judicial-courthouse figcaption { margin-top: .55rem; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.judicial-courthouse figcaption a { color: var(--wine); }
.judicial-service-hero .judicial-courthouse figcaption { padding: .65rem .8rem .8rem; margin: 0; color: #e8dfd6; }
.judicial-service-hero .judicial-courthouse figcaption a { color: #dec49d; }
.judicial-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.judicial-example-grid > li { padding: 1rem; border: 1px solid var(--line); border-top: 3px solid #795048; background: var(--paper); }
.judicial-example-grid h3 { color: var(--wine); font-size: clamp(1.16rem, 1.55vw, 1.42rem); font-weight: 700; line-height: 1.15; }
.judicial-example-grid p { margin-top: .5rem; color: var(--muted); font-size: .87rem; }
@media (max-width: 1040px) { .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-services-grid { grid-template-columns: 1fr; } }
.office-band { background: var(--cream); padding-block: clamp(3rem, 6vw, 5.5rem); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.35rem, 6vw, 6.2rem); }
.office-grid p { max-width: 62ch; }
.office-grid .text-link { margin-top: 1.1rem; }
.cta { background: var(--wine); color: var(--paper); }
.cta-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding-block: clamp(2.7rem, 5vw, 4.7rem); }
.cta p { color: #ede6de; }
.cta .button { flex-shrink: 0; }
.footer { background: #231015; color: #f6f1e9; padding-top: clamp(2.6rem, 5vw, 4rem); font-size: .9rem; border-top: 3px solid #161313; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.15fr .8fr; gap: clamp(1.5rem, 4vw, 4.3rem); padding-bottom: 2.65rem; }
.footer-grid h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .85rem; }
.footer-grid .footer-name { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: .35rem; }
.footer-name a { text-decoration: none; }
.footer-office { color: #e4d4bb; margin-bottom: .45rem; }
.footer-grid p { color: #dfd6d0; }
.footer-button { background: #161313; border-color: #65524d; color: #f6f1e9; margin-top: 1rem; }
.footer-button:hover { background: #3b2628; }
.footer-contact { margin: 0 0 .7rem; }
.footer-contact dt { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d6c0a1; }
.footer-contact dd { margin: 0 0 .48rem; }
.footer-links { display: grid; align-content: start; gap: .5rem; }
.footer a { overflow-wrap: anywhere; }
.footer a:hover { color: #ead8b8; }
.footer-whatsapp { color: #e4d4bb; font-weight: 700; }
.footer-base { background: #161313; border-top: 1px solid #4b3939; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.5rem; color: #e0d9d3; padding-block: 1rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; }

.subhero { background: var(--wine); color: var(--paper); padding-block: clamp(3rem, 6vw, 5.5rem); }
.subhero .eyebrow { color: var(--gold); }
.subhero p, .detail-hero p { max-width: 57ch; margin-top: 1.15rem; }
.subhero p { color: #ede6de; }
.service-index { padding-block: 1.6rem 5rem; }
.categories { display: flex; flex-wrap: wrap; gap: .55rem; padding-block: .3rem 1rem; }
.categories a { font-size: .86rem; text-decoration: none; color: var(--wine); border: 1px solid #d5c1bf; padding: .53rem .85rem; font-weight: 600; }
.categories a:hover { background: var(--cream); }
.service-group { padding-top: 2.9rem; scroll-margin-top: 1.2rem; }
.service-group h2 { margin-bottom: 1.45rem; padding-left: .85rem; border-left: 5px solid var(--wine); font-weight: 600; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { scroll-margin-top: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--wine); background: #fdfcf9; }
.service-featured { margin-top: .65rem; }
.service-content { padding: 1.45rem clamp(1rem, 2.6vw, 2.4rem) 1.85rem; flex: 1; display: flex; flex-direction: column; align-items: start; }
.service-content h3 { color: var(--wine); font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 700; line-height: 1.04; }
.case-list { padding-left: 1.15rem; }
.case-list li + li { margin-top: .4rem; }
.case-list li::marker { color: #83544a; }
.service-content h3 a { text-decoration: none; }
.service-content h3 a:hover { text-decoration: underline; }
.service-content p { font-size: .95rem; color: var(--muted); }
.service-content .text-link { margin-top: auto; }
.service-content p:last-of-type { margin-bottom: 1.15rem; }
.detail-hero { background: var(--cream); padding-block: clamp(2.5rem, 5vw, 4.7rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: center; gap: clamp(1.4rem, 6vw, 6rem); }
.detail-grid.section { align-items: start; }
.detail-hero img { aspect-ratio: 1.45; object-fit: cover; }
.detail-hero .back { margin-bottom: 1.55rem; }
.prose > p { max-width: 68ch; margin-block: 1rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose h2:not(:first-child) { margin-top: 2rem; }
.prose .button { margin-top: 1rem; }
.case-list { margin-top: 1rem; }
.related { border: 1px solid var(--line); padding: 1.7rem; background: var(--cream); }
.related h2 { font-size: 1.8rem; }
.related ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.related a:not(.button) { color: var(--wine); display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid #d9cbc1; text-decoration: none; }
.related a:not(.button):hover { text-decoration: underline; }
.steps > div + div { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.contact-grid h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
.contact-info dt { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-top: 1rem; }
.contact-info dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.contact-info img { margin-top: 1.5rem; max-height: 230px; object-fit: cover; }
.form-panel { background: #fdfcf9; border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.6rem); }
form label { font-weight: 700; display: block; margin: 1.12rem 0 .38rem; font-size: .9rem; }
form input, form select, form textarea { width: 100%; border: 1px solid #bbacaa; background: #fff; color: var(--ink); border-radius: 0; padding: .55rem .7rem; min-height: 44px; }
form textarea { resize: vertical; }
.form-note, #form-status { color: var(--muted); font-size: .85rem; margin-block: .82rem; }
#form-status:empty { display: none; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 68px); }
  .hero-copy { padding-left: 34px; }
  .header-inner { gap: 12px; }
  #nav { gap: 1rem; }
}
@media (min-width: 1021px) and (max-width: 1390px) {
  .header-inner { gap: 14px; }
  .brand-logo { width: 128px; }
  #nav { gap: clamp(.6rem, 1.15vw, 1rem); }
  #nav > a:not(.language-switch), .services-menu > summary { font-size: 1rem; }
}
@media (max-width: 1390px) {
  .header-button { display: none; }
}
@media (max-width: 1020px) {
  :root { --header-height: 110px; }
  .menu-toggle { display: inline-flex; gap: .4rem; align-items: center; background: transparent; color: var(--wine); border: 1px solid #bda7a7; font-weight: 700; font-size: 1.06rem; padding: .55rem .8rem; }
  #nav { display: none; }
  .brand-logo { width: 120px; }
  #nav.open { display: grid; gap: .35rem; position: absolute; inset: 100% 0 auto; padding: .65rem 20px 1rem; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .services-menu > summary { display: block; }
  .services-popover { position: static; max-height: none; width: auto; transform: none; margin-block: .25rem .55rem; padding: .8rem; box-shadow: none; }
  .nav-service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .nav-service-groups a { padding-block: .35rem; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.25rem 20px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 8.2vw, 3.7rem); }
  .judicial-service-hero .detail-grid { grid-template-columns: 1fr; }
  .judicial-service-hero .judicial-courthouse img { aspect-ratio: 1.7; }
  .hero-image { min-height: 0; height: clamp(190px, 48vw, 310px); }
  .service-grid, .office-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .cta-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 410px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .brand strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.detail-jumps { margin-top: 1.15rem; padding-block: 0; }
.detail-jumps a { background: var(--paper); }
.detail-jumps a:hover { background: #fff; border-color: var(--accent); }
.detail-jumps span { margin-left: .35rem; }
.detail-topics { padding-top: clamp(2.8rem, 5vw, 4.75rem); }
.topics { scroll-margin-top: 1.25rem; }
.topics + .topics { margin-top: clamp(2.6rem, 5vw, 4.75rem); }
.topics h2 { font-size: clamp(2rem, 3.5vw, 3.05rem); margin-bottom: 1.2rem; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-grid li {
  background: #fdfcf9;
  border: 1px solid var(--line);
  border-left: 3px solid #a07b70;
  padding: clamp(1.05rem, 2vw, 1.65rem);
}
.topic-grid h3 { font-size: clamp(1.32rem, 2vw, 1.85rem); }
.topic-grid p { margin-top: .6rem; font-size: .94rem; color: var(--muted); }
.topics:first-child .topic-grid li { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.topics:first-child .topic-grid p { color: #ede6de; }
@media (max-width: 820px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr; }
  .judicial-example-grid { grid-template-columns: 1fr; }
}

.rental-guide {
  background: var(--cream);
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-block: clamp(2.7rem, 6vw, 5.25rem);
  scroll-margin-top: 1rem;
}
.rental-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: start;
}
.rental-guide h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
.guide-intro { margin-top: .9rem; }
.guide-intro p + p { margin-top: .8rem; }
.guide-sections section {
  margin-top: 1.35rem;
  padding-top: 1.3rem;
  border-top: 1px solid #d9cbc1;
}
.guide-button {
  border-color: #a07b70;
  color: var(--wine);
  background: var(--paper);
  margin-top: .9rem;
}
.guide-button:hover { background: var(--wine); color: var(--paper); }
.rental-faq { padding: clamp(1.1rem, 2.8vw, 2rem); border: 1px solid var(--line); background: var(--paper); }
.rental-faq > h3 { margin-bottom: .85rem; }
.rental-faq details { padding-block: .85rem; border-top: 1px solid var(--line); }
.rental-faq summary { cursor: pointer; font-weight: 700; color: var(--wine); }
.rental-faq details p { margin-top: .65rem; color: var(--muted); }
.guide-references { border-top: 1px solid var(--line); margin-top: .25rem; }
.guide-references h4 { margin-top: .85rem; }
.guide-references ul { margin: .35rem 0 0; padding-left: 1rem; font-size: .85rem; }
.guide-references li + li { margin-top: .25rem; }
.defense-subheading { margin-top: .7rem; font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
@media (max-width: 760px) {
  .rental-guide-grid { grid-template-columns: 1fr; }
}

.property-band {
  background: #f4f1eb;
  border-block: 1px solid var(--line);
  padding-block: clamp(3.2rem, 6vw, 5.75rem);
}
.property-heading { margin-bottom: 1.45rem; }
.property-heading p { color: var(--muted); }
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.property-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1rem, 2vw, 1.65rem);
  border: 1px solid var(--line);
  border-top: 3px solid #8d665c;
  background: var(--paper);
}
.property-card h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.property-card p { margin-bottom: .95rem; color: var(--muted); font-size: .93rem; }
.property-card p:last-child { margin-bottom: 0; }
.property-card .text-link { margin-top: auto; }
.property-legal { margin-top: clamp(2.8rem, 5vw, 4.8rem); }
.property-legal > h2 { margin-bottom: 1.4rem; font-size: clamp(1.9rem, 3.6vw, 3.05rem); }
.property-legal .property-card { border: 0; border-top: 1px solid #cdbbb2; background: transparent; padding-inline: .1rem .8rem; }
.property-reach {
  display: grid;
  grid-template-columns: 1fr .6fr;
  align-items: center;
  gap: 1.3rem clamp(1rem, 6vw, 4rem);
  margin-top: clamp(2.2rem, 5vw, 4.5rem);
  padding: clamp(1.35rem, 4vw, 3.1rem);
  background: var(--wine);
  color: var(--paper);
}
.property-geography { color: var(--gold); font-size: .81rem; font-weight: 700; letter-spacing: .045em; margin-bottom: .55rem; }
.property-reach p { color: #ede6de; }
@media (max-width: 1000px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .property-grid, .property-reach { grid-template-columns: 1fr; }
}

.service-hero h1 { font-size: clamp(2.7rem, 5.15vw, 5.2rem); }
.judicial-service-hero { background: linear-gradient(120deg, var(--wine), #4a292c); color: var(--paper); }
.judicial-service-hero .container { max-width: 1060px; }
.judicial-service-hero .eyebrow { color: var(--gold); }
.judicial-service-hero .back { color: var(--paper); border-bottom-color: var(--gold); }
.judicial-service-hero .service-hero-copy > p { max-width: 70ch; color: #eee6df; margin-top: 1rem; }
.judicial-service-hero .service-hero-copy { padding-block: .5rem; }
.judicial-situations { margin-bottom: 2rem; }
.judicial-situations > h2 { margin: .35rem 0 1.2rem; font-size: clamp(1.85rem, 3vw, 2.65rem); }
.judicial-situations > .eyebrow { margin-bottom: .25rem; }
.service-hero-reverse .detail-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
.service-hero-reverse .photo { grid-column: 1; grid-row: 1; }
.service-hero-reverse .service-hero-copy { grid-column: 2; grid-row: 1; }
.service-hero-wide { background: linear-gradient(var(--cream) 70%, var(--paper) 70%); padding-bottom: 0; }
.service-hero-wide .detail-grid { grid-template-columns: 1fr; gap: clamp(1.55rem, 4vw, 3rem); }
.service-hero-wide .photo { aspect-ratio: 3.25; }
.service-hero-stack { background: #e6e0d6; }
.service-hero-stack .detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .65fr); gap: clamp(1.4rem, 5vw, 4rem); }
.service-hero-stack .photo { aspect-ratio: 1.17; }
.service-details .prose section + section, .service-wide-grid .prose section + section { margin-top: 2.05rem; }
.service-details .prose p, .service-wide-grid .prose p { max-width: 65ch; }
.service-docs {
  background: var(--cream);
  border-left: 3px solid #886257;
  padding: clamp(1.1rem, 3vw, 1.9rem);
}
.service-docs h2 { font-size: clamp(1.48rem, 2.3vw, 2.05rem); }
.service-side { display: grid; gap: 1.15rem; }
.service-side .related { background: #f1ede6; }
.service-secondary { aspect-ratio: 1.8; object-fit: cover; }
.service-wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.service-wide-body .service-cases { margin-bottom: clamp(2rem, 5vw, 4.4rem); }
.service-wide-body .service-cases .case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  padding: 0;
  list-style: none;
}
.service-wide-body .service-cases li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-top: 3px solid #78584d;
  background: #f4f0e9;
}
.service-stack-body .service-cases .case-list { max-width: 75ch; }
.service-stack-body .service-cases li { padding-block: .48rem; border-bottom: 1px solid var(--line); }
.service-stack-middle { display: grid; gap: 1rem; margin-block: clamp(1.5rem, 3.5vw, 2.85rem); }
.service-stack-middle:has(.service-secondary) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.service-stack-middle .service-docs { display: grid; align-content: center; }
.service-cases h2, .service-help h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.related { border-top: 3px solid #78584d; }
.news-hero p { max-width: 60ch; margin-top: .8rem; }
.news-search { max-width: 46rem; margin-bottom: clamp(1.4rem, 3vw, 2.5rem); }
.news-search label { margin-top: 0; color: var(--wine); font-size: 1.05rem; }
.news-search-controls { display: flex; gap: .65rem; }
.news-search-controls input { flex: 1; min-width: 0; width: auto; }
.news-search-clear {
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--wine);
  font-size: .85rem;
  font-weight: 650;
}
.news-search-clear:hover { background: var(--cream); }
.news-search-status { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.news-search-status:empty { margin: 0; }
.news-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.85rem);
}
.news-feature {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.news-feature[hidden] { display: none; }
.news-card-link { display: flex; flex-direction: column; width: 100%; text-decoration: none; }
.news-card-link:focus-visible { outline-offset: -3px; }
.news-feature img { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.news-card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(.9rem, 2vw, 1.45rem); }
.news-card-copy h2 {
  font: 650 clamp(1.35rem, 2vw, 1.85rem)/1.1 Baskervville, Baskerville, Georgia, serif;
  color: var(--wine);
  text-wrap: balance;
}
.news-card-copy p { margin: .6rem 0 1rem; color: var(--muted); font-size: .91rem; }
.news-card-copy .news-meta { font-size: .74rem; line-height: 1.35; }
.news-read { margin-top: auto; color: var(--wine); font-size: .82rem; font-weight: 700; }
.news-card-link:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 940px) { .news-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .news-index { grid-template-columns: 1fr; }
  .news-search-controls { flex-wrap: wrap; }
  .news-search-controls input { flex-basis: 100%; }
}
.news-meta { color: var(--accent); font-size: .85rem; font-weight: 700; margin-bottom: .65rem; }
.news-hero { padding-block: clamp(2.65rem, 6vw, 5rem); background: var(--cream); }
.news-hero .news-meta { margin-top: 1.2rem; }
.news-hero h1 { max-width: 21ch; }
.news-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: clamp(1.2rem, 6vw, 5rem); align-items: start; }
.legal-prose { max-width: 820px; }
.legal-prose h2 { line-height: 1.2; }
.legal-identity { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.2rem; }
.legal-identity dt { font-weight: 700; }
.legal-identity dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .service-hero-reverse .detail-grid, .service-hero-stack .detail-grid, .service-wide-grid,
  .service-stack-middle:has(.service-secondary), .news-body { grid-template-columns: 1fr; }
  .service-hero-reverse .photo, .service-hero-reverse .service-hero-copy { grid-column: auto; grid-row: auto; }
  .service-hero-wide .photo { aspect-ratio: 1.85; }
  .service-hero-stack .photo { aspect-ratio: 1.45; }
  .service-wide-body .service-cases .case-list { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .legal-identity { grid-template-columns: 1fr; }
  .legal-identity dd + dt { margin-top: .35rem; }
}

@media print {
  .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .home-service-group { break-inside: avoid; padding: .65rem .8rem; border-top-color: #33151b; }
  .home-service-group h3 { font-size: 1.15rem; }
  .home-service-group ul { margin-top: .4rem; }
  .home-service-group a { min-height: 0; padding-block: .2rem; }
}

.court-process ol { margin: .9rem 0 0; padding-inline-start: 1.45rem; }
.court-process li { padding: .8rem 0 .8rem .3rem; border-bottom: 1px solid var(--line); }
.court-process li::marker { font-weight: 700; color: var(--wine); }
.court-process h3 { font-size: 1.42rem; }
.court-process p { margin-top: .3rem; }

.court-photo { margin: 0; }
.service-hero-wide .court-photo img { aspect-ratio: 2.45; object-position: center 56%; }
.court-photo figcaption { padding: .52rem 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) {
  .service-hero-wide .court-photo img { aspect-ratio: 1.8; }
}

.site-overlays {
  position: fixed;
  z-index: 1;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: .75rem;
  width: min(820px, calc(100% - 2rem));
  pointer-events: none;
}
.whatsapp-tab {
  grid-row: 1;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .6rem .95rem;
  background: #173f34;
  color: white;
  border: 1px solid #d2dcd4;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px #1d202230;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.whatsapp-tab:hover { background: #235545; }
.footer-bottom { padding-inline-end: 8rem; }
@media (max-width: 620px) {
  .footer-bottom { padding-inline-end: 0; padding-bottom: 4.7rem; }
}
@media print {
  .site-overlays, .cookie-settings { display: none; }
  .footer-bottom { padding-inline-end: 0; padding-bottom: 1rem; }
}

.cookie-banner:not([hidden]) {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 1.5rem;
  width: 100%;
  max-height: 60vh;
  max-height: 60dvh;
  overflow: auto;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--wine);
  box-shadow: 0 8px 32px #21141830;
  pointer-events: auto;
}
.cookie-banner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cookie-banner p { font-size: .89rem; color: var(--muted); margin: .5rem 0 .4rem; }
.cookie-banner .cookie-fallback { font-size: .82rem; }
.cookie-banner a { color: var(--wine); font-size: .87rem; font-weight: 650; }
.cookie-actions:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.cookie-actions button {
  min-height: 46px;
  border: 1px solid var(--wine);
  padding: .55rem .82rem;
  background: var(--wine);
  color: white;
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
}
.cookie-actions button:hover { background: #51262a; }
.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose .cookie-settings {
  border: 1px solid var(--wine);
  padding: .6rem .9rem;
  min-height: 44px;
  color: var(--wine);
  font-weight: 700;
}
.cookie-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.cookie-inventory { padding: .95rem 1.2rem; border-left: 3px solid var(--wine); background: var(--cream); }
.cookie-inventory dt { font-weight: 700; }
.cookie-inventory dd { margin: .35rem 0 0; }
@media (max-width: 680px) {
  .cookie-banner:not([hidden]) { grid-template-columns: 1fr; gap: .8rem; }
  .cookie-actions button { padding-inline: .48rem; }
}

.hero-image-label {
  position: absolute;
  inset-inline: clamp(1rem, 3vw, 2rem) auto;
  inset-block-end: clamp(1rem, 3vw, 2rem);
  max-width: calc(100% - 2rem);
  padding: .55rem .85rem;
  border-left: 3px solid var(--gold);
  background: var(--deep-wine);
  color: var(--paper);
  font-size: clamp(.73rem, 1.45vw, 1.02rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.privacy-acknowledgement { display: flex; align-items: start; gap: .5rem; margin-top: .85rem; }
.privacy-acknowledgement input { width: 1rem; height: 1rem; min-height: 0; flex: 0 0 1rem; padding: 0; margin: .22rem 0 0; accent-color: var(--wine); }
.privacy-acknowledgement label { margin: 0; color: var(--muted); font-size: .87rem; font-weight: 500; }
.privacy-acknowledgement a { color: var(--wine); }

:is(.home-service-group, .service-card, .property-card, .topic-grid > li, .judicial-example-grid > li):focus-within {
  box-shadow: 0 8px 22px #28101520;
}

@media (hover: hover) and (pointer: fine) {
  :is(.home-service-group, .service-card, .property-card, .topic-grid > li, .judicial-example-grid > li):hover {
    box-shadow: 0 8px 22px #28101520;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.home-service-group, .service-card, .property-card, .topic-grid > li, .judicial-example-grid > li) {
    transition: transform .18s ease, box-shadow .18s ease;
  }

  :is(.home-service-group, .service-card, .property-card, .topic-grid > li, .judicial-example-grid > li):hover {
    transform: translateY(-3px);
  }
}

@media print {
  .header { position: static; }
}

.service-area-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem .9rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}
.service-area-menu a {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  color: var(--wine);
  text-decoration: none;
  font-weight: 650;
}
.service-area-menu a:hover, .service-area-menu a:focus-visible { background: var(--cream); text-decoration: underline; }
.service-directory .service-content h2 { color: var(--wine); font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 700; }
.service-directory .service-content h2 a { text-decoration: none; }
.service-directory .service-content h2 a:hover { text-decoration: underline; }
.service-content h2 a span, .service-content h3 a span { font: 700 .58em var(--body); }
.area-section-title { margin: 1.25rem 0; }
.area-hero-back { color: var(--paper); margin-bottom: 1.25rem; }
.area-hero-back:hover { color: var(--gold); }
.judicial-situations + .judicial-situations { margin-top: 2.5rem; }
@media (max-width: 480px) {
  .service-area-menu { grid-template-columns: 1fr; }
}

.area-overview {
  max-width: 78ch;
  margin-block: 1.5rem 2rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-left: 3px solid var(--wine);
  background: var(--cream);
}
.area-overview h2 { font-size: clamp(1.65rem, 2.5vw, 2.15rem); }
.area-overview .case-list { margin-bottom: 0; }

@font-face {
  font-family: Baskervville;
  src: url("baskervville.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:is(.subhero, .service-hero, .detail-hero, .news-hero) h1,
:is(.service-directory, .service-grid, .area-overview) h2,
.service-content h3 {
  font-family: Baskervville, Baskerville, Georgia, serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

a.service-content { color: inherit; text-decoration: none; }
a.service-content:is(:hover, :focus-visible) :is(h2, h3) {
  text-decoration: underline;
  text-decoration-thickness: .05em;
  text-underline-offset: .16em;
}
.service-content > p:last-of-type { margin-bottom: 0; }

.editorial-hero {
  background: linear-gradient(135deg, #291117, var(--wine) 64%, #462129);
  padding-block: clamp(2.3rem, 5vw, 4.6rem);
}
.editorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 5rem);
}
.editorial-hero-grid > img,
.editorial-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid #aa8f7477;
}
.editorial-figure { margin: 0; }
.editorial-figure figcaption { margin-top: .45rem; font-size: .75rem; line-height: 1.5; }
.editorial-hero .editorial-figure figcaption { color: #f2e4d2; }
.editorial-lead {
  color: var(--accent);
  font: 400 clamp(1.25rem, 2.25vw, 1.85rem)/1.2 Baskervville, Baskerville, Georgia, serif;
  margin-top: .7rem;
  text-wrap: balance;
}
.editorial-hero .editorial-lead { color: var(--gold); }
.service-hero .service-scope { color: var(--muted); font-size: .94rem; margin-top: .7rem; }
.service-introduction { padding-top: clamp(1.5rem, 4vw, 3rem); }
.service-introduction p { max-width: 70ch; }
.courthouse-reference { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.courthouse-reference .editorial-figure { max-width: 45rem; }
.courthouse-reference img { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .editorial-hero-grid { grid-template-columns: 1fr; }
  .editorial-hero-grid > img, .editorial-hero-grid figure img { aspect-ratio: 16 / 10; }
}

.service-content > :is(h2, h3) > span { font: 700 .58em var(--body); }
.property-card:has(> a.text-link) { position: relative; }
.property-card > a.text-link::after { content: ""; position: absolute; inset: 0; }
.property-card:has(> a.text-link:focus-visible) {
  outline: 2px solid #a46f52;
  outline-offset: 4px;
}

/* Shared surfaces and proportions for the service pages. */
:root {
  --surface-radius: 1.15rem;
  --control-radius: .7rem;
  --surface-shadow: 0 8px 28px #351d2010;
}
:is(.home-service-group, .service-card, .property-card, .topic-grid > li,
    .judicial-example-grid > li, .related, .rental-faq, .service-docs,
    .form-panel, .area-overview, .news-feature, .property-reach, .court-process) {
  border-radius: var(--surface-radius);
}
:is(.home-service-group, .service-card, .property-card, .topic-grid > li, .judicial-example-grid > li, .related) {
  border: 1px solid var(--line);
  box-shadow: var(--surface-shadow);
}
.topics:first-child .topic-grid li { border-color: transparent; }
.property-legal .property-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding-inline: clamp(1rem, 2vw, 1.65rem);
}
:is(.button, .menu-toggle, .categories a, form input, form select, form textarea) {
  border-radius: var(--control-radius);
}
:is(.news-feature, .property-reach) { overflow: hidden; }
main :is(.detail-hero, .editorial-hero, .service-masthead, .service-side) img.photo {
  border-radius: var(--surface-radius);
}
.service-card a.service-content { border-radius: inherit; }
.service-card a.service-content:hover { background: #542a3306; }
.service-card a.service-content:focus-visible { outline-offset: 2px; }
.service-masthead {
  background: var(--masthead-tint, #eae0d9);
  padding-block: clamp(1.7rem, 3.6vw, 3.15rem);
  border-bottom: 1px solid var(--line);
}
.service-masthead[data-family="alquiler"] { --masthead-tint: #eadce0; }
.service-masthead[data-family="compraventa"] { --masthead-tint: #ebdfce; }
.service-masthead[data-family="propiedad-y-fincas"] { --masthead-tint: #e0e3d8; }
.service-masthead[data-family="contratos"] { --masthead-tint: #e5dcd6; }
.service-masthead[data-family="herencias"] { --masthead-tint: #e4dce8; }
.service-masthead[data-family="derecho-patrimonial"] { --masthead-tint: #e9d8cd; }
.service-masthead[data-family="litigacion-inmobiliaria"] { --masthead-tint: #e4d4db; }
.service-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  min-height: 19.5rem;
}
.service-masthead-copy .back { margin-bottom: .85rem; }
.service-masthead h1 {
  font-family: Baskervville, Baskerville, Georgia, serif;
  font-size: clamp(2.25rem, 3.9vw, 3.8rem);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.service-masthead-copy p { max-width: 60ch; margin-top: .75rem; }
.service-masthead-media { width: min(100%, 27rem); justify-self: end; }
.service-masthead-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-masthead-media figure { position: relative; }
.service-masthead-media figcaption { font-size: .7rem; }
.service-masthead-details { padding-top: 1.65rem; }
.service-masthead-details > p { max-width: 70ch; color: var(--muted); }
.service-masthead-details > .detail-jumps { margin-top: .8rem; }

.services-menu-expanded .services-popover {
  width: min(69rem, calc(100vw - 2rem));
  padding: clamp(.95rem, 2.2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--surface-radius) var(--surface-radius);
  box-shadow: 0 19px 48px #2d161c29;
}
.service-menu-top { display: flex; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.service-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem 1.4rem;
  padding-top: .95rem;
}
.service-menu-group ul { margin: .3rem 0 0; padding: 0; list-style: none; }
.service-menu-group a { display: block; border-radius: .4rem; padding: .25rem .3rem; text-decoration: none; }
.service-menu-group a:is(:hover, :focus-visible) { background: var(--cream); text-decoration: underline; }
.service-menu-title { color: var(--wine); font-weight: 750; font-size: .92rem; }
.service-menu-group li a { color: var(--muted); font-size: .84rem; line-height: 1.4; }
@media (min-width: 1021px) {
  .guide-menu .service-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .services-menu-expanded .services-popover { width: auto; border-radius: var(--surface-radius); box-shadow: none; }
  .service-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-menu-group a { padding-block: .43rem; }
}
@media (max-width: 800px) {
  .service-masthead-grid { grid-template-columns: 1fr; min-height: 0; gap: 1.2rem; }
  .service-masthead-media { justify-self: start; width: min(100%, 29rem); }
  .service-masthead h1 { font-size: clamp(2.1rem, 7vw, 2.85rem); }
}
@media (max-width: 420px) {
  .service-menu-grid { grid-template-columns: 1fr; }
}

.home-hero {
  width: min(1280px, 100% - 3rem);
  margin: clamp(.85rem, 2.6vw, 2rem) auto 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  border-radius: calc(var(--surface-radius) + .35rem);
  overflow: hidden;
  background: linear-gradient(125deg, #33151b 30%, #4b2630 100%);
  box-shadow: 0 18px 44px #3b20281a;
}
.home-hero .hero-copy { padding: clamp(1.6rem, 5vw, 4.2rem); }
.home-hero .hero-copy h1 { font-family: Baskervville, Baskerville, Georgia, serif; }
.home-hero .hero-image { min-height: 0; }
@media (min-width: 1021px) and (hover: hover) and (pointer: fine) {
  .services-menu-expanded > summary { position: relative; }
  .services-menu-expanded[open] > summary::after {
    content: "";
    position: absolute;
    inset: 100% 0 auto;
    height: 3rem;
  }
}
@media (max-width: 760px) {
  .home-hero { width: calc(100% - 2rem); grid-template-columns: 1fr; }
}

.service-masthead[data-family="familia"] { --masthead-tint: #e8ddd2; }
.conflict-grid { margin-top: 1.25rem; }
.conflict-card { padding: clamp(1rem, 2.4vw, 1.65rem); }
.conflict-card h3 { color: var(--wine); }
.conflict-card p { color: var(--muted); }

.service-masthead[data-family="propiedad-horizontal"] { --masthead-tint: #e4e0d3; }

main:has(.guide-contact) .service-masthead h1 { font-size: clamp(1.9rem, 3.35vw, 3.25rem); }
.guide-contact > p { margin-top: .6rem; color: var(--muted); }
.guide-contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
.guide-contact .outline { border-color: var(--wine); color: var(--wine); }
.guide-contact .outline:hover { background: var(--cream); }
.guide-topic { margin-top: clamp(1.75rem, 4vw, 3.2rem); }
.guide-topic h2 { margin-bottom: 1rem; }
.related-guides { margin-top: 2rem; }
