:root {
  --ink: #16324a;
  --muted: #5b7083;
  --line: #d6e7f5;
  --paper: #f5faff;
  --white: #ffffff;
  --teal: #60b3f9;
  --teal-dark: #1f6faf;
  --cyan-soft: #eaf5fe;
  --steel: #294f6d;
  --amber: #f2b84b;
  --shadow: 0 24px 70px rgba(24, 49, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(247, 251, 252, 0.92);
  border-bottom: 1px solid rgba(217, 228, 234, 0.78);
  backdrop-filter: blur(16px);
  transition: box-shadow 220ms ease, background 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(24, 49, 63, 0.1);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--steel));
  font-weight: 800;
}

.logo-slot {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 42, 0.16);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(24, 49, 63, 0.12);
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

.nav-links > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-item:hover > a {
  color: var(--teal-dark);
  background: var(--cyan-soft);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.social-links,
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact {
  flex-wrap: wrap;
}

.social-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.social-links a:hover {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 9px 20px rgba(31, 111, 175, 0.22);
  transform: translateY(-4px) scale(1.1);
}

.social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-links a:hover img {
  animation: socialPop 420ms ease;
}

.nav-item {
  position: relative;
}

.has-menu > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.submenu::before {
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 8px;
}

.submenu strong {
  font-size: 14px;
}

.submenu span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--teal-dark);
}

.btn {
  padding: 0 20px;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.header-cta:focus-visible,
.nav-links a:focus-visible,
.menu-toggle:focus-visible,
.social-links a:focus-visible,
.footer-contact a:focus-visible,
.contact-socials a:focus-visible {
  outline: 3px solid rgba(214, 154, 45, 0.45);
  outline-offset: 3px;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.primary {
  color: var(--white);
  background: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(31, 111, 175, 0.25);
}

.primary:hover {
  background: var(--steel);
}

.secondary {
  color: var(--teal-dark);
  background: var(--cyan-soft);
}

.ghost {
  color: var(--teal-dark);
  border: 1px solid var(--line);
  background: var(--white);
}

.ghost:hover {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.full {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: stretch;
  min-height: calc(100vh - 74px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 58px) 34px;
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.cover-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  min-height: auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(30px, 4vw, 48px) clamp(18px, 4vw, 58px) clamp(34px, 4vw, 52px);
  overflow: hidden;
}

.cover-copy {
  max-width: 720px;
}

.cover-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 0.98;
}

.cover-copy .eyebrow {
  margin-bottom: 12px;
}

.cover-copy .hero-copy {
  margin-bottom: 10px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

.cover-copy .hero-actions {
  margin-top: 12px;
  margin-bottom: 0;
}

.cover-gallery {
  display: block;
  min-height: 0;
}

.cover-gallery figure {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 46px rgba(24, 49, 63, 0.12);
}

.cover-gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease, filter 240ms ease;
}

.cover-gallery figure:hover img {
  filter: saturate(1.02);
  transform: scale(1.045);
}

.cover-main {
  height: auto;
}

.cover-main figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: rgba(19, 32, 42, 0.72);
  backdrop-filter: blur(12px);
}

.cover-main span {
  color: #e7f4ff;
  font-size: 13px;
}

.cover-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--white);
}

.feature-link {
  display: grid;
  min-height: 260px;
  grid-template-rows: auto 1fr auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-link:hover {
  border-color: rgba(8, 127, 140, 0.34);
  box-shadow: 0 20px 44px rgba(24, 49, 63, 0.1);
  transform: translateY(-4px);
}

.feature-link img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 520ms ease, filter 220ms ease;
}

.feature-link:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.04);
}

.feature-link h2 {
  margin: 24px 28px 12px;
  font-size: 30px;
}

.feature-link p {
  margin: 0 28px 28px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  padding: clamp(58px, 8vw, 112px) clamp(18px, 4vw, 58px) clamp(38px, 6vw, 74px);
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(40px, 5.5vw, 74px);
}

