/* ============================================================
   CLÍNICA MODELO ODONTOLOGIA — styles.css
   Light premium medical · green · soft blue · yellow accent
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base */
  --off-white: #F8FAF7;
  --white: #FFFFFF;
  --soft-blue: #EAF3FF;
  --pale-blue: #DCEEFF;
  --soft-green: #EAF7EF;
  --green: #35A86B;
  --deep-green: #16734A;
  --soft-yellow: #FFF7D6;
  --yellow: #F4C542;
  --charcoal: #172033;
  --muted: #667085;
  --border: #E4EAF0;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--off-white);
  --surface: var(--white);
  --text: var(--charcoal);
  --line: var(--border);
  --line-strong: #D5DEE7;

  /* Shape */
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 40px rgba(20, 40, 80, 0.06);
  --shadow-hover: 0 20px 50px rgba(20, 40, 80, 0.11);
  --shadow-soft: 0 8px 26px rgba(20, 40, 80, 0.05);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.7rem, 1.7rem + 4.2vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.25rem + 2.7vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.6875rem;

  /* Rhythm */
  --space-section: clamp(4.25rem, 3rem + 7vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  --container: 1280px;

  /* Motion tokens */
  --motion-fast: 0.35s;
  --motion-base: 0.7s;
  --motion-slow: 1s;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-distance: 30px;
  --stagger-small: 0.08s;
  --stagger-medium: 0.14s;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

h1 em, h2 em { font-style: italic; color: var(--green); }

::selection { background: var(--pale-blue); color: var(--deep-green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  transition: top 0.2s var(--ease-standard);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.section__head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
.section__intro {
  color: var(--muted);
  max-width: 30rem;
  font-size: var(--fs-lead);
}
.section__cta { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Eye-level rhythm of section backgrounds (white → soft → white → blue → green) */
.section--tint { background: var(--white); }
.manifesto { background: var(--off-white); }
.pillars { background: var(--white); }
.treatments { background: var(--soft-blue); }
.tech { background: var(--white); }
.team { background: var(--off-white); }
.doctors { background: var(--soft-green); }
.results { background: var(--white); }
.testimonials { background: var(--soft-blue); }
.location { background: var(--white); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--accent { color: var(--green); }

/* Graphic-system: progressive accent rule */
.rule-accent {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 1.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transform-origin: left center;
}

[data-placeholder] {
  border-bottom: 1px dashed rgba(53, 168, 107, 0.5);
  padding-bottom: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.btn:hover .icon:last-child { transform: translateX(3px); }
.icon--fill { fill: currentColor; stroke: none; }

.btn--primary {
  --btn-bg: var(--green);
  --btn-fg: var(--white);
  box-shadow: 0 12px 26px -14px rgba(53, 168, 107, 0.65);
}
.btn--primary:hover {
  --btn-bg: var(--deep-green);
  box-shadow: 0 16px 32px -14px rgba(22, 115, 74, 0.6);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--deep-green);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--green);
  background: var(--soft-blue);
}

.btn--lg { padding: 1.05rem 1.9rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep-green);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  transition: border-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.link-arrow .icon {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.link-arrow:hover { color: var(--green); border-color: var(--green); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base) var(--ease-standard),
              background-color var(--motion-base) var(--ease-standard);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 250, 247, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-standard);
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.site-header.is-scrolled::before { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--green);
  background: var(--soft-blue);
  border: 1px solid var(--pale-blue);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}
.brand__sub {
  font-size: 0.5625rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 0.24rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.6rem; }
.nav__list a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease-standard);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-standard);
}
.nav__list a:hover { color: var(--green); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 0.65rem 1.15rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.35s var(--ease-standard), opacity 0.25s var(--ease-standard);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 12vw, 10.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  background:
    radial-gradient(58% 55% at 82% 12%, rgba(220, 238, 255, 0.85), transparent 68%),
    radial-gradient(48% 48% at 6% 92%, rgba(234, 247, 239, 0.9), transparent 70%),
    linear-gradient(180deg, var(--white), var(--off-white));
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(125, 178, 222, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 178, 222, 0.14) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(72% 62% at 62% 38%, #000, transparent 82%);
  mask-image: radial-gradient(72% 62% at 62% 38%, #000, transparent 82%);
}
.hero__glow {
  position: absolute;
  right: -12%;
  top: 8%;
  width: 48vw; height: 48vw;
  max-width: 640px; max-height: 640px;
  border: 1px solid rgba(125, 178, 222, 0.3);
  border-radius: 50%;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.hero__orb--blue {
  width: 220px; height: 220px;
  right: 6%; top: 14%;
  background: radial-gradient(circle at 35% 35%, rgba(125, 178, 222, 0.2), rgba(125, 178, 222, 0));
}
.hero__orb--green {
  width: 300px; height: 300px;
  left: -6%; bottom: 4%;
  background: radial-gradient(circle at 50% 50%, rgba(53, 168, 107, 0.16), rgba(53, 168, 107, 0));
}
.hero__dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  right: 6%; top: 13%;
  box-shadow: 0 0 0 6px rgba(244, 197, 66, 0.16);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.02;
  margin: 1.4rem 0 1.5rem;
  max-width: 15ch;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__media { position: relative; }
.hero__ring {
  position: absolute;
  inset: 6% -5% -4% 8%;
  border: 1px solid rgba(53, 168, 107, 0.35);
  border-radius: clamp(150px, 20vw, 280px) clamp(150px, 20vw, 280px) 26px 26px;
  z-index: 0;
}
.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: clamp(150px, 20vw, 280px) clamp(150px, 20vw, 280px) 26px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft-blue);
  box-shadow: 0 40px 80px -56px rgba(20, 40, 80, 0.5);
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero__badge {
  position: absolute;
  z-index: 2;
  left: -0.75rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  max-width: 16rem;
}
.hero__badge strong { display: block; font-size: 0.85rem; }
.hero__badge span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.hero__badge-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 168, 107, 0.16);
}

