/* ============================================================
   Dra. Massiel Zenteno — Sitio web
   Paleta: #055695  ·  #6fd2e7  ·  #ffffff (dominante)
   ============================================================ */

:root {
  --c-deep: #055695;
  --c-deep-700: #044578;
  --c-deep-50: #eaf3fa;
  --c-sky: #6fd2e7;
  --c-sky-soft: #cfeef6;
  --c-white: #ffffff;
  --c-ink: #0a1f33;
  --c-ink-soft: #41546a;
  --c-line: rgba(10, 31, 51, 0.10);
  --c-bg: #ffffff;
  --c-bg-soft: #f6fbfd;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(5,86,149,.05), 0 8px 24px rgba(5,86,149,.06);
  --shadow-2: 0 4px 14px rgba(5,86,149,.10), 0 24px 64px rgba(5,86,149,.10);
  --shadow-3: 0 10px 30px rgba(5,86,149,.18), 0 40px 80px rgba(5,86,149,.14);

  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* -------- typography -------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
  color: var(--c-ink);
  text-wrap: balance;
}
.h2--light { color: var(--c-white); }
.h2 em { font-style: italic; color: var(--c-deep); }
.grad {
  background: linear-gradient(90deg, var(--c-deep) 0%, #2e8fc7 50%, var(--c-sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-deep);
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--c-deep); display: inline-block;
}
.kicker--light { color: var(--c-sky); }
.kicker--light::before { background: var(--c-sky); }
.lede { color: var(--c-ink-soft); font-size: 18px; line-height: 1.6; max-width: 60ch; }
.lede--light { color: rgba(255,255,255,.78); }

/* -------- buttons -------- */
@keyframes brand-glow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: 999px;
  position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn::after {
  content: ""; pointer-events: none;
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.18);
}
.btn:active { transform: scale(.97); }
.btn--lg { font-size: 15px; padding: 16px 24px; }

.btn--primary {
  color: var(--c-white);
  background: linear-gradient(135deg, #055695, #1d7bc4, #6fd2e7, #1d7bc4, #055695) 0 50% / 200% 200%;
  border: 2px solid rgba(111,210,231,.55);
  animation: brand-glow 3.5s linear infinite;
  box-shadow:
    0 0 12px rgba(5,86,149,.50),
    0 0 24px rgba(111,210,231,.25),
    inset 0 1px rgba(255,255,255,.22);
}
.btn--primary:hover {
  transform: scale(1.05);
  border-color: rgba(111,210,231,.9);
  box-shadow:
    0 0 16px rgba(5,86,149,.65),
    0 0 32px rgba(111,210,231,.40),
    0 0 48px rgba(111,210,231,.22),
    inset 0 1px rgba(255,255,255,.30);
}
.btn--primary:active { transform: scale(.96); }

.btn--ghost {
  background: transparent; color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: 0 0 0 0 rgba(5,86,149,0);
}
.btn--ghost:hover {
  background: var(--c-deep-50); color: var(--c-deep);
  transform: scale(1.04);
  border-color: rgba(5,86,149,.45);
  box-shadow: 0 0 14px rgba(111,210,231,.35), 0 0 28px rgba(5,86,149,.18);
}
.btn--ghost::after { border-color: rgba(5,86,149,.08); }

.btn--glass {
  color: var(--c-white);
  background: linear-gradient(135deg, rgba(5,86,149,.35), rgba(111,210,231,.35), rgba(5,86,149,.35)) 0 50% / 200% 200%;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(111,210,231,.45);
  animation: brand-glow 4s linear infinite;
  box-shadow:
    0 0 10px rgba(111,210,231,.30),
    inset 0 1px rgba(255,255,255,.20);
}
.btn--glass:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,.55);
  box-shadow:
    0 0 16px rgba(111,210,231,.45),
    0 0 32px rgba(111,210,231,.25),
    inset 0 1px rgba(255,255,255,.35);
}
.btn--glass:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .btn--primary, .btn--glass { animation: none; }
  .btn:hover, .btn--primary:hover, .btn--glass:hover, .btn--ghost:hover { transform: none; }
}

