/* ===== Neuromed — design tokens (manual de identidad v1) ===== */
:root {
  /* primary palette */
  --nm-navy-900: #0F1340;
  --nm-navy: #1A1F5C;
  --nm-navy-500: #3A4080;
  --nm-teal: #169A9D;
  --nm-teal-dark: #0C6E70;
  --nm-teal-soft: #E8F5F5;
  --nm-lime: #9EBE20;
  --nm-lime-dark: #6B8214;
  --nm-lime-soft: #F1F7DC;
  --nm-amber: #F5BB1A;
  --nm-amber-dark: #8C6610;
  --nm-amber-soft: #FDF3D9;

  /* neutrals */
  --nm-ink: #0E1116;
  --nm-muted: #5A6072;
  --nm-line: #E6E8EF;
  --nm-line-soft: #F0F1F5;
  --nm-bg: #F4F5F8;
  --nm-paper: #FFFFFF;

  /* semantic aliases (used across the site) */
  --bg: var(--nm-bg);
  --bg-2: var(--nm-line-soft);
  --paper: var(--nm-paper);
  --ink: var(--nm-navy);          /* Navy = institutional text */
  --ink-2: var(--nm-navy-500);
  --muted: var(--nm-muted);
  --line: var(--nm-line);
  --line-2: #D6D9E0;
  --accent: var(--nm-teal);        /* Teal = action */
  --accent-ink: #ffffff;
  --warn: #C03A2B;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --shadow-soft: 0 1px 0 rgba(15,19,64,0.04), 0 12px 32px -16px rgba(15,19,64,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--nm-ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--nm-navy); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.serif {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--nm-navy);
}

.mono {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 236, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 5px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--nm-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--nm-paper);
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.nav-drawer a {
  padding: 13px var(--gutter);
  font-size: 14px;
  color: var(--nm-navy);
  border-bottom: 1px solid var(--nm-line-soft);
}
.nav-drawer a:hover { background: var(--nm-teal-soft); color: var(--nm-teal-dark); }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.brand-mark::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.brand-name {
  font-family: "Newsreader", serif;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  transition: transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-arrow {
  width: 18px; height: 18px;
  display: inline-grid;
  place-items: center;
}

/* WhatsApp button + actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #25D366;
  color: #ffffff;
  transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-wa:hover {
  background: #1ebe5b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(37,211,102,0.8);
}
.btn-wa-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
}
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  width: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
  background: radial-gradient(circle at 30% 107%, #ffb84d 0%, #ff7a00 10%, #fd5949 35%, #d6249f 60%, #285AEB 90%);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-ig:hover {
  transform: translateY(-1px);
  filter: saturate(1.1) brightness(1.05);
  box-shadow: 0 8px 20px -10px rgba(214,36,159,0.8);
}

/* ============ HERO ============ */
.hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 80px);
  position: relative;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22,154,157,0.18);
}
.hero-headline {
  font-family: "Newsreader", serif;
  font-weight: 380;
  font-size: clamp(44px, 5.8vw, 90px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-headline em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent);
}
.hero-headline .underline-word {
  position: relative;
  display: inline-block;
}
.hero-headline .underline-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.04em;
  background: var(--ink);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.6fr minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.6fr minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hero-bottom .hero-actions { grid-column: 1; }

