:root {
  --font-display: "Fraunces", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --bg-main: #f7f7f5;
  --bg-soft: #ededed;
  --surface: #ffffff;
  --surface-elevated: #fdfdfc;

  --text-main: #2f343b;
  --text-soft: #5f6771;

  --clinic-blue: #163e7a;
  --clinic-blue-soft: #5c7fae;
  --wine-accent: #8f636b;
  --wine-accent-soft: #b18a92;

  --line-soft: rgba(39, 46, 56, 0.14);
  --line-accent: rgba(143, 99, 107, 0.26);
  --shadow-soft: 0 20px 42px rgba(25, 31, 41, 0.06);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --page-max: 1220px;
  --header-height: 78px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.58;
}

a {
  color: inherit;
}

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

.bg-field {
  position: fixed;
  inset: -18vh -8vw;
  z-index: -2;
  pointer-events: none;
}

.bg-field span {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.field-one {
  width: clamp(260px, 44vw, 640px);
  height: clamp(260px, 44vw, 640px);
  top: -6%;
  left: -7%;
  background: radial-gradient(circle at 60% 45%, rgba(92, 127, 174, 0.12), rgba(92, 127, 174, 0));
}

.field-two {
  width: clamp(300px, 38vw, 600px);
  height: clamp(300px, 38vw, 600px);
  top: 24%;
  right: -10%;
  background: radial-gradient(circle at 50% 40%, rgba(143, 99, 107, 0.15), rgba(143, 99, 107, 0));
}

.field-three {
  width: clamp(300px, 46vw, 700px);
  height: clamp(300px, 46vw, 700px);
  bottom: -12%;
  left: 24%;
  background: radial-gradient(circle at 52% 40%, rgba(22, 62, 122, 0.09), rgba(22, 62, 122, 0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  backdrop-filter: blur(13px);
  border-bottom: 1px solid transparent;
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-solid {
  background: rgba(248, 248, 246, 0.9);
  border-color: rgba(39, 46, 56, 0.1);
  box-shadow: 0 8px 24px rgba(21, 26, 35, 0.05);
}

.header-shell,
.page-shell,
.footer-shell {
  width: min(var(--page-max), 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

.header-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.86);
  color: var(--clinic-blue);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 1.5px;
  background: var(--text-main);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 1rem;
  right: 1rem;
  display: none;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(252, 252, 250, 0.96);
  box-shadow: var(--shadow-soft);
}

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

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--text-soft);
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
  border-color: var(--line-accent);
  background: rgba(143, 99, 107, 0.08);
}

.header-cta {
  display: none;
  text-decoration: none;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 62, 122, 0.26);
  color: var(--clinic-blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(22, 62, 122, 0.45);
  background: rgba(22, 62, 122, 0.07);
}

.page-shell {
  display: grid;
  gap: clamp(1.3rem, 4.6vw, 3rem);
  padding-block: clamp(1.2rem, 3.2vw, 2.2rem) clamp(2.4rem, 7vw, 4.5rem);
}

.section {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.8vw, 2.2rem);
}

.section-enfoque {
  position: relative;
  overflow: clip;
  opacity: var(--hero-fade, 1);
}

.hero-grid {
  display: grid;
  gap: 0.9rem;
}

.hero-content,
.hero-media,
.focus-card,
.editorial-card,
.editorial-note,
.differentiator,
.route-card,
.process-grid li,
.profile-panel,
.knowledge-panel,
.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero-content {
  padding: clamp(1rem, 3vw, 2.2rem);
}

.kicker,
.section-label,
.diff-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.69rem;
  color: var(--text-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  color: #222831;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 6.4vw, 4.3rem);
  max-width: 12.5ch;
}

.subtitle {
  margin: 0.92rem 0 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.4vw, 1.26rem);
}

.lead {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: #47505a;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.98rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-soft), background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-solid {
  background: #2a2f36;
  color: #ffffff;
  border-color: #2a2f36;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: #1f242b;
  border-color: #1f242b;
}

.btn-outline {
  border-color: var(--line-accent);
  color: var(--wine-accent);
  background: rgba(143, 99, 107, 0.06);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: rgba(143, 99, 107, 0.42);
  background: rgba(143, 99, 107, 0.1);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  position: relative;
  min-height: clamp(240px, 42vw, 490px);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 24, 0.08), rgba(15, 18, 24, 0.28)),
    linear-gradient(120deg, rgba(92, 127, 174, 0.14), rgba(92, 127, 174, 0));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.03);
  transition: transform 100ms linear;
}