/* ============================================================
   Seamless video — crossfade between two stacked layers
   so the loop point is invisible.
   ============================================================ */
.sv-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  will-change: opacity;
  pointer-events: none;
}
.sv-layer--on { opacity: 1; }
.sv-layer video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.sv-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #055695 0%, #0a1f33 100%);
}

/* ============================================================
   NAV — glassmorphic
   ============================================================ */
/* Hospital / clinical professional nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(5,86,149,.06), 0 4px 14px rgba(5,86,149,.04);
  transition: box-shadow .3s var(--ease);
  color: var(--c-ink);
}
.nav--scrolled {
  box-shadow: 0 1px 0 rgba(5,86,149,.12), 0 10px 28px rgba(5,86,149,.10);
}

/* Thin info strip on top — deep blue */
.nav__topbar {
  background: linear-gradient(90deg, #034170 0%, #055695 50%, #034170 100%);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 7px 28px;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.nav__topinfo {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav__topinfo svg { opacity: .75; stroke: currentColor; }
a.nav__topinfo:hover { color: var(--c-sky); }
.nav__topinfo--cert { color: var(--c-sky); }
.nav__topinfo--cert svg { opacity: 1; }

/* Social links (Facebook + Instagram) — used in nav topbar + footer */
.social { display: inline-flex; align-items: center; gap: 8px; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: inherit;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.social__link:hover {
  transform: translateY(-1px) scale(1.06);
}

/* Nav topbar variant — right-anchored, subtle sky chips */
.social--nav {
  margin-left: auto;
}
.social--nav .social__link {
  width: 24px; height: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
.social--nav .social__link:hover {
  background: rgba(111,210,231,.22);
  border-color: rgba(111,210,231,.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(111,210,231,.4);
}

/* Footer variant — larger, branded gradient on hover, centered row */
.footer .social { display: inline-flex; }
.footer .social__link { display: inline-flex; }
.footer__socials {
  display: flex;
  justify-content: center;
  padding: 24px 32px 8px;
}
.social--footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.social--footer .social__link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
}
.social--footer .social__link:hover {
  background: linear-gradient(135deg, #055695, #6fd2e7);
  border-color: rgba(111,210,231,.6);
  color: #fff;
  box-shadow: 0 0 18px rgba(111,210,231,.35);
}

/* Main nav row — solid white */
.nav__inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
  background: transparent; backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0; border-radius: 0; height: auto;
  color: var(--c-ink);
  position: relative;
}
.nav__inner::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #055695 25%, #6fd2e7 50%, #055695 75%, transparent 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav--scrolled .nav__inner::after { opacity: 1; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 4px 12px rgba(5,86,149,.18);
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__mark--lg { width: 56px; height: 56px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--c-ink); }
.brand__sub { font-size: 11px; opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-deep); }

.nav__links {
  margin-left: auto; display: flex; align-items: center; gap: 22px;
}
.nav__links a {
  position: relative;
  padding: 10px 0;
  font-size: 14px; font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.01em;
  background: transparent;
  border-radius: 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #055695, #6fd2e7);
  transform: translateX(-50%);
  transition: width .25s var(--ease);
  border-radius: 2px;
}
.nav__links a:hover { background: transparent; color: var(--c-deep); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn--ghost {
  color: var(--c-deep);
  border-color: rgba(5,86,149,.22);
  background: transparent;
}
.nav__cta .btn--ghost:hover { background: var(--c-deep-50); color: var(--c-deep); }

.nav__burger { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.nav__burger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.nav__drawer {
  position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-2);
}
.nav__drawer a { padding: 12px 14px; color: var(--c-ink); border-radius: 12px; }
.nav__drawer a:hover { background: var(--c-deep-50); color: var(--c-deep); }

@media (max-width: 960px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__topinfo--hours, .nav__topinfo--cert { display: none; }
}
@media (max-width: 640px) {
  .nav__cta .btn--primary { display: none; }
  .nav__topbar-inner { gap: 12px; padding: 6px 16px; font-size: 11px; }
  .nav__topinfo--addr { display: none; }
}

/* ============================================================
   Text reveal animations (re-fire on each viewport entry).
   Large texts: dramatic lift + blur clear.
   Small texts: subtle slide up + fade.
   ============================================================ */
.anim-lg, .anim-sm {
  opacity: 0;
  will-change: transform, opacity, filter;
}
.anim-lg {
  transform: translateY(42px) scale(.94);
  filter: blur(10px);
  transition:
    opacity .95s cubic-bezier(.16,.84,.3,1),
    transform .95s cubic-bezier(.16,.84,.3,1),
    filter .95s cubic-bezier(.16,.84,.3,1);
}
.anim-lg.anim-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.anim-sm {
  transform: translateY(14px);
  transition:
    opacity .55s cubic-bezier(.4,0,.2,1),
    transform .55s cubic-bezier(.4,0,.2,1);
  transition-delay: .08s;
}
.anim-sm.anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   WhatsApp floating action button (bottom-right)
   Uses .btn.btn--primary for color + animated glow; this just
   reshapes it to a circle and pins it.
   ============================================================ */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 64px; height: 64px;
  padding: 0;
  border-radius: 50%;
  z-index: 60;
  gap: 0;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after { border-radius: 50%; }
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-lg, .anim-sm {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px 32px 56px; color: var(--c-white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #055695 0%, #0a1f33 100%); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.85) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,86,149,.35) 0%, rgba(5,86,149,.05) 28%, rgba(5,86,149,.55) 70%, rgba(5,30,55,.85) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(111,210,231,.30), transparent 50%),
    linear-gradient(90deg, rgba(5,30,55,.55) 0%, rgba(5,30,55,.15) 50%, transparent 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  backdrop-filter: blur(14px);
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #6dffb0;
  box-shadow: 0 0 0 4px rgba(109,255,176,.18);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109,255,176,.18); }
  50% { box-shadow: 0 0 0 8px rgba(109,255,176,.10); }
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
  align-self: flex-start;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-sky); font-weight: 600;
  margin-bottom: 22px;
}
.hero__eyebrow .line { width: 38px; height: 1px; background: var(--c-sky); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400; font-style: normal;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(90deg, #ffffff 0%, var(--c-sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero__lede strong { color: var(--c-white); font-weight: 600; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  margin-top: 44px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.hero__meta-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400;
  line-height: 1;
  color: var(--c-white);
}
.hero__meta-num span { color: var(--c-sky); font-size: 22px; margin-left: 4px; }
.hero__meta-lbl { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; }
.hero__meta-sep { width: 1px; height: 36px; background: rgba(255,255,255,.22); }

.hero__scroll {
  position: absolute; right: 32px; bottom: 36px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  animation: float 3s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--c-white); border-color: rgba(255,255,255,.4); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 640px) {
  .hero { padding: 110px 22px 80px; }
  .hero__meta { gap: 16px; }
  .hero__meta-sep { display: none; }
  .hero__scroll { display: none; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
/* Reveal — visible by default (no opacity gating). */
.reveal { opacity: 1; }

/* ============================================================
   Section base
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__head .kicker::before { width: 18px; }
.section__head .h2 { margin-top: 12px; }
.section__head .lede { margin: 14px auto 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.section--about { background: var(--c-bg); }
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: 80px; align-items: center;
}
.about__media { position: relative; }
.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(111,210,231,.40), transparent 60%),
    linear-gradient(160deg, var(--c-deep-50), #ffffff 65%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
}
.about__photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease-out;
  will-change: opacity, transform;
}
.about__photo-img.is-on {
  opacity: 1;
  transform: scale(1);
}
.about__photo-tag {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px; color: var(--c-deep);
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.about__photo-tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ec27e;
  box-shadow: 0 0 0 3px rgba(46,194,126,.18);
}
.about__photo::before {
  content: ""; position: absolute; inset: auto -30% -40% auto;
  width: 80%; height: 80%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c-sky), transparent 70%);
  opacity: .25;
  z-index: 1;
  pointer-events: none;
}
.about__badge {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--c-white);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  color: var(--c-deep);
}
.about__badge svg { color: var(--c-deep); }
.about__badge div { display: flex; flex-direction: column; line-height: 1.2; color: var(--c-ink); }
.about__badge strong { font-size: 14px; }
.about__badge span { font-size: 12px; color: var(--c-ink-soft); }

.about__copy p { color: var(--c-ink-soft); font-size: 17px; line-height: 1.7; max-width: 56ch; }
.about__creds {
  margin: 26px 0 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.about__creds li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; line-height: 1.4; color: var(--c-ink);
}
.about__creds li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-sky);
  box-shadow: 0 0 0 4px rgba(111,210,231,.25);
  flex-shrink: 0;
}

.about__values { display: grid; gap: 14px; }
.value {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.value:hover { transform: translateY(-2px); border-color: rgba(5,86,149,.20); box-shadow: var(--shadow-1); }
.value__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-deep); color: var(--c-white);
  flex-shrink: 0;
}
.value strong { display: block; font-size: 15px; }
.value span { color: var(--c-ink-soft); font-size: 14px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__badge { left: 16px; }
}

/* ============================================================
   SPECIALTIES
   ============================================================ */
.section--specialties {
  background:
    radial-gradient(60% 50% at 80% 0%, var(--c-deep-50), transparent 70%),
    var(--c-bg);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto auto -50% -10%;
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c-sky-soft), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(5,86,149,.20); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: .7; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--c-deep-50); color: var(--c-deep);
  display: grid; place-items: center; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.card p { color: var(--c-ink-soft); font-size: 15px; line-height: 1.6; margin: 0; position: relative; z-index: 1; }
.card__more {
  display: inline-block; margin-top: 18px;
  font-size: 13px; font-weight: 600; color: var(--c-deep);
  position: relative; z-index: 1;
  transition: transform .25s var(--ease);
}
.card:hover .card__more { transform: translateX(4px); }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   CONDITIONS — enfermedades tratadas
   ============================================================ */
.section--conditions {
  background:
    radial-gradient(60% 50% at 80% 0%, var(--c-deep-50), transparent 70%),
    var(--c-bg);
}
.cond__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 12px;
  list-style: none;
  padding: 0;
}
@keyframes cond-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cond__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 13.5px; font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(5,86,149,.04);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  animation: cond-in .45s cubic-bezier(.4,0,.2,1) both;
}
.cond__chip:hover {
  transform: translateY(-2px);
  border-color: rgba(5,86,149,.35);
  box-shadow: 0 8px 18px rgba(5,86,149,.10), 0 0 20px rgba(111,210,231,.18);
  background: #fbfdff;
}
.cond__chip svg {
  flex-shrink: 0;
  padding: 3px;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #055695, #6fd2e7);
  color: #fff;
  border-radius: 50%;
}
.cond__more {
  margin-top: 28px;
  display: flex; justify-content: center;
}

@media (max-width: 640px) {
  .cond__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cond__chip { font-size: 12.5px; padding: 9px 12px; gap: 8px; }
  .cond__chip svg { width: 18px; height: 18px; }
}
@media (max-width: 420px) {
  .cond__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES — proceso
   ============================================================ */
.section--services {
  position: relative;
  background: linear-gradient(160deg, #62d2e0 0%, #a8e6ee 45%, #ffffff 100%);
  color: var(--c-ink);
  overflow: hidden;
  isolation: isolate;
}
.services-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.services-bg__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Keep the cyan→white palette: tint video, blend with screen, soft opacity */
  filter: saturate(.35) contrast(1.05) brightness(1.05) hue-rotate(-10deg);
  mix-blend-mode: multiply;
  opacity: .35;
}
.services-bg__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(98,210,224,.55) 0%,
    rgba(168,230,238,.45) 45%,
    rgba(255,255,255,.55) 100%);
}
.section--services > .container { position: relative; z-index: 1; }
.section--services .section__head { text-align: left; max-width: 720px; margin-left: 0; }
.section--services .kicker { color: var(--c-deep); }
.section--services .kicker::before { background: var(--c-deep); }

