@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --ink: #18201f;
  --muted: #5f6864;
  --paper: #f7f4ee;
  --panel: #fffdf8;
  --line: #d8d0c3;
  --green: #193d35;
  --green-2: #285b4c;
  --gold: #a2773f;
  --blue: #243e58;
  --rose: #7a4a46;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(25, 61, 53, 0.14);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover,
.text-link:hover {
  color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  min-height: calc(100vh - 80px);
  padding: clamp(92px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 88px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 28, 40, 0.93) 0%, rgba(21, 43, 58, 0.82) 36%, rgba(21, 43, 58, 0.34) 64%, rgba(21, 43, 58, 0.14) 100%),
    url("assets/hero-wide.png") center center / cover no-repeat;
  color: #fffdf8;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 32% 42%, rgba(216, 181, 121, 0.14), transparent 34%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, rgba(13, 28, 40, 0), rgba(13, 28, 40, 0.44));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  animation: rise-in 760ms ease both;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(216, 181, 121, 0.82);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  color: #f0ddaa;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 650;
  line-height: 1.02;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.65rem, 5.25vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 3.7vw, 4rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions,
.contact .button {
  margin-top: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(25, 61, 53, 0.14);
}

.button.primary {
  border-color: #23c469;
  background: #23c469;
  color: #fffdf8;
}

.button.secondary {
  border-color: rgba(216, 181, 121, 0.88);
  color: #f0c86d;
  background: rgba(13, 28, 40, 0.16);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: auto;
  overflow: visible;
  align-self: stretch;
  border-radius: 0;
  background: transparent;
  animation: note-in 720ms 420ms ease both;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 22px 45px rgba(5, 14, 22, 0.22);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.hero-note strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
}

.hero-note span {
  color: var(--muted);
  line-height: 1.5;
}

.help-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.help-strip a {
  min-height: 82px;
  padding: 20px;
  border-right: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, padding-left 180ms ease;
}

.help-strip a:last-child {
  border-right: 0;
}

.help-strip a:hover {
  padding-left: 28px;
  background: #f0e6d7;
  color: var(--blue);
}

.section,
.practice-detail,
.contact {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section,
.practice-detail,
.contact,
.trust-band {
  animation: section-in 700ms ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 26%;
}

.split,
.practice-detail,
.process,
.contact,
.professionals {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.copy-stack p,
.practice-detail p,
.compact-grid p,
.contact p,
.guide-list p,
.lawyers p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--green);
  color: #fffdf8;
}

.trust-band div {
  min-height: 210px;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid rgba(255, 253, 248, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band span {
  color: #d8b579;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trust-band strong {
  display: block;
  margin: 12px 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.trust-band p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 253, 248, 0.75);
  line-height: 1.6;
}

.trust-band div:hover {
  background: rgba(255, 253, 248, 0.05);
  transform: translateY(-3px);
}

.professionals {
  background: var(--panel);
}

.portrait {
  overflow: hidden;
  border-radius: 8px;
  background: #e5ded2;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms ease;
}

.portrait:hover img {
  transform: scale(1.035);
}

.lawyers {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.lawyers article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  transition: transform 180ms ease, border-color 180ms ease;
}

.lawyers h3 {
  margin-bottom: 8px;
}

.lawyers article:hover {
  transform: translateX(4px);
  border-color: var(--gold);
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.area-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 34px rgba(24, 32, 31, 0.08);
}

.area-card span {
  display: block;
  margin-bottom: 38px;
  color: var(--green);
  font-weight: 800;
}

.area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.practice-detail {
  border-top: 1px solid var(--line);
  background: #efe8dd;
}

.practice-detail.reversed {
  background: #f9f5ed;
}

.practice-detail p {
  margin: 18px 0 28px;
  font-size: 1.08rem;
}

.practice-detail ul,
.process ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-detail li,
.process li {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease;
}

.practice-detail li:hover,
.process li:hover {
  transform: translateX(6px);
  border-color: var(--green-2);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compact-grid article {
  min-height: 290px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 8px;
  background: var(--blue);
  color: #fffdf8;
}

.compact-grid article:nth-child(2) {
  background: var(--rose);
}

.compact-grid p {
  margin-top: 20px;
  color: rgba(255, 253, 248, 0.78);
}

.process {
  background: var(--panel);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.guide-list article {
  min-height: 190px;
  padding: 22px;
  border-top: 3px solid var(--gold);
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(24, 32, 31, 0.08);
}

.guide-list h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.contact {
  background: var(--green);
  color: #fffdf8;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 253, 248, 0.78);
}

.contact form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: #fbf7ef;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(162, 119, 63, 0.35);
  border-color: var(--gold);
}

form button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fffdf8;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #111816;
  color: rgba(255, 253, 248, 0.72);
}

footer span {
  color: #fffdf8;
  font-weight: 800;
}

footer p {
  margin: 0;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fa855;
  color: white;
  box-shadow: 0 16px 32px rgba(17, 24, 22, 0.22);
  font-weight: 900;
  animation: pulse-wa 2.6s ease-in-out infinite;
}

.whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .practice-detail,
  .process,
  .contact,
  .professionals,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 34px;
    background-image:
      linear-gradient(90deg, rgba(13, 28, 40, 0.96) 0%, rgba(21, 43, 58, 0.84) 55%, rgba(21, 43, 58, 0.52) 100%),
      url("assets/oficina.jpg"),
      linear-gradient(180deg, #122535, #193345);
    background-position:
      center,
      center center,
      center;
    background-size:
      cover,
      112% auto,
      cover;
    background-repeat: no-repeat;
  }

  .hero-copy {
    max-width: 560px;
  }

  h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .hero-note {
    position: relative;
    width: min(420px, 100%);
  }

  .help-strip,
  .trust-band,
  .area-grid,
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 38px;
    min-height: 760px;
    padding-bottom: 34px;
    background-image:
      linear-gradient(180deg, rgba(13, 28, 40, 0.98) 0%, rgba(21, 43, 58, 0.9) 42%, rgba(21, 43, 58, 0.34) 100%),
      url("assets/hero-mobile.png"),
      linear-gradient(180deg, #122535, #193345);
    background-position:
      center,
      center bottom,
      center;
    background-size:
      cover,
      cover,
      cover;
    background-repeat: no-repeat;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .help-strip,
  .trust-band,
  .area-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .help-strip a,
  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-note {
    width: 100%;
    margin-top: 240px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-wa {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