/* New hero layout — intro + horizontal stat band */
.hero-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero-intro .hero-sub {
  max-width: 92ch;
  font-size: clamp(12.5px, 1.5vw, 16.5px);
  line-height: 1.5;
}
.hero-intro .hero-sub b { color: var(--nm-navy); font-weight: 700; }
.hero-intro .hero-actions {
  margin-top: 0;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat {
  background: var(--paper);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
  transition: background .25s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.hero-stat:hover { background: var(--bg); }
button.hero-stat, a.hero-stat { cursor: pointer; text-align: left; }
.hs-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nm-teal-soft);
  color: var(--nm-teal);
}
.hs-k {
  font-size: 10px;
  color: var(--nm-muted);
  letter-spacing: 0.08em;
  line-height: 1.3;
  min-height: 24px;
}
.hs-v {
  font-size: 26px;
  font-weight: 500;
  color: var(--nm-lime-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: auto;
}
.hs-sublink {
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  color: var(--nm-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: gap .2s, color .2s;
}
a.hero-stat:hover .hs-sublink { gap: 8px; color: var(--nm-teal-dark); }
.hero-stat:nth-child(4) .hs-icon,
.hero-stat:nth-child(5) .hs-icon {
  background: var(--nm-amber-soft);
  color: var(--nm-amber-dark);
}
.hero-stat:nth-child(4) .hs-v,
.hero-stat:nth-child(5) .hs-v {
  color: var(--nm-navy);
  font-size: 18px;
  font-style: italic;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  background: var(--paper);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.hero-meta-row b {
  color: var(--nm-lime-dark);
  font-weight: 700;
  font-family: "Newsreader", serif;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* hero image strip */
.hero-strip {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 0.7fr;
  gap: 16px;
  height: clamp(280px, 36vw, 460px);
}
.hero-strip .ph {
  border-radius: var(--radius);
  overflow: hidden;
}

/* placeholder */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(13,20,24,0.045) 0 1px, transparent 1px 14px),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ph:has(img)::before { display: none; }
.ph:has(img) { background: var(--ink); }
.ph-dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px),
    #1a2229;
  border-color: #2a3138;
}
.ph-dark::before {
  color: rgba(255,255,255,0.6);
  background: #0d1418;
  border-color: #2a3138;
}

/* real photos */
.hero-img, .service-img, .approach-img, .doc-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform .6s ease, filter .3s;
}
.service:hover .service-img { transform: scale(1.03); filter: saturate(1.05); }
.doc:hover .doc-img, .staff:hover .doc-img { transform: scale(1.02); }

/* ============ SECTION ============ */
.section {
  padding: clamp(40px, 5vw, 80px) 0;
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  height: 1px;
  background: var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(28px, 3vw, 48px);
  align-items: start;
}
.section-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}
.section-num .index {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-num .label {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-title {
  font-family: "Newsreader", serif;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 380;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
  position: relative;
  transition: background .25s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.service:hover { background: var(--paper); }
.service .num {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.service h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.service .img {
  height: 130px;
}
.service p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.5;
}
.service .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink);
}
.service:hover .more .arrow { transform: translateX(4px); }
.service .arrow { transition: transform .2s; }

/* ============ APPROACH ============ */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
.approach .img-wrap {
  aspect-ratio: auto;
  height: 100%;
  position: relative;
}
.approach .img-wrap .ph { height: 100%; width: 100%; }
.approach .img-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--paper);
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.approach .img-tag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,154,157,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(22,154,157,0); }
}
.approach-text h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.approach-text p {
  font-size: clamp(12.5px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 48ch;
}
.values {
  margin-top: 36px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value {
  background: var(--bg);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.value .n {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
}
.value h4 {
  font-family: "Newsreader", serif;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  margin: 0 0 4px;
}
.value p {
  margin: 0;
  font-size: clamp(12px, 1.15vw, 14px);
  color: var(--muted);
}

/* ============ PATOLOGIAS ============ */
.patho-list {
  border-top: 1px solid var(--line);
}
.patho {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  cursor: pointer;
  transition: padding .25s, background .2s;
  width: 100%;
  text-align: left;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
}
.patho:first-child { border-top: 1px solid var(--line); }
.patho:hover { padding-left: 12px; }
.patho .pn {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.patho-body { min-width: 0; }
.patho h4 {
  font-family: "Newsreader", serif;
  font-size: clamp(17px, 2.2vw, 28px);
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  transition: color .2s;
}
.patho:hover h4 { color: var(--nm-teal); }
.patho-prev {
  margin: 0;
  font-size: clamp(12px, 1.15vw, 14px);
  color: var(--muted);
  line-height: 1.45;
  max-width: 70ch;
}
.patho .meta {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  align-items: center;
}
.patho .meta .tag {
  border: 1px solid var(--nm-amber);
  color: var(--nm-amber-dark);
  background: var(--nm-amber-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.patho-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nm-teal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.patho:hover .patho-cta { gap: 10px; }

/* ============ PATOLOGIA MODAL ============ */
.patho-modal {
  background: var(--nm-paper);
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
  animation: slideUp .35s cubic-bezier(.2,.8,.2,1);
}
.pm-header {
  padding: 44px 48px 28px;
  border-bottom: 1px solid var(--nm-line);
  background: var(--nm-teal-soft);
}
.pm-tag {
  display: inline-block;
  color: var(--nm-teal-dark);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.pm-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--nm-navy);
}
.pm-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--nm-ink);
  margin: 0;
  max-width: 60ch;
}
.pm-body { padding: 32px 48px 8px; }
.pm-section { margin-bottom: 28px; }
.pm-h {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--nm-navy);
}
.pm-p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nm-ink);
  margin: 0;
  max-width: 64ch;
}
.pm-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nm-ink);
}
.pm-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nm-teal);
}
.pm-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.pm-step-n {
  color: var(--nm-teal);
  font-weight: 700;
  padding-top: 2px;
}
.pm-step-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--nm-ink);
}
.pm-step-body b { color: var(--nm-navy); font-weight: 600; }
.pm-footer {
  padding: 20px 48px 40px;
}
.pm-disclaimer {
  font-size: 12px;
  color: var(--nm-muted);
  line-height: 1.5;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--nm-line);
}
@media (max-width: 640px) {
  .pm-header { padding: 36px 24px 24px; }
  .pm-body { padding: 24px 24px 4px; }
  .pm-footer { padding: 16px 24px 32px; }
}