.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover {
  background: rgba(255,255,255,.9);
  border-color: var(--c-white);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5,86,149,.15);
}
.step__n {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 40px; line-height: 1;
  color: var(--c-deep);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--c-ink); }
.step p { font-size: 14px; line-height: 1.55; color: var(--c-ink-soft); margin: 0; }

@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   OFFICE
   ============================================================ */
.section--office { background: var(--c-bg); }
.section--office .container + .container { margin-top: 56px; }

/* ---------- Office photo carousel ---------- */
.office__carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--c-line);
  background: linear-gradient(180deg, #055695 0%, #0a1f33 100%);
}
.office__carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.office__carousel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 6s ease-out;
  will-change: opacity, transform;
}
.office__carousel-img.is-on {
  opacity: 1;
  transform: scale(1);
}
.office__carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,30,55,.05) 0%, rgba(5,30,55,.0) 40%, rgba(5,30,55,.45) 100%);
  pointer-events: none;
}
.office__carousel-counter {
  position: absolute; left: 20px; top: 20px;
  padding: 6px 12px;
  background: rgba(5,30,55,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}
.office__carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85);
  color: var(--c-deep);
  border: 1px solid rgba(5,86,149,.18);
  box-shadow: 0 8px 20px rgba(5,30,55,.25);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.office__carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(5,30,55,.32), 0 0 24px rgba(111,210,231,.35);
}
.office__carousel-arrow--prev { left: 16px; }
.office__carousel-arrow--next { right: 16px; }

