@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

:root {
  --ink: #10251f;
  --ink-2: #17362d;
  --forest: #214c3f;
  --forest-light: #2d6454;
  --ivory: #f5f2e9;
  --paper: #fbfaf6;
  --white: #ffffff;
  --copper: #b78a5a;
  --line: rgba(16, 37, 31, 0.14);
  --muted: #62716c;
  --serif: 'Libre Caslon Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --shadow: 0 22px 70px rgba(8, 24, 19, 0.16);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  color: var(--copper);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6.5vw, 6.35rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.3vw, 4.2rem); line-height: 1.04; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; }
p { margin: 0; }
.lead { color: #d7e0db; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.7; }
.section-copy { max-width: 690px; color: var(--muted); font-size: 1.08rem; }
.section-copy p + p { margin-top: 1.15rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-header.inner { position: relative; background: var(--ink); }
.nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .9rem; line-height: 1; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: -.06em;
}
.brand-name { display: grid; gap: .3rem; }
.brand-name strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; letter-spacing: .01em; }
.brand-name span { color: rgba(255,255,255,.64); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; font-size: .88rem; }
.nav-links > a { color: rgba(255,255,255,.78); transition: color .2s ease; }
.nav-links > a:hover, .nav-links > a:focus-visible, .nav-links > a[aria-current='page'] { color: var(--white); }
.nav-cta { border-left: 1px solid rgba(255,255,255,.2); padding-left: 2.1rem; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: 780px;
  color: var(--white);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,31,24,.98) 0%, rgba(9,31,24,.88) 42%, rgba(9,31,24,.34) 72%, rgba(9,31,24,.2) 100%),
    url('/assets/escritorio-bazilio-beccalli.png') center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: -230px;
  bottom: -310px;
  border: 1px solid rgba(183,138,90,.32);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 780px;
  padding-top: 190px;
  padding-bottom: 95px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 { max-width: 900px; }
.hero .lead { max-width: 630px; margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-note { display: flex; align-items: center; gap: .7rem; margin-top: 2rem; color: rgba(255,255,255,.62); font-size: .8rem; }
.hero-note::before { content: ''; width: 18px; height: 1px; background: var(--copper); }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--copper);
  color: #12241e;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button::after { content: '↗'; font-size: 1rem; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); background: #c89a68; }