/* ============ EQUIPO ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.doc {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.doc .photo {
  aspect-ratio: 4/5;
  margin-bottom: 14px;
}
.doc .name {
  font-family: "Newsreader", serif;
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.doc .role {
  font-size: 12.5px;
  color: var(--nm-muted);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}
.doc .credits {
  margin-top: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 9.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.doc .credits span {
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 999px;
}

/* ============ TESTIMONIO ============ */
.testimonio {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(48px, 6vw, 90px) 0;
  position: relative;
  overflow: hidden;
}
.testimonio::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,154,157,0.4), transparent 65%);
  pointer-events: none;
}
.testimonio .container { position: relative; }
.testimonio q {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 380;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
  max-width: 90%;
  margin: 24px 0 36px;
  quotes: "“" "”";
  text-wrap: balance;
  color: white;
}
.testimonio q::before { content: "“"; color: var(--accent); }
.testimonio q::after { content: "”"; color: var(--accent); }
.testimonio .who {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: max-content;
}
.testimonio .who .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
}
.testimonio .who-name { font-size: 15px; margin: 0; }
.testimonio .who-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }

.testimonio-controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 80px);
  display: flex;
  gap: 8px;
}
.testimonio-controls button {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--bg);
  display: grid; place-items: center;
  transition: background .2s;
}
.testimonio-controls button:hover { background: rgba(255,255,255,0.08); }

/* ============ TURNOS / FORM ============ */
.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.booking-info h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.02;
  margin: 0 0 20px;
  font-weight: 380;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.booking-info p {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 52ch;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .k {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-row .v { font-size: 15px; }
.contact-row .v a:hover { color: var(--accent); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 44px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.form-card-preview {
  min-height: 0;
  padding: 32px 36px;
}
.form-card-preview .form-progress { margin-bottom: 24px; }
.form-card-preview .step-desc { margin-bottom: 20px; }
.form-card-preview .choice { padding: 13px 18px; }
.form-card-preview .form-actions { margin-top: 24px; padding-top: 20px; }
.form-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nm-muted);
}
.form-progress .bar {
  flex: 1;
  height: 3px;
  background: var(--nm-line-soft);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}
.form-progress .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 25%);
  background: var(--nm-teal);
  border-radius: 999px;
  transition: width .35s ease;
}
.step-title {
  font-family: "Newsreader", serif;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--nm-navy);
}
.step-desc {
  font-size: 14px;
  color: var(--nm-muted);
  margin: 0 0 32px;
  line-height: 1.55;
  max-width: 52ch;
}

.choices {
  display: grid;
  gap: 12px;
}
.choice {
  border: 1px solid var(--nm-line);
  background: var(--nm-paper);
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  width: 100%;
}
.choice:hover {
  border-color: var(--nm-teal);
  background: var(--nm-teal-soft);
}
.choice.selected {
  background: var(--nm-teal-soft);
  color: var(--nm-navy);
  border-color: var(--nm-teal);
  box-shadow: inset 0 0 0 1px var(--nm-teal);
}
.choice .ck {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--nm-line);
  background: var(--nm-paper);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.choice.selected .ck { border-color: var(--nm-teal); background: var(--nm-teal); }