/* ---------- Trust indicators ---------- */
.trust {
  background: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.trust__grid {
  display: grid;
  gap: 1.1rem;
}
.trust__item {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.trust__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pale-blue);
}
.trust__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--soft-green);
  color: var(--green);
  margin-bottom: 1rem;
}
.trust__icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust__title { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--charcoal); }
.trust__text { font-size: var(--fs-small); color: var(--muted); margin-top: 0.35rem; }

/* ---------- Manifesto ---------- */
.manifesto__inner { max-width: 52rem; }
.manifesto__title { font-size: var(--fs-h2); margin: 1rem 0 1.6rem; }
.manifesto__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.05rem);
  line-height: 1.32;
  color: var(--deep-green);
  max-width: 32rem;
}
.manifesto__text { color: var(--muted); margin-top: 1.6rem; max-width: 42rem; }

/* ---------- Pillars ---------- */
.pillars__grid { display: grid; gap: 1.25rem; }
.pillar {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--pale-blue);
  box-shadow: var(--shadow-hover);
}
.pillar__num {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--deep-green);
  margin-bottom: 1.25rem;
}
.pillar__num::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.pillar h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.pillar p { color: var(--muted); font-size: var(--fs-small); margin-top: 0.6rem; }

/* ---------- Treatments ---------- */
.treatments__grid { display: grid; gap: 1.25rem; }
.treatment__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.treatment__link:hover {
  transform: translateY(-4px);
  border-color: var(--pale-blue);
  box-shadow: var(--shadow-hover);
}
.treatment__media { position: relative; overflow: hidden; }
.treatment__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transition: transform var(--motion-slow) var(--ease-standard);
}
.treatment__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0) 62%, rgba(23, 32, 51, 0.08));
  pointer-events: none;
}
.treatment__link:hover .treatment__media img { transform: scale(1.04); }
.treatment__body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.treatment__num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green);
}
.treatment__num::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.treatment__body h3 { font-size: var(--fs-h3); margin: 0.6rem 0 0.7rem; }
.treatment__body p { color: var(--muted); font-size: var(--fs-small); flex: 1; }
.treatment__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-green);
}
.treatment__cta .icon {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.treatment__link:hover .treatment__cta { color: var(--green); }
.treatment__link:hover .treatment__cta .icon { transform: translateX(5px); }

/* ---------- Tech ---------- */
.tech__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.tech__media { position: relative; }
.tech__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft-blue);
  box-shadow: var(--shadow-card);
}
.tech__frame img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; filter: saturate(1.02) contrast(1.02); }
.tech__ring {
  position: absolute;
  inset: -1.25rem 1.5rem 1.5rem -1.25rem;
  border: 1px solid rgba(53, 168, 107, 0.35);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.tech__content h2 { font-size: var(--fs-h2); margin: 1rem 0 1.4rem; max-width: 18ch; }
.tech__lead { color: var(--muted); max-width: 34rem; }
.tech__list { margin: 2.25rem 0; display: grid; gap: 0; }
.tech__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--charcoal);
}
.tech__list li:last-child { border-bottom: 1px solid var(--border); }
.tech__list span {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

/* ---------- Team ---------- */
.team__grid { display: grid; gap: 1.5rem; }
.member__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft-blue);
  box-shadow: var(--shadow-card);
}
.member__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transition: transform var(--motion-slow) var(--ease-standard);
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 1.25rem 0.25rem 0; }
.member__body h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.member__role { color: var(--green); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; }
.member__cro { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.member__desc { color: var(--muted); font-size: var(--fs-small); margin: 0.7rem 0 1rem; }

/* ---------- Doctors ---------- */
.doctors .section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.doctor { display: grid; gap: 1.5rem; align-items: center; }
.doctor--placeholder { margin-top: 3rem; }
.doctor__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft-green);
  box-shadow: var(--shadow-card);
}
.doctor__photo img { width: 100%; aspect-ratio: 5 / 5; object-fit: cover; filter: saturate(1.02) contrast(1.02); }
.doctor__body { padding-block: 0.5rem; }
.doctor__name { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin: 0.6rem 0 0.3rem; }
.doctor__cro { color: var(--green); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.doctor__text { color: var(--muted); margin-top: 1.2rem; max-width: 34rem; }

/* ---------- Results / before-after ---------- */
.results__grid { display: grid; gap: 1.5rem; }
.case__title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-top: 1.1rem; }
.case__meta { color: var(--muted); font-size: var(--fs-small); margin-top: 0.2rem; }