.specialist.page-specialist {
  min-height: auto;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(30px, 4vw, 56px);
  padding-top: clamp(18px, 2vw, 28px);
  padding-bottom: clamp(24px, 3vw, 42px);
}

.page-specialist .specialist-copy {
  max-width: 720px;
}

.page-specialist .specialist-copy h1 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 0.96;
}

.page-specialist .specialist-copy > p:not(.specialist-role) {
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-specialist .specialist-image img {
  aspect-ratio: 4 / 3;
  max-height: 430px;
  object-position: center;
}

.page-specialist .section-kicker {
  margin-bottom: 8px;
}

.specialist-profile-image {
  position: relative;
}

.profile-trust-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 92, 103, 0.84);
  backdrop-filter: blur(12px);
}

.profile-trust-badge span {
  color: #e7f4ff;
  font-size: 13px;
}

.specialist-role {
  margin: 0 0 12px;
  color: var(--teal-dark) !important;
  font-size: 17px;
  font-weight: 800;
}

.credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.credential-pills span {
  padding: 9px 12px;
  border: 1px solid rgba(8, 127, 140, 0.22);
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--cyan-soft);
  font-size: 12px;
  font-weight: 800;
}

.page-specialist .btn {
  min-height: 44px;
}

.trust-section {
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.86), var(--white) 72%),
    var(--paper);
}

.trust-section .trust-heading {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: clamp(24px, 5vw, 68px);
  max-width: none;
  margin-bottom: 28px;
}

.trust-section .trust-heading h2 {
  max-width: 820px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.trust-section .trust-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.credential-card {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.credential-card:hover {
  box-shadow: 0 20px 44px rgba(24, 49, 63, 0.1);
  transform: translateY(-4px);
}

.credential-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 520ms ease, filter 220ms ease;
}

.credential-card:hover > img {
  filter: saturate(1) contrast(1);
  transform: scale(1.035);
}

.credential-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
  background: var(--white);
}

.credential-card-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.12;
}

.credential-card-copy p {
  margin-bottom: 0;
}

.credential-card p,
.expertise-intro p,
.path-summary p {
  color: var(--muted);
  line-height: 1.65;
}

.expertise-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(38px, 7vw, 90px);
  background: var(--white);
}

.expertise-intro {
  align-self: start;
  position: sticky;
  top: 110px;
}

.expertise-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.expertise-list article {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-list strong {
  color: var(--teal-dark);
}

.expertise-list span {
  color: var(--muted);
  line-height: 1.55;
}

.specialist-visual-break {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 58px) clamp(62px, 8vw, 112px);
  background: var(--white);
}

.specialist-visual-break figure {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--steel);
}

.specialist-visual-break img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 620ms ease, filter 240ms ease;
}

.specialist-visual-break figure:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.04);
}

.specialist-visual-break figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(19, 32, 42, 0.8));
}

.specialist-visual-break figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.professional-path {
  background:
    radial-gradient(circle at 12% 18%, rgba(96, 179, 249, 0.16), transparent 30%),
    linear-gradient(180deg, var(--paper), #eaf5fe);
}

.path-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 0.72fr) minmax(360px, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.path-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(22, 50, 74, 0.08);
}

.path-summary h2 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.03;
}

.path-summary p {
  margin: 0;
}

.local-practice-grid {
  display: grid;
  gap: 14px;
}

.local-practice-grid article {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 118px;
  padding: 22px 24px;
  border: 1px solid rgba(96, 179, 249, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.local-practice-grid article:hover {
  border-color: rgba(31, 111, 175, 0.44);
  box-shadow: 0 16px 34px rgba(22, 50, 74, 0.09);
  transform: translateY(-3px);
}

.local-practice-grid span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-practice-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.education-highlights {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(22, 50, 74, 0.07);
}

.education-highlights h3 {
  margin-bottom: 22px;
}

.education-highlights div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.education-highlights strong {
  color: var(--amber);
}

.education-highlights span {
  color: var(--steel);
  line-height: 1.5;
}

.specialist-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(54px, 7vw, 88px) clamp(18px, 4vw, 58px);
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--steel));
}