.choice.selected .ck::after {
  content: "";
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
}
.choice .label { font-size: 15px; flex: 1; color: var(--nm-navy); font-weight: 500; }
.choice .hint { font-size: 12px; color: var(--nm-muted); }
.choice.selected .hint { color: var(--nm-teal-dark); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 22px; }
.field label {
  font-family: "Open Sans", sans-serif;
  font-size: 10.5px;
  color: var(--nm-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.field input, .field select, .field textarea {
  font: inherit;
  background: var(--nm-paper);
  border: 1px solid var(--nm-line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--nm-navy);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--nm-teal);
  box-shadow: 0 0 0 3px var(--nm-teal-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  color: var(--nm-navy);
}
.cal-day.dow {
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  color: var(--nm-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cal-day.avail { background: var(--nm-paper); border-color: var(--nm-line); }
.cal-day.avail:hover { background: var(--nm-teal-soft); border-color: var(--nm-teal); }
.cal-day.disabled { color: var(--nm-line-soft); cursor: not-allowed; background: transparent; }
.cal-day.selected { background: var(--nm-teal); color: white; border-color: var(--nm-teal); }

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.slot {
  padding: 12px 0;
  border: 1px solid var(--nm-line);
  background: var(--nm-paper);
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-navy);
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
}
.slot:hover { border-color: var(--nm-teal); background: var(--nm-teal-soft); }
.slot.selected { background: var(--nm-teal); color: white; border-color: var(--nm-teal); }
.slot.taken { color: var(--nm-line-soft); text-decoration: line-through; cursor: not-allowed; background: var(--nm-line-soft); }

.summary {
  background: var(--nm-teal-soft);
  border: 1px solid var(--nm-teal);
  padding: 22px 24px;
  border-radius: 8px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(22,154,157,0.2);
  gap: 16px;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--nm-teal-dark); font-weight: 600; }
.summary-row .v { font-weight: 500; color: var(--nm-navy); text-align: right; }

.form-actions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--nm-line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirmed {
  text-align: center;
  padding: 40px 0;
}
.confirmed .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--nm-teal);
  color: white;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 8px var(--nm-teal-soft);
}
.confirmed h4 {
  font-family: "Newsreader", serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--nm-navy);
}
.confirmed p {
  color: var(--nm-muted);
  margin: 0 0 24px;
}

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: "Newsreader", serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s, background .15s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--nm-amber); color: var(--nm-navy); border-color: var(--nm-amber); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--ink-2);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.55;
  max-width: none;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 8px 0 28px;
}