.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  touch-action: none;
  user-select: none;
  background: var(--soft-blue);
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__layer--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__layer--after img { filter: saturate(1.03) contrast(1.03); }

.ba__label {
  position: absolute;
  top: 0.85rem;
  z-index: 3;
  padding: 0.3rem 0.7rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.ba__label--before { left: 0.85rem; }
.ba__label--after { right: 0.85rem; color: var(--deep-green); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  width: 48px;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: ew-resize;
}
.ba__handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06);
}
.ba__grip {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-green);
  box-shadow: 0 8px 24px -10px rgba(20, 40, 80, 0.45);
}
.ba__grip svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.results__disclaimer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: var(--fs-small);
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  max-width: 34rem;
}

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; gap: 1.5rem; }
.testimonial {
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pale-blue);
}
.testimonial__quote {
  width: 28px; height: 28px;
  fill: none; stroke: var(--green); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1.2rem;
}
.testimonial__text { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; color: var(--charcoal); }
.testimonial figcaption { margin-top: 1.5rem; display: grid; gap: 0.15rem; }
.testimonial__stars { color: var(--yellow); letter-spacing: 0.15em; font-size: 0.85rem; margin-bottom: 0.4rem; }
.testimonial figcaption strong { font-size: 0.95rem; font-weight: 600; }
.testimonial__meta { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Location ---------- */
.location__content h2 { font-size: var(--fs-h2); margin: 1rem 0 1.2rem; }
.location__lead { color: var(--muted); max-width: 30rem; }
.location__list { margin: 2.25rem 0; display: grid; gap: 1.25rem; }
.location__list li { display: flex; gap: 1rem; align-items: flex-start; }
.location__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--soft-blue);
  color: var(--green);
}
.location__icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.location__list strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.location__list span,
.location__list a { color: var(--muted); font-size: var(--fs-small); }
.location__list a:hover { color: var(--green); }
.location__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  background: linear-gradient(150deg, var(--soft-green), var(--off-white) 48%, var(--soft-blue));
  border-top: 1px solid var(--border);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
  text-align: center;
}
.final-cta__bg { position: absolute; inset: 0; pointer-events: none; }
.final-cta__orb {
  position: absolute;
  border-radius: 50%;
}
.final-cta__orb--one {
  width: 420px; height: 420px;
  left: -8%; top: -30%;
  background: radial-gradient(circle at 40% 40%, rgba(53, 168, 107, 0.14), transparent 68%);
}
.final-cta__orb--two {
  width: 360px; height: 360px;
  right: -6%; bottom: -34%;
  background: radial-gradient(circle at 50% 50%, rgba(125, 178, 222, 0.18), transparent 68%);
}
.final-cta__dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  right: 16%; top: 28%;
  box-shadow: 0 0 0 6px rgba(244, 197, 66, 0.2);
}
.final-cta__line {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(70%, 520px);
  height: 2px;
  transform: translateX(-50%);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(53, 168, 107, 0.45), transparent);
}
.final-cta__inner { position: relative; max-width: 44rem; margin-inline: auto; }
.final-cta__inner .eyebrow { justify-content: center; color: var(--deep-green); }
.final-cta__inner .eyebrow::before { background: currentColor; }
.final-cta h2 { font-size: var(--fs-h2); color: var(--charcoal); margin: 1rem 0 1.2rem; }
.final-cta h2 em { color: var(--green); }
.final-cta__text { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 2.25rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__desc { color: var(--muted); font-size: var(--fs-small); margin-top: 1.25rem; max-width: 22rem; }
.footer__col h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep-green);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a { color: var(--muted); font-size: var(--fs-small); transition: color 0.25s var(--ease-standard); }
.footer__col a:hover { color: var(--green); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
  display: grid;
  gap: 0.5rem;
}
.footer__legal { color: var(--muted); font-size: 0.78rem; }
.footer__legal a { color: var(--deep-green); text-decoration: underline; text-underline-offset: 3px; }
.footer__note { color: rgba(102, 112, 133, 0.85); font-size: 0.72rem; }

