:root {
  /* brand palette — Instituto Dr. Emilio Pastor (logo: navy #003341 + teal #69C2C9) */
  --primary: oklch(0.42 0.052 213);
  --primary-deep: oklch(0.31 0.044 212);
  --primary-soft: oklch(0.95 0.020 200);
  --accent: oklch(0.79 0.078 196);  /* logo teal #69C2C9 */

  --bg: oklch(0.985 0.006 75);
  --surface: #ffffff;
  --surface-alt: oklch(0.965 0.008 75);
  --ink: oklch(0.20 0.010 60);
  --ink-2: oklch(0.42 0.012 60);
  --ink-3: oklch(0.58 0.010 60);
  --border: oklch(0.90 0.007 75);
  --border-strong: oklch(0.82 0.008 75);

  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============ ANNOUNCEMENT BAR ============ */
.announce {
  background: var(--primary-deep);
  color: oklch(0.95 0.015 200);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.announce .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.announce-left { display: flex; gap: 24px; align-items: center; }
.announce-left span { display: inline-flex; align-items: center; gap: 8px; }
.announce-left svg { width: 14px; height: 14px; opacity: 0.7; }
.announce-right { display: flex; gap: 18px; align-items: center; opacity: 0.85; }
.announce-right a { display: inline-flex; align-items: center; gap: 6px; }
.announce-socials { display: flex; gap: 10px; align-items: center; border-left: 1px solid oklch(0.6 0.02 200 / 0.4); padding-left: 14px; margin-left: 4px; }
.announce-socials a { opacity: 0.75; transition: opacity 0.15s; }
.announce-socials a:hover { opacity: 1; }
.announce-socials svg { width: 13px; height: 13px; display: block; }

/* ============ HEADER ============ */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-img { height: 56px; width: auto; display: block; min-width: 0; }
.footer-brand .logo-img { height: 52px; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark::after { content: "ip"; }
.logo small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--primary);
}
.nav a.nav-highlight {
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav a.nav-highlight:hover { color: #fff; background: var(--primary); }
.nav a.nav-highlight.active { color: #fff; background: var(--primary); }
.nav a.nav-highlight.active::after { content: none; }

.header-cta { display: flex; gap: 10px; align-items: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-whatsapp {
  background: oklch(0.62 0.14 145);
  color: white;
  border-color: oklch(0.62 0.14 145);
}
.btn-whatsapp:hover { background: oklch(0.54 0.14 145); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* ============ HERO ============ */
.hero {
  padding-top: clamp(60px, 9vw, 110px);
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.meta-logos {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.meta-logos img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.meta-logos img:hover { opacity: 1; }
.meta-item .num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.meta-item .lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.3;
}

/* placeholder image */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--primary) 8%, var(--surface)) 0,
      color-mix(in oklab, var(--primary) 8%, var(--surface)) 1px,
      var(--surface) 1px,
      var(--surface) 9px
    );
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}
.ph .ph-label {
  background: var(--surface);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  white-space: pre-line;
  line-height: 1.5;
  max-width: 80%;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hero-visual .ph { width: 100%; height: 100%; }
.hero-visual .badge {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 22px;
  max-width: 280px;
}
.hero-visual .badge .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-visual .badge .val {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

/* ============ SECTION FRAMEWORK ============ */
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.section-white { background: var(--surface); }
.section-alt { background: var(--surface-alt); }
.section-tint { background: var(--primary-soft); }
.section-dark { background: var(--primary-deep); color: oklch(0.92 0.01 200); }
.section-dark h2, .section-dark h3 { color: oklch(0.98 0.005 200); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 0; }
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head .desc {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 56ch;
}

/* ============ TREATMENTS ============ */
.treatments {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.treatment {
  grid-column: span 4;
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.2s;
  min-height: 380px;
}
.treatment:hover { background: var(--surface-alt); }
.treatment.feat { grid-column: span 6; }
.treatment.feat .ph-img { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.tr-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.treatment h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.treatment p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}
.treatment .more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.treatment .more::after { content: "→"; transition: transform 0.2s; }
.treatment:hover .more::after { transform: translateX(3px); }
.ph-img { width: 100%; aspect-ratio: 4 / 3; }
.treatment.feat { background: var(--primary-soft); }
.treatment.feat:hover { background: color-mix(in oklab, var(--primary-soft) 80%, var(--primary) 4%); }

/* ============ APPROACH ============ */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.approach-img { aspect-ratio: 5/6; }
.approach-content h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 300; margin-bottom: 24px; }
.approach-content > p { font-size: 17px; color: var(--ink-2); line-height: 1.65; margin-bottom: 32px; }
.steps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.step-num { font-family: var(--serif); font-size: 20px; color: var(--primary); font-style: italic; }
.step h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.step p { font-size: 14px; color: var(--ink-2); }

/* ============ TEAM ============ */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member { display: flex; flex-direction: column; gap: 16px; }
.member .ph-img { aspect-ratio: 3/4; border-radius: var(--radius-lg); }
.member img { border-radius: var(--radius-lg); transition: opacity .15s; }
.member-info { padding: 4px 2px; }
.member h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 2px; }
.member .role { font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
.member:hover img, .member:hover .ph-img { opacity: .92; }

/* Layout cuando hay un solo miembro */
.team-solo {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}
.team-solo .solo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: opacity .15s;
}
.team-solo .solo-img-ph {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
}
.team-solo .solo-body { display: flex; flex-direction: column; gap: 0; }
.team-solo .solo-body .eyebrow { margin-bottom: 20px; }
.team-solo .solo-body h2 { margin-bottom: 16px; }
.team-solo .solo-body .desc { margin-bottom: 40px; }
.team-solo .solo-member-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.team-solo .solo-member-role { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.team-solo .solo-photo:hover img, .team-solo .solo-photo:hover .ph-img { opacity: .92; }
.team-solo .solo-member-trigger:hover .solo-member-name { color: var(--primary); }
.team-solo .solo-divider {
  width: 40px; height: 2px;
  background: var(--primary);
  margin: 28px 0;
}

/* ============ TESTIMONIALS ============ */
.tests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.test {
  background: var(--surface);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.test-quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.test-quote::before { content: "\201C"; color: var(--primary); margin-right: 4px; }
.test-quote::after { content: "\201D"; color: var(--primary); margin-left: 2px; }
.test-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.test-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid var(--border);
}
.test-author .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.test-author .sub { font-size: 13px; color: var(--ink-3); }

/* ============ BLOG ============ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post .ph-img { aspect-ratio: 4/3; margin-bottom: 20px; border-radius: var(--radius-lg); }
.post img { border-radius: var(--radius-lg); }
.post .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.post .meta span:not(:last-child)::after { content: " · "; margin: 0 4px; }
.post h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.25; margin-bottom: 10px; letter-spacing: -0.01em; }
.post .ex { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============ ACADEMY ============ */
.academy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.academy-content .eyebrow { color: oklch(0.85 0.06 50); }
.academy-content .eyebrow::before { background: oklch(0.85 0.06 50); }
.academy-content h2 { color: oklch(0.98 0.005 200); font-size: clamp(34px, 4vw, 52px); font-weight: 300; margin-bottom: 24px; }
.academy-content p { font-size: 17px; line-height: 1.65; color: oklch(0.85 0.01 200); margin-bottom: 32px; max-width: 52ch; }
.academy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid oklch(0.45 0.04 200); }
.academy-stats .num { font-family: var(--serif); font-size: 32px; color: white; font-weight: 400; }
.academy-stats .lbl { font-size: 13px; color: oklch(0.78 0.01 200); margin-top: 6px; }
.academy-visual { aspect-ratio: 4/5; }
.academy-visual .ph {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.36 0.06 200) 0,
      oklch(0.36 0.06 200) 1px,
      oklch(0.30 0.060 200) 1px,
      oklch(0.30 0.060 200) 9px
    );
  border-color: oklch(0.45 0.05 200);
  color: oklch(0.85 0.02 200);
}
.academy-visual .ph-label {
  background: oklch(0.30 0.060 200);
  border-color: oklch(0.45 0.05 200);
  color: oklch(0.85 0.02 200);
}

.btn-on-dark {
  background: oklch(0.98 0.005 200);
  color: var(--primary-deep);
  border-color: oklch(0.98 0.005 200);
}
.btn-on-dark:hover { background: oklch(0.92 0.01 200); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 300; margin-bottom: 24px; }
.contact-info > p { font-size: 17px; color: var(--ink-2); margin-bottom: 36px; max-width: 50ch; line-height: 1.6; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-bottom: 36px; }
.info-item .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.info-item .val { font-size: 16px; color: var(--ink); line-height: 1.45; }
.info-item .val a { color: var(--primary); }
.contact-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.map { aspect-ratio: 4/5; }
.map .ph { width: 100%; height: 100%; }

/* ============ FOOTER ============ */
.footer {
  background: oklch(0.18 0.012 60);
  color: oklch(0.78 0.008 60);
  padding-top: 80px;
  padding-bottom: 40px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer h5 { font-family: var(--sans); font-size: 12px; font-weight: 600; color: white; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: white; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo-mark { background: white; color: var(--primary); }
.footer-brand p { font-size: 14px; line-height: 1.55; color: oklch(0.68 0.008 60); max-width: 32ch; }
.footer-partners {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid oklch(0.28 0.012 60);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.fp-label {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.48 0.008 60);
  white-space: nowrap;
  flex-shrink: 0;
}
.fp-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-logos img {
  display: block;
  border-radius: 8px;
  background: white;
  padding: 6px 12px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.fp-logos img:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid oklch(0.28 0.012 60);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: oklch(0.55 0.008 60);
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid oklch(0.32 0.012 60);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.socials a:hover { border-color: white; background: white; color: var(--primary); }
.socials svg { width: 14px; height: 14px; }

/* ============ ICONS ============ */
.ico { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* responsive */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/10; max-width: 600px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .meta-logos { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .treatment, .treatment.feat { grid-column: span 6; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .team-solo { grid-template-columns: 280px 1fr; gap: 40px; }
  .posts { grid-template-columns: 1fr; }
  .approach, .academy, .contact { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav, .announce-right, .header-cta .btn-ghost { display: none; }
  .treatment, .treatment.feat { grid-column: span 12; }
  .tests { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .team-solo { grid-template-columns: 1fr; gap: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   INTERNAL PAGE COMPONENTS (shared across subpages)
   ============================================================ */

/* page header band */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; text-transform: uppercase; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { opacity: 0.5; }
.page-head h1 { font-size: clamp(40px, 5.2vw, 68px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; max-width: 18ch; }
.page-head .lede { font-size: 18px; color: var(--ink-2); line-height: 1.6; max-width: 60ch; margin-top: 24px; }
.page-head .head-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-head .head-aside { display: flex; flex-direction: column; gap: 16px; }

/* filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* pagination */
.pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
.pag-num, .pag-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-2); transition: all 0.15s;
}
.pag-num:hover, .pag-btn:hover { border-color: var(--ink); color: var(--ink); }
.pag-num.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pag-btn { padding: 0 18px; }

/* generic full-width treatment list (detailed) */
.tr-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.tr-card { grid-column: span 6; background: var(--surface); padding: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: 1fr; gap: 18px; transition: background 0.2s; position: relative; cursor: pointer; }
.tr-card:hover { background: var(--surface-alt); }
.tr-card.wide { grid-column: span 12; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.tr-card .tr-media { aspect-ratio: 16/10; border-radius: var(--radius-lg); }
.tr-card .tr-no { font-family: var(--mono); font-size: 11px; color: var(--primary); letter-spacing: 0.1em; }
.tr-card h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.01em; }
.tr-card p { font-size: 15px; color: var(--ink-2); line-height: 1.62; }
.tr-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--border-strong); border-radius: 3px; padding: 4px 9px; }
.tr-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.tr-meta .mi .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.tr-meta .mi .v { font-size: 14px; color: var(--ink); }
.tr-card .more { font-size: 13px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tr-card .more::before { content: ''; position: absolute; inset: 0; }
.tr-card .more::after { content: "→"; transition: transform 0.2s; }
.tr-card:hover .more::after { transform: translateX(3px); }

/* courses (solo imagen, todas del mismo tamaño) */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-simple { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.18s, transform 0.18s; }
.course-simple:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.course-simple img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.course-simple .ph { aspect-ratio: 16/10; }
.badge-pill { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-pill.online { background: var(--primary-soft); color: var(--primary); }
.badge-pill.presencial { background: color-mix(in oklab, var(--accent) 28%, var(--surface)); color: var(--primary-deep); }
.badge-pill.hibrido { background: var(--surface-alt); color: var(--ink-2); border: 1px solid var(--border-strong); }

/* blog list */
.post { cursor: pointer; position: relative; }
.post .more { font-size: 13px; color: var(--primary); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; }
.post .more::before { content: ''; position: absolute; inset: 0; }
.post .more::after { content: "→"; transition: transform 0.2s; }
.post:hover .more::after { transform: translateX(3px); }

/* prose — contenido HTML enriquecido (tratamientos, blog, cursos) */
.prose, .prose * { font-family: var(--sans) !important; }
.prose { line-height: 1.7; color: var(--ink-2); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-deep); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.2; margin: 1.4em 0 0.5em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 0.3em; }
.prose strong, .prose b { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--primary-soft); padding-left: 1em; color: var(--ink-3); font-style: italic; }

/* neutraliza estilos en línea pegados de Word/CMS anterior (tamaño, color, interlineado ajenos al diseño) */
.prose p, .prose li, .prose span, .prose div, .prose td, .prose th, .prose font {
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* section title link (ver todos) */
.see-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.see-all::after { content: "→"; transition: transform 0.2s; }
.see-all:hover::after { transform: translateX(3px); }
.section-head.with-link { grid-template-columns: 1fr 1.4fr auto; align-items: end; }

/* simple CTA band */
.cta-band { background: var(--primary-deep); color: oklch(0.92 0.01 200); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 300; max-width: 22ch; }
.cta-band p { color: oklch(0.82 0.01 200); font-size: 16px; margin-top: 10px; max-width: 46ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* curso detail */
.curso-layout {
  display: grid;
  grid-template-columns: 1fr min(280px, 30%);
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tr-card, .tr-card.wide { grid-column: span 12; grid-template-columns: 1fr; }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .page-head .head-row { grid-template-columns: 1fr; }
  .page-head .head-aside { order: 2; }
  .section-head.with-link { grid-template-columns: 1fr; }
  .curso-layout { grid-template-columns: 1fr; gap: 32px; }
  .curso-layout aside { position: static !important; top: auto; }
}
@media (max-width: 640px) {
  .courses { grid-template-columns: 1fr; }
}

/* ============================================================
   GLOBAL SEARCH (command palette)
   ============================================================ */
.search-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-3);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  cursor: text; transition: border-color .15s, color .15s;
  min-width: 200px; justify-content: space-between;
}
.search-btn:hover { border-color: var(--ink-3); color: var(--ink-2); }
.header-wp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  transition: opacity .15s;
}
.header-wp-btn:hover { opacity: 0.75; }
.header-wp-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.search-btn .sb-left { display: inline-flex; align-items: center; gap: 9px; }
.search-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.search-btn .kbd {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--ink-3); border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px; background: var(--surface-alt); line-height: 1;
}

.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in oklab, var(--primary-deep) 32%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(56px, 12vh, 140px) 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-modal {
  width: 100%; max-width: 640px; background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.24), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: min(70vh, 620px);
  transform: translateY(-8px) scale(.99); transition: transform .18s ease;
}
.search-overlay.open .search-modal { transform: none; }
.search-inrow { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-inrow svg { width: 20px; height: 20px; stroke: var(--ink-3); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 18px; color: var(--ink);
  letter-spacing: -0.01em;
}
.search-input::placeholder { color: var(--ink-3); }
.search-esc { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 5px; padding: 3px 7px; background: var(--surface-alt); cursor: pointer; }
.search-results { overflow-y: auto; padding: 8px; flex: 1; }
.search-grouptitle {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 12px 6px;
}
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 9px; cursor: pointer;
  text-decoration: none; color: inherit;
}
.search-result.active, .search-result:hover { background: var(--primary-soft); }
.search-result .sr-ico {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
}
.search-result.active .sr-ico { border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }
.search-result .sr-ico svg { width: 18px; height: 18px; stroke: var(--primary); stroke-width: 1.6; fill: none; }
.search-result .sr-body { min-width: 0; flex: 1; }
.search-result .sr-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.search-result .sr-title mark { background: color-mix(in oklab, var(--accent) 45%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-result .sr-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result .sr-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--border-strong); border-radius: 3px; padding: 3px 8px; flex-shrink: 0; }
.search-empty { padding: 40px 20px 48px; text-align: center; color: var(--ink-3); }
.search-empty .se-big { font-family: var(--serif); font-size: 20px; color: var(--ink-2); margin-bottom: 6px; font-weight: 400; }
.search-foot {
  display: flex; align-items: center; gap: 18px; padding: 12px 20px;
  border-top: 1px solid var(--border); background: var(--surface-alt);
  font-size: 12px; color: var(--ink-3);
}
.search-foot .hint { display: inline-flex; align-items: center; gap: 6px; }
.search-foot .hk { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--border-strong); border-radius: 4px; padding: 2px 6px; background: var(--surface); color: var(--ink-2); }

/* ============================================================
   TEAM MODAL (ficha completa de un miembro del equipo)
   ============================================================ */
[data-team-open] { cursor: pointer; }
.team-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in oklab, var(--primary-deep) 32%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.team-overlay.open { opacity: 1; pointer-events: auto; }
.team-modal {
  position: relative;
  width: 100%; max-width: 900px; background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.24), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden; display: grid; grid-template-columns: 380px 1fr;
  grid-template-rows: minmax(0, 1fr);
  max-height: min(92vh, 860px);
  transform: translateY(-8px) scale(.99); transition: transform .18s ease;
}
.team-overlay.open .team-modal { transform: none; }
.team-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border: 1px solid var(--border);
}
.team-modal-close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.8; fill: none; }
.team-modal-media { position: relative; background: var(--surface); overflow: hidden; }
.team-modal-media img, .team-modal-media .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.team-modal-body { padding: clamp(28px, 3vw, 40px); overflow-y: auto; }
.team-modal-name { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 28px); font-weight: 400; margin-bottom: 6px; color: var(--ink); }
.team-modal-role { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-bottom: 14px; }
.team-modal-creds { font-family: var(--mono); font-size: 11px; color: var(--primary); letter-spacing: .06em; margin-bottom: 22px; }
.team-modal-bio { font-size: 14px; color: var(--ink-2); line-height: 1.7; white-space: pre-line; text-align: justify; }