.specialist-cta .section-kicker {
  color: #d9eeff;
}

.specialist-cta h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.specialist-cta .btn {
  white-space: nowrap;
}

.specialist-cta .btn.primary {
  color: var(--teal-dark);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(8, 49, 74, 0.18);
}

.specialist-cta .btn.primary:hover {
  color: var(--white);
  background: var(--ink);
}

body[data-page="especialista"] .section {
  padding-top: clamp(30px, 3vw, 44px);
  padding-bottom: clamp(30px, 3vw, 44px);
}

body[data-page="especialista"] .section-heading {
  margin-bottom: 26px;
}

body[data-page="especialista"] .specialist-visual-break {
  padding-bottom: clamp(30px, 3vw, 44px);
}

body[data-page="especialista"] .specialist-cta {
  padding-top: clamp(30px, 3vw, 44px);
  padding-bottom: clamp(30px, 3vw, 44px);
}

.hero::before {
  position: absolute;
  top: 9%;
  right: 44%;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(8, 127, 140, 0.17);
  border-radius: 50%;
  transform: translateY(var(--parallax-y, 0));
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-copy {
  max-width: 650px;
  color: var(--steel);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics div {
  padding: 18px 16px 18px 0;
}

.hero-metrics div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 17px;
}

.hero-metrics span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  align-self: center;
  margin: 0;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.hero-media img {
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: 48% center;
  transform: scale(1.02);
  transition: transform 800ms ease;
}

.hero-media:hover img {
  transform: scale(1.055);
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  max-width: 360px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: rgba(19, 32, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-badge strong {
  font-size: 15px;
}

.hero-badge span {
  color: #e7f4ff;
  font-size: 13px;
}

.section {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 58px);
}

body[data-page="experiencia"] .section.experience {
  padding-bottom: clamp(22px, 3vw, 42px);
}

body[data-page="experiencia"] .section.case-study {
  padding-top: clamp(22px, 3vw, 42px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(240px, 0.12fr);
  max-width: 1040px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 42px;
  color: var(--white);
  background: var(--steel);
}

.intro-band .section-kicker {
  color: #d9eeff;
}

.intro-band p {
  margin: 0;
  color: #e7f4ff;
  font-size: 18px;
  line-height: 1.75;
}

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

.service-grid article {
  position: relative;
  min-height: 228px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-grid article::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 22px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.service-grid article::after {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  content: "";
  border-radius: 50%;
  background: rgba(8, 127, 140, 0.08);
  transition: transform 220ms ease;
}

.service-grid article:hover {
  border-color: rgba(8, 127, 140, 0.34);
  box-shadow: 0 20px 44px rgba(24, 49, 63, 0.1);
  transform: translateY(-4px);
}

.service-grid article:hover::after {
  transform: scale(1.3);
}

.service-grid article h3,
.prep-grid article h3 {
  font-size: 21px;
  line-height: 1.18;
}

.service-grid p,
.specialist-copy p,
.timeline p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--amber);
  font-weight: 800;
}

.specialist {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 58px);
  background: var(--white);
}

.specialist-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.specialist-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.specialist-copy {
  max-width: 640px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--steel);
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 5px var(--cyan-soft);
}

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

.gallery figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--steel);
}

.gallery img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96);
  transition: filter 260ms ease, transform 520ms ease;
}

.gallery figure:hover img {
  filter: saturate(0.98) contrast(1);
  transform: scale(1.045);
}

.gallery figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(19, 32, 42, 0) 40%, rgba(19, 32, 42, 0.78));
}

.gallery figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.case-study {
  background: var(--white);
}

.case-study-heading {
  display: block;
  max-width: 980px;
  margin-bottom: 28px;
}

.case-study-heading h2,
.case-study-heading p {
  margin-bottom: 0;
}

.case-study-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.case-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 52px rgba(22, 50, 74, 0.1);
}