/* ---------- Floating / mobile CTA ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--deep-green));
  color: var(--white);
  box-shadow: 0 14px 34px -12px rgba(22, 115, 74, 0.7);
  transition: transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { width: 100%; }

/* ============================================================
   Motion system — reveal states (GSAP takes over with inline styles)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js.motion [data-reveal] {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
  }
  .js.motion [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
  .js.motion [data-line] {
    transform: scaleX(0);
    transform-origin: left center;
  }
  .js.motion .final-cta__line[data-line] {
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
  }
  .js.motion [data-line].is-revealed {
    transform: none;
  }
  .js.motion .final-cta__line[data-line].is-revealed {
    transform: translateX(-50%);
  }
}

/* ---------- Image fallback ---------- */
.is-fallback {
  position: relative;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(53, 168, 107, 0.16), transparent 60%),
    linear-gradient(140deg, var(--soft-blue), var(--pale-blue));
}
.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(125, 178, 222, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 178, 222, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .section__head--split { grid-template-columns: 1.4fr 1fr; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .treatments__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }

  .pillars__grid { grid-template-columns: repeat(6, 1fr); }
  .pillar { grid-column: span 2; }
  .pillar:nth-child(4) { grid-column: span 3; }
  .pillar:nth-child(5) { grid-column: span 3; }

  .tech__grid { grid-template-columns: 1fr 1fr; }
  .tech__content { padding-left: 1rem; }

  .doctor--feature { grid-template-columns: 1.1fr 1fr; }
  .doctor--placeholder { grid-template-columns: 1fr 1.1fr; }
  .doctor--placeholder .doctor__photo { order: 2; }

  .results__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }

  .location__grid { grid-template-columns: 1fr; }
  .location__content { max-width: 42rem; margin-inline: auto; }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav { gap: 1.75rem; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero__media { margin-right: -2rem; }
  .treatments__grid { grid-template-columns: repeat(3, 1fr); }
  .team__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 2rem 3rem;
    background: rgba(248, 250, 247, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.4s var(--ease-standard), transform 0.4s var(--ease-standard), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav__list a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.01em; color: var(--charcoal); }
  .nav__cta { width: 100%; }
  .nav-toggle { display: block; z-index: 120; }
}

@media (max-width: 640px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 4.9rem; }
  .whatsapp-float { bottom: 5.4rem; }
  .hero__badge { left: 0; right: auto; bottom: 1rem; }
  .ba__handle { width: 42px; }
  .hero__orb--blue { width: 160px; height: 160px; }
  .hero__orb--green { width: 200px; height: 200px; }
}

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