.office__carousel-dots {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  padding: 6px 10px;
  background: rgba(5,30,55,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}
.office__carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 0;
  cursor: pointer;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.office__carousel-dot.is-on {
  background: #6fd2e7;
  width: 24px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(111,210,231,.6);
}

@media (max-width: 640px) {
  .office__carousel-stage { aspect-ratio: 4/3; }
  .office__carousel-arrow { width: 40px; height: 40px; }
  .office__carousel-arrow--prev { left: 10px; }
  .office__carousel-arrow--next { right: 10px; }
  .office__carousel-counter { left: 12px; top: 12px; font-size: 11px; padding: 5px 10px; }
}

.office__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.office__copy p { color: var(--c-ink-soft); font-size: 17px; line-height: 1.7; max-width: 52ch; }
.office__cards { margin-top: 28px; display: grid; gap: 12px; }
.office__card {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  min-width: 0;
}
.office__card:hover { transform: translateY(-2px); border-color: rgba(5,86,149,.2); box-shadow: var(--shadow-1); }
.office__card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-deep); color: var(--c-white);
  display: grid; place-items: center; flex-shrink: 0;
}
.office__card-text {
  display: flex; flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}
.office__card-text strong { font-size: 15px; color: var(--c-ink); }
.office__card-text span { font-size: 13px; color: var(--c-ink-soft); margin-top: 2px; }

