:root {
  --navy: #0f172a;
  --navy-soft: #18233d;
  --gold: #c9a227;
  --gold-dark: #a98518;
  --white: #ffffff;
  --muted: #f5f7fb;
  --text: #1f2937;
  --line: #d9dee8;
  --shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(15, 23, 42, .96);
  color: var(--white);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 162, 39, .7);
  color: var(--gold);
  font-family: Merriweather, serif;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
}
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #d8b23b; }
.button-outline { border-color: rgba(255,255,255,.65); color: var(--white); }
.button-dark { background: var(--navy); color: var(--white); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  align-items: center;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.82) 48%, rgba(15,23,42,.18) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(52px, 8vw, 108px) clamp(22px, 6vw, 80px);
}
.hero h1,
.section-heading h2,
.about-split h2,
.final-cta h2,
.page-hero h1,
.single-post h1 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  line-height: 1.12;
  color: inherit;
}
.hero h1 { font-size: clamp(38px, 6vw, 72px); max-width: 820px; }
.hero p { max-width: 680px; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 64px);
}
.section-muted { background: var(--muted); }
.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}
.section-heading h2,
.about-split h2,
.final-cta h2 { font-size: clamp(30px, 4vw, 48px); color: var(--navy); }

.card-grid {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.card-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.practice-card,
.post-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.feature-card h3,
.practice-card h3,
.post-card h3,
.post-card h2 { margin: 10px 0 8px; color: var(--navy); line-height: 1.25; }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(201, 162, 39, .14);
  color: var(--gold-dark);
  font-weight: 900;
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-card a { color: var(--gold-dark); font-weight: 800; }

.about-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .75fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.lawyer-photo {
  min-height: 440px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(15,23,42,.15), rgba(201,162,39,.22)),
    url("../img/hero-juridico.png") center/cover;
  box-shadow: var(--shadow);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.steps article {
  padding: 22px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 8px;
}
.steps span { color: var(--gold-dark); font-weight: 900; }

.testimonials blockquote {
  display: none;
  max-width: 760px;
  min-height: 190px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonials blockquote.active { display: block; }
.testimonials strong { color: var(--gold-dark); }

.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq { max-width: none; }
.faq details {
  max-width: 920px;
  margin: 12px auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.faq summary { cursor: pointer; color: var(--navy); font-weight: 800; }

.final-cta {
  padding: clamp(54px, 7vw, 92px) 22px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
}
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,.82); }

.page-hero {
  padding: 72px clamp(18px, 5vw, 64px);
  background: var(--navy);
  color: var(--white);
}
.page-hero h1,
.single-post h1 { font-size: clamp(34px, 5vw, 58px); max-width: 900px; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.82); }
.content-wrap,
.single-post {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
}
.entry-content h2,
.content-wrap h2 { color: var(--navy); }
.practice-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}
.practice-detail {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.practice-detail h2 { margin-top: 0; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}
.post-meta { color: #64748b; }
.inline-cta {
  margin-top: 36px;
  padding: 28px;
  border-radius: 8px;
  background: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.site-footer {
  position: relative;
  padding: 48px clamp(18px, 5vw, 64px);
  background: #080d19;
  color: rgba(255,255,255,.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.site-footer h2,
.site-footer strong { color: var(--white); font-size: 18px; }
.site-footer a { color: var(--gold); margin-right: 12px; }
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #06210f;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(34, 197, 94, .36);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    font-size: 22px;
  }
  .main-nav {
    position: absolute;
    inset: 76px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 8px;
    background: var(--navy-soft);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .hero { grid-template-columns: 1fr; min-height: 720px; }
  .card-grid.six,
  .card-grid.three,
  .blog-grid,
  .steps,
  .about-split,
  .footer-grid { grid-template-columns: 1fr; }
  .lawyer-photo { min-height: 300px; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .hero { min-height: 680px; }
  .hero-actions .button { width: 100%; }
  .section { padding-left: 16px; padding-right: 16px; }
  .feature-card,
  .practice-card,
  .post-card { padding: 20px; }
}