.hero-media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.95rem;
  z-index: 2;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.focus-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
}

.focus-card {
  padding: 0.95rem;
}

.focus-index {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clinic-blue-soft);
}

.focus-card h2 {
  margin-top: 0.38rem;
  font-size: clamp(1.22rem, 3.9vw, 1.76rem);
}

.focus-card p {
  margin: 0.55rem 0 0;
  color: #49525c;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: clamp(0.9rem, 2.1vw, 1.3rem);
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  max-width: 23ch;
}

.editorial-grid {
  display: grid;
  gap: 0.7rem;
}

.editorial-card,
.editorial-note {
  padding: 1rem;
}

.editorial-card h3 {
  font-size: clamp(1.18rem, 3.5vw, 1.75rem);
}

.editorial-card ul {
  margin: 0.68rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.editorial-card li {
  position: relative;
  padding-left: 0.9rem;
  color: #4a5360;
}

.editorial-card li::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: var(--wine-accent-soft);
  position: absolute;
  left: 0;
  top: 0.62rem;
}

.editorial-note {
  display: grid;
  align-content: center;
  background: rgba(92, 127, 174, 0.06);
}

.editorial-note p {
  margin: 0;
  color: #445365;
}

.differentiator {
  margin-top: 0.75rem;
  padding: clamp(1rem, 2.8vw, 1.65rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(92, 127, 174, 0.14), rgba(92, 127, 174, 0));
}

.diff-copy {
  margin: 0.62rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.34rem, 3.3vw, 2rem);
  line-height: 1.25;
  max-width: 30ch;
}

.route-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.route-card {
  padding: 1rem;
}

.route-card h3 {
  font-size: clamp(1.22rem, 3.4vw, 1.8rem);
}

.route-card p {
  margin: 0.55rem 0 0;
  color: #4d5663;
}

.route-card a {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clinic-blue);
}

.route-card a::after {
  content: "->";
  font-size: 0.74rem;
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.process-grid li {
  padding: 0.95rem;
}

.process-grid span {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--clinic-blue);
}

.process-grid h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.16rem, 3.1vw, 1.55rem);
}

.process-grid p {
  margin: 0.45rem 0 0;
  color: #4e5762;
}

.profile-panel {
  margin-top: 0.75rem;
  overflow: hidden;
  display: grid;
}

.profile-photo {
  margin: 0;
  min-height: clamp(220px, 38vw, 340px);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.profile-copy {
  padding: 1rem;
}

.profile-copy h3 {
  margin-top: 0.55rem;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
}

.profile-copy p {
  margin: 0.72rem 0 0;
  color: #4c5561;
}

.profile-copy ul {
  margin: 0.8rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.38rem;
  color: #4c5561;
}

.knowledge-panel {
  margin-top: 0.75rem;
  padding: 1rem;
}

.knowledge-grid {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.knowledge-grid article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.58rem 0.72rem;
  font-size: 0.92rem;
  color: #44505f;
  background: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  gap: 0.65rem;
}

.contact-card {
  padding: 1rem;
}

.no-border {
  margin:auto;
  border: none; 
}

.contact-card h3 {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
}

.contact-card p,
.contact-card ul {
  margin: 0.55rem 0 0;
  color: #4d5663;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.contact-actions {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-footer {
  padding-bottom: 1.8rem;
}

.footer-shell {
  padding-inline: 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.95rem;
  display: grid;
  gap: 0.24rem;
  font-size: 0.77rem;
  color: var(--text-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 540ms var(--ease-soft),
    transform 540ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 720px) {
  .header-shell,
  .page-shell,
  .footer-shell {
    padding-inline: 1.4rem;
  }

  .header-shell {
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.18rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

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

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

  .editorial-note {
    grid-column: span 2;
  }

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

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

  .profile-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

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

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

  .footer-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

@media (min-width: 1040px) {
  .header-shell,
  .page-shell,
  .footer-shell {
    padding-inline: 1.8rem;
  }

  .section {
    padding: clamp(1.4rem, 2.2vw, 2.4rem);
  }

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

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .editorial-note {
    grid-column: auto;
  }

  .hero-content {
    padding: clamp(1.4rem, 2.6vw, 2.4rem);
  }

  .hero-media {
    min-height: clamp(340px, 42vh, 560px);
  }

  .process-grid {
    gap: 0.8rem;
  }

  .profile-copy,
  .knowledge-panel,
  .contact-card,
  .route-card,
  .editorial-card,
  .editorial-note,
  .process-grid li,
  .focus-card {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .btn,
  .site-header {
    transition: none;
  }
}
