/* Drs. García-Camba & Varela — Ortodoncia */

:root {
  --ink: #0b3b5c;
  --ink-2: color-mix(in srgb, var(--ink) 74%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 52%, transparent);
  --ink-4: color-mix(in srgb, var(--ink) 20%, transparent);
  --accent: #7fb3d5;
  --bg: #ffffff;
  --bg-2: color-mix(in srgb, var(--bg) 90%, var(--ink) 10%);
  --line: #e8eef3;
  --line-2: color-mix(in srgb, var(--ink) 9%, transparent);
  --display-font: "Cormorant Garamond", Georgia, serif;
  --ui-font: "Helvetica Neue", Helvetica, "Inter Tight", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ─── Typography ───────────────────────────────────────────────────────── */
.display, .display-2 {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(44px, 5.6vw, 78px); }
.display-2 { font-size: clamp(34px, 4.5vw, 60px); line-height: 1.05; }
.display em, .display-2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.lede {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 48ch;
  text-wrap: pretty;
}
.lede--sm { font-size: 15px; max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ─── Layout primitives ───────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 900px;
}
.section-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-intro {
  font-size: 16px; color: var(--ink-2); max-width: 60ch; margin: 6px 0 0;
}
.section-head--with-art {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  flex-direction: initial;
}
.section-head--with-art .section-head-text {
  display: flex; flex-direction: column; gap: 18px;
}
.section-head-art {
  margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.section-head-art-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.section-head-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.02);
}
.section-head-art figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 2px;
}
@media (max-width: 800px) {
  .section-head--with-art { grid-template-columns: 1fr; }
  .section-head-art-img { aspect-ratio: 4 / 5; max-width: 360px; }
}

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid var(--line);
}
.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border: 1px solid var(--line);
  background: var(--bg); border-radius: 4px;
  display: grid; place-items: center; color: var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display-font); font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-amp { color: var(--accent); }
.brand-sub {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
  font-size: 13.5px; justify-content: center;
}
.nav-links a {
  color: var(--ink-2); position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* ─── CTAs ────────────────────────────────────────────────────────────── */
.cta {
  appearance: none; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 14px 22px; font-size: 13.5px; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border-radius: 2px;
  justify-content: center;
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta--sm { padding: 10px 16px; font-size: 12.5px; justify-self: end; }
.cta--ghost {
  background: transparent; color: var(--ink);
}
.cta--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cta--full { width: 100%; padding: 16px 22px; font-size: 14px; }
.cta--ok { background: #2d5d3a; border-color: #2d5d3a; color: #fff; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}
.hero--dense { padding-top: clamp(20px, 3vw, 36px); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 6vw, 96px);
  align-items: stretch;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.hero--dense .hero-grid { padding-bottom: clamp(40px, 5vw, 70px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-bottom: 12px; }
.hero-copy .lede { max-width: none; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px;
  justify-content: start;
  margin: 32px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.hero-meta dd { margin: 0; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.hero-art { position: relative; display: flex; flex-direction: column; }
.hero-art > .hero-photo { flex: 1; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 14px 18px; min-width: 170px;
  box-shadow: 0 8px 24px rgba(20, 35, 58, 0.06);
}
.hero-badge-n {
  font-family: var(--display-font); font-size: 24px; color: var(--ink);
  font-style: italic;
}
.hero-badge-l {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}

/* ─── Marquee ─────────────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 8px;
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 48s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee-dot { color: var(--accent); font-size: 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Placeholder ─────────────────────────────────────────────────────── */
.placeholder {
  width: 100%; position: relative;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.placeholder-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
}
.placeholder-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  align-self: flex-start;
  background: var(--bg);
  padding: 5px 8px; border: 1px solid var(--line);
}
.placeholder-label {
  font-family: var(--mono); font-size: 11px; line-height: 1.45;
  color: var(--ink-2);
  background: var(--bg);
  padding: 8px 10px; border: 1px solid var(--line);
  align-self: flex-end; max-width: 78%;
}

/* ─── Hero photo ──────────────────────────────────────────────────────── */
.hero-photo {
  position: relative; width: 100%; margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 70%;
  display: block;
  /* Final tonal integration — keep mild, photo is already retouched */
  filter: saturate(0.94) contrast(1.02);
}
/* Warm overlay tying the photo to the cream palette */
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 20% 0%, transparent 50%, color-mix(in srgb, var(--bg) 82%, transparent) 100%),
    linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ink) 12%, transparent) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Inner vignette frame for editorial feel */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 58, 0.06),
              inset 0 -60px 80px -40px rgba(20, 35, 58, 0.18);
  pointer-events: none;
}
.hero-photo-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  padding: 5px 8px; border: 1px solid var(--line);
}
.hero-photo-cap {
  position: absolute; bottom: 16px; right: 16px; z-index: 3;
  font-family: var(--mono); font-size: 11px; line-height: 1.45;
  color: var(--ink-2);
  background: var(--bg);
  padding: 8px 10px; border: 1px solid var(--line);
  max-width: 78%;
}

