:root {
  color-scheme: light;
  --ink: #014c38;
  --muted: #0b2521;
  --line: #d9dfdc;
  --paper: #f7f7f3;
  --panel: #ffffff;
  --deep: #780000;
  --sage: #000000;
  --copper: #c8b057;
  --clay: #c8b057;
  --focus: #1a6f87;
  --shadow: 0 20px 50px rgba(23, 32, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(247, 247, 243, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 32, 31, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  font-family: Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 3;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid currentColor;
}

.language-option {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-option:last-child {
  border-right: 0;
}

.language-option.is-active {
  background: #f0c09a;
  color: #1d2927;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.pexels.com/photos/3913025/pexels-photo-3913025.jpeg?_gl=1*10mmvkx*_ga*ODgxMzUyNDg1LjE3NzczMjQ5MDU.*_ga_8JE65Q40S6*czE3NzgyNTc0OTkkbzMkZzEkdDE3NzgyNTkzMzYkajUwJGwwJGgw");
  background-position: center;
  background-size: cover;
  transform: scaleX(-1) scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 32, 31, 0.9) 0%, rgba(23, 32, 31, 0.68) 48%, rgba(23, 32, 31, 0.22) 100%),
    linear-gradient(0deg, rgba(23, 32, 31, 0.42), rgba(23, 32, 31, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 180px clamp(20px, 7vw, 84px) clamp(64px, 11vh, 110px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c9a7;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  font-weight: 500;
}

h2 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 500;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  font-weight: 800;
  text-decoration: none;
}

.button svg,
.contact-link svg,
.practice-card svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button.primary {
  border-color: #f0c09a;
  background: #f0c09a;
  color: #1d2927;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

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

.intro-grid,
.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.intro-grid p:last-child,
.contact-grid p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.practice-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 32, 31, 0.03);
}

.practice-card svg {
  margin-bottom: 34px;
  color: var(--copper);
}

.practice-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.practice-card h3 {
  transition: color 160ms ease;
}

.practice-card:hover h3 {
  color: #780000;
}

.profile-band {
  background: var(--deep);
  color: #fff;
}

.profile-band .eyebrow,
.profile-band .practice-card svg {
  color: #f0c09a;
}

.profile-band p {
  color: rgba(255, 255, 255, 0.78);
}

.portrait {
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(234, 223, 212, 0.18), rgba(111, 138, 127, 0.42)),
    url("/perfil.png");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.portrait-initial {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  background: rgba(23, 32, 31, 0.28);
}

.profile-role {
  margin: 18px 0;
  font-size: 1.18rem;
}

.profile-list {
  display: grid;
  gap: 1px;
  margin: 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-list dt {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  color: #fff;
}

.contact-section {
  background: var(--panel);
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfbf8;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-link:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-link svg {
  color: var(--copper);
}

.contact-link strong,
.contact-link small {
  display: block;
}

.contact-link small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .intro-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .portrait {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 68px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(247, 247, 243, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-option {
    min-width: 36px;
    min-height: 36px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(23, 32, 31, 0.92), rgba(23, 32, 31, 0.34));
  }

  .hero-content {
    padding: 132px 20px 48px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card {
    min-height: 210px;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
  }
}