@media (max-width: 640px) {
  .team-modal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-height: 88vh; }
  .team-modal-media { aspect-ratio: 4/3; }
  .team-modal-body { overflow-y: auto; min-height: 0; }
}

@media (max-width: 1120px) {
  .search-btn { min-width: 0; }
  .search-btn .sb-label, .search-btn .kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  .search-foot { display: none; }
}

/* ============================================================
   MOBILE NAV (hamburger + drawer) — generated by nav.js
   ============================================================ */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1800;
  background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mm-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg);
}
.mm-top .logo-img { height: 48px; }
.mm-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.mm-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.mm-links { display: flex; flex-direction: column; padding: 8px var(--pad) 0; }
.mm-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 2px; font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.01em; border-bottom: 1px solid var(--border);
}
.mm-links a::after { content: "→"; color: var(--ink-3); font-family: var(--sans); font-size: 18px; }
.mm-links a.active { color: var(--primary); }
.mm-links a.nav-highlight { color: var(--primary); }
.mm-links a.nav-highlight::after { color: var(--primary); }
.mm-cta { display: flex; flex-direction: column; gap: 12px; padding: 28px var(--pad) 40px; margin-top: auto; }
.mm-cta .btn { justify-content: center; padding: 16px; font-size: 16px; }
.mm-contact { padding: 0 var(--pad) 36px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.mm-contact .mc { display: flex; align-items: center; gap: 10px; }
.mm-contact svg { width: 16px; height: 16px; stroke: var(--primary); stroke-width: 1.6; fill: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   NEWSLETTER (landing)
   ============================================================ */
.newsletter-sec { background: var(--primary-soft); border-top: 1px solid var(--border); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.newsletter h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 18px; }
.newsletter > div > p { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.news-form { display: flex; flex-direction: column; gap: 14px; }
.news-row { display: flex; gap: 12px; }
.news-input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.news-input::placeholder { color: var(--ink-3); }
.news-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 14%, transparent); }
.news-form .btn-lg { height: 56px; padding: 0 28px; }
.news-fine { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.news-fine a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.news-done {
  display: none; align-items: center; gap: 12px;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.news-done svg { width: 22px; height: 22px; stroke: oklch(0.55 0.12 150); stroke-width: 2; fill: none; flex-shrink: 0; }
.news-done.show { display: flex; }
.news-form.hide { display: none; }

@media (max-width: 760px) {
  .newsletter { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-form .btn-lg { width: 100%; justify-content: center; }
}