.clinical-gallery .case-viewer {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.clinical-cases {
  display: grid;
  gap: 26px;
}

.clinical-cases .case-viewer {
  width: 100%;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.case-summary div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: var(--white);
}

.case-summary div:first-child {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.case-summary div:first-child::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.case-summary span,
.case-stage-header span,
.case-video-ready span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-summary div:first-child span {
  color: rgba(255, 255, 255, 0.86);
}

.case-summary strong {
  color: var(--ink);
  line-height: 1.25;
}

.case-summary div:first-child strong {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.08;
}

.case-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.case-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-stage-before {
  border-color: rgba(31, 111, 175, 0.22);
}

.case-stage-after {
  border-color: rgba(96, 179, 249, 0.48);
}

.case-stage-header {
  display: grid;
  gap: 8px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.case-stage-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.case-stage-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.compact-case .case-media-grid,
.single-media,
.standalone-media {
  grid-template-columns: 1fr;
}

.standalone-media {
  padding: 18px 20px 20px;
}

.case-media-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-media-grid figcaption {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 13px 14px 14px;
}

.case-media-grid figcaption strong {
  color: var(--ink);
}

.case-media-grid figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.case-media-grid figure:hover .xray-frame img {
  transform: scale(1.025);
}

.case-video-ready {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 18px 20px;
  border: 1px dashed rgba(31, 111, 175, 0.35);
  border-radius: 8px;
  background: rgba(234, 245, 254, 0.72);
}

.clinical-cases > .case-video-ready {
  margin: 0;
}

.case-video-ready div {
  display: grid;
  gap: 5px;
}

.case-video-ready strong {
  color: var(--ink);
}

.case-video-ready p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.case-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  background: var(--cyan-soft);
}

.case-tabs button {
  min-width: 104px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.case-tabs button.is-active {
  color: var(--white);
  background: var(--teal-dark);
  box-shadow: 0 7px 18px rgba(31, 111, 175, 0.2);
}

.case-diagnosis {
  display: grid;
  gap: 3px;
  text-align: right;
}

.case-diagnosis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-diagnosis strong {
  color: var(--ink);
  font-size: 14px;
}

.case-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.case-panel.is-active {
  display: grid;
  animation: caseFade 280ms ease;
}

.case-panel figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.xray-frame {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: #101820;
}

.video-frame {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: #101820;
}

.xray-frame img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  transition: transform 420ms ease;
}

.video-frame video {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: contain;
  background: #101820;
}

.case-panel figure:hover .xray-frame img {
  transform: scale(1.025);
}

.case-panel figcaption {
  display: grid;
  gap: 5px;
  padding: 16px 18px 18px;
}

.case-panel figcaption strong {
  color: var(--ink);
}

.case-panel figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.case-note {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.clinical-cases > .case-note {
  padding: 0;
}

@keyframes caseFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.timeline div {
  position: relative;
  padding: 30px;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.timeline div::after {
  position: absolute;
  right: -38px;
  top: -38px;
  width: 108px;
  height: 108px;
  content: "";
  border-radius: 50%;
  background: rgba(96, 179, 249, 0.16);
  pointer-events: none;
}

.timeline span,
.timeline h3,
.timeline p {
  position: relative;
  z-index: 1;
}

.timeline div:hover {
  box-shadow: 0 18px 38px rgba(24, 49, 63, 0.09);
  transform: translateY(-3px);
}

.timeline span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--steel);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 42px;
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 58px);
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--steel));
}