/* ============ CTA BAND ============ */
.cta-band {
  padding: clamp(24px, 3vw, 48px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  text-align: center;
}
.cta-band::before {
  content: none;
}
.cta-band h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 380;
  margin: 0 auto 28px;
  max-width: 16ch;
}
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; opacity: 0.85; }
.footer a:hover { opacity: 1; color: var(--accent); }
.footer-wa {
  display: inline-flex;
  align-items: center;
}
.footer-wa:hover { color: #25D366 !important; }

/* Footer social — outlined pills, equal width */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.fsoc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  opacity: 1;
  width: 220px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background .15s, border-color .15s, transform .15s;
}
.fsoc svg { flex-shrink: 0; }
.fsoc:hover {
  transform: translateY(-2px);
  opacity: 1;
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}
.footer-affiliations {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 26px;
}
.footer-affiliations img {
  width: auto;
  opacity: 0.6;
  transition: opacity .2s;
}
.footer-affiliations img:nth-child(1) { height: 42px; }
.footer-affiliations img:nth-child(2) { height: 28px; }
.footer-affiliations img:nth-child(3) { height: 24px; }
.footer-affiliations img:hover { opacity: 1; }
.footer-display {
  font-family: "Newsreader", serif;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 380;
  margin: 0;
}
.footer-display em { font-style: italic; color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer.open { display: flex; max-height: 420px; }
  .wa-label { display: none; }
  .btn-wa { padding: 0 14px; }
  .nav-actions { gap: 7px; }
  .nav-inner .btn,
  .nav-inner .btn-wa,
  .nav-inner .btn-ig,
  .nav-inner .btn-wa-icon {
    height: 36px;
    font-size: 12.5px;
  }
  .nav-inner .btn { padding: 0 14px; gap: 7px; }
  .nav-inner .btn-wa-icon,
  .nav-inner .btn-ig { width: 36px; padding: 0; }
  .nav-inner .btn-arrow { width: 15px; height: 15px; }
  .hero-top, .hero-bottom { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-intro { grid-template-columns: 1fr; align-items: start; }
  .hero-intro .hero-actions { justify-content: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-strip { grid-template-columns: 1fr 1fr; height: 280px; }
  .hero-strip .ph:last-child { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .patho { grid-template-columns: 50px 1fr; }
  .patho .meta { display: none; }

  /* Tier medio — tamaños intermedios (proporción tablet) */
  .service h3 { font-size: 18px; }
  .service p { font-size: 13px; }
  .booking-info h3 { font-size: clamp(26px, 4.5vw, 38px); }
  .form-card, .form-card-preview, .modal .form-card, .modal .modal-form { padding: 30px 30px; }
  .step-title { font-size: 25px; }
  .choice .label { font-size: 14.5px; }
  .contact-row .v { font-size: 14px; }
  .patho h4 { font-size: 20px; }
  .patho-prev { font-size: 13px; }
  .faq-q { font-size: 18px; }
  .faq-a { font-size: 14.5px; }
  .value h4 { font-size: 17px; }
  .value p { font-size: 13px; }
  .stat-feature .stat-n { font-size: clamp(40px, 8vw, 60px); }
  .stat-n { font-size: clamp(28px, 5vw, 40px); }
  .stat-k { font-size: 15px; }
  .footer h5 { font-size: 10.5px; }
  .footer a, .footer li { font-size: 13.5px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-inner .btn,
  .nav-inner .btn-wa,
  .nav-inner .btn-ig,
  .nav-inner .btn-wa-icon {
    height: 32px;
    font-size: 11.5px;
  }
  .nav-inner .btn { padding: 0 11px; gap: 5px; }
  .nav-inner .btn-wa-icon,
  .nav-inner .btn-ig { width: 32px; padding: 0; }
  .brand-logo { height: 34px; }

  /* Trayectoria — proporción número/texto en chico */
  .stat { padding: 16px 16px 15px; }
  .stat-feature .stat-n { font-size: 34px; }
  .stat-n { font-size: 26px; }
  .stat-k { font-size: 14px; }
  .stat-sub-block { font-size: 10.5px; }
  .stat-pioneer .stat-n { font-size: 18px; }
  .stat-pioneer .stat-k { font-size: 16px; }
  .stat-pioneer::after { font-size: 14px; top: 16px; right: 16px; }

  /* Cinco caminos */
  .service { padding: 20px 18px 18px; min-height: 0; gap: 14px; }
  .service h3 { font-size: 19px; }
  .service p { font-size: 13px; }
  .service .img { height: 150px; }

  /* Nuestro enfoque — valores 1-4 */
  .value { grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; }
  .value h4 { font-size: 16px; }
  .value p { font-size: 12.5px; }
  .approach-text h3 { font-size: clamp(22px, 6vw, 28px); }

  /* Lo que tratamos — patologías */
  .patho { grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; }
  .patho h4 { font-size: 18px; }
  .patho-prev { font-size: 12.5px; }
  .patho .pn { font-size: 10px; }

  /* FAQ */
  .faq-q { font-size: 17px; padding: 18px 0; }
  .faq-a { font-size: 14px; }

  /* Cinco caminos — un poco más chico el título de card */
  .service h3 { font-size: 17px; }
  .service p { font-size: 12.5px; }
  .service .num { font-size: 10px; }

  /* Títulos de sección y display */
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .hero-headline { font-size: clamp(34px, 9vw, 48px); }

  /* Pedir turno — formulario + botones proporcionales */
  .booking-info h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .form-card,
  .form-card-preview,
  .modal .form-card,
  .modal .modal-form { padding: 24px 22px; }
  .step-title { font-size: 22px; }
  .step-desc { font-size: 13px; }
  .choice { padding: 13px 14px; }
  .choice .label { font-size: 14px; }
  .choice .hint { font-size: 11px; }
  .field label { font-size: 10px; }
  .field input, .field select, .field textarea { font-size: 14px; padding: 12px 13px; }
  .contact-row { grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; }
  .contact-row .k { font-size: 10px; }
  .contact-row .v { font-size: 13.5px; }
  .form-card .btn,
  .modal .btn { height: 38px; font-size: 13px; padding: 0 16px; }

  /* Footer — relación con el resto */
  .footer { padding: 56px 0 32px; }
  .footer h5 { font-size: 10px; margin-bottom: 14px; }
  .footer ul { gap: 8px; }
  .footer a, .footer li { font-size: 13px; }
  .footer-bottom { font-size: 10px; }

  /* Hero — espacio bajo el título principal */
  .hero-headline { margin-bottom: 12px; }

  /* Botón nav — texto corto en mobile */
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

/* utility */
.visually-hidden { position: absolute; left: -9999px; }
@media (min-width: 561px) { .btn-label-short { display: none; } }

/* ============ NOVEDADES TICKER ============ */
.novedades {
  background: var(--nm-teal);
  color: white;
  position: relative;
  z-index: 31;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.novedades-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 38px;
  font-size: 13px;
}
.nov-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.nov-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nm-amber);
  box-shadow: 0 0 0 0 var(--nm-amber);
  animation: nov-pulse 2.5s ease-in-out infinite;
}
@keyframes nov-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,187,26,0.7); }
  50% { box-shadow: 0 0 0 7px rgba(245,187,26,0); }
}
.nov-item {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  animation: nov-slide .5s ease;
  color: white;
}
.nov-item:hover .nov-arrow { transform: translateX(4px); }
.nov-arrow { transition: transform .2s; color: var(--nm-amber); }
@keyframes nov-slide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nov-tag {
  background: var(--nm-navy);
  color: white;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.nov-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  font-weight: 600;
}
.nov-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.nov-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background .2s, transform .2s;
  padding: 0;
}
.nov-dot.active { background: white; transform: scale(1.2); }
.nov-dot:hover { background: rgba(255,255,255,0.6); }

