* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --cream: #fbfaf7;
  --dark: #101828;
  --navy: #101a33;
  --blue: #1d2c55;
  --gold: #b88a3d;
  --gold-soft: #f2dfb3;
  --text: #5d6675;
  --line: rgba(16, 24, 40, .12);
  --shadow: 0 22px 55px rgba(16, 24, 40, .12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(184, 138, 61, .14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(16, 26, 51, .08), transparent 32%),
    var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  min-height: 100vh;
  padding-top: 18px;
}

.nav {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 18px;
  min-height: 78px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: .04em;
}

.logo strong,
.logo small {
  display: block;
  line-height: 1.1;
}

.logo strong {
  color: var(--navy);
}

.logo small {
  color: var(--text);
  font-size: .78rem;
}

.menu {
  display: flex;
  gap: 6px;
  align-items: center;
}

.menu a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  font-size: .92rem;
  transition: .25s ease;
}

.menu a:hover {
  background: var(--navy);
  color: white;
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--navy);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.tag {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  margin-bottom: 14px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -.06em;
  margin-bottom: 22px;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--navy);
}

.hero-description {
  max-width: 710px;
  color: var(--text);
  font-size: 1.13rem;
  margin-bottom: 28px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: .25s ease;
}

.primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  box-shadow: 0 18px 38px rgba(16, 26, 51, .22);
}

.secondary {
  background: white;
  border-color: var(--line);
  color: var(--navy);
}

.btn:hover,
.card:hover,
.wide-card:hover,
.service-item:hover {
  transform: translateY(-4px);
}

.phone-card {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .08);
}

.phone-card span {
  color: var(--text);
  font-weight: 700;
}

.phone-card strong {
  color: var(--navy);
}

.hero-card {
  min-height: 520px;
  padding: 42px;
  border-radius: 42px;
  background:
    radial-gradient(circle at top left, rgba(184, 138, 61, .20), transparent 42%),
    rgba(255,255,255,.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "JUSTICIA";
  position: absolute;
  right: -28px;
  bottom: 30px;
  transform: rotate(-90deg);
  font-size: 4.6rem;
  font-weight: 900;
  color: rgba(16, 26, 51, .05);
}

.law-symbol {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 24px 50px rgba(16, 26, 51, .24);
}

.scale-line {
  position: absolute;
  width: 92px;
  height: 7px;
  background: var(--gold-soft);
  left: 34px;
  top: 52px;
  border-radius: 8px;
}

.scale-center {
  position: absolute;
  width: 10px;
  height: 78px;
  background: var(--gold-soft);
  left: 75px;
  top: 48px;
  border-radius: 8px;
}

.scale-left,
.scale-right {
  position: absolute;
  width: 48px;
  height: 24px;
  border-bottom: 6px solid var(--gold-soft);
  border-radius: 0 0 48px 48px;
  top: 80px;
}

.scale-left { left: 20px; }
.scale-right { right: 20px; }

.hero-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.hero-card p,
.center p,
.intro p,
.card p,
.service-item p,
.wide-card p,
.contact-box p {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chips span {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.section {
  padding: 86px 0;
}

.intro {
  background: white;
}

.intro-grid,
.split,
.contact-box,
.footer-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  margin-bottom: 16px;
}

.center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.cards {
  display: grid;
  gap: 22px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.wide-card,
.contact-box {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .08);
}

.card {
  padding: 30px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.number {
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(16, 26, 51, .13);
  line-height: 1;
  margin-bottom: 18px;
}

.card h3,
.wide-card h3,
.service-item h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card a,
.service-item a {
  margin-top: auto;
  color: var(--gold);
  font-weight: 900;
}

.dark {
  background:
    radial-gradient(circle at 12% 10%, rgba(184, 138, 61, .24), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}

.dark h2,
.dark h3 {
  color: white;
}

.dark p {
  color: rgba(255,255,255,.76);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.09);
  transition: .25s ease;
}

.service-item span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 900;
  font-size: 1.5rem;
}

.wide-card {
  padding: 36px;
  transition: .25s ease;
}

.line {
  width: 94px;
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  margin-bottom: 24px;
}

.dark-btn {
  margin-top: 12px;
  background: var(--navy);
  color: white;
}

.options {
  background: var(--cream);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pill-grid a {
  padding: 14px 18px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
  transition: .25s ease;
}

.pill-grid a:hover {
  transform: translateY(-3px);
  background: var(--navy);
  color: white;
}

.contact-box {
  padding: 42px;
  background:
    radial-gradient(circle at right, rgba(184,138,61,.18), transparent 35%),
    white;
}

.contact-data {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.contact-data strong {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--navy);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  background: #1f9d55;
  color: white;
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(31,157,85,.34);
}

.footer {
  padding: 52px 0;
  background: var(--navy);
  color: white;
}

.footer h2,
.footer h3 {
  color: white;
  margin-bottom: 10px;
}

.footer p {
  color: rgba(255,255,255,.74);
}

@media (max-width: 920px) {
  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    width: 100%;
    text-align: center;
  }

  .hero,
  .intro-grid,
  .split,
  .contact-box,
  .footer-grid,
  .three,
  .two {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 42px;
  }

  .hero-card {
    min-height: 420px;
  }

  .contact-data {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .header {
    padding-top: 10px;
  }

  .nav,
  .hero {
    width: min(100% - 20px, 1180px);
  }

  .logo strong {
    font-size: .9rem;
  }

  .logo small {
    font-size: .72rem;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding: 64px 0;
  }

  .hero-card,
  .card,
  .wide-card,
  .service-item,
  .contact-box {
    border-radius: 22px;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}