.button:hover::after { transform: translate(2px,-2px); }
.button-outline { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.button-outline:hover { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--forest); }
.text-link { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.text-link::after { content: '→'; color: var(--copper); font-size: 1.15rem; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.intro { position: relative; padding: 120px 0; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.intro h2 { max-width: 570px; }
.intro .section-copy { padding-top: .5rem; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 5rem; border-top: 1px solid var(--line); }
.principle { padding: 2rem 1.5rem 0 0; }
.principle + .principle { padding-left: 2rem; border-left: 1px solid var(--line); }
.principle b { display: block; margin-bottom: .6rem; color: var(--copper); font-family: var(--serif); font-size: 2.1rem; font-weight: 400; }
.principle span { font-size: .9rem; font-weight: 600; letter-spacing: .04em; }

.practice { padding: 120px 0; color: var(--white); background: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 4.5rem; }
.section-head h2 { max-width: 640px; }
.section-head p { max-width: 420px; color: #b8c6c0; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.16); }
.card {
  position: relative;
  min-height: 350px;
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}
.card:first-child { border-left: 1px solid rgba(255,255,255,.16); }
.card-number { color: var(--copper); font-family: var(--serif); font-size: 1rem; }
.card h3 { margin-top: 5rem; max-width: 260px; }
.card p { margin-top: 1.25rem; color: #b8c6c0; font-size: .95rem; }
.card .text-link { position: absolute; left: 2rem; bottom: 2rem; color: var(--white); }
.card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 145px; height: 145px; border: 1px solid rgba(183,138,90,.16); transform: rotate(45deg); }

.split-feature { padding: 120px 0; background: var(--ivory); }
.split-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 540px; }
.feature-visual {
  position: relative;
  background: linear-gradient(145deg, var(--forest), #0d2c23);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 3rem;
}
.feature-visual::before { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.feature-visual::after { content: ''; position: absolute; width: 265px; height: 265px; border: 1px solid rgba(183,138,90,.5); border-radius: 50%; }
.visual-monogram { position: relative; z-index: 2; color: var(--white); font-family: var(--serif); font-size: clamp(4rem,9vw,7rem); letter-spacing: -.08em; }
.feature-content { padding: clamp(3rem,7vw,6rem); background: var(--white); }
.feature-content h2 { font-size: clamp(2.3rem,4vw,3.7rem); }
.feature-content p { margin-top: 1.5rem; color: var(--muted); }
.feature-content .button { margin-top: 2rem; }

.process { padding: 120px 0; background: var(--paper); }
.process-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7rem; align-items: start; }
.process-intro { position: sticky; top: 2rem; }
.process-intro p { margin-top: 1.5rem; color: var(--muted); }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--copper); font-family: var(--serif); font-size: 1.15rem; }
.step p { margin-top: .65rem; color: var(--muted); }

.about { padding: 120px 0; color: var(--white); background: var(--forest); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; }
.about-copy p { color: #d5dfdb; font-size: 1.08rem; }
.about-copy p + p { margin-top: 1.2rem; }
.lawyers { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.2); }
.lawyer { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.lawyer span { color: #b9c8c2; font-size: .85rem; }

.faq { padding: 120px 0; background: var(--ivory); }
.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7rem; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.35rem;
  cursor: pointer;
}
.faq-question span { flex: 0 0 auto; color: var(--copper); font-family: var(--sans); font-size: 1.25rem; transition: transform .2s ease; }
.faq-question[aria-expanded='true'] span { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; }
.faq-question[aria-expanded='true'] + .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { padding: 0 3rem 1.6rem 0; color: var(--muted); }

.contact-band { padding: 100px 0; color: var(--white); background: var(--ink); }
.contact-band-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.contact-band h2 { max-width: 780px; }
.contact-band p { max-width: 680px; margin-top: 1.4rem; color: #b8c6c0; }

.site-footer { padding: 70px 0 28px; color: #d0dbd6; background: #091b15; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 5rem; }
.footer-brand p { max-width: 360px; margin-top: 1.5rem; color: #8fa29b; font-size: .9rem; }
.footer-title { margin-bottom: 1.2rem; color: var(--copper); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: .7rem; font-size: .9rem; }
.footer-links a { color: #b9c7c2; }
.footer-links a:hover { color: var(--white); }
.footer-address { color: #b9c7c2; font-size: .9rem; }
.footer-address a { display: inline-block; margin-top: .8rem; color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #70867e; font-size: .75rem; }

.page-hero { padding: 105px 0 80px; color: var(--white); background: var(--ink); }
.page-hero .eyebrow { margin-top: 2rem; }
.page-hero h1 { max-width: 960px; font-size: clamp(3rem,6vw,5.6rem); }
.page-hero .lead { max-width: 720px; margin-top: 1.5rem; }
.page-hero .hero-actions { margin-top: 2rem; }
.notice { margin-top: 2rem; padding: 1.15rem 1.25rem; border-left: 2px solid var(--copper); color: #c5d1cd; background: rgba(255,255,255,.05); font-size: .88rem; }

.content-section { padding: 100px 0; }
.content-section.alt { background: var(--ivory); }
.content-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7rem; }
.content-grid h2 { font-size: clamp(2rem,3.5vw,3.2rem); }
.content-body { color: var(--muted); font-size: 1.06rem; }
.content-body p + p { margin-top: 1.15rem; }
.analysis-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.analysis-card { min-height: 240px; padding: 2rem; background: var(--paper); }
.analysis-card b { display: inline-block; margin-bottom: 2.6rem; color: var(--copper); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.analysis-card h3 { font-size: 1.55rem; }
.analysis-card p { margin-top: .8rem; color: var(--muted); font-size: .93rem; }
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; margin: 2rem 0 0; padding: 0; }
.check-list li { position: relative; padding: 1rem 1rem 1rem 2.7rem; border: 1px solid var(--line); background: var(--white); }
.check-list li::before { content: '✓'; position: absolute; left: 1rem; color: var(--copper); font-weight: 600; }

.legal-hero { padding: 90px 0 70px; color: var(--white); background: var(--ink); }
.legal-hero h1 { max-width: 760px; font-size: clamp(3rem,5vw,4.6rem); }
.legal-hero p { margin-top: 1.25rem; color: #b8c6c0; }
.legal-content { padding: 80px 0 110px; background: var(--paper); }
.legal-meta { margin-bottom: 3rem; padding: 1.25rem; border: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.legal-content h2 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: 1.8rem; }
.legal-content p { color: #4f625b; }
.legal-content p + p { margin-top: 1rem; }
.legal-content ul { margin: 1rem 0 0; padding-left: 1.25rem; color: #4f625b; }
.legal-content li + li { margin-top: .6rem; }
.legal-contact { margin-top: 3.5rem; padding: 2rem; color: var(--white); background: var(--forest); }
.legal-contact h2 { margin-top: 0; color: var(--white); }
.legal-contact p { color: #d6e0dc; }
.institutional-table { width: 100%; margin-top: 2rem; border-collapse: collapse; font-size: .9rem; }
.institutional-table th, .institutional-table td { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.16); text-align: left; vertical-align: top; }
.institutional-table th { width: 32%; color: #a6bbb3; font-weight: 500; }

.form-modal[hidden] { display: none; }
.form-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.form-backdrop { position: absolute; inset: 0; background: rgba(4,16,12,.78); backdrop-filter: blur(8px); }
.form-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.form-modal-head strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.form-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 1.5rem; cursor: pointer; }
.form-frame { width: 100%; height: min(720px, calc(100vh - 7rem)); display: block; border: 0; background: #f8f8f8; }

.cookie-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(420px, calc(100% - 2rem));
  padding: 1.25rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cookie-note[hidden] { display: none; }
.cookie-note p { color: var(--muted); font-size: .84rem; }
.cookie-note-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.cookie-note .button { min-height: 42px; padding: .65rem 1rem; font-size: .72rem; }

@media (max-width: 900px) {
  .container, .narrow { width: min(calc(100% - 32px), 700px); }
  .nav { min-height: 78px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: .8rem 1rem 1.4rem;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: .8rem 0; }
  .nav-cta { border-left: 0; padding-left: 0; }
  .hero, .hero-content { min-height: 720px; }
  .hero-content { padding-top: 145px; }
  .hero::before { background: linear-gradient(90deg, rgba(9,31,24,.96), rgba(9,31,24,.7)), url('/assets/escritorio-bazilio-beccalli.png') 62% center / cover no-repeat; }
  .intro-grid, .section-head, .split-grid, .process-grid, .about-grid, .faq-grid, .content-grid { grid-template-columns: 1fr; }
  .intro-grid, .process-grid, .about-grid, .faq-grid, .content-grid { gap: 3rem; }
  .section-head { display: grid; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:first-child { min-height: 280px; border-left: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .card h3 { margin-top: 2.5rem; }
  .feature-visual { min-height: 360px; }
  .process-intro { position: static; }
  .contact-band-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .brand-name span { display: none; }
  .hero, .hero-content { min-height: 680px; }
  .hero-content { padding-top: 120px; padding-bottom: 65px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .intro, .practice, .split-feature, .process, .about, .faq, .content-section { padding: 78px 0; }
  .principles { grid-template-columns: 1fr; margin-top: 3rem; }
  .principle, .principle + .principle { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .analysis-grid, .check-list { grid-template-columns: 1fr; }
  .analysis-card { min-height: auto; }
  .section-head { margin-bottom: 3rem; }
  .feature-content { padding: 2.2rem 1.5rem; }
  .feature-visual { min-height: 280px; }
  .step { grid-template-columns: 48px 1fr; }
  .lawyer { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
  .page-hero { padding: 70px 0 60px; }
  .page-hero .eyebrow { margin-top: 1rem; }
  .legal-hero { padding: 65px 0 55px; }
  .legal-content { padding: 60px 0 80px; }
  .institutional-table, .institutional-table tbody, .institutional-table tr, .institutional-table th, .institutional-table td { display: block; width: 100%; }
  .institutional-table th { border-bottom: 0; padding-bottom: .15rem; }
  .institutional-table td { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