/* Mobile marquee */
.novedades-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding-left: var(--gutter);
  overflow: hidden;
}
.novedades-mobile .nov-label {
  flex-shrink: 0;
  font-size: 9px;
}
.nov-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 92%, transparent 100%);
}
.nov-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: nov-scroll 48s linear infinite;
  will-change: transform;
}
.nov-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}
@keyframes nov-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ HERO CAROUSEL ============ */
.hero-strip-wrap {
  margin-top: clamp(48px, 6vw, 88px);
}
.carousel {
  position: relative;
  height: clamp(240px, 42vw, 580px);
  overflow: hidden;
  background: var(--nm-navy-900);
  border-radius: var(--radius);
}
.carousel-track {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
}
.carousel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgba(15,19,64,0.85) 0%, rgba(15,19,64,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: white;
  z-index: 2;
}
.carousel-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 60%;
}
.carousel-area {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--nm-amber);
  font-weight: 700;
}
.carousel-caption {
  font-family: "Newsreader", serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: white;
  text-wrap: balance;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.carousel-controls button {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  transition: background .2s, border-color .2s;
}
.carousel-controls button:hover {
  background: var(--nm-teal);
  border-color: var(--nm-teal);
}
.carousel-count {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  padding: 0 6px;
  min-width: 60px;
  text-align: center;
}
.carousel-progress {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  left: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.cp-tick {
  flex: 1;
  height: 2px;
  background: transparent;
  padding: 8px 0;
  position: relative;
  cursor: pointer;
}
.cp-tick .cp-bar {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.25);
  transition: background .2s;
}
.cp-tick:hover .cp-bar { background: rgba(255,255,255,0.5); }
.cp-tick.active .cp-bar { background: var(--nm-amber); }

@media (max-width: 760px) {
  .carousel-overlay { flex-direction: column; align-items: flex-start; }
  .carousel-meta { max-width: 100%; }
  .carousel-count { display: none; }
}

/* ============ QUIROFANO GALLERY (bento) ============ */
.quirofano { background: var(--ink); color: var(--bg); }
.quirofano .section-head { border-color: rgba(255,255,255,0.1); }
.quirofano .index, .quirofano .label { color: rgba(255,255,255,0.6); }
.quirofano .section-title { color: var(--bg); }
.quirofano .section-title em { color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.gal {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s;
  filter: saturate(0.9);
}
.gal:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gal figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(13,20,24,0.85);
  color: var(--bg);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gal:hover figcaption { opacity: 1; transform: translateY(0); }

/* Bento layout — 6 cols × 4 rows, fully packed */
.gal-a { grid-column: span 3; grid-row: span 2; }
.gal-b { grid-column: span 3; grid-row: span 2; }
.gal-c { grid-column: span 2; grid-row: span 2; }
.gal-d { grid-column: span 2; grid-row: span 2; }
.gal-e { grid-column: span 2; grid-row: span 2; }

.quirofano-foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.qf-stat { display: flex; flex-direction: column; gap: 6px; }
.qf-stat .n {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--nm-lime);
}
.qf-stat .k {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal-a, .gal-b, .gal-c, .gal-d, .gal-e { grid-column: span 1; grid-row: span 1; }
  .gal-a { grid-column: span 2; grid-row: span 2; }
  .quirofano-foot { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ STAFF (técnico-administrativo) ============ */
.staff-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.staff-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  align-items: center;
}
.staff-rest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.staff {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.staff-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 100px;
  width: 100%;
  margin: 0 auto;
}
.staff-photo img { border-radius: 50%; }
.staff-photo-empty {
  background:
    repeating-linear-gradient(135deg, rgba(15,19,64,0.06) 0 1px, transparent 1px 14px),
    var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  border-style: dashed;
}
.staff-photo-empty .mono { font-size: 9.5px; letter-spacing: 0.08em; }
.staff .name {
  font-family: "Newsreader", serif;
  font-size: 15.5px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}
.staff .role {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.staff-bio {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 6px 0 0;
}
.staff .credits {
  margin-top: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 9.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: none;
  align-items: center;
  text-align: center;
}
.staff .credits span {
  border: 0;
  padding: 0;
  border-radius: 0;
}

/* Rectangular cards for the 4 staff next to Pachi */
.staff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-align: left;
  height: auto;
}
.staff-card .staff-photo {
  width: 116px;
  height: 142px;
  max-width: 116px;
  margin: 0;
  flex-shrink: 0;
  border-radius: var(--radius);
  aspect-ratio: auto;
}
.staff-card .staff-photo img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.staff-card .staff-info {
  align-items: flex-start;
  gap: 4px;
}
.staff-card .name {
  text-align: left;
  font-size: 18px;
}
.staff-card .role {
  text-align: left;
  font-size: 12.5px;
}
.staff-card .credits {
  align-items: flex-start;
  text-align: left;
  font-size: 11px;
  margin-top: 6px;
}

/* Featured Pachi card — navy block, fills left column */
.staff-featured {
  background: var(--nm-navy);
  color: white;
  padding: 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
}
.staff-featured .staff-photo {
  flex-shrink: 0;
  width: 176px;
  height: 176px;
  max-width: 176px;
  aspect-ratio: 1;
  border-color: var(--nm-teal);
  border-width: 2px;
  margin: 0;
}
.staff-featured .staff-info {
  flex: 1;
  gap: 6px;
  text-align: left;
  width: 100%;
}
.staff-featured .name {
  color: white;
  font-size: 19px;
  font-weight: 500;
  text-align: left;
}
.staff-featured .role {
  color: var(--nm-amber);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  text-align: left;
}
.staff-featured .staff-bio {
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  margin-top: 10px;
  line-height: 1.5;
}
.staff-featured .credits {
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  text-align: left;
  align-items: flex-start;
  font-size: 11px;
}

/* Incomplete data state */
.doc-incomplete .photo,
.staff-incomplete .staff-photo { filter: grayscale(0.4) opacity(0.85); }
.incomplete-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--nm-amber);
  color: var(--nm-navy);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 3;
}
.doc-incomplete .photo { position: relative; }