.preparation {
  background: linear-gradient(180deg, var(--paper), #eaf5fe);
}

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

.prep-grid article {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.prep-grid article:hover {
  border-color: rgba(31, 111, 175, 0.32);
  box-shadow: 0 18px 38px rgba(24, 49, 63, 0.09);
  transform: translateY(-3px);
}

.prep-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact .section-kicker,
.contact p {
  color: #e7f4ff;
}

.contact-specialty {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  line-height: 1.35;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-whatsapp {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #20b85a;
  box-shadow: 0 12px 30px rgba(18, 117, 58, 0.3);
  animation: whatsappGlow 2.8s ease-in-out infinite;
}

.contact-whatsapp::after {
  position: absolute;
  top: -45%;
  left: -38%;
  width: 24%;
  height: 190%;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(20deg);
  animation: whatsappShine 3.2s ease-in-out infinite;
}

.contact-whatsapp:hover {
  color: var(--white);
  background: #15994a;
  box-shadow: 0 15px 34px rgba(18, 117, 58, 0.38);
}

.contact-whatsapp img {
  width: 19px;
  height: 19px;
}

@keyframes whatsappGlow {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(18, 117, 58, 0.26);
  }

  50% {
    box-shadow: 0 14px 34px rgba(32, 184, 90, 0.48), 0 0 0 5px rgba(32, 184, 90, 0.12);
  }
}

@keyframes whatsappShine {
  0%,
  58% {
    left: -38%;
  }

  82%,
  100% {
    left: 122%;
  }
}

.contact-panel dl {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.contact-panel div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-panel dt {
  color: #d9eeff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.contact-panel dd a {
  color: inherit;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.contact-socials a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.contact-socials a:hover {
  box-shadow: 0 9px 20px rgba(22, 50, 74, 0.22);
  transform: translateY(-4px) scale(1.1);
}

.contact-socials img {
  width: 19px;
  height: 19px;
}

.map-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.map-shell {
  display: grid;
  gap: 28px;
}

.map-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.map-copy h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.map-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}

.map-card {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 52px rgba(24, 49, 63, 0.1);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.map-details {
  display: grid;
  align-content: stretch;
  gap: 1px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.map-details div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.map-details span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-details strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 58px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--teal-dark);
}

.footer-contact a {
  color: var(--teal-dark);
}

.footer-contact .footer-social {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.footer-contact .footer-social:hover {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 9px 20px rgba(31, 111, 175, 0.2);
  transform: translateY(-4px) scale(1.1);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(91, 112, 131, 0.84) !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.56;
  filter: grayscale(0.25) saturate(0.8);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.footer-credit img {
  width: auto;
  height: 24px;
  object-fit: contain;
  transition: transform 260ms ease, filter 260ms ease;
}

.footer-credit:hover {
  opacity: 1;
  filter: grayscale(0) saturate(1.08);
  border-color: rgba(96, 179, 249, 0.32);
  background: rgba(96, 179, 249, 0.1);
  box-shadow: 0 10px 26px rgba(22, 50, 74, 0.1);
  transform: translateY(-2px);
}

.footer-credit:hover img {
  animation: bushidoMark 620ms ease;
  filter: drop-shadow(0 0 9px rgba(238, 24, 20, 0.34));
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-social:hover img,
.contact-socials a:hover img {
  animation: socialPop 420ms ease;
}

@keyframes bushidoMark {
  0% {
    transform: scale(1) rotate(0deg);
  }

  35% {
    transform: scale(1.14) rotate(-4deg);
  }

  70% {
    transform: scale(1.06) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.whatsapp-popup {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(96, 179, 249, 0.38);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(22, 50, 74, 0.22);
  transform: translateY(18px);
  animation: popupIn 420ms ease 700ms forwards;
  opacity: 0;
}

.whatsapp-popup.is-hidden {
  display: none;
}

.whatsapp-popup.has-reopened {
  animation-delay: 0ms;
}

.popup-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.popup-avatar {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--white);
}

.popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup-header strong {
  display: block;
  padding: 0;
  font-size: 14px;
}

.popup-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.popup-status::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #70e59a;
  box-shadow: 0 0 0 3px rgba(112, 229, 154, 0.2);
}

.popup-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.popup-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
}

.popup-body {
  padding: 16px;
  background: var(--white);
}

.popup-message {
  position: relative;
  margin: 0 26px 14px 0;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  color: var(--steel);
  background: var(--cyan-soft);
  font-size: 13px;
  line-height: 1.5;
}

.whatsapp-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: #20b85a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(32, 184, 90, 0.2);
  transition: background 180ms ease, transform 180ms ease;
}

.whatsapp-action:hover {
  background: #15994a;
  transform: translateY(-1px);
}

.whatsapp-action img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.popup-body small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.whatsapp-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 29;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 17px 6px 7px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: #20b85a;
  box-shadow: 0 16px 36px rgba(32, 184, 90, 0.28);
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.whatsapp-launcher:hover {
  background: #15994a;
  transform: translateY(-2px);
}

.whatsapp-launcher span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #15994a;
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.whatsapp-launcher span img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

@keyframes socialPop {
  0% {
    transform: scale(1) rotate(0);
  }

  45% {
    transform: scale(1.22) rotate(-10deg);
  }

  100% {
    transform: scale(1.08) rotate(0);
  }
}

.whatsapp-launcher strong {
  font-size: 13px;
}

.whatsapp-popup:not(.is-hidden) + .whatsapp-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@keyframes popupIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .reveal:nth-child(2),
.gallery .reveal:nth-child(2),
.timeline .reveal:nth-child(2),
.prep-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.service-grid .reveal:nth-child(3),
.gallery .reveal:nth-child(3),
.timeline .reveal:nth-child(3),
.prep-grid .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.service-grid .reveal:nth-child(4),
.gallery .reveal:nth-child(4) {
  transition-delay: 220ms;
}

@media (max-width: 980px) {
  .specialist.page-specialist {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .nav-links {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.nav-open .nav-links > a,
  .site-header.nav-open .nav-item > a {
    justify-content: space-between;
    padding: 14px 0;
    min-height: auto;
    border-radius: 0;
    border-top: 1px solid var(--line);
  }

  .nav-item {
    display: grid;
  }

  .submenu {
    position: static;
    width: auto;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu::before {
    display: none;
  }

  .submenu a {
    margin-left: 14px;
    padding: 10px 12px;
    background: rgba(230, 246, 247, 0.7);
  }

  .hero,
  .cover-hero,
  .specialist,
  .contact,
  .intro-band,
  .page-hero,
  .map-copy,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .cover-gallery {
    min-height: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
  }

  .hero-metrics,
  .service-grid,
  .timeline,
  .prep-grid,
  .cover-links,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .expertise-section,
  .path-layout,
  .specialist-cta,
  .specialist-visual-break {
    grid-template-columns: 1fr;
  }

  .path-summary {
    padding: 26px;
  }

  .expertise-intro {
    position: static;
  }

  .specialist-cta .btn {
    justify-self: start;
  }

  .hero-metrics div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .trust-section .trust-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .case-study-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-summary,
  .case-comparison,
  .case-video-ready {
    grid-template-columns: 1fr;
  }

  .case-media-grid {
    grid-template-columns: 1fr;
  }

  .map-copy {
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .cover-copy h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .trust-section .trust-heading h2 {
    font-size: 38px;
  }

  .trust-section .trust-heading p {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .map-copy h2 {
    font-size: 38px;
  }

  .map-actions .btn {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 330px;
  }

  .cover-gallery {
    min-height: 0;
  }

  .cover-gallery figure {
    min-height: 0;
  }

  .section,
  .specialist,
  .contact,
  .page-hero,
  .cover-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .service-grid article {
    min-height: auto;
    padding: 24px;
  }

  .credential-card {
    min-height: auto;
  }

  .specialist-visual-break figure {
    min-height: 330px;
  }

  .expertise-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .path-summary,
  .education-highlights,
  .local-practice-grid article {
    padding: 22px;
  }

  .path-summary h2 {
    font-size: 34px;
  }

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

  .case-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .case-tabs,
  .case-tabs button {
    width: 100%;
  }

  .case-diagnosis {
    text-align: left;
  }

  .case-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .case-summary div {
    padding: 15px 16px;
  }

  .case-comparison {
    padding: 14px;
  }

  .case-stage-header {
    padding: 18px 16px 16px;
  }

  .case-video-ready {
    margin: 0 14px 14px;
    padding: 16px;
  }

  .xray-frame,
  .xray-frame img,
  .video-frame,
  .video-frame video {
    min-height: 390px;
    height: 390px;
  }

  .gallery figure {
    min-height: 320px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