/* ─── Nosotros ────────────────────────────────────────────────────────── */
.nosotros-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.nosotros-copy { display: flex; flex-direction: column; gap: 18px; }
.nosotros-copy strong { color: var(--ink); font-weight: 500; }
.nosotros-activity {
  margin-top: 4px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  display: flex; flex-direction: column; gap: 10px;
}
.nosotros-activity-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nosotros-activity .lede--sm { margin: 0; }
.nosotros-activities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(32px,5vw,64px);margin-top:clamp(44px,6vw,72px);}
.creds {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.cred {
  display: flex; gap: 12px; padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.cred:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line-2); }
.cred:nth-child(even) { padding-left: 18px; }
@media (min-width: 961px){.nosotros > .creds,.section--nosotros > .creds{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:clamp(44px,6vw,72px);}.section--nosotros > .creds .cred{padding:22px 24px;border-right:1px solid var(--line-2);}.section--nosotros > .creds .cred:first-child{padding-left:0;}.section--nosotros > .creds .cred:last-child{padding-right:0;border-right:0;}}
@media (max-width: 960px){.section--nosotros > .creds{margin-top:clamp(32px,6vw,48px);}}
.cred-bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: 8px; flex-shrink: 0;
}
.cred-t { font-size: 14px; font-weight: 500; color: var(--ink); }
.cred-b {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); margin-top: 4px; letter-spacing: 0.02em;
}
.nosotros-team {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.doc { display: flex; flex-direction: column; gap: 12px; }
.doc-photo {
  position: relative; width: 100%; margin: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.doc-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.01);
}
.doc-photo img.doc-photo-zoom {
  transform: scale(1.26);
  transform-origin: 50% 38%;
}
.doc-photo::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 58, 0.05);
  pointer-events: none;
}
.doc-photo--cv { cursor: pointer; }
.doc-cv {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 55%, transparent) 0%,
    color-mix(in srgb, var(--ink) 86%, transparent) 55%,
    color-mix(in srgb, var(--ink) 94%, transparent) 100%);
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity 0.34s ease, visibility 0.34s ease;
  -webkit-backdrop-filter: saturate(115%);
  backdrop-filter: saturate(115%);
}
.doc-photo--cv:hover .doc-cv,
.doc--open .doc-cv {
  opacity: 1; visibility: visible;
}
.doc-cv-inner {
  padding: clamp(14px, 1.6vw, 22px);
  display: flex; flex-direction: column; gap: 6px;
  max-height: 100%; overflow-y: auto;
}
.doc-cv-name {
  font-family: var(--display-font); font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.08; letter-spacing: -0.01em;
}
.doc-cv-creds {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: color-mix(in srgb, #fff 78%, transparent);
}
.doc-cv-text {
  margin: 1px 0 0; font-size: clamp(11px, 0.85vw, 12.5px); line-height: 1.45;
  color: color-mix(in srgb, #fff 90%, transparent);
  text-wrap: pretty;
}
.doc-cv-list {
  margin: 6px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.doc-cv-list li {
  position: relative; padding-left: 14px;
  font-size: clamp(11px, 0.85vw, 12.5px); line-height: 1.4;
  color: color-mix(in srgb, #fff 88%, transparent);
  text-wrap: pretty;
}
.doc-cv-list li::before {
  content: ""; position: absolute; left: 1px; top: 0.62em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.doc-info { display: flex; flex-direction: column; gap: 2px; }
.doc-name {
  font-family: var(--display-font); font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.doc-role {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* ─── Equipo (resto) ──────────────────────────────────────────────────── */
.nosotros-staff {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.staff-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.staff-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3);
}
.staff-intro {
  margin: 0; font-family: var(--display-font); font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; color: var(--ink);
}
.staff-rows {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px);
}
.staff-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(26px, 3.2vw, 52px);
}
.staff-member {
  width: clamp(116px, 12vw, 150px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
}
.staff-avatar {
  width: clamp(88px, 9vw, 116px); height: clamp(88px, 9vw, 116px);
  border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; color: var(--ink-4);
}
.staff-avatar svg { width: 66%; height: 66%; }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-name {
  font-family: var(--display-font); font-size: 17px; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--ink);
}
.staff-name--long {
  white-space: nowrap;
  align-self: flex-start;
  text-align: left;
}
.staff-role {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 760px) { .staff-row { gap: 24px 28px; } }

/* ─── Stats ───────────────────────────────────────────────────────────── */
.stats {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n {
  font-family: var(--display-font); font-size: clamp(34px, 3.4vw, 46px);
  font-style: italic; color: var(--ink);
}
.stat-l {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* ─── Servicios ───────────────────────────────────────────────────────── */
.services {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.service { border-bottom: 1px solid var(--line); }
.service-head {
  width: 100%; appearance: none; background: transparent; border: 0;
  padding: 26px 0;
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 24px;
  text-align: left;
  transition: padding 0.25s ease;
}
.service-head:hover { padding-left: 8px; }
.service-n {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--accent);
}
.service-titles { display: flex; flex-direction: column; gap: 4px; }
.service-title {
  font-family: var(--display-font); font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1; color: var(--ink); letter-spacing: -0.005em;
}
.service-sub {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.service-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-2); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.service:hover .service-toggle,
.service--open .service-toggle {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.service-body {
  overflow: hidden; transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.service-body-inner {
  padding: 0 0 28px 84px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  max-width: 1000px;
}
.service-body-inner p {
  margin: 0; font-size: 15px; color: var(--ink-2); max-width: 50ch;
}
.service-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.service-bullets li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; color: var(--ink-2);
}
.service-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 1px; background: var(--accent);
}

/* ─── Contacto ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact-actions {
  display: flex; flex-direction: column; gap: 14px;
}
.cact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.cact:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.cact-k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.cact-v {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(30px, 2.7vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.cact-v--small {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.cact-sub {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.cact-sub-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.contact-info {
  display: flex; flex-direction: column; gap: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
}
.info-block { display: flex; flex-direction: column; gap: 6px; }
.info-k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.info-v { font-size: 14px; color: var(--ink); line-height: 1.55; }
.info-v--rows {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-horario { margin-top: 6px; }
.contact-horario .info-v--rows {
  gap: 7px;
  font-size: 16.5px;
  line-height: 1.45;
}
.info-v--rows strong {
  font-weight: 500;
}
.info-sub { color: var(--ink-3); display: block; margin-top: 4px; }
.map {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.map-frame {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: saturate(0.95);
}
.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.map-link:hover {
  background: var(--bg-2);
}
.map-link-place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.map-pin {
  color: var(--accent);
  flex-shrink: 0;
}
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.map-link:hover .map-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.85);
  margin-top: 40px;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
}
.footer-logo-full {
  display: inline-flex; align-items: center; gap: 14px;
}
.footer-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  display: grid; place-items: center;
  color: var(--accent);
}
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.footer-logo-name {
  font-family: var(--display-font); font-size: 25px; color: #fff;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.footer-logo-amp { color: var(--accent); }
.footer-logo-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-top: 4px;
}
.footer-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.footer-col a {
  font-size: 13.5px; color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Nav: right group + mobile menu ──────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav-burger {
  display: none;
  appearance: none; border: 1px solid var(--line); background: var(--bg);
  width: 44px; height: 44px; border-radius: 4px;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink); padding: 0;
}
.nav-burger-box { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-burger-line {
  height: 1.5px; width: 100%; background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav--open .nav-burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav-burger-line:nth-child(2) { opacity: 0; }
.nav--open .nav-burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 14px var(--gutter) 28px;
}
.nav-mobile-links { list-style: none; margin: 0; padding: 0; }
.nav-mobile-links li + li { border-top: 1px solid var(--line); }
.nav-mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; min-height: 44px;
  font-family: var(--display-font); font-size: 24px; color: var(--ink);
}
.nav-mobile-arrow { color: var(--accent); font-size: 18px; }
.nav-mobile .cta--full { margin-top: 22px; }
.nav-mobile-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-3);
}
.nav-mobile-meta a { color: var(--ink-2); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav--open .nav-mobile { display: block; }
  .hero-grid, .nosotros-grid, .contact-grid, .nosotros-activities { grid-template-columns: 1fr; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { order: 1; }
  .hero-art { display: block; order: 2; margin-top: 24px; }
  .hero-art .hero-photo { aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; }
  .hero-art .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .hero-badge { display: none; }
  .hero-meta { grid-template-columns: repeat(3, auto); gap: 20px; }
  .hero-meta dd { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-left: 1px solid var(--line); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .service-body-inner { grid-template-columns: 1fr; padding-left: 60px; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: 1fr; }
  .cred:nth-child(odd) { padding-right: 0; border-right: 0; }
  .cred:nth-child(even) { padding-left: 0; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-art .hero-photo { aspect-ratio: 4/3; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-logo-name { font-size: 22px; }
  .footer-mark { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-right { gap: 8px; }
  .nav-right .cta--sm { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 360px) {
  .nav-right .cta--sm span { display: none; }
}


/* ─── Editorial band ─────────────────────────────────────────────────── */
.editorial {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.editorial-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.editorial-text {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}
.editorial-headline {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.editorial-headline em {
  font-style: italic;
  color: var(--accent);
}
.editorial-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}
.editorial-body p { margin: 0; }
.editorial-body strong {
  font-weight: 500;
  color: var(--ink);
}
.editorial-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.editorial-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}
.editorial-photo-cap {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  padding: 6px 9px;
  border: 1px solid var(--line);
}

@media (max-width: 800px) {
  .editorial-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .editorial-photo {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* ─── Espacio ───────────────────────────────────────────────────────── */
.section--espacio { }
.espacio-head {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 880px;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.espacio-head--with-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  max-width: none;
  align-items: center;
}
.espacio-head--with-art .espacio-head-text {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 620px;
}
.espacio-cuadro {
  margin: 0;
}
.espacio-cuadro img {
  width: 100%;
  aspect-ratio: 2920 / 2250;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 860px) {
  .espacio-head--with-art { grid-template-columns: 1fr; gap: 28px; }
  .espacio-head--with-art .espacio-head-text { max-width: 620px; }
}
.espacio-head .display-2 { margin: 0; }
.espacio-head-body {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 6px;
}
.espacio-head-body p { margin: 0; text-wrap: pretty; }
.espacio-head-body strong { font-weight: 500; color: var(--ink); }

.espacio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
  align-items: start;
}
.espacio-shot {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.espacio-shot-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.espacio-shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.02);
}
.espacio-shot figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 2px;
}

@media (max-width: 800px) {
  .espacio-grid { grid-template-columns: 1fr; }
}

/* ─── Editorial flip variant (Tecnología) ──────────────────────────────── */
.editorial--flip .editorial-inner {
  grid-template-columns: 6fr 6fr;
}
.editorial--flip .editorial-photo {
  order: 0;
  aspect-ratio: 3 / 2;
  background: #000;
}
.editorial--flip .editorial-photo img {
  filter: none;
  object-fit: contain;
}
.editorial--flip .editorial-photo-cap {
  color: #f5f2eb;
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.18);
}
.editorial--flip .editorial-text {
  order: 1;
}

/* ─── Para profesionales ───────────────────────────────────────────────── */
.editorial--pro {
  background: var(--bg-2);
}
.editorial-inner--pro {
  display: block;
  max-width: 880px;
  text-align: center;
}
.editorial-inner--pro .editorial-text {
  align-items: center;
}
.editorial-inner--pro .editorial-headline {
  text-wrap: balance;
}
.editorial-inner--pro .editorial-body {
  max-width: 64ch;
}
.editorial-inner--pro .editorial-body p {
  text-wrap: pretty;
}
.editorial-inner--pro .cta {
  margin-top: 4px;
}
@media (max-width: 600px) {
  .editorial-inner--pro { text-align: left; }
  .editorial-inner--pro .editorial-text { align-items: flex-start; }
}

.stars {
  position: relative;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}
.stars-bg { color: color-mix(in srgb, var(--ink) 16%, transparent); }
.stars-fg {
  position: absolute; left: 0; top: 0;
  overflow: hidden;
  color: #e0a83f;
}

.resenas-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.resena-summary {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 40px);
}
.resena-score {
  font-family: var(--display-font);
  font-style: italic;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.92;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.resena-total { font-size: 14px; color: var(--ink-2); }
.resena-total strong { font-weight: 500; color: var(--ink); }
.resena-source {
  display: flex; align-items: center; gap: 10px;
  margin-top: 2px; padding-top: 14px; width: 100%;
  border-top: 1px solid var(--line);
}
.resena-g {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.resena-source-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.resena-summary .cta--full { margin-top: 8px; }

.resena-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.resena-card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(22px, 2.2vw, 30px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.resena-card:hover { border-color: var(--ink-4); transform: translateY(-2px); }
.resena-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resena-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 4px;
}
.resena-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.resena-avatar--initial {
  display: grid; place-items: center;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.resena-author-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.resena-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resena-when {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

.resena-empty {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.resena-empty p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 46ch; }

/* Skeleton */
.resena-card--skeleton { gap: 12px; }
.sk {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 6%, transparent) 25%,
    color-mix(in srgb, var(--ink) 11%, transparent) 37%,
    color-mix(in srgb, var(--ink) 6%, transparent) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
  border-radius: 2px;
}
.sk-stars { width: 96px; height: 14px; }
.sk-line { height: 11px; width: 100%; }
.sk-line--short { width: 55%; }
.sk-author { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sk-av { width: 40px; height: 40px; border-radius: 50%; }
.sk-name { height: 12px; width: 120px; }
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 900px) {
  .resenas-layout { grid-template-columns: 1fr; }
  .resena-summary {
    position: static;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 16px 24px;
  }
  .resena-summary .cta--full { width: auto; margin-top: 0; }
}
@media (max-width: 560px) {
  .resena-grid { grid-template-columns: 1fr; }
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.editorial-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px;transition:color .2s ease,text-decoration-color .2s ease}
.editorial-body a:hover{color:var(--accent);text-decoration-color:currentColor}
/* ─── Sociedades científicas ─────────────────────────────────────────────── */
.sociedades {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.sociedades-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 36px);
}
.sociedades-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sociedades-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
}
.soc-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.soc-logo {
  display: block;
  width: auto;
  object-fit: contain;
  opacity: 0.78;
  filter: saturate(0.92);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.soc-item:hover .soc-logo {
  opacity: 1;
  filter: saturate(1);
}
/* Per-logo optical balancing */
.soc-logo--sedo  { height: 30px; }
.soc-logo--aesor { height: 52px; }
.soc-logo--eos   { height: 46px; }
.soc-logo--aao   { height: 40px; }

@media (max-width: 560px) {
  .sociedades-row { gap: 28px 36px; }
  .soc-logo--aesor { height: 44px; }
  .soc-logo--eos   { height: 40px; }
  .soc-logo--aao   { height: 34px; }
  .soc-logo--sedo  { height: 26px; }
}

/* Reseñas: sin comentarios cargados, la tarjeta ocupa todo el ancho */
.resenas-layout--solo { grid-template-columns: 1fr; }
.resenas-layout--solo .resena-feed { display: none; }
.resenas-layout--solo .resena-summary {
  position: static;
  flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 16px 40px;
}
.resenas-layout--solo .resena-source {
  width: auto; margin-top: 0; padding-top: 0;
  border-top: 0; border-left: 1px solid var(--line); padding-left: 40px;
  align-self: stretch;
}
.resenas-layout--solo .resena-summary .cta--full { width: auto; margin-top: 0; margin-left: auto; }
@media (max-width: 900px) {
  .resenas-layout--solo .resena-source { border-left: 0; padding-left: 0; width: 100%; }
  .resenas-layout--solo .resena-summary .cta--full { margin-left: 0; }
}
@media (max-width: 560px) {
  .resenas-layout--solo .resena-summary .cta--full { width: 100%; justify-content: center; }
}

/* Fichas de currículum: texto algo más compacto en ordenador y tarjeta legible en móvil */
.doc-cv-inner { gap: 5px; }
.doc-cv-list { gap: 4px; }
@media (min-width: 901px) {
  .doc-cv-inner { padding: 16px; gap: 4px; }
  .doc-cv-name { font-size: 18px; }
  .doc-cv-creds { font-size: 9px; }
  .doc-cv-list { gap: 3px; margin-top: 4px; }
  .doc-cv-list li { font-size: 11px; line-height: 1.32; }
}
@media (max-width: 900px), (hover: none) {
  .doc-photo--cv:hover .doc-cv { opacity: 0; visibility: hidden; }
  .doc--open .doc-photo--cv .doc-cv {
    opacity: 1; visibility: visible;
    position: fixed; left: 16px; right: 16px; top: 50%; bottom: auto;
    transform: translateY(-50%);
    max-width: 420px; max-height: 80vh; margin: 0 auto;
    align-items: stretch;
    background: var(--ink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 1000;
  }
  .doc--open .doc-cv-inner { padding: 24px; gap: 8px; }
  .doc--open .doc-cv-name { font-size: 22px; }
  .doc--open .doc-cv-creds { font-size: 10.5px; }
  .doc--open .doc-cv-list { gap: 8px; }
  .doc--open .doc-cv-list li { font-size: 14px; line-height: 1.45; }
}

/* Nuestra historia y actividad científica: etiqueta a la izquierda, texto a la derecha */
@media (min-width: 901px) {
  .nosotros-activities { grid-template-columns: 1fr; gap: clamp(36px, 4vw, 52px); }
  .nosotros-activity--split {
    display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3.2fr);
    column-gap: clamp(32px, 4vw, 56px); row-gap: 14px; align-items: start;
  }
  .nosotros-activity--split .nosotros-activity-label { grid-column: 1; grid-row: 1 / span 2; padding-top: 5px; }
  .nosotros-activity--split .lede--sm { grid-column: 2; max-width: 74ch; }
}
@media (max-width: 900px) {
  .nosotros-activity--split .lede--sm + .lede--sm { margin-top: 12px; }
}

/* Cargo de cada doctor en dos líneas: puesto arriba, servicio abajo */
.doc-role-line { display: block; }

/* Tamaño de letra algo mayor para mejorar la lectura */
.lede { font-size: clamp(16px, 1.1vw, 18px); }
.lede--sm { font-size: 16.5px; }
.nav-links { font-size: 15px; }
.cta { font-size: 14.5px; }
.cta--sm { font-size: 13.5px; }
.section-intro { font-size: 17px; }
.service-body-inner p { font-size: 16px; }
.service-bullets li { font-size: 14.5px; }
.info-v { font-size: 15px; }
.editorial-body { font-size: 17px; }
.espacio-head-body { font-size: 17px; }
.resena-text { font-size: 15.5px; }
@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-name { font-size: 15px; }
}

/* Para profesionales: dos tarjetas (derivación y mentoría) */
.editorial-inner--pro { max-width: 1120px; }
.pro-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px); width: 100%; margin-top: 8px; text-align: left;
}
.pro-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
}
.pro-card-title {
  margin: 0; font-family: var(--display-font); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--ink);
}
.pro-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.pro-card .cta { margin-top: auto; align-self: flex-start; }
.pro-card p:last-of-type { margin-bottom: 10px; }
@media (max-width: 900px) {
  .pro-cards { grid-template-columns: 1fr; }
}
