/* ============================================================
   ABOGALIA — Design System
   Negro/carbón + dorado (identidad) · acento rojo (urgencia/CTA)
   Bodoni Moda (titulares) · Big Shoulders Display (cifras/overlines) · Work Sans (cuerpo)
   ============================================================ */

:root {
  --bg: #0B0B0C;
  --bg-elevated: #141414;
  --bg-charcoal: #1A1A1A;
  --hairline: rgba(198, 161, 91, 0.15);
  --hairline-strong: rgba(198, 161, 91, 0.3);

  --text: #F3ECDF;
  --text-dim: #C9C2B4;
  --text-faint: #8F887A;

  --gold: #C6A15B;
  --gold-light: #E4C98A;

  --accent: #C1121F;
  --accent-text: #F3ECDF;

  --font-serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.overline {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-divider {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
  padding: 16px 34px;
  font-size: 16px;
}
.btn-accent.btn-small { padding: 10px 22px; font-size: 14px; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  padding: 14px 30px;
  font-size: 15px;
}
.btn-outline:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(160deg, var(--bg-charcoal), var(--bg));
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}
.brand-logo::before { content: "A"; }
.brand span {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; font-size: 13px; color: var(--text-faint); }
.lang-switch a { color: var(--text-faint); }
.lang-switch a.active { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  padding: 4px 8px;
}

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 62px; left: 0; right: 0; bottom: auto; height: calc(100vh - 62px); height: calc(100dvh - 62px); background: var(--bg); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-actions .btn-small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 46px; line-height: 1.12; }
.hero .lede { font-size: 19px; line-height: 1.5; color: var(--text-dim); max-width: 580px; }
.hero .body-copy { font-size: 16px; line-height: 1.7; color: var(--text-faint); max-width: 580px; }
.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.hero-cta-row .micro { font-size: 13px; color: var(--text-faint); }
.trust-line { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }

/* generic page hero (secondary pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 38px; line-height: 1.15; max-width: 760px; margin-top: 14px; }
.page-hero .lede { font-size: 18px; color: var(--text-dim); max-width: 640px; margin-top: 16px; line-height: 1.55; }

/* ---------- Authority / stats strip ---------- */
.stat-strip { background: var(--bg-elevated); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 52px 0; }
.stat-strip h2 { max-width: 720px; margin: 0 auto 40px; text-align: center; font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.35; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stat { text-align: center; padding: 0 16px; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--gold); line-height: 1.15; }
.stat .label { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--text-faint); }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .stat { border-right: none; }
}

/* ---------- Generic section ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 740px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; line-height: 1.18; margin-top: 12px; }
.section-head .sub { margin-top: 14px; font-size: 18px; color: var(--gold-light); font-style: italic; font-family: var(--font-serif); }
.section.alt { background: var(--bg-elevated); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.prose ul { margin: 16px 0; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .card-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--gold); }
.card h3 { font-size: 19px; font-family: var(--font-body); font-weight: 600; }
.card p { color: var(--text-faint); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Two-stage layout (LegalPartner 260) ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 12px; }
.stage {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  padding: 36px 32px;
}
.stage .overline { margin-bottom: 14px; }
.stage h3 { font-size: 22px; margin-bottom: 16px; }
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-list { display: flex; flex-direction: column; gap: 20px; }
.case {
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
.case .case-tag { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 15px; letter-spacing: 0.04em; }
.case h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.case p { color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.case ul { margin: 14px 0; }
.case li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-dim); font-size: 15px; }
.case li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

@media (max-width: 700px) {
  .case { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
}
.faq-q .plus { color: var(--gold); font-family: var(--font-display); font-size: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 22px; color: var(--text-dim); font-size: 15px; line-height: 1.65; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-elevated); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 76px 0; text-align: center; }
.cta-band h2 { font-size: 32px; max-width: 720px; margin: 14px auto 0; }
.cta-band .sub { max-width: 620px; margin: 16px auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.cta-band .btn { margin-top: 28px; }
.cta-band .fine { margin-top: 14px; font-size: 13px; color: var(--text-faint); }

/* ---------- Form ---------- */
.form-section { padding: 88px 0; }
.form-wrap { max-width: 640px; margin: 0 auto; background: var(--bg-elevated); border: 1px solid var(--hairline); padding: 44px; }
.form-wrap h2 { font-size: 28px; text-align: center; }
.form-wrap .sub { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-wrap .btn { width: 100%; margin-top: 8px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }
.form-msg { text-align: center; padding: 14px; margin-bottom: 20px; font-size: 14px; }
.form-msg.success { background: rgba(198,161,91,0.12); color: var(--gold-light); border: 1px solid var(--hairline-strong); }
.form-msg.error { background: rgba(193,18,31,0.12); color: #ff8a8a; border: 1px solid rgba(193,18,31,0.4); }
.honeypot { position: absolute; left: -9999px; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 22px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-faint); font-size: 14px; line-height: 1.6; max-width: 340px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-dim); font-size: 14px; }
.footer-legal { border-top: 1px solid var(--hairline); padding-top: 24px; }
.footer-legal p { font-size: 12.5px; line-height: 1.6; color: var(--text-faint); margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-narrow { max-width: 860px; margin: 0 auto; }