@media (max-width: 920px) {
  .staff-grid { grid-template-columns: 1fr; }
  .staff-featured { flex-direction: row; }
}
@media (max-width: 600px) {
  .staff-rest { grid-template-columns: 1fr; grid-template-rows: auto; }
  .staff-featured { flex-direction: column; }
  .staff-featured .staff-photo { width: 120px; height: 120px; }
  .staff-card { flex-direction: row; }
}

/* ============ TRACK RECORD (bento) ============ */
.track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.stat-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: space-between;
  transition: color .3s;
}
.stat-bg {
  position: absolute;
  inset: 0;
  background-image: var(--stat-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}
.stat-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,19,64,0.92), rgba(15,19,64,0.78));
}
.stat:hover .stat-bg { opacity: 1; }
.stat:hover .stat-inner { color: white; }
.stat:hover .stat-n { color: var(--nm-lime); }
.stat:hover .stat-k { color: rgba(255,255,255,0.9); }
.stat:hover .stat-sub { color: rgba(255,255,255,0.7); border-top-color: rgba(255,255,255,0.2); }

.stat-n {
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 380;
  color: var(--nm-lime-dark);
  transition: color .3s;
}
.stat-k {
  font-family: "Newsreader", serif;
  font-size: clamp(13px, 1.5vw, 22px);
  color: var(--nm-navy);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  transition: color .3s;
}
.stat-k b {
  font-weight: 600;
  color: var(--nm-navy);
}
.stat-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: none;
  font-weight: 400;
  transition: color .3s, border-color .3s;
}

