/* ============================================================
   Components — Dr. Camilo Tarazona
   ============================================================ */

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,245,240,.86);
  backdrop-filter: saturate(1.3) blur(14px);
  border-color: var(--hair);
  box-shadow: 0 1px 0 rgba(45,59,24,.03);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.nav .brand-logo { width: auto; height: 46px; max-height: 46px; display: block; }
.brand .bt { line-height: 1.05; }
.brand .bt b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--forest); letter-spacing: -.01em; }
.brand .bt span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-top: 3px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a::after { content:""; position:absolute; left:0; bottom:-1px; width:0; height:1.5px; background: var(--gold); transition: width .25s; }
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 12px 20px; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--forest); }

/* ---------- Hero ---------- */
.hero { padding-top: 78px; position: relative; overflow: hidden; }

/* Two-column stage: full-bleed photo (left) that fades into the cream,
   copy (right). The mask makes ANY mounted image blend automatically. */
.hero-stage {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: stretch;
  min-height: clamp(540px, 74vh, 760px);
}
.hero-photo-wrap { position: relative; z-index: 1; display: block; }
/* Soft cream fade at the very top so the photo never butts hard against the navbar/logo */
.hero-photo-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 4;
  background: linear-gradient(to bottom, var(--cream) 0, rgba(247,245,240,.72) 42%, rgba(247,245,240,0) 100%);
  pointer-events: none;
}
/* Baked images fill their frames */
.hero-photo-slot, .qlead-portrait, .diag-thumb, .vid-img { object-fit: cover; object-position: center; }
.hero-photo-slot {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%;
  background: var(--sand);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 56%, rgba(0,0,0,.55) 76%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 56%, rgba(0,0,0,.55) 76%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Custom hover toolbar (the component's native controls sit below the slot and
   get clipped by the hero mask/overflow, so we provide our own) */
.slot-tools {
  position: absolute; top: 18px; left: 18px; z-index: 6;
  display: flex; gap: 8px; opacity: 0; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.hero-photo-wrap:has(.hero-photo-slot[data-filled]):hover .slot-tools { opacity: 1; transform: none; pointer-events: auto; }
.slot-tools button {
  appearance: none; border: none; cursor: pointer; border-radius: 999px;
  padding: 9px 16px; font-family: var(--font-body); font-size: 13px; font-weight: 700;
  background: rgba(45,59,24,.86); color: #fff; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); transition: background .2s, transform .2s;
}
.slot-tools button:hover { background: var(--forest); transform: translateY(-1px); }
.slot-tools button[data-tool="clear"] { background: rgba(139,45,58,.88); }
.slot-tools button[data-tool="clear"]:hover { background: var(--wine); }
.hero-copy {
  position: relative; z-index: 2;
  align-self: center;
  padding: 48px clamp(22px, 5vw, 80px) 48px clamp(18px, 2.5vw, 40px);
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(29px, 3.5vw, 48px);
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--forest);
}
.hero h1 em { font-style: italic; color: var(--olive); }
.hero .lede { max-width: 35ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 18px; }
.hero-tele { font-size: 15px; }
.hero-eyebrow { margin-bottom: 24px; }

/* ---------- Stats bar ---------- */
.stats {
  background: var(--forest);
  color: #EDE9DD;
  position: relative; overflow: hidden;
}
.stats .wrap {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-block: 44px;
}
.stat { padding-inline: 26px; position: relative; text-align: center; }
.stat + .stat::before {
  content:""; position:absolute; left:0; top:50%; transform: translateY(-50%);
  width:1px; height:54px; background: linear-gradient(var(--gold), transparent, var(--gold)); opacity:.5;
}
.stat .n { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; color: var(--gold); line-height: 1; }
.stat .l { font-size: 13.5px; color: #C9C5B6; margin-top: 9px; line-height: 1.35; }
.stats .leaf-mark { opacity: .07; right: -40px; bottom: -60px; width: 320px; }

/* ---------- Quote block ---------- */
.quote-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(22px,3.5vw,48px); align-items: start; }
/* Block A (with portrait): give the portrait column more room + presence */
.quote-block:has(.qlead-portrait) { grid-template-columns: 1.15fr 1.35fr; align-items: center; }
.qlead-portrait {
  display: block; width: 100%; height: clamp(420px, 46vw, 540px);
  margin-top: 26px; box-shadow: var(--shadow);
  background: var(--sand); border-radius: var(--radius);
}
.quote-block .qlead h3 { font-size: clamp(26px, 3vw, 38px); margin-top: 18px; }
.bigquote {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.55; color: var(--ink); font-style: italic;
  position: relative; padding-left: 34px;
}
.bigquote::before {
  content: "\201C"; position: absolute; left: -6px; top: -14px;
  font-size: 90px; color: var(--gold); opacity: .4; font-family: var(--font-display); line-height: 1;
}
.bigquote .sig { display:block; font-style: normal; font-family: var(--font-body); font-size: 15px; font-weight:700; color: var(--olive); letter-spacing:.04em; margin-top: 22px; }

/* ---------- Timeline ---------- */
.tl { position: relative; margin-top: 8px; }
.tl::before { content:""; position:absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--hair)); }
.tl-item { position: relative; padding-left: 44px; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content:""; position:absolute; left: 3px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--white); border: 2.5px solid var(--olive);
}
.tl-item .yr { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--gold-d); }
.tl-item .ti { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--forest); margin-top: 2px; }
.tl-item .pl { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.inst-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--hair); border-radius: 999px;
  padding: 8px 15px;
}