.office__map { position: relative; }
.map {
  position: relative; aspect-ratio: 1/1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}
.map iframe {
  width: 100%; height: 100%; display: block;
  border: 0;
  filter: saturate(.9);
}
.map__chip {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--c-white); color: var(--c-deep);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  z-index: 2;
}
.map__chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }

@media (max-width: 900px) {
  .office__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   REVIEWS — carrusel en movimiento
   ============================================================ */
.section--reviews {
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(111,210,231,.20), transparent 60%),
    var(--c-bg-soft);
  overflow: hidden;
}
.reviews__head {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: end;
  margin-bottom: 56px;
}
.reviews__head .lede { margin-top: 4px; }
.reviews__stats {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
}
.reviews__stats > div:not(.reviews__stats-sep) { display: flex; flex-direction: column; }
.reviews__stats strong { font-family: var(--font-display); font-size: 40px; font-weight: 400; color: var(--c-deep); line-height: 1; letter-spacing: -0.02em; }
.reviews__stats span { font-size: 13px; color: var(--c-ink-soft); margin-top: 6px; }
.reviews__stats-sep { width: 1px; height: 36px; background: var(--c-line); }

/* Marquee */
.marquee {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding: 8px 0;
  --marquee-speed-a: 55s;
  --marquee-speed-b: 70s;
}
.marquee__row {
  display: flex; gap: 22px;
  width: max-content;
  animation: marqueeMove linear infinite;
  will-change: transform;
}
.marquee__row--a { animation-duration: var(--marquee-speed-a); }
.marquee__row--b { animation-duration: var(--marquee-speed-b); animation-direction: reverse; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marqueeMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade edges */
.marquee__fade {
  position: absolute; top: 0; bottom: 0; width: 140px;
  pointer-events: none; z-index: 2;
}
.marquee__fade--l { left: 0;  background: linear-gradient(90deg, var(--c-bg-soft), rgba(246,251,253,0)); }
.marquee__fade--r { right: 0; background: linear-gradient(270deg, var(--c-bg-soft), rgba(246,251,253,0)); }

/* Card */
.rcard {
  flex: 0 0 360px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.rcard:hover {
  transform: translateY(-4px);
  border-color: rgba(5,86,149,.20);
  box-shadow: var(--shadow-2);
}
.rcard__stars { display: flex; gap: 3px; color: #f5b400; }
.rcard__body {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.rcard__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-deep), var(--c-sky));
  color: var(--c-white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 17px;
  flex-shrink: 0;
}
.rcard__who { display: flex; flex-direction: column; line-height: 1.2; }
.rcard__who strong { font-size: 14px; }
.rcard__who span { font-size: 12px; color: var(--c-ink-soft); margin-top: 2px; }

@media (max-width: 900px) {
  .reviews__head { grid-template-columns: 1fr; gap: 24px; }
  .rcard { flex: 0 0 280px; }
  .marquee__fade { width: 60px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact {
  position: relative;
  background: linear-gradient(180deg, #033c6b 0%, var(--c-deep) 100%);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.contact-bg__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Blend the video into the brand blue, keep neuron texture readable */
  filter: saturate(.4) contrast(1.1) brightness(.85);
  mix-blend-mode: screen;
  opacity: .55;
}
.contact-bg__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(111,210,231,.22), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(5,86,149,.55), transparent 60%),
    linear-gradient(180deg, rgba(3,60,107,.55) 0%, rgba(5,86,149,.65) 100%);
}
.section--contact > .container { position: relative; z-index: 1; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: stretch;
}
.contact__center {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact__center .lede { margin-left: auto; margin-right: auto; }
.contact__cta {
  margin-top: 22px;
  font-size: 16px;
  padding: 18px 28px;
}
.contact__center .contact__channels {
  width: 100%;
  max-width: 560px;
  margin-top: 36px;
}

/* ---------- Booking card (right column) ---------- */
.contact__card {
  background: var(--c-white); color: var(--c-ink);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.contact__card-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.contact__card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-deep-50);
  overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(5,86,149,.18);
}
.contact__card-avatar img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 6px;
}
.contact__card-head > div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.contact__card-head strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.contact__card-head span {
  font-size: 11px; color: var(--c-deep);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px;
}
.contact__card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  color: var(--c-deep);
  letter-spacing: -0.01em;
}
.contact__types {
  display: flex; flex-direction: column; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.contact__types li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-size: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact__types li:hover {
  border-color: rgba(5,86,149,.25);
  background: #fbfdff;
}
.contact__types li > svg {
  width: 20px; height: 20px;
  padding: 4px;
  background: linear-gradient(135deg, #055695, #6fd2e7);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact__types li > span {
  flex: 1; min-width: 0;
  color: var(--c-ink);
}
.contact__types li > em {
  color: var(--c-deep);
  font-style: normal; font-weight: 600;
  font-size: 12.5px;
  background: var(--c-deep-50);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.contact__card-note {
  font-size: 13px; color: var(--c-ink-soft);
  margin: 0; line-height: 1.55;
}
.contact__card-note a {
  color: var(--c-deep);
  font-weight: 600;
  text-decoration: underline;
}
.contact__card-note a:hover { color: #1d7bc4; }
.contact__card-cta {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

@media (max-width: 640px) {
  .contact__card { padding: 24px; }
  .contact__types li { padding: 10px 12px; font-size: 13.5px; }
}
.contact__copy { display: flex; flex-direction: column; justify-content: center; }
.contact__channels { margin-top: 32px; display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--c-white);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.channel:hover { background: rgba(255,255,255,.10); border-color: rgba(111,210,231,.5); transform: translateY(-1px); }
.channel > svg { color: var(--c-sky); flex-shrink: 0; }
.channel div { display: flex; flex-direction: column; }
.channel strong { font-size: 15px; }
.channel span { font-size: 13px; color: rgba(255,255,255,.65); }

.contact__form {
  background: var(--c-white); color: var(--c-ink);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
  min-width: 0;
}
.contact__form h3 {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em;
}
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--c-ink-soft); min-width: 0; }
.contact__form .full { grid-column: 1 / -1; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font: inherit; color: var(--c-ink);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  outline: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.contact__form input[type="date"] {
  display: block;
  text-align: left;
  line-height: 1.3;
  min-height: 46px;
  font-family: inherit;
  -webkit-min-logical-width: 0;
}
.contact__form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.contact__form input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--c-deep);
  background: var(--c-white);
  box-shadow: 0 0 0 4px rgba(5,86,149,.12);
}
.contact__form textarea { resize: vertical; min-height: 80px; }
.contact__form .btn { justify-content: center; }
.contact__legal { grid-column: 1 / -1; font-size: 12px; color: var(--c-ink-soft); margin: 4px 0 0; }

.contact__sent {
  grid-column: 1 / -1;
  text-align: center; padding: 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.contact__sent-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-deep-50); color: var(--c-deep);
  display: grid; place-items: center;
}
.contact__sent h3 { margin: 0; }
.contact__sent p { color: var(--c-ink-soft); margin: 0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__form { grid-template-columns: minmax(0, 1fr); padding: 24px; }

  /* Center the copy column on mobile so the chip, title, lede,
     and channels stack symmetrically inside the viewport. */
  .contact__copy { text-align: center; align-items: center; }
  .contact__copy .lede { margin-left: auto; margin-right: auto; }
  .contact__channels { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .channel { text-align: left; }

  /* Center the form heading and stretch the submit button so the
     CTA doesn't drift to one side. */
  .contact__form h3 { text-align: center; }
  .contact__form .btn.full { width: 100%; justify-self: stretch; }
  .contact__legal { text-align: center; }
  .contact__sent { align-items: center; text-align: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #052642; color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.brand--footer { color: var(--c-white); }
.brand--footer .brand__name { font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.brand--footer .brand__sub { font-size: 12px; letter-spacing: 0.10em; opacity: .8; }
.footer__about { margin-top: 18px; font-size: 14px; line-height: 1.6; max-width: 38ch; }
.footer h4 { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--c-white); margin: 0 0 14px; letter-spacing: -0.01em; }
.footer a, .footer span { display: block; font-size: 14px; padding: 6px 0; color: rgba(255,255,255,.7); transition: color .2s var(--ease); }
.footer a:hover { color: var(--c-sky); }
.footer__bottom {
  margin-top: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer__bottom a { display: inline; color: inherit; text-decoration: underline; padding: 0; }
.footer__bottom a:hover { color: #fff; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; text-align: center; }
  .footer__grid > div { display: flex; flex-direction: column; align-items: center; }
  .footer__about { margin-left: auto; margin-right: auto; }
  .brand--footer { justify-content: center; }
  .footer__bottom { padding: 0 12px; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__about { max-width: 34ch; }
}

/* ============================================================
   Selection
   ============================================================ */
::selection { background: var(--c-sky); color: var(--c-deep); }
