:root {
  --ink: #061827;
  --navy: #071b2d;
  --navy-2: #0d2942;
  --navy-3: #123755;
  --blue: #86a8c0;
  --blue-2: #d9e8f1;
  --paper: #f4f8fb;
  --paper-2: #ffffff;
  --white: #ffffff;
  --muted: #647386;
  --line: rgba(7, 27, 45, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --green: #20b762;
  --green-dark: #12884b;
  --radius: 8px;
  --container: 1180px;
  --display: "Newsreader", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--navy); }
[id] { scroll-margin-top: 88px; }
body {
  min-width: 320px;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

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

/* ───────── Header ───────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 24, 39, 0.9), rgba(6, 24, 39, 0.55));
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
  animation: headerDrop 720ms cubic-bezier(.2,.8,.2,1) both;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; min-width: 158px; }
.brand img { width: 148px; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}
.nav a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--blue-2); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28); }
.menu-toggle { display: none; }

/* ───────── Hero ───────── */
.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 168px 0 96px;
  color: var(--white);
  background: var(--navy);
}
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 22%, rgba(134, 168, 192, 0.22), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(134, 168, 192, 0.14), transparent 32%),
    linear-gradient(180deg, var(--navy) 0%, #061522 100%);
}
.profile-hero::after {
  content: "Vilella";
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: -0.22em;
  z-index: -2;
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.045);
  font-weight: 500;
  pointer-events: none;
  animation: watermarkRise 1200ms cubic-bezier(.2,.8,.2,1) 500ms both;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.profile-copy { position: relative; }
.profile-copy .eyebrow,
.profile-copy h1,
.profile-copy .specialty,
.profile-copy .registration,
.profile-copy .quick-tags {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 900ms cubic-bezier(.2,.8,.2,1) both;
}
.profile-copy .eyebrow { animation-delay: 120ms; }
.profile-copy h1 { animation-delay: 230ms; }
.profile-copy .specialty { animation-delay: 340ms; }
.profile-copy .registration { animation-delay: 450ms; }
.profile-copy .quick-tags { animation-delay: 560ms; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}
.profile-copy h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
}
.profile-copy h1 .first-name { display: block; color: #d3dfeb; font-weight: 400; }
.profile-copy h1 .last-name { display: block; color: var(--white); }

.accent-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  margin: 28px 0 22px;
  transform-origin: left;
  animation: ruleGrow 900ms cubic-bezier(.2,.8,.2,1) 640ms both;
}

.specialty {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
}
.registration {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #b9c8d6;
  font-size: 0.92rem;
  font-weight: 500;
}
.registration span:nth-child(n + 2) { color: var(--blue-2); font-size: 0.82rem; letter-spacing: 0.04em; }

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.quick-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e7eef5;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.quick-tags span:hover {
  background: rgba(134, 168, 192, 0.14);
  border-color: rgba(134, 168, 192, 0.5);
  transform: translateY(-1px);
}

/* Portrait */
.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.42);
  animation: portraitIn 1100ms cubic-bezier(.2,.8,.2,1) 240ms both;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 27, 45, 0.42) 100%);
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.portrait:hover img { transform: scale(1.03); }
/* ───────── Biography ───────── */
.biography {
  background: var(--paper-2);
  padding: 110px 0;
  position: relative;
}
.biography::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 80px;
  height: 1px;
  background: var(--blue);
  transform: translateX(-50%);
}
.biography-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.biography-intro {
  position: sticky;
  top: 110px;
}
.biography-intro h2 {
  margin-top: 16px;
  color: var(--navy);
  font-size: clamp(2.25rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.biography-intro .pull {
  position: relative;
  margin-top: 28px;
  padding-left: 18px;
  color: var(--navy-3);
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
}
.biography-intro .pull::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
}

.biography-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #3a4a5d;
  font-size: 1.02rem;
  line-height: 1.78;
}
.biography-copy p {
  position: relative;
  text-align: justify;
  hyphens: auto;
}
.biography-copy p:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.88;
  margin: 4px 12px 0 0;
  color: var(--navy);
}
.biography-copy strong { color: var(--navy); font-weight: 600; }

/* ───────── Credentials cards ───────── */
.credentials-section {
  padding: 100px 0;
  background: var(--paper);
  position: relative;
}
.credentials-section .section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.credentials-section .section-head .eyebrow {
  justify-content: center;
}
.credentials-section .section-head h2 {
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.04;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cred-card {
  position: relative;
  padding: 24px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.cred-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1);
}
.cred-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(7, 27, 45, 0.12);
  border-color: rgba(134, 168, 192, 0.4);
}
.cred-card:hover::before { transform: scaleX(1); }
.cred-card .cred-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.cred-card h3 {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.22;
  font-weight: 500;
}
.cred-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ───────── Professional links ───────── */
.professional-links {
  background: linear-gradient(180deg, #0a2238 0%, #061522 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.professional-links::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(134, 168, 192, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(134, 168, 192, 0.12), transparent 40%);
  pointer-events: none;
}
.professional-links .section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
  position: relative;
}
.professional-links .section-head .eyebrow {
  justify-content: center;
  color: var(--blue-2);
}
.professional-links .section-head .eyebrow::before {
  background: var(--blue);
}
.professional-links .section-head h2 {
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.06;
}
.professional-links .section-head p {
  margin-top: 16px;
  color: #c2d2e1;
  font-size: 1rem;
}

.links-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.links-row.two-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin: 0 auto;
}
.links-row.one-link {
  grid-template-columns: minmax(0, 390px);
  justify-content: center;
}
.social-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1), background 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}
.social-link::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(134, 168, 192, 0.66), transparent 40%, transparent 60%, rgba(217, 232, 241, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.34s ease;
  pointer-events: none;
}
.social-link:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}
.social-link:hover::before { opacity: 1; }