/* ---------- Academic highlights ---------- */
.acad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.acad-card {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius-sm);
  padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.acad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,160,92,.5); }
.acad-card .ic { width: 34px; height: 34px; color: var(--olive); margin-bottom: 16px; }
.acad-card .meta { font-size: 12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-d); margin-bottom: 8px; }
.acad-card .tx { font-size: 15.5px; line-height: 1.45; color: var(--forest); font-weight: 600; }

/* ---------- Diagnosis cards ---------- */
.diag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.diag-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.diag-card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--gold); transition: width .35s; z-index: 3; }
.diag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,160,92,.55); }
.diag-card:hover::after { width: 100%; }
.diag-thumb {
  display: block; width: 100%; height: 152px; background: var(--sand);
  border-bottom: 1px solid var(--hair); cursor: pointer; position: relative; z-index: 2;
}
.diag-thumb::part(empty) { font-size: 12px; }
.diag-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 28px; flex: 1; position: relative; }
/* Stretched link: the whole card body navigates; the image area stays free to upload */
.card-link::after { content:""; position: absolute; inset: 0; z-index: 1; }
.diag-body h4, .diag-body p, .card-link { position: relative; z-index: 2; }
.card-link::after { z-index: 1; }
.diag-card .ic {
  width: 48px; height: 48px; color: var(--olive); padding: 9px; margin-top: -46px;
  background: var(--white); border: 1px solid var(--hair); border-radius: 12px;
  box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.diag-card h4 { font-size: 21px; line-height: 1.2; }
.diag-card p { font-size: 14.5px; color: var(--ink-2); flex: 1; }

/* ---------- Video grid ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.vid-card {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--hair); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.vid-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vid-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--sand); }
.vid-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vid-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; z-index: 2;
  background: rgba(255,255,255,.92); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(45,59,24,.5); transition: transform .3s, background .3s;
  pointer-events: none;
}
.vid-card:hover .play { transform: scale(1.08); background: #fff; }
.vid-thumb .play svg { width: 22px; height: 22px; color: var(--olive); margin-left: 3px; }
.vid-thumb .dur {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; font-family: ui-monospace, monospace;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(45,59,24,.8);
  padding: 4px 9px; border-radius: 6px; pointer-events: none;
}
.vid-card .vc-body { padding: 18px 20px 22px; }
.vid-card .vc-body h4 { font-size: 17px; line-height: 1.25; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.path-card {
  border: 1px solid var(--hair); border-radius: var(--radius); padding: 38px 34px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
  background: var(--cream); position: relative; overflow: hidden;
}
.path-card.accent { background: linear-gradient(180deg, #fbf9f4, #f5f1e8); }
.path-card .pc-ic { width: 46px; height: 46px; color: var(--olive); }
.path-card h3 { font-size: 25px; }
.path-card p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.path-card .btn { width: fit-content; }

.form-wrap { margin-top: 28px; background: var(--cream); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(28px,4vw,46px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--forest); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--hair); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(74,93,35,.1); }
.field .cnt { font-size: 12px; color: var(--ink-3); align-self: flex-end; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- International block ---------- */
.intl { background: linear-gradient(160deg, var(--forest), #233012); color: #ECE8DC; overflow: hidden; }
.intl h3 { color: #fff; font-size: clamp(28px,3.4vw,44px); max-width: 18ch; }
.intl .lede { color: #C9C5B6; max-width: 52ch; }
.intl .eyebrow { color: var(--gold); }
.intl .eyebrow::before { background: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 32px; }
.step { position: relative; padding-top: 30px; }
.step .sn { font-family: var(--font-display); font-size: 50px; font-weight: 600; color: var(--gold); opacity: .55; line-height: 1; }
.step h4 { color: #fff; font-size: 21px; margin: 12px 0 8px; }
.step p { color: #B8B5A6; font-size: 15px; }
.step::before { content:""; position:absolute; top:0; left:0; width:46px; height:3px; background: var(--gold); }
.intl-cta { margin-top: 32px; }
.intl .leaf-mark { opacity:.06; left: -60px; top: -40px; width: 360px; filter: brightness(2); }

/* ---------- Footer ---------- */
.footer { background: #20290F; color: #B8B5A6; padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.foot-brand img { width: 64px; margin-bottom: 18px; }
.foot-brand .fname { font-family: var(--font-display); color: #fff; font-size: 21px; font-weight: 600; }
.foot-brand .ftag { font-size: 14px; color: #97947f; margin-top: 8px; line-height: 1.7; max-width: 36ch; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,160,92,.35); display: grid; place-items: center; color: var(--gold); transition: background .25s, color .25s, transform .25s; }
.socials a:hover { background: var(--gold); color: var(--forest); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.foot-col h5 { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.foot-col a { display: block; font-size: 14.5px; color: #B8B5A6; padding: 6px 0; transition: color .2s, padding-left .2s; }
.foot-col a:hover { color: #fff; padding-left: 5px; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding-top: 26px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: #7d7a68; line-height: 1.7;
}
.foot-legal a { color: #97947f; border-bottom: 1px solid rgba(255,255,255,.15); }
.foot-legal a:hover { color: var(--gold); }
.foot-legal .disc { max-width: 64ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .acad-grid, .diag-grid { grid-template-columns: repeat(2,1fr); }
  .vid-grid { grid-template-columns: repeat(2,1fr); }
}
/* Nav needs ~1010px to fit brand + links + CTA on one line; below that use the drawer */
@media (max-width: 1010px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav .nav-cta .btn span.lbl { display: none; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav .brand-logo { height: 38px; max-height: 38px; }
  .nav .nav-cta .btn span.lbl { display: none; }
  .hero-stage { grid-template-columns: 1fr; min-height: 0; }
  /* Message first on mobile: headline + CTA above, photo below.
     Photo bleeds full-width and fades into the cream at the bottom. */
  .hero-copy { order: 0; padding: 22px clamp(22px,6vw,32px) 8px; max-width: none; }
  .hero-photo-wrap { order: 1; width: 100%; height: clamp(320px, 64vw, 420px); }
  .hero-photo-slot {
    width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 6%, #000 16%, #000 62%, rgba(0,0,0,.5) 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 6%, #000 16%, #000 62%, rgba(0,0,0,.5) 84%, transparent 100%);
  }
  .stats .wrap { grid-template-columns: repeat(2,1fr); gap: 30px 0; }
  .stat + .stat::before { display: none; }
  .stat { border-bottom: 1px solid rgba(201,160,92,.2); padding-bottom: 26px; }
  .quote-block { grid-template-columns: 1fr; }
  .quote-block:has(.qlead-portrait) { grid-template-columns: 1fr; align-items: start; }
  /* Portrait: centered, generous but not overwhelming, sits between heading and quote */
  .qlead-portrait { max-width: 380px; height: 460px; margin: 22px auto 4px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .paths, .form-grid { grid-template-columns: 1fr; }
  .diag-grid, .vid-grid, .acad-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  /* Bigger, more cinematic thumbnails on a single-column phone layout */
  .diag-thumb { height: 190px; }
  .qlead-portrait { max-width: 320px; height: 400px; }
}

/* Mobile density (≤768px): tighter grids, gaps and timeline */
@media (max-width: 768px) {
  .diag-grid, .vid-grid, .acad-grid, .signs, .proc { gap: 12px; margin-top: 24px; }
  .paths { gap: 12px; margin-top: 24px; }
  .faq { margin-top: 24px; }
  .steps { gap: 18px; margin-top: 24px; }
  .quote-block { gap: 18px; }
  .tl-item { padding-bottom: 18px; }
  .stat { padding-bottom: 18px; }
  .stats .wrap { gap: 22px 0; }
}

/* Mobile menu drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(32,41,15,.4); backdrop-filter: blur(3px); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(82vw, 340px); background: var(--cream); box-shadow: var(--shadow-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.drawer.open .panel { transform: none; }
.drawer .panel a { font-family: var(--font-display); font-size: 22px; color: var(--forest); padding: 14px 0; border-bottom: 1px solid var(--hair); }
.drawer .panel .btn { margin-top: 22px; justify-content: center; }
.drawer .closeb { align-self: flex-end; background: none; border: none; cursor: pointer; color: var(--forest); padding: 6px; margin-bottom: 8px; }


/* ---------- Educación / Sala de lectura (blog) ---------- */
.blog-head { max-width: 100%; margin-bottom: 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.blog-head > div { max-width: 64ch; }
.blog-head-cta { flex: none; }
@media (max-width: 760px){ .blog-head { flex-direction: column; align-items: flex-start; gap: 18px; } }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201,160,92,.5); }
.post-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.post:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.post-time { font-size: 12.5px; color: var(--ink-3); position: relative; padding-left: 13px; }
.post-time::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:4px; height:4px; border-radius:50%; background: var(--gold); }
.post h4 { font-size: 20px; line-height: 1.22; }
.post h4 a { transition: color .2s; }
.post h4 a:hover { color: var(--olive); }
.post-body p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.post-body .textlink { margin-top: 2px; }

/* ---------- Contact info strip ---------- */
.contact-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 36px; }
.ci-item { display: flex; gap: 15px; align-items: flex-start; padding: 24px 26px; background: var(--cream); border: 1px solid var(--hair); border-radius: var(--radius-sm); }
.ci-ic { width: 26px; height: 26px; color: var(--olive); flex: none; margin-top: 2px; }
.ci-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 6px; }
.ci-text p { font-size: 15px; color: var(--ink); line-height: 1.55; }
.ci-text a { color: var(--olive); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.ci-text a:hover { border-color: var(--gold); }

/* ---------- Footer contact line ---------- */
.foot-contact { font-size: 13.5px; color: #97947f; margin-top: 12px; line-height: 1.7; }
.foot-contact a { color: var(--gold); border-bottom: 1px solid rgba(201,160,92,.3); }
.foot-contact a:hover { color: #fff; }

@media (max-width: 1080px){ .blog-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 1080px) and (min-width: 621px){ #educacion .blog-grid .post:nth-child(3){ display:none; } }
@media (max-width: 860px){ .contact-info{ grid-template-columns: 1fr;} }
@media (max-width: 620px){ .blog-grid{ grid-template-columns: 1fr;} }

/* Diagnosis illustrations in black & white */
.diag-thumb, .sub-illu { background: #fff; }

/* New photos */
.hero-photo-slot{object-position:center 30%}
.qlead-portrait{object-position:center 12%}
.path-card .pc-photo{max-width:none;width:calc(100% + 68px);margin:-38px -34px 4px;height:260px;object-fit:cover;object-position:center 22%;display:block}
@media (max-width:620px){.path-card .pc-photo{height:230px}}
.author-card .ac-photo{object-position:center 15%}

.post-media img,.fp-media img,.article-figure img{object-position:center 25%}

.diag-thumb[src*="-dib2"],.diag-thumb[src*="-dib3"]{object-fit:contain;background:#fff;padding:14px 18px}

.diag-thumb[src*="-dib3"]{padding:4px 6px !important}

/* Para pacientes: article list (merged blog) */
.art-block{margin-top:clamp(36px,4.5vw,56px);border-top:1px solid var(--hair);padding-top:clamp(26px,3vw,36px)}
.art-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:14px;flex-wrap:wrap}
.art-head h3{font-size:clamp(22px,2.4vw,30px)}
.art-list{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
.art-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:4px 16px;padding:16px 0;border-bottom:1px solid var(--hair);transition:padding .2s,color .2s}
.art-row:hover{padding-left:6px}
.art-row:hover .art-title{color:var(--olive)}
.art-cat{grid-column:1/-1;font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-d)}
.art-title{font-family:var(--font-display);font-size:18px;font-weight:600;color:var(--forest);line-height:1.25;transition:color .2s}
.art-time{font-size:13px;color:var(--ink-3);white-space:nowrap}
.art-row .arr{color:var(--olive);transition:transform .2s}
.art-row:hover .arr{transform:translateX(3px)}
@media (max-width:1100px){.art-list{grid-template-columns:1fr}}
@media (max-width:620px){.art-row{grid-template-columns:1fr auto;gap:4px 12px;padding:14px 0}.art-cat{grid-column:1/-1}.art-time{display:none}}
/* Drawings used as article media */
.fp-media img[src*="-dib"],.post-media img[src*="-dib"],.article-figure img[src*="-dib"]{object-fit:contain!important;background:#fff;padding:18px}