/* Bento layout — 4 columns × 3 rows; columna + tumores stacked left */
.stat-feature { grid-column: span 2; }
.stat-feature .stat-n { font-size: clamp(40px, 7vw, 100px); }
.stat-wide { grid-column: span 2; }
.stat-sm { grid-column: span 1; }
.stat-pioneer { grid-column: span 3; }
.stat-sub-inline {
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  display: inline;
}
.stat-sub-block {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-style: normal;
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0;
}
.stat-wide .stat-k { max-width: none; }
.stat:hover .stat-sub-inline,
.stat:hover .stat-sub-block { color: rgba(255,255,255,0.8); }

.stat-pioneer {
  background: var(--nm-navy);
  color: white;
}
.stat-pioneer .stat-inner { color: white; }
.stat-pioneer:hover { background: var(--nm-navy); }
.stat-pioneer .stat-bg::after {
  background: linear-gradient(160deg, rgba(26,31,92,0.92), rgba(26,31,92,0.78));
}
.stat-pioneer .stat-n {
  font-style: italic;
  color: var(--nm-amber);
  font-size: clamp(24px, 2.4vw, 32px);
}
.stat-pioneer:hover .stat-n { color: var(--nm-amber); }
.stat-pioneer .stat-k {
  color: white;
  font-size: clamp(15px, 2vw, 28px);
  font-family: "Newsreader", serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: none;
  text-wrap: pretty;
  font-weight: 400;
}
.stat-pioneer:hover .stat-k { color: white; }
.stat-pioneer::after {
  content: "★";
  position: absolute;
  top: 20px; right: 22px;
  color: var(--nm-amber);
  font-size: 18px;
  z-index: 3;
}

.track-foot {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.track-foot > .mono {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.track-clients-head {
  margin-top: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--nm-navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 18px 20px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: italic;
}
.track-clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 8px;
}
.cl-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 108px;
  transition: background .25s;
}
.cl-link:not(:first-child) {
  border-left: 1px solid var(--line);
}
.cl-link:hover {
  background: var(--bg);
  transform: none;
}
.cl-logo {
  max-height: 76px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .25s;
}
.cl-link:hover .cl-logo {
  filter: grayscale(0) opacity(1);
}

/* ============ GUARDIA 24/365 ============ */
.guardia {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.guardia-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.guardia-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  line-height: 0.85;
  position: relative;
  min-width: 0;
}
.guardia-display .n1,
.guardia-display .n2 {
  font-size: clamp(72px, 11vw, 180px);
  letter-spacing: -0.05em;
  font-weight: 380;
  color: var(--ink);
  line-height: 0.85;
}
.guardia-display .n2 { color: var(--accent); font-style: italic; }
.guardia-display .slash {
  width: clamp(40px, 4vw, 80px);
  height: 2px;
  background: var(--line-2);
  transform: rotate(-60deg);
  flex-shrink: 0;
}
.guardia-text h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.guardia-text h3 em { font-style: italic; color: var(--accent); }
.guardia-text p {
  font-size: clamp(12.5px, 1.45vw, 16px);
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 48ch;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .guardia-inner { grid-template-columns: 1fr; }
  .guardia-display { justify-content: flex-start; }
  .guardia-display .n1, .guardia-display .n2 { font-size: clamp(80px, 19vw, 120px); }
  .guardia-display .slash { width: clamp(40px, 6vw, 70px); }
}

@media (max-width: 920px) {
  .track-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-feature, .stat-wide, .stat-sm, .stat-pioneer { grid-column: span 2; grid-row: auto; }
  .stat-feature .stat-n { font-size: clamp(34px, 11vw, 72px); }
  .track-grid > :nth-child(1) { order: 1; }
  .track-grid > :nth-child(3) { order: 2; }
  .track-grid > :nth-child(2) { order: 3; }
  .track-grid > :nth-child(4) { order: 4; }
  .track-grid > :nth-child(5) { order: 5; }
  .track-grid > :nth-child(6) { order: 6; }
  .track-grid > :nth-child(7) { order: 7; }
  .track-clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .track-clients { grid-template-columns: repeat(2, 1fr); }
}