.social-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  position: relative;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.social-link:hover .social-icon { transform: translateY(-2px) scale(1.06) rotate(-2deg); }

.social-icon svg, .social-icon img {
  width: 30px;
  height: 30px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

/* Doctoralia icon */
.social-link:hover .icon-doctoralia { transform: rotate(-12deg) scale(1.08); }

/* Instagram gradient ring */
.icon-instagram-wrap {
  background: conic-gradient(from 180deg at 50% 50%, #fd1d1d, #fcb045, #833ab4, #5f5cb0, #fd1d1d);
  padding: 2px;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: igRing 6s linear infinite;
}
.social-link:hover .icon-instagram-wrap { animation-duration: 2.4s; }
.icon-instagram-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-instagram-inner svg { color: #c13584; }

/* Google icon — multicolor with star pulse */
.icon-google { color: #4285f4; }
.icon-star-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(134, 168, 192, 0);
  pointer-events: none;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.social-link:hover .icon-star-pulse {
  border-color: rgba(134, 168, 192, 0.8);
  transform: scale(1.18);
  animation: starGlow 1.6s ease-in-out infinite;
}

.social-label {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.005em;
}
.social-meta {
  margin-top: -8px;
  font-size: 0.82rem;
  color: #a8bccf;
  letter-spacing: 0.02em;
}
.social-arrow {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: gap 0.3s ease, color 0.3s ease;
}
.social-arrow svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.social-link:hover .social-arrow { gap: 12px; color: var(--white); }
.social-link:hover .social-arrow svg { transform: translateX(2px) translateY(-2px); }

/* ───────── Appointment CTA ───────── */
.appointment {
  position: relative;
  padding: 120px 0;
  background: var(--paper-2);
  overflow: hidden;
}
.appointment::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(134, 168, 192, 0.1), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(134, 168, 192, 0.12), transparent 40%);
  pointer-events: none;
}
.appointment-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.appointment .eyebrow { color: var(--blue); }
.appointment h2 {
  margin-top: 14px;
  color: var(--navy);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.appointment p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 38rem;
  line-height: 1.7;
}
.appointment-card {
  position: relative;
  padding: 36px 32px;
  background: linear-gradient(160deg, var(--navy) 0%, #04111d 100%);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(7, 27, 45, 0.32);
}
.appointment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(134, 168, 192, 0.22), transparent 50%);
  pointer-events: none;
}
.appointment-card .availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.appointment-card .availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 183, 98, 0.22);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.appointment-card h3 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.18;
}
.appointment-card ul {
  margin-top: 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appointment-card li {
  position: relative;
  padding-left: 26px;
  color: #c9d8e6;
  font-size: 0.94rem;
}
.appointment-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.appointment-card .button {
  margin-top: 34px;
  width: 100%;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}
.button-primary:hover { background: var(--blue-2); }
.button-accent {
  background: var(--blue);
  color: var(--navy);
  box-shadow: 0 18px 38px rgba(134, 168, 192, 0.28);
}
.button-accent:hover { background: var(--blue-2); }
.button svg { width: 16px; height: 16px; }
.button-arrow svg { transition: transform 0.3s ease; }
.button:hover .button-arrow svg { transform: translateX(4px); }

/* ───────── Footer ───────── */
.footer {
  background: #04111d;
  color: #7f92a5;
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 38px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  color: #9dafbf;
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}
.footer-legal,
.footer-links { display: contents; }
.footer-separator { color: rgba(157, 175, 191, 0.46); }
.footer-links a {
  color: #9dafbf;
  text-decoration: underline;
  text-decoration-color: rgba(157, 175, 191, 0.34);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-links a:hover { color: #d5e1ec; text-decoration-color: currentColor; }

/* ───────── WhatsApp float ───────── */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(32, 183, 98, 0.32);
  animation: whatsappIn 800ms cubic-bezier(.2,.8,.2,1) 900ms both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 48px rgba(32, 183, 98, 0.42);
}
.whatsapp-float svg { width: 30px; height: 30px; }

/* ───────── Reveal on scroll ───────── */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 780ms cubic-bezier(.2,.8,.2,1), transform 780ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ───────── Keyframes ───────── */
@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleGrow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes portraitIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes watermarkRise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes igRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes starGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(134, 168, 192, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(134, 168, 192, 0); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(32, 183, 98, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(32, 183, 98, 0); }
}
@keyframes whatsappIn {
  from { opacity: 0; transform: translateY(18px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .profile-layout { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 480px; margin: 0 auto; }
  .biography-layout { grid-template-columns: 1fr; gap: 36px; }
  .biography-intro { position: static; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .links-row { grid-template-columns: 1fr; }
  .appointment-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .header-inner { min-height: 64px; }
  .brand img { width: 138px; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px 18px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.open { display: grid; }
  .nav a { padding: 14px 0; }
  .nav-cta { margin-top: 8px; color: var(--navy); }
  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    color: var(--white);
  }

  .profile-hero { padding: 124px 0 64px; }
  .profile-copy h1 { font-size: clamp(2.7rem, 14vw, 3.8rem); }
  .biography { padding: 70px 0; }
  .biography-copy { font-size: 0.98rem; }
  .biography-copy p:first-child::first-letter { font-size: 2.8rem; }
  .credentials-section { padding: 64px 0; }
  .cred-grid { grid-template-columns: 1fr; }
  .professional-links { padding: 64px 0; }
  .appointment { padding: 70px 0; }
  .appointment-card { padding: 28px 22px; }
}
