﻿
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose-50:  #fff0f3;
  --rose-100: #ffd6df;
  --rose-200: #ffadc0;
  --rose-400: #f472a0;
  --rose-500: #e05585;
  --rose-600: #be3a6a;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', sans-serif;
  --r: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--slate-800); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── NAV LOGO ── */
.nav-home { display: flex; align-items: center; gap: 7px; text-decoration: none; padding: 0 4px; }
.nav-home-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.nav-home-text { font-size: .8rem; font-weight: 800; color: #1e293b; white-space: nowrap; }
.nav-home-text span { color: var(--rose-500); }
.nav-home-sep { width: 1px; height: 20px; background: #d1d9e4; flex-shrink: 0; margin: 0 2px; }

/* ── LOGO OVERRIDES (programas — smaller than index hero) ── */
.hli-ep     { width: 56px !important; height: 56px !important; }
.hli-aniv   { width: 56px !important; height: 56px !important; }
.hli-campus { width: 130px !important; height: 42px !important; }
.hero-logo-sep { height: 32px !important; margin: 0 12px !important; }
@media (max-width: 700px) {
  .hli-ep, .hli-aniv { width: 44px !important; height: 44px !important; }
  .hli-campus { width: 100px !important; height: 34px !important; }
  .hero-logo-sep { margin: 0 8px !important; height: 24px !important; }
}

/* ── HERO ── */
/* Reset index.css hero overrides */
.hero-video-bg, .hero-topbar, .hero-play-btn { display: none !important; }
.hero-logos { position: static; padding: 0; }
.hero-content { position: static; padding: 0; margin-top: 0; }

.hero {
  background: linear-gradient(135deg, #1a0a12 0%, #3d1a28 40%, #6b2d44 100%);
  position: relative; overflow: hidden; padding: calc(72px + 3rem) 0 4rem;
  min-height: unset; display: block; flex-direction: unset;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(224,85,133,0.25) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 50px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 1rem; }
.hero h1 span { color: var(--rose-400); }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { color: #fff; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--rose-400); }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.hero-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px); border-radius: 20px; padding: 1.5rem 1.8rem;
  color: #fff; min-width: 220px;
}
.hero-card-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.hero-card-row { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; font-size: 0.88rem; }
.hero-card-icon { width: 32px; height: 32px; background: rgba(224,85,133,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.hero-card-row strong { display: block; font-weight: 700; font-size: 0.88rem; }
.hero-card-row span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.btn-primary { background: var(--rose-500); color: #fff; font-weight: 700; font-size: 0.9rem; padding: .75rem 1.6rem; border-radius: 50px; transition: background .18s, transform .18s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { background: var(--rose-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; font-size: 0.9rem; padding: .75rem 1.6rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.25); transition: background .18s; }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
@media(max-width:768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-stats { gap: 1.2rem; }
  body { padding-bottom: 70px; }
}

/* Pill de fecha — inyectada por JS solo en móvil */
.hero-date-pill {
  display: none;
}
@media(max-width:768px) {
  .hero-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .38rem .95rem .38rem .55rem;
    margin-top: .9rem;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
  }
  .hero-date-pill-icon {
    width: 22px; height: 22px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
  }
}

/* ── CONTENT LAYOUT ── */
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; padding: 3.5rem 0 4rem; align-items: start; }
@media(max-width:900px) { .content-wrap { grid-template-columns: 1fr; } }

/* ── SECTIONS ── */
.section { margin-bottom: 3rem; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 50px; background: var(--rose-50); color: var(--rose-500); margin-bottom: 0.7rem; }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.5rem; }
.section-sub { color: var(--slate-600); font-size: 0.93rem; margin-bottom: 1.5rem; }

/* Objetivo */
.objetivo-box { background: var(--slate-50); border-left: 4px solid var(--rose-400); border-radius: 0 14px 14px 0; padding: 1.4rem 1.6rem; color: var(--slate-700); font-size: 0.93rem; line-height: 1.75; text-align: justify; }

/* Módulos */
/* ── MÓDULOS ACORDEÓN V2 ── */
.mod-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e8ecf2;
  border-radius: 20px;
  padding: 12px;
}
@media (max-width: 720px) { .mod-list { grid-template-columns: 1fr; } }

.mod-item {
  border-radius: 18px; background: #fff;
  border: 1.5px solid #e8ecf2; overflow: hidden;
  position: relative;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
/* Barra de acento izquierda */
.mod-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #e05585 0%, #f472b6 100%);
  opacity: 0; transition: opacity .22s;
}
.mod-item:hover { border-color: #fda4af; box-shadow: 0 4px 18px rgba(224,85,133,.08); transform: translateY(-1px); }
.mod-item:hover::before { opacity: 1; }
.mod-item.open {
  border-color: #e05585;
  box-shadow: 0 8px 32px rgba(224,85,133,.13);
  transform: translateY(-1px);
  grid-column: 1 / -1;
}
.mod-item.open::before { opacity: 1; }

.mod-trigger {
  display: flex; align-items: center; gap: 16px;
  padding: 1.1rem 1.3rem 1.1rem 1.6rem;
  width: 100%; cursor: pointer; background: none; border: none;
  text-align: left; font-family: var(--font);
  transition: background .22s;
}
.mod-item.open .mod-trigger {
  background: linear-gradient(100deg, rgba(255,240,243,.75) 0%, rgba(255,255,255,0) 60%);
}

/* Badge de número */
.mod-num-badge {
  width: 58px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  transition: background .22s, border-color .22s, box-shadow .22s;
}
.mod-num-val {
  font-size: 1.15rem; font-weight: 800; color: #1e293b;
  line-height: 1; transition: color .22s;
}
.mod-num-label {
  font-size: .55rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; line-height: 1;
  transition: color .22s;
}
.mod-item.open .mod-num-badge {
  background: linear-gradient(135deg, #e05585 0%, #f472b6 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(224,85,133,.35);
}
.mod-item.open .mod-num-label { color: rgba(255,255,255,.75); }
.mod-item.open .mod-num-val   { color: #fff; }

.mod-info { flex: 1; min-width: 0; }
.mod-name {
  font-size: .91rem; font-weight: 700; color: #0f172a;
  line-height: 1.35; margin-bottom: 6px;
}
.mod-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.mod-cert-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .67rem; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 50px; padding: 2px 10px;
  box-shadow: 0 2px 8px rgba(59,130,246,.28);
}

/* Flecha */
.mod-arrow {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; border: 1.5px solid #e2e8f0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .22s, border-color .22s;
}
.mod-arrow svg { stroke: #94a3b8; fill: none; width: 14px; height: 14px; flex-shrink: 0; transition: stroke .22s; }
.mod-item.open .mod-arrow {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #e05585, #f472b6);
  border-color: transparent;
}
.mod-item.open .mod-arrow svg { stroke: #fff; }

/* Cuerpo animado con CSS grid trick */
.mod-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.4,0,.2,1); }
.mod-item.open .mod-body { grid-template-rows: 1fr; }
.mod-body-inner { overflow: hidden; }
.mod-subtopics-wrap {
  padding: 1rem 1.3rem 1.3rem 1.6rem;
  border-top: 1px solid rgba(224,85,133,.12);
  background: linear-gradient(180deg, #fff5f7 0%, #fff 50%);
}

/* Chips de subtemas */
.mod-subtopics { display: flex; flex-wrap: wrap; gap: 7px; }
.mod-sub {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 500; color: #374151;
  background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 50px; padding: 5px 13px;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  cursor: default;
}
.mod-sub:hover {
  border-color: #fda4af; color: #be3a6a;
  background: #fff0f3; box-shadow: 0 2px 8px rgba(224,85,133,.1);
}
.mod-sub-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #e05585, #f472b6);
}

@media (max-width: 600px) {
  .mod-trigger { padding: .9rem 1rem .9rem 1.2rem; gap: 12px; }
  .mod-num-badge { width: 50px; height: 48px; border-radius: 11px; }
  .mod-num-val { font-size: 1rem; }
  .mod-num-label { font-size: .5rem; }
}

/* Mid-cert banner */
.mid-banner { background: linear-gradient(135deg, var(--rose-50), #fff0f8); border: 1px solid var(--rose-200); border-radius: 16px; padding: 1.4rem 1.6rem; margin: 1rem 0 1.5rem; display: flex; gap: 14px; align-items: center; }
.mid-banner-icon { font-size: 2rem; flex-shrink: 0; }
.mid-banner-title { font-weight: 800; font-size: 0.95rem; color: var(--rose-600); }
.mid-banner-desc { font-size: 0.83rem; color: var(--slate-600); margin-top: 2px; }

/* Certifications */
.certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px) { .certs-grid { grid-template-columns: 1fr; } }
.cert-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.3rem; transition: box-shadow .2s, border-color .2s; }
.cert-card:hover { box-shadow: var(--shadow-md); border-color: var(--rose-400); }
.cert-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; background: var(--rose-500); color: #fff; border-radius: 6px; padding: .2rem .55rem; margin-bottom: 8px; letter-spacing: 0.04em; }
.cert-title { font-weight: 700; font-size: 0.88rem; color: var(--slate-800); line-height: 1.4; margin-bottom: 6px; }
.cert-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 0.75rem; color: var(--slate-400); }
.cert-price { font-weight: 700; color: var(--slate-700); font-size: 0.82rem; }
.cert-valid { background: #f0fdf4; color: #166534; font-weight: 600; padding: .15rem .5rem; border-radius: 20px; font-size: 0.7rem; }
.cert-note { font-size: 0.75rem; color: var(--slate-500); background: var(--slate-50); border-radius: 10px; padding: .8rem 1rem; margin-top: 1rem; }

/* Promociones */
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media(max-width:700px) { .promos-grid { grid-template-columns: 1fr; } }
.promo-card { border-radius: 16px; padding: 1.4rem; border: 1.5px solid transparent; position: relative; }
.promo-card.rose { background: linear-gradient(135deg, #fff0f3, #fff8fa); border-color: var(--rose-200); }
.promo-card.blue { background: linear-gradient(135deg, var(--blue-50), #f0f7ff); border-color: var(--blue-100); }
.promo-card.green { background: linear-gradient(135deg, #f0fdf4, #f7fff9); border-color: #bbf7d0; }
.promo-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.promo-name { font-weight: 800; font-size: 0.92rem; color: var(--slate-800); margin-bottom: 6px; }
.promo-desc { font-size: 0.81rem; color: var(--slate-600); line-height: 1.6; }
.promo-note { font-size: 0.72rem; color: var(--slate-400); margin-top: 8px; font-style: italic; }
.promo-footer { font-size: 0.72rem; color: var(--slate-400); margin-top: 1rem; font-style: italic; text-align: center; }

/* Documentos */
.docs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:600px) { .docs-list { grid-template-columns: 1fr; } }
.doc-item { display: flex; align-items: flex-start; gap: 10px; background: var(--slate-50); border-radius: 12px; padding: .85rem 1rem; font-size: 0.87rem; font-weight: 500; color: var(--slate-700); }
.doc-icon { color: var(--rose-500); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.doc-note { font-size: 0.75rem; color: var(--slate-400); margin-top: 3px; font-weight: 400; }

/* Proceso */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 22px; top: 24px; bottom: 24px; width: 2px; background: var(--slate-200); }
.step { display: flex; gap: 16px; position: relative; padding-bottom: 1.5rem; }
.step:last-child { padding-bottom: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--rose-500); color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; box-shadow: 0 0 0 4px var(--rose-50); }
.step-body { padding-top: 10px; }
.step-title { font-weight: 800; font-size: 0.95rem; color: var(--slate-900); margin-bottom: 5px; }
.step-desc { font-size: 0.85rem; color: var(--slate-600); line-height: 1.65; }
.step-desc ul { padding-left: 1.2rem; margin-top: 6px; }
.step-desc li { margin-bottom: 3px; }
.step-alert { background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; padding: .7rem 1rem; margin-top: 8px; font-size: 0.82rem; color: #713f12; font-weight: 600; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.sidebar-card-header { background: linear-gradient(135deg, var(--rose-500), var(--rose-600)); padding: 1.2rem 1.4rem; }
.sidebar-card-header h3 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.sidebar-card-header p { color: rgba(255,255,255,0.8); font-size: 0.78rem; }
.sidebar-card-body { padding: 1.2rem 1.4rem; }
.sidebar-row { display: flex; align-items: center; gap: 10px; padding: .6rem 0; border-bottom: 1px solid var(--slate-100); font-size: 0.85rem; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row-icon { width: 32px; height: 32px; background: var(--rose-50); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-row strong { display: block; font-weight: 700; font-size: 0.85rem; color: var(--slate-800); }
.sidebar-row span { font-size: 0.75rem; color: var(--slate-400); }
.sidebar-cta { display: block; background: var(--rose-500); color: #fff; font-weight: 700; font-size: 0.9rem; text-align: center; padding: .85rem; border-radius: 12px; margin-top: 1rem; transition: background .18s; }
.sidebar-cta:hover { background: var(--rose-600); }
.sidebar-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; font-size: 0.88rem; padding: .75rem; border-radius: 12px; margin-top: 10px; transition: opacity .18s; }
.sidebar-wa:hover { opacity: .9; }
.sidebar-pdf { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--slate-50); color: var(--slate-700); font-weight: 600; font-size: 0.85rem; padding: .7rem; border-radius: 12px; margin-top: 8px; border: 1.5px solid var(--slate-200); transition: border-color .18s, background .18s; }
.sidebar-pdf:hover { border-color: var(--rose-300); background: var(--rose-50); color: var(--rose-600); }
.sidebar-pdf svg { width: 15px; height: 15px; flex-shrink: 0; }
.sidebar-contact { padding: 1.2rem 1.4rem; font-size: 0.82rem; color: var(--slate-600); }
.sidebar-contact a { color: var(--rose-500); font-weight: 600; }
.sidebar-contact p { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }

/* Avalado */
.sidebar-avala { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.1rem 1.2rem; font-size: 0.82rem; text-align: center; color: var(--slate-600); }
.sidebar-avala strong { display: block; color: var(--slate-900); font-size: 0.88rem; margin-bottom: 4px; }
.sidebar-avala .sep-badge { display: inline-block; background: var(--rose-500); color: #fff; font-weight: 700; font-size: 0.7rem; padding: .2rem .55rem; border-radius: 6px; margin-top: 6px; }


/* WhatsApp float */
.wa-fab, .wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 950;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-fab:hover, .wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-fab svg, .wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 860px) { .wa-fab, .wa-float { display: none; } }

/* ── BARRA CTA MÓVIL ── */
.mob-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: #fff; border-top: 1px solid #e2e8f0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(15,23,42,.1);
  gap: 10px;
}
.mob-cta-bar-wa, .mcta-wa {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1; padding: .75rem;
  background: #22c55e; color: #fff;
  border-radius: 14px; text-decoration: none;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
  transition: background .15s, transform .15s;
}
.mob-cta-bar-wa:active, .mcta-wa:active { background: #16a34a; transform: scale(.97); }
.mob-cta-bar-wa svg, .mcta-wa svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.mob-cta-bar-ins, .mcta-primary {
  display: flex; align-items: center; justify-content: center;
  flex: 1; padding: .75rem;
  background: var(--rose-500); color: #fff;
  border-radius: 14px; text-decoration: none;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(224,85,133,.3);
  transition: background .15s, transform .15s;
}
.mob-cta-bar-ins:active, .mcta-primary:active { background: var(--rose-600); transform: scale(.97); }
@media (max-width: 860px) { .mob-cta-bar { display: flex; } }

/* ── ¿PARA QUIÉN ES? ── */
.perfiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .perfiles-grid { grid-template-columns: 1fr; } }
.perfil-card {
  border-radius: 16px; padding: 1.2rem 1.3rem;
  border: 1.5px solid transparent; display: flex; gap: 12px; align-items: flex-start;
}
.perfil-card.si { background: #f0fdf4; border-color: #bbf7d0; }
.perfil-card.no { background: #fff5f5; border-color: #fecaca; }
.perfil-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.perfil-title { font-weight: 700; font-size: .9rem; color: var(--slate-800); margin-bottom: 3px; }
.perfil-desc { font-size: .8rem; color: var(--slate-600); line-height: 1.55; }
.perfil-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  padding: .18rem .6rem; border-radius: 50px; margin-bottom: 6px;
}
.perfil-card.si .perfil-badge { background: #dcfce7; color: #166534; }
.perfil-card.no .perfil-badge { background: #fee2e2; color: #991b1b; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1.5px solid #e8ecf2; border-radius: 16px; overflow: hidden;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(224,85,133,.1); }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 1rem 1.2rem; cursor: pointer;
  background: none; border: none; font-family: var(--font);
  text-align: left;
}
.faq-q { font-weight: 700; font-size: .9rem; color: var(--slate-800); line-height: 1.4; }
.faq-arrow {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--slate-100); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .25s;
}
.faq-item.open .faq-arrow { background: var(--rose-500); transform: rotate(180deg); }
.faq-arrow svg { width: 12px; height: 12px; stroke: var(--slate-600); fill: none; stroke-width: 2.5; }
.faq-item.open .faq-arrow svg { stroke: #fff; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body-inner { overflow: hidden; }
.faq-a { padding: 0 1.2rem 1.1rem; font-size: .87rem; color: var(--slate-600); line-height: 1.7; }

/* ── TESTIMONIOS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: #fff; border: 1.5px solid #e8ecf2; border-radius: 20px;
  padding: 1.4rem; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.testi-card:hover { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(224,85,133,.1); }
.testi-stars { display: flex; gap: 2px; }
.testi-star { color: #f59e0b; font-size: 1rem; }
.testi-text { font-size: .87rem; color: var(--slate-700); line-height: 1.7; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--rose-500), #f472b6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff;
}
.testi-name { font-weight: 700; font-size: .85rem; color: var(--slate-800); }
.testi-role { font-size: .75rem; color: var(--slate-400); }

/* ── CATÁLOGO DE PROGRAMAS (enterate) ── */
.cat-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cat-tab { font-size: .75rem; font-weight: 700; padding: .42rem .95rem; border: 1.5px solid var(--slate-200); border-radius: 50px; background: #fff; color: var(--slate-500); cursor: pointer; transition: all .15s; white-space: nowrap; }
.cat-tab.active { background: var(--rose-500); color: #fff; border-color: var(--rose-500); }
.cat-tab:hover:not(.active) { border-color: var(--rose-300); color: var(--rose-600); background: var(--rose-50); }

.catalog-section { margin-bottom: 2.2rem; }
.catalog-section[hidden] { display: none; }

.prog-row-list { display: flex; flex-direction: column; gap: .55rem; }
.prog-row {
  display: grid; grid-template-columns: 52px 1fr 96px;
  gap: .75rem; align-items: center;
  padding: .82rem 1rem; border: 1.5px solid var(--slate-200);
  border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.prog-row:hover { border-color: var(--rose-200); box-shadow: var(--shadow-md); }
a.prog-row { text-decoration: none; color: inherit; }
.prog-row-badge { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .34rem .28rem; border-radius: 7px; text-align: center; line-height: 1.3; }
.b-esp { background: #eff6ff; color: #1d4ed8; }
.b-mst { background: #f5f3ff; color: #6d28d9; }
.b-doc { background: #fefce8; color: #854d0e; }
.b-dip { background: #fff0f3; color: #be3a6a; }
.b-ev  { background: #fffbeb; color: #b45309; }
.b-ol  { background: #f0fdf4; color: #15803d; }
.prog-row-name { font-size: 1rem; font-weight: 700; color: var(--slate-800); line-height: 1.3; margin-bottom: .3rem; }
.prog-row-meta { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.prog-row-pill { font-size: .72rem; font-weight: 600; color: var(--slate-500); background: var(--slate-100); padding: .1rem .5rem; border-radius: 50px; }
/* Campus pills */
.prog-row-pill.pill-mty    { background: #dcfce7; color: #15803d; font-weight: 800; }
.prog-row-pill.pill-gdl    { background: #dbeafe; color: #1d4ed8; font-weight: 800; }
.prog-row-pill.pill-merida { background: #fef9c3; color: #a16207; font-weight: 800; }
.prog-row-pill.pill-cdmx   { background: #ffe4e6; color: #be123c; font-weight: 800; }
.prog-row-pill.pill-nac    { background: #f1f5f9; color: #475569; font-weight: 800; }
/* Modality pills */
.prog-row-pill.pill-presencial { background: #d1fae5; color: #065f46; font-weight: 700; }
.prog-row-pill.pill-online     { background: #e0f2fe; color: #0369a1; font-weight: 700; }
.prog-row-pill.pill-video      { background: #ffedd5; color: #c2410c; font-weight: 700; }
.prog-row-pill.pill-mixta      { background: #ede9fe; color: #6d28d9; font-weight: 700; }
.prog-row-date { text-align: right; }
.prog-row-date-val { font-size: .86rem; font-weight: 800; color: var(--slate-700); white-space: nowrap; display: block; }
.prog-row-date-tag { font-size: .7rem; color: var(--slate-400); white-space: nowrap; display: block; margin-top: 1px; }
@media (max-width:520px) {
  .prog-row { grid-template-columns: 46px 1fr; }
  .prog-row-date { display: none; }
}

/* Próximas fechas sidebar */
.fecha-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .75rem; }
.fecha-item {
  display: flex; align-items: center; gap: 1rem;
  background: #f8fafc; border: 1px solid #e8edf3;
  border-radius: 12px; padding: 10px 12px;
  transition: background .15s, border-color .15s;
}
.fecha-item:hover { background: #eff6ff; border-color: #bfdbfe; }
.fecha-box {
  min-width: 46px; height: 46px; border-radius: 10px;
  background: var(--rose-500);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff;
  flex-shrink: 0; line-height: 1.2; text-align: center;
}
.fecha-box span { font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1; display: block; }
.fecha-info-name { font-size: .88rem; font-weight: 700; color: var(--slate-800); line-height: 1.3; }
.fecha-info-meta { font-size: .75rem; color: var(--slate-400); margin-top: 3px; }

/* Horario de oficina */
.horario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; }
.horario-item { background: var(--rose-50); border: 1px solid var(--rose-200); border-radius: 8px; padding: .55rem .65rem; }
.horario-dias { font-size: .68rem; font-weight: 700; color: var(--rose-600); text-transform: uppercase; letter-spacing: .05em; }
.horario-horas { font-size: .78rem; font-weight: 800; color: var(--slate-800); margin-top: 2px; }

/* ── CUPO LIMITADO ── */
.cupo-badge {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fed7aa; border-radius: 12px;
  padding: .85rem 1rem; margin-top: 10px;
}
.cupo-dot { width: 10px; height: 10px; border-radius: 50%; background: #f97316; flex-shrink: 0; animation: pulse-cupo 1.6s ease-in-out infinite; }
@keyframes pulse-cupo { 0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.4)} 50%{box-shadow:0 0 0 6px rgba(249,115,22,0)} }
.cupo-text { font-size: .8rem; color: #9a3412; }
.cupo-text strong { font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   PALETAS POR PROGRAMA
   Uso: añade class="prog-XXX" al <body> de cada página.
   prog-dme  → Diplomado Medicina Estética    (rosa, default)
   prog-ecin → Esp. Cuidados Intensivos Neonatales  (azul acero)
   prog-euye → Esp. Urgencias y Emergencias         (violeta pizarra)
   prog-eeqx → Esp. Enfermería Quirúrgica            (índigo violeta)
   Para agregar un programa nuevo: copia un bloque, cambia
   el nombre de clase y los valores de color.
═══════════════════════════════════════════════════════════════ */

/* ── prog-ecin · Azul acero ──────────────────────────── */
body.prog-ecin {
  --rose-50:  #eff7fd;
  --rose-100: #d0e8f7;
  --rose-200: #a8d4f0;
  --rose-400: #7aaedb;
  --rose-500: #5896c6;
  --rose-600: #3d6f9e;
}
body.prog-ecin .nav-home-text span           { color: #5896c6; }
body.prog-ecin .mega-dot.dip                 { background: #7aaedb; }
body.prog-ecin .hero                         { background: linear-gradient(135deg, #040f1e 0%, #092546 40%, #1e4a7a 100%); }
body.prog-ecin .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(88,150,198,.25) 0%, transparent 60%); }
body.prog-ecin .hero-card-icon               { background: rgba(88,150,198,.2); }
body.prog-ecin .mod-num                      { background: linear-gradient(180deg, #5896c6 0%, #7aaedb 100%); }
body.prog-ecin .mod-item:hover               { border-color: #a8d4f0; box-shadow: 0 4px 18px rgba(88,150,198,.08); }
body.prog-ecin .mod-item.open                { border-color: #5896c6; box-shadow: 0 8px 32px rgba(88,150,198,.13); }
body.prog-ecin .sidebar-cta                  { background: linear-gradient(135deg, #5896c6 0%, #7aaedb 100%); box-shadow: 0 4px 14px rgba(88,150,198,.35); }
body.prog-ecin .sidebar-wa                   { background: linear-gradient(135deg, #5896c6, #7aaedb); }
body.prog-ecin .plan-sec                     { border-top: 1px solid rgba(88,150,198,.12); background: linear-gradient(180deg, #eff7fd 0%, #fff 50%); }
body.prog-ecin .plan-tab.active              { border-color: #a8d4f0; color: #3d6f9e; background: #eff7fd; box-shadow: 0 2px 8px rgba(88,150,198,.1); }
body.prog-ecin .plan-tab.active::before      { background: linear-gradient(135deg, #5896c6, #7aaedb); }
body.prog-ecin .mid-banner                   { background: linear-gradient(135deg, var(--rose-50), #eff7fd); border: 1px solid var(--rose-200); }
body.prog-ecin .promo-card.rose              { background: linear-gradient(135deg, #eff7fd, #f5fbfe); border-color: var(--rose-200); }
body.prog-ecin .faq-item.open                { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(88,150,198,.1); }
body.prog-ecin .testi-card:hover             { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(88,150,198,.1); }
body.prog-ecin .testi-avatar                 { background: linear-gradient(135deg, var(--rose-500), #7aaedb); }

/* ── prog-euye · Violeta pizarra ─────────────────────── */
body.prog-euye {
  --rose-50:  #f3f2fa;
  --rose-100: #e0dff4;
  --rose-200: #c4c2e8;
  --rose-400: #9d9ac8;
  --rose-500: #7672b3;
  --rose-600: #5a569a;
}
body.prog-euye .nav-home-text span           { color: #7672b3; }
body.prog-euye .mega-dot.dip                 { background: #9d9ac8; }
body.prog-euye .hero                         { background: linear-gradient(135deg, #010e14 0%, #013d4e 40%, #025d71 100%); }
body.prog-euye .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(118,114,179,.25) 0%, transparent 60%); }
body.prog-euye .hero-card-icon               { background: rgba(118,114,179,.2); }
body.prog-euye .mod-num                      { background: linear-gradient(180deg, #7672b3 0%, #9d9ac8 100%); }
body.prog-euye .mod-item:hover               { border-color: #c4c2e8; box-shadow: 0 4px 18px rgba(118,114,179,.08); }
body.prog-euye .mod-item.open                { border-color: #7672b3; box-shadow: 0 8px 32px rgba(118,114,179,.13); }
body.prog-euye .sidebar-cta                  { background: linear-gradient(135deg, #7672b3 0%, #9d9ac8 100%); box-shadow: 0 4px 14px rgba(118,114,179,.35); }
body.prog-euye .sidebar-wa                   { background: linear-gradient(135deg, #7672b3, #9d9ac8); }
body.prog-euye .plan-sec                     { border-top: 1px solid rgba(118,114,179,.12); background: linear-gradient(180deg, #f3f2fa 0%, #fff 50%); }
body.prog-euye .plan-tab.active              { border-color: #c4c2e8; color: #5a569a; background: #f3f2fa; box-shadow: 0 2px 8px rgba(118,114,179,.1); }
body.prog-euye .plan-tab.active::before      { background: linear-gradient(135deg, #7672b3, #9d9ac8); }
body.prog-euye .mid-banner                   { background: linear-gradient(135deg, var(--rose-50), #f3f2fa); border: 1px solid var(--rose-200); }
body.prog-euye .promo-card.rose              { background: linear-gradient(135deg, #f3f2fa, #f8f7fd); border-color: var(--rose-200); }
body.prog-euye .faq-item.open                { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(118,114,179,.1); }
body.prog-euye .testi-card:hover             { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(118,114,179,.1); }
body.prog-euye .testi-avatar                 { background: linear-gradient(135deg, var(--rose-500), #9d9ac8); }

/* ── prog-eeqx · Índigo violeta ──────────────────────── */
body.prog-eeqx {
  --rose-50:  #f0effe;
  --rose-100: #dddafb;
  --rose-200: #bbb5f7;
  --rose-400: #a095ee;
  --rose-500: #8576e3;
  --rose-600: #6a5bcb;
}
body.prog-eeqx .nav-home-text span           { color: #8576e3; }
body.prog-eeqx .mega-dot.dip                 { background: #a095ee; }
body.prog-eeqx .hero                         { background: linear-gradient(135deg, #0d0b1a 0%, #1e1a3a 40%, #2d2870 100%); }
body.prog-eeqx .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(133,118,227,.25) 0%, transparent 60%); }
body.prog-eeqx .hero-card-icon               { background: rgba(133,118,227,.2); }
body.prog-eeqx .mod-num                      { background: linear-gradient(180deg, #8576e3 0%, #a095ee 100%); }
body.prog-eeqx .mod-item:hover               { border-color: #bbb5f7; box-shadow: 0 4px 18px rgba(133,118,227,.08); }
body.prog-eeqx .mod-item.open                { border-color: #8576e3; box-shadow: 0 8px 32px rgba(133,118,227,.13); }
body.prog-eeqx .sidebar-cta                  { background: linear-gradient(135deg, #8576e3 0%, #a095ee 100%); box-shadow: 0 4px 14px rgba(133,118,227,.35); }
body.prog-eeqx .sidebar-wa                   { background: linear-gradient(135deg, #8576e3, #a095ee); }
body.prog-eeqx .plan-sec                     { border-top: 1px solid rgba(133,118,227,.12); background: linear-gradient(180deg, #f0effe 0%, #fff 50%); }
body.prog-eeqx .plan-tab.active              { border-color: #bbb5f7; color: #6a5bcb; background: #f0effe; box-shadow: 0 2px 8px rgba(133,118,227,.1); }
body.prog-eeqx .plan-tab.active::before      { background: linear-gradient(135deg, #8576e3, #a095ee); }
body.prog-eeqx .mid-banner                   { background: linear-gradient(135deg, var(--rose-50), #f0effe); border: 1px solid var(--rose-200); }
body.prog-eeqx .promo-card.rose              { background: linear-gradient(135deg, #f0effe, #f5f3fd); border-color: var(--rose-200); }
body.prog-eeqx .faq-item.open                { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(133,118,227,.1); }
body.prog-eeqx .testi-card:hover             { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(133,118,227,.1); }
body.prog-eeqx .testi-avatar                 { background: linear-gradient(135deg, var(--rose-500), #a095ee); }

/* ── BIENVENIDA ────────────────────────────────────────── */

.carta-rector {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.carta-rector.bv-in { opacity: 1; transform: translateY(0); }

.carta-deco-top {
  height: 6px;
  background: linear-gradient(90deg, var(--rose-500) 0%, #f472b6 50%, #e05585 100%);
}

.carta-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
}
.sello-inner {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), #f472b6);
  color: #fff;
  font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(224,85,133,.35);
  flex-shrink: 0;
}
.carta-titulo  { font-size: .95rem; font-weight: 800; color: var(--slate-900); }
.carta-subtitulo { font-size: .73rem; color: var(--slate-500); margin-top: 2px; }

.carta-saludo {
  padding: 1.6rem 2rem .4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
}

.carta-body { padding: 0 2rem 1.4rem; }
.carta-body p { font-size: .9rem; line-height: 1.88; color: var(--slate-700); margin-bottom: 1rem; }
.carta-body p:last-child { margin-bottom: 0; }
.carta-despedida { font-style: italic; color: var(--slate-500) !important; margin-top: 1.4rem !important; }

.carta-firma {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 2rem;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  position: relative;
}
.firma-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  font-size: .85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.firma-nombre { font-size: .9rem; font-weight: 800; color: var(--slate-900); }
.firma-cargo  { font-size: .74rem; color: var(--rose-500); font-weight: 600; margin-top: 2px; }
.firma-linea {
  position: absolute;
  right: 2rem; top: 50%; transform: translateY(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500));
  border-radius: 2px;
}

.commitment-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 26px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.commitment-banner.bv-in { opacity: 1; transform: translateY(0); }

.cb-glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224,85,133,.2) 0%, transparent 70%);
  top: -120px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
  animation: cb-pulse 4s ease-in-out infinite;
}
@keyframes cb-pulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;  transform: translateX(-50%) scale(1.18); }
}
.cb-content { position: relative; z-index: 1; }
.cb-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.commitment-banner h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 1rem; }
.commitment-banner p  { font-size: .9rem; opacity: .82; line-height: 1.82; max-width: 540px; margin: 0 auto; }

@media(max-width: 768px) {
  .carta-header  { padding: 1.2rem 1.4rem 1rem; }
  .carta-saludo  { padding: 1.2rem 1.4rem .3rem; }
  .carta-body    { padding: 0 1.4rem 1.2rem; }
  .carta-firma   { padding: 1.1rem 1.4rem; }
  .firma-linea   { display: none; }
  .commitment-banner { padding: 2.5rem 1.5rem; }
}

/* ── prog-eeci · Teal cian (Esp. Enfermería Cuidados Intensivos) ── */
body.prog-eeci {
  --rose-50:  #ecfeff;
  --rose-100: #cffafe;
  --rose-200: #a5f3fc;
  --rose-400: #22d3ee;
  --rose-500: #0891b2;
  --rose-600: #0e7490;
}
body.prog-eeci .nav-home-text span           { color: #0891b2; }
body.prog-eeci .mega-dot.dip                 { background: #22d3ee; }
body.prog-eeci .hero                         { background: linear-gradient(135deg, #030e12 0%, #062332 40%, #0c4a6e 100%); }
body.prog-eeci .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(8,145,178,.28) 0%, transparent 60%); }
body.prog-eeci .hero-card-icon               { background: rgba(8,145,178,.2); }
body.prog-eeci .mod-num                      { background: linear-gradient(180deg, #0891b2 0%, #22d3ee 100%); }
body.prog-eeci .mod-item:hover               { border-color: #a5f3fc; box-shadow: 0 4px 18px rgba(8,145,178,.08); }
body.prog-eeci .mod-item.open                { border-color: #0891b2; box-shadow: 0 8px 32px rgba(8,145,178,.13); }
body.prog-eeci .sidebar-cta                  { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); box-shadow: 0 4px 14px rgba(8,145,178,.35); }
body.prog-eeci .sidebar-wa                   { background: linear-gradient(135deg, #0891b2, #22d3ee); }
body.prog-eeci .plan-sec                     { border-top: 1px solid rgba(8,145,178,.12); background: linear-gradient(180deg, #ecfeff 0%, #fff 50%); }
body.prog-eeci .plan-tab.active              { border-color: #a5f3fc; color: #0e7490; background: #ecfeff; box-shadow: 0 2px 8px rgba(8,145,178,.1); }
body.prog-eeci .plan-tab.active::before      { background: linear-gradient(135deg, #0891b2, #22d3ee); }
body.prog-eeci .mid-banner                   { background: linear-gradient(135deg, var(--rose-50), #ecfeff); border: 1px solid var(--rose-200); }
body.prog-eeci .promo-card.rose              { background: linear-gradient(135deg, #ecfeff, #f0feff); border-color: var(--rose-200); }
body.prog-eeci .faq-item.open                { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(8,145,178,.1); }
body.prog-eeci .testi-card:hover             { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(8,145,178,.1); }
body.prog-eeci .testi-avatar                 { background: linear-gradient(135deg, var(--rose-500), #22d3ee); }

/* ── prog-eeop · Rosa mauve (Esp. Enfermería Obstétrica y Perinatal) ── */
body.prog-eeop {
  --rose-50:  #fdf2f8;
  --rose-100: #fce7f3;
  --rose-200: #fbcfe8;
  --rose-400: #f472b6;
  --rose-500: #d4548a;
  --rose-600: #be185d;
}
body.prog-eeop .nav-home-text span           { color: #d4548a; }
body.prog-eeop .mega-dot.dip                 { background: #f472b6; }
body.prog-eeop .hero                         { background: linear-gradient(135deg, #1a0511 0%, #3d0f2a 40%, #6b1442 100%); }
body.prog-eeop .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(212,84,138,.28) 0%, transparent 60%); }
body.prog-eeop .hero-card-icon               { background: rgba(212,84,138,.2); }
body.prog-eeop .mod-num                      { background: linear-gradient(180deg, #d4548a 0%, #f472b6 100%); }
body.prog-eeop .mod-item:hover               { border-color: #fbcfe8; box-shadow: 0 4px 18px rgba(212,84,138,.08); }
body.prog-eeop .mod-item.open                { border-color: #d4548a; box-shadow: 0 8px 32px rgba(212,84,138,.13); }
body.prog-eeop .sidebar-cta                  { background: linear-gradient(135deg, #d4548a 0%, #f472b6 100%); box-shadow: 0 4px 14px rgba(212,84,138,.35); }
body.prog-eeop .sidebar-wa                   { background: linear-gradient(135deg, #d4548a, #f472b6); }
body.prog-eeop .plan-sec                     { border-top: 1px solid rgba(212,84,138,.12); background: linear-gradient(180deg, #fdf2f8 0%, #fff 50%); }
body.prog-eeop .plan-tab.active              { border-color: #fbcfe8; color: #9d174d; background: #fdf2f8; box-shadow: 0 2px 8px rgba(212,84,138,.1); }
body.prog-eeop .plan-tab.active::before      { background: linear-gradient(135deg, #d4548a, #f472b6); }
body.prog-eeop .mid-banner                   { background: linear-gradient(135deg, var(--rose-50), #fdf2f8); border: 1px solid var(--rose-200); }
body.prog-eeop .promo-card.rose              { background: linear-gradient(135deg, #fdf2f8, #fef6fb); border-color: var(--rose-200); }
body.prog-eeop .faq-item.open                { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(212,84,138,.1); }
body.prog-eeop .testi-card:hover             { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(212,84,138,.1); }
body.prog-eeop .testi-avatar                 { background: linear-gradient(135deg, var(--rose-500), #f472b6); }

/* ── prog-umqc · Rojo urgencias (Dip. Urgencias Médico-Quirúrgicas) ── */
body.prog-umqc {
  --rose-50:  #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #e11d48;
  --rose-600: #be123c;
}
body.prog-umqc .nav-home-text span           { color: #e11d48; }
body.prog-umqc .mega-dot.dip                 { background: #fb7185; }
body.prog-umqc .hero                         { background: linear-gradient(135deg, #1a0009 0%, #3b0015 40%, #7f1d1d 100%); }
body.prog-umqc .hero::before                 { background: radial-gradient(ellipse at 70% 50%, rgba(225,29,72,.30) 0%, transparent 60%); }
body.prog-umqc .hero-card-icon               { background: rgba(225,29,72,.2); }
body.prog-umqc .mod-num                      { background: linear-gradient(180deg, #e11d48 0%, #fb7185 100%); }
body.prog-umqc .mod-item:hover               { border-color: #fecdd3; box-shadow: 0 4px 18px rgba(225,29,72,.08); }
body.prog-umqc .mod-item.open                { border-color: #e11d48; box-shadow: 0 8px 32px rgba(225,29,72,.13); }
body.prog-umqc .sidebar-cta                  { background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%); box-shadow: 0 4px 14px rgba(225,29,72,.35); }
body.prog-umqc .sidebar-wa                   { background: linear-gradient(135deg, #e11d48, #fb7185); }
body.prog-umqc .plan-sec                     { border-top: 1px solid rgba(225,29,72,.12); background: linear-gradient(180deg, #fff1f2 0%, #fff 50%); }
body.prog-umqc .plan-tab.active              { border-color: #fecdd3; color: #9f1239; background: #fff1f2; box-shadow: 0 2px 8px rgba(225,29,72,.1); }
body.prog-umqc .plan-tab.active::before      { background: linear-gradient(135deg, #e11d48, #fb7185); }
body.prog-umqc .mid-banner                   { background: linear-gradient(135deg, #fff1f2, #fff5f5); border: 1px solid #fecdd3; }
body.prog-umqc .faq-item.open                { border-color: #e11d48; box-shadow: 0 4px 20px rgba(225,29,72,.1); }
body.prog-umqc .testi-card:hover             { border-color: #fecdd3; box-shadow: 0 8px 28px rgba(225,29,72,.1); }
body.prog-umqc .testi-avatar                 { background: linear-gradient(135deg, #e11d48, #fb7185); }

/* ── prog-ent · Esmeralda teal (Entérate / Campus) ───── */
body.prog-ent {
  --rose-50:  #ecfdf5;
  --rose-100: #d1fae5;
  --rose-200: #a7f3d0;
  --rose-400: #34d399;
  --rose-500: #10b981;
  --rose-600: #059669;
}
body.prog-ent .nav-home-text span            { color: #10b981; }
body.prog-ent .mega-dot.dip                  { background: #34d399; }
body.prog-ent .hero                          { background: linear-gradient(135deg, #021a10 0%, #053d27 40%, #065f46 100%); }
body.prog-ent .hero::before                  { background: radial-gradient(ellipse at 70% 50%, rgba(16,185,129,.28) 0%, transparent 60%); }
body.prog-ent .hero-card-icon                { background: rgba(16,185,129,.2); }
body.prog-ent .mod-num                       { background: linear-gradient(180deg, #10b981 0%, #34d399 100%); }
body.prog-ent .mod-item:hover                { border-color: #a7f3d0; box-shadow: 0 4px 18px rgba(16,185,129,.08); }
body.prog-ent .mod-item.open                 { border-color: #10b981; box-shadow: 0 8px 32px rgba(16,185,129,.13); }
body.prog-ent .sidebar-cta                   { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); box-shadow: 0 4px 14px rgba(16,185,129,.35); }
body.prog-ent .sidebar-wa                    { background: linear-gradient(135deg, #10b981, #34d399); }
body.prog-ent .plan-sec                      { border-top: 1px solid rgba(16,185,129,.12); background: linear-gradient(180deg, #ecfdf5 0%, #fff 50%); }
body.prog-ent .plan-tab.active               { border-color: #a7f3d0; color: #059669; background: #ecfdf5; box-shadow: 0 2px 8px rgba(16,185,129,.1); }
body.prog-ent .plan-tab.active::before       { background: linear-gradient(135deg, #10b981, #34d399); }
body.prog-ent .mid-banner                    { background: linear-gradient(135deg, var(--rose-50), #ecfdf5); border: 1px solid var(--rose-200); }
body.prog-ent .promo-card.rose               { background: linear-gradient(135deg, #ecfdf5, #f0fdf8); border-color: var(--rose-200); }
body.prog-ent .faq-item.open                 { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(16,185,129,.1); }
body.prog-ent .testi-card:hover              { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(16,185,129,.1); }
body.prog-ent .testi-avatar                  { background: linear-gradient(135deg, var(--rose-500), #34d399); }

/* ── Entérate: layout 2 columnas + reducción de carga visual ── */

/* 0. Sección catalog sin margen extra (prox-grid ya tiene 10px gap) */
body.prog-ent .catalog-section .prox-grid { margin-top: 0; }

/* 1. Todos los campus pills → gris neutro uniforme */
body.prog-ent .prog-row-pill.pill-mty,
body.prog-ent .prog-row-pill.pill-gdl,
body.prog-ent .prog-row-pill.pill-merida,
body.prog-ent .prog-row-pill.pill-cdmx,
body.prog-ent .prog-row-pill.pill-nac {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

/* 2. Pills de modalidad → tono más suave */
body.prog-ent .prog-row-pill.pill-presencial { background: #e8f5ec; color: #2d6a4f; font-weight: 600; }
body.prog-ent .prog-row-pill.pill-online     { background: #e5f0fb; color: #1d5f9a; font-weight: 600; }
body.prog-ent .prog-row-pill.pill-video      { background: #fdf0e5; color: #924d10; font-weight: 600; }
body.prog-ent .prog-row-pill.pill-mixta      { background: #ece8f9; color: #5540a0; font-weight: 600; }

/* 3. Badges de tipo de programa → fondo más neutro */
body.prog-ent .prog-row-badge.b-esp { background: #eef3fc; color: #2e5cb8; }
body.prog-ent .prog-row-badge.b-mst { background: #f0eefa; color: #5a45b0; }
body.prog-ent .prog-row-badge.b-doc { background: #faf7e6; color: #7a5a0e; }
body.prog-ent .prog-row-badge.b-dip { background: #fdf0f3; color: #a0365a; }
body.prog-ent .prog-row-badge.b-ev  { background: #fdf8ec; color: #8a6010; }
body.prog-ent .prog-row-badge.b-ol  { background: #eef8f2; color: #2a7a50; }

/* 4. Section-tags dentro del catálogo → cabecera de sección legible */
body.prog-ent .catalog-section .section-tag {
  display: block;
  background: var(--slate-100);
  color: var(--slate-700);
  border: none;
  border-left: 3px solid var(--rose-400);
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: .5rem 1rem;
  text-transform: none;
}

/* 5. Prog-row más compacto y silencioso */
body.prog-ent .prog-row-name { font-size: .93rem; }
body.prog-ent .prog-row-date-val { font-weight: 700; color: var(--slate-600); }

/* ── Docentes / Catedráticos ─────────────────────────── */
.docentes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
@media (max-width: 900px) { .docentes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .docentes-grid { grid-template-columns: 1fr; gap: 1rem; } }

.docente-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 18px;
  padding: 1.4rem 1rem 1.1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease;
  animation: doc-fadein .5s ease both;
}
.docente-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--rose-200);
  box-shadow: 0 16px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
}
.docente-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--rose-50) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.docente-card:hover::before { opacity: 1; }

.docente-card:nth-child(1) { animation-delay: .05s; }
.docente-card:nth-child(2) { animation-delay: .12s; }
.docente-card:nth-child(3) { animation-delay: .19s; }
.docente-card:nth-child(4) { animation-delay: .26s; }
.docente-card:nth-child(5) { animation-delay: .33s; }
.docente-card:nth-child(6) { animation-delay: .40s; }
.docente-card:nth-child(7) { animation-delay: .47s; }
.docente-card:nth-child(8) { animation-delay: .54s; }
.docente-card:nth-child(9) { animation-delay: .61s; }
.docente-card:nth-child(10) { animation-delay: .68s; }
.docente-card:nth-child(11) { animation-delay: .75s; }
.docente-card:nth-child(12) { animation-delay: .82s; }
@keyframes doc-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.docente-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}
.docente-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--rose-400), var(--rose-200), var(--rose-500), var(--rose-200), var(--rose-400));
  animation: ring-spin 4s linear infinite;
  opacity: 0;
  transition: opacity .3s;
}
.docente-card:hover .docente-avatar-ring { opacity: 1; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.docente-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  z-index: 1;
}
.docente-card:hover .docente-avatar { transform: scale(1.08); }
.docente-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.docente-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  position: relative;
  overflow: hidden;
}
.docente-avatar-placeholder::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,.25);
  transform: skewX(-20deg);
  animation: doc-sheen 3s ease-in-out infinite;
}
@keyframes doc-sheen {
  0%,80%,100% { left: -60%; opacity: 0; }
  20% { left: 140%; opacity: 1; }
}

.docente-name { font-size: .82rem; font-weight: 800; color: var(--slate-800); line-height: 1.3; margin-bottom: 4px; }
.docente-esp  { font-size: .7rem; color: var(--rose-600); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.docente-area { font-size: .72rem; color: var(--slate-500); line-height: 1.4; }
.docente-tag  {
  display: inline-block;
  margin-top: 8px;
  background: var(--rose-50);
  color: var(--rose-600);
  border: 1px solid var(--rose-200);
  border-radius: 50px;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* prog-catedraticos palette — azul institucional */
body.prog-catedraticos {
  --rose-50:  #eff6ff;
  --rose-100: #dbeafe;
  --rose-200: #bfdbfe;
  --rose-400: #60a5fa;
  --rose-500: #2563eb;
  --rose-600: #1d4ed8;
}
body.prog-catedraticos .nav-home-text span   { color: #2563eb; }
body.prog-catedraticos .hero                 { background: linear-gradient(135deg, #0c1a3a 0%, #1e3a6e 40%, #1d4ed8 100%); }
body.prog-catedraticos .hero::before         { background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.25) 0%, transparent 60%); }
body.prog-catedraticos .hero-card-icon       { background: rgba(37,99,235,.2); }
body.prog-catedraticos .sidebar-cta          { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
body.prog-catedraticos .sidebar-wa           { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
body.prog-catedraticos .testi-avatar         { background: linear-gradient(135deg, var(--rose-500), #60a5fa); }

/* ── prog-catedraticos · Glassmorphism cards ── */
body.prog-catedraticos {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(37,99,235,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(139,92,246,.06) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(244,114,182,.05) 0%, transparent 50%),
    #f8fafc;
}
.docentes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; margin-top: 1.4rem; }
@media (max-width:900px) { .docentes-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .docentes-grid { grid-template-columns: 1fr; } }

.docente-card {
  position: relative; border-radius: 22px; padding: 1.6rem 1.1rem 1.3rem;
  text-align: center; overflow: hidden; cursor: default;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  transition: transform .3s cubic-bezier(.34,1.26,.64,1), box-shadow .3s ease, background .3s;
  animation: doc-fadein .55s ease both;
}
.docente-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255,255,255,.75);
  box-shadow: 0 20px 50px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
}
.docente-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 22px 22px 0 0;
  background: var(--dc-accent, linear-gradient(90deg,#2563eb,#60a5fa));
  transition: height .25s ease;
}
.docente-card:hover::before { height: 6px; }
.docente-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  background: var(--dc-glow, radial-gradient(ellipse at 50% 0%,rgba(37,99,235,.12) 0%,transparent 70%));
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 0;
}
.docente-card:hover::after { opacity: 1; }

.docente-card:nth-child(1) { animation-delay:.05s; }
.docente-card:nth-child(2) { animation-delay:.13s; }
.docente-card:nth-child(3) { animation-delay:.21s; }
.docente-card:nth-child(4) { animation-delay:.29s; }
@keyframes doc-fadein { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

#especialidades .docente-card:nth-child(1) { --dc-accent:linear-gradient(90deg,#1d4ed8,#3b82f6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(37,99,235,.14) 0%,transparent 70%); }
#especialidades .docente-card:nth-child(2) { --dc-accent:linear-gradient(90deg,#2563eb,#60a5fa); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(96,165,250,.14) 0%,transparent 70%); }
#especialidades .docente-card:nth-child(3) { --dc-accent:linear-gradient(90deg,#1e40af,#3b82f6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(30,64,175,.14) 0%,transparent 70%); }
#especialidades .docente-card:nth-child(4) { --dc-accent:linear-gradient(90deg,#1d4ed8,#93c5fd); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(147,197,253,.18) 0%,transparent 70%); }
#maestrias .docente-card:nth-child(1) { --dc-accent:linear-gradient(90deg,#6d28d9,#8b5cf6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(139,92,246,.14) 0%,transparent 70%); }
#maestrias .docente-card:nth-child(2) { --dc-accent:linear-gradient(90deg,#7c3aed,#a78bfa); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(167,139,250,.14) 0%,transparent 70%); }
#maestrias .docente-card:nth-child(3) { --dc-accent:linear-gradient(90deg,#5b21b6,#8b5cf6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(91,33,182,.14) 0%,transparent 70%); }
#maestrias .docente-card:nth-child(4) { --dc-accent:linear-gradient(90deg,#6d28d9,#c4b5fd); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(196,181,253,.18) 0%,transparent 70%); }
#diplomados .docente-card:nth-child(1) { --dc-accent:linear-gradient(90deg,#be185d,#f472b6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(244,114,182,.14) 0%,transparent 70%); }
#diplomados .docente-card:nth-child(2) { --dc-accent:linear-gradient(90deg,#db2777,#f9a8d4); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(249,168,212,.14) 0%,transparent 70%); }
#diplomados .docente-card:nth-child(3) { --dc-accent:linear-gradient(90deg,#9d174d,#f472b6); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(157,23,77,.14) 0%,transparent 70%); }
#diplomados .docente-card:nth-child(4) { --dc-accent:linear-gradient(90deg,#be185d,#fbcfe8); --dc-glow:radial-gradient(ellipse at 50% 0%,rgba(251,207,232,.18) 0%,transparent 70%); }

.docente-avatar-wrap { position:relative; width:78px; height:78px; margin:0 auto 1rem; z-index:1; }
.docente-avatar-ring {
  position:absolute; inset:-4px; border-radius:50%;
  background:conic-gradient(#f472b6,rgba(255,255,255,0),#e05585,rgba(255,255,255,0),#f472b6);
  animation:ring-spin 5s linear infinite; opacity:0; transition:opacity .3s;
}
.docente-card:hover .docente-avatar-ring { opacity:1; }
@keyframes ring-spin { to{transform:rotate(360deg)} }
.docente-avatar {
  position:relative; z-index:1; width:78px; height:78px; border-radius:50%; overflow:hidden;
  border:3px solid rgba(255,255,255,.9); box-shadow:0 4px 16px rgba(0,0,0,.12);
  display:flex; align-items:center; justify-content:center;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.docente-card:hover .docente-avatar { transform:scale(1.1); box-shadow:0 8px 24px rgba(0,0,0,.16); }
.docente-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.docente-avatar-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:1.55rem; font-weight:800; color:#fff; letter-spacing:-.02em;
  position:relative; overflow:hidden;
}
#especialidades .docente-avatar-placeholder { background:linear-gradient(135deg,#1d4ed8,#60a5fa); }
#maestrias      .docente-avatar-placeholder { background:linear-gradient(135deg,#6d28d9,#a78bfa); }
#diplomados     .docente-avatar-placeholder { background:linear-gradient(135deg,#be185d,#f9a8d4); }
.docente-avatar-placeholder::after {
  content:''; position:absolute; top:-50%; left:-60%; width:40%; height:200%;
  background:rgba(255,255,255,.3); transform:skewX(-20deg);
  animation:doc-sheen 3.5s ease-in-out infinite;
}
@keyframes doc-sheen { 0%,75%,100%{left:-60%;opacity:0} 20%{left:140%;opacity:1} }

.docente-name { position:relative; z-index:1; font-size:.84rem; font-weight:800; color:#0f172a; line-height:1.3; margin-bottom:5px; }
.docente-esp  { position:relative; z-index:1; font-size:.67rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; }
.docente-area { position:relative; z-index:1; font-size:.71rem; color:#475569; line-height:1.5; }
.docente-tag  { position:relative; z-index:1; display:inline-block; margin-top:10px; font-size:.6rem; font-weight:800; padding:3px 11px; border-radius:50px; text-transform:uppercase; letter-spacing:.06em; }

#especialidades .docente-esp  { color:#1d4ed8; }
#maestrias      .docente-esp  { color:#6d28d9; }
#diplomados     .docente-esp  { color:#be185d; }
#especialidades .docente-tag  { background:#dbeafe; color:#1d4ed8; border:1px solid #bfdbfe; }
#maestrias      .docente-tag  { background:#ede9fe; color:#6d28d9; border:1px solid #ddd6fe; }
#diplomados     .docente-tag  { background:#fce7f3; color:#be185d; border:1px solid #fbcfe8; }

.section-header-band { display:flex; align-items:center; gap:.8rem; padding:.9rem 1.2rem; border-radius:14px; margin-bottom:1.2rem; }
.shb-esp { background:linear-gradient(135deg,#eff6ff,#dbeafe); border:1px solid #bfdbfe; }
.shb-mst { background:linear-gradient(135deg,#f5f3ff,#ede9fe); border:1px solid #ddd6fe; }
.shb-dip { background:linear-gradient(135deg,#fdf2f8,#fce7f3); border:1px solid #fbcfe8; }
.shb-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.shb-esp .shb-dot { background:linear-gradient(135deg,#1d4ed8,#60a5fa); box-shadow:0 0 8px rgba(37,99,235,.5); }
.shb-mst .shb-dot { background:linear-gradient(135deg,#6d28d9,#a78bfa); box-shadow:0 0 8px rgba(109,40,217,.5); }
.shb-dip .shb-dot { background:linear-gradient(135deg,#be185d,#f472b6); box-shadow:0 0 8px rgba(190,24,93,.5); }
.shb-label { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.shb-esp .shb-label { color:#1d4ed8; }
.shb-mst .shb-label { color:#6d28d9; }
.shb-dip .shb-label { color:#be185d; }
.shb-title { font-size:1.1rem; font-weight:800; color:#0f172a; margin:0; }
.shb-sub   { font-size:.75rem; color:#64748b; margin:0; }

@media (max-width:600px) {
  .docente-name { font-size:.88rem; }
  .docente-area { font-size:.72rem; }
  .docente-avatar-wrap, .docente-avatar { width:66px; height:66px; }
  .docente-avatar-placeholder { font-size:1.3rem; }
}

/* ══════════════════════════════════════════════════════════════
   prog-acerca · Acerca de EP de México Campus Monterrey
   ══════════════════════════════════════════════════════════════ */
body.prog-acerca {
  --rose-50:  #eff6ff;
  --rose-100: #dbeafe;
  --rose-200: #bfdbfe;
  --rose-400: #60a5fa;
  --rose-500: #2563eb;
  --rose-600: #1d4ed8;
}
body.prog-acerca .nav-home-text span  { color: #2563eb; }
body.prog-acerca .hero                { background: linear-gradient(135deg, #0c1a3a 0%, #1e3a6e 40%, #1d4ed8 100%); }
body.prog-acerca .hero::before        { background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.25) 0%, transparent 60%); }
body.prog-acerca .hero-card-icon      { background: rgba(37,99,235,.2); }
body.prog-acerca .sidebar-cta         { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
body.prog-acerca .sidebar-wa          { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
body.prog-acerca .faq-item.open       { border-color: var(--rose-500); box-shadow: 0 4px 20px rgba(37,99,235,.1); }
body.prog-acerca .testi-card:hover    { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(37,99,235,.1); }
body.prog-acerca .testi-avatar        { background: linear-gradient(135deg, var(--rose-500), #60a5fa); }

/* ── Section fade-in ── */
body.prog-acerca .section { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
body.prog-acerca .section.sec-in { opacity: 1; transform: none; }

/* ── Scroll-reveal ── */
body.prog-acerca .sr { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
body.prog-acerca .sr.sr-left  { transform: translateX(-28px); }
body.prog-acerca .sr.sr-right { transform: translateX(28px); }
body.prog-acerca .sr.sr-scale { transform: scale(.92); }
body.prog-acerca .sr.visible  { opacity: 1; transform: none; }
body.prog-acerca .sr-d1 { transition-delay: .08s; }
body.prog-acerca .sr-d2 { transition-delay: .16s; }
body.prog-acerca .sr-d3 { transition-delay: .24s; }
body.prog-acerca .sr-d4 { transition-delay: .32s; }
body.prog-acerca .sr-d5 { transition-delay: .40s; }

/* ── Timeline ── */
body.prog-acerca .timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.2rem;
}
body.prog-acerca .timeline::before {
  content: '';
  position: absolute; left: 7px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--rose-500), var(--rose-200));
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(.4,0,.2,1) .3s;
}
body.prog-acerca .timeline.tl-visible::before { transform: scaleY(1); }
body.prog-acerca .tl-item {
  position: relative;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .5s ease, transform .5s ease;
}
body.prog-acerca .tl-item.tl-in { opacity: 1; transform: none; }
body.prog-acerca .tl-dot {
  position: absolute; left: -2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose-500); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--rose-300); flex-shrink: 0;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
body.prog-acerca .tl-item.tl-in .tl-dot { transform: scale(1); }
body.prog-acerca .tl-year  { font-size: .7rem; font-weight: 800; color: var(--rose-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
body.prog-acerca .tl-title { font-size: .9rem; font-weight: 700; color: var(--slate-800); margin-bottom: 4px; }
body.prog-acerca .tl-desc  { font-size: .82rem; color: var(--slate-600); line-height: 1.55; }

/* ── Pilares — cards con foto ── */
body.prog-acerca .pilares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1.2rem;
}
body.prog-acerca .pilar-card {
  position: relative;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/3; cursor: default;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: border-color .2s, box-shadow .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
body.prog-acerca .pilar-card:hover {
  border-color: var(--rose-200);
  box-shadow: 0 12px 32px rgba(37,99,235,.12), 0 0 0 4px rgba(37,99,235,.06);
  transform: translateY(-4px);
}
body.prog-acerca .pilar-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
body.prog-acerca .pilar-card:hover .pilar-card-bg { transform: scale(1.06); }
body.prog-acerca .pilar-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,26,58,.18) 0%, rgba(12,26,58,.55) 55%, rgba(12,26,58,.88) 100%);
  transition: background .3s;
}
body.prog-acerca .pilar-card:hover .pilar-card-overlay {
  background: linear-gradient(180deg, rgba(12,26,58,.1) 0%, rgba(12,26,58,.5) 50%, rgba(12,26,58,.92) 100%);
}
body.prog-acerca .pilar-num {
  position: absolute; top: 1rem; left: 1.1rem; z-index: 2;
  font-size: .65rem; font-weight: 800;
  color: rgba(255,255,255,.55); letter-spacing: .14em; text-transform: uppercase;
}
body.prog-acerca .pilar-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.2rem 1.1rem; z-index: 2;
}
body.prog-acerca .pilar-title {
  font-size: .95rem; font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: .35rem; letter-spacing: -.01em;
}
body.prog-acerca .pilar-desc {
  font-size: .74rem; color: rgba(255,255,255,.78); line-height: 1.55;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease; opacity: 0;
}
body.prog-acerca .pilar-card:hover .pilar-desc { max-height: 80px; opacity: 1; }
body.prog-acerca .pilar-line {
  width: 28px; height: 2px; background: var(--rose-400);
  border-radius: 2px; margin-bottom: .5rem;
  transition: width .3s ease;
}
body.prog-acerca .pilar-card:hover .pilar-line { width: 48px; }
body.prog-acerca .pilar-icon { display: inline-block; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
body.prog-acerca .pilar-card:hover .pilar-icon { transform: scale(1.3) rotate(-8deg); }

/* ── Stats banner ── */
body.prog-acerca .stats-banner {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--slate-200);
  border-radius: 16px; overflow: hidden; margin: 1.2rem 0;
}
body.prog-acerca .stat-cell { background: #fff; padding: 1.1rem .8rem; text-align: center; transition: background .2s; }
body.prog-acerca .stat-cell:hover { background: var(--rose-50); }
body.prog-acerca .stat-cell-num { font-size: 1.8rem; font-weight: 800; color: var(--rose-500); line-height: 1; transition: transform .2s; }
body.prog-acerca .stat-cell:hover .stat-cell-num { transform: scale(1.12); }
body.prog-acerca .stat-cell-lbl { font-size: .68rem; color: var(--slate-500); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Keyword highlight ── */
body.prog-acerca .kw {
  background: linear-gradient(90deg, var(--rose-200), var(--rose-100));
  background-size: 0% 100%; background-repeat: no-repeat; background-position: left center;
  border-radius: 3px; padding: 0 3px;
  transition: background-size .6s ease;
}
body.prog-acerca .kw.kw-in { background-size: 100% 100%; }

/* ── Campus cards (perfiles) ── */
body.prog-acerca .perfil-card {
  transition: border-color .2s, box-shadow .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
body.prog-acerca .perfil-card:hover {
  border-color: var(--rose-200);
  box-shadow: 0 10px 30px rgba(37,99,235,.1);
  transform: translateY(-4px) scale(1.02);
}
body.prog-acerca .perfil-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
body.prog-acerca .perfil-card:hover .perfil-icon { transform: scale(1.25) rotate(10deg); }

/* ── Cert cards ── */
body.prog-acerca .cert-card {
  position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
body.prog-acerca .cert-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-200), var(--rose-400)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  opacity: 0; transition: opacity .25s;
}
body.prog-acerca .cert-card:hover { box-shadow: 0 10px 28px rgba(37,99,235,.1); transform: translateY(-3px); }
body.prog-acerca .cert-card:hover::after { opacity: 1; }
body.prog-acerca .cert-badge { transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s; }
body.prog-acerca .cert-card:hover .cert-badge {
  transform: scale(1.06);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  body.prog-acerca .pilares-grid { grid-template-columns: 1fr; }
  body.prog-acerca .stats-banner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  body.prog-acerca .stats-banner { grid-template-columns: repeat(2, 1fr); }
  body.prog-acerca .stat-cell-num { font-size: 1.4rem; }
  body.prog-acerca .pilares-grid { gap: .6rem; }
  body.prog-acerca .pilar-card { aspect-ratio: 3/2; }
  body.prog-acerca .pilar-title { font-size: .88rem; }
  body.prog-acerca .pilar-content { padding: .9rem 1rem .85rem; }
  body.prog-acerca .timeline { padding-left: 1.4rem; }
  body.prog-acerca .tl-dot { left: -1.4rem; width: 14px; height: 14px; }
  body.prog-acerca .tl-title { font-size: .85rem; }
  body.prog-acerca .tl-desc { font-size: .78rem; }
  body.prog-acerca .perfiles-grid { grid-template-columns: 1fr; }
  body.prog-acerca .objetivo-box { padding: 1rem 1.1rem; font-size: .88rem; }
  body.prog-acerca .section-title { font-size: 1.25rem; }
  body.prog-acerca .map-frame { height: 200px !important; }
}
@media (max-width: 400px) {
  body.prog-acerca .stat-cell { padding: .9rem .6rem; }
  body.prog-acerca .stat-cell-num { font-size: 1.25rem; }
  body.prog-acerca .docente-teaser-group { flex-wrap: wrap; gap: 6px; }
  body.prog-acerca .timeline { padding-left: 1.2rem; }
  body.prog-acerca .tl-dot { width: 12px; height: 12px; top: 5px; }
}

/* ══════════════════════════════════════════════════════════════
   prog-ceremonias · Ceremonias y Graduaciones
   ══════════════════════════════════════════════════════════════ */
body.prog-ceremonias {
  --rose-50:  #eff6ff;
  --rose-100: #dbeafe;
  --rose-200: #bfdbfe;
  --rose-400: #60a5fa;
  --rose-500: #2563eb;
  --rose-600: #1d4ed8;
}
body.prog-ceremonias .nav-home-text span  { color: #2563eb; }
body.prog-ceremonias .hero                { background: linear-gradient(135deg, #0c1a3a 0%, #1e3a6e 40%, #1d4ed8 100%); }
body.prog-ceremonias .hero::before        { background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.25) 0%, transparent 60%); }
body.prog-ceremonias .hero-card-icon      { background: rgba(37,99,235,.2); }
body.prog-ceremonias .sidebar-cta         { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
body.prog-ceremonias .sidebar-wa          { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
body.prog-ceremonias .testi-card:hover    { border-color: var(--rose-200); box-shadow: 0 8px 28px rgba(37,99,235,.1); }
body.prog-ceremonias .testi-avatar        { background: linear-gradient(135deg, var(--rose-500), #60a5fa); }

/* ── Galería — layout editorial ── */
body.prog-ceremonias .gallery-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: .65rem;
  margin-top: 1.4rem;
  align-items: stretch;
}

/* Tira vertical de miniaturas */
body.prog-ceremonias .slider-thumbs {
  display: flex; flex-direction: column;
  gap: .5rem; flex-shrink: 0; width: 78px;
  overflow-y: auto; scrollbar-width: none;
}
body.prog-ceremonias .slider-thumbs::-webkit-scrollbar { display: none; }
body.prog-ceremonias .slider-thumb {
  width: 78px; height: 62px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer; flex-shrink: 0; position: relative;
  border: 2px solid transparent;
  background: #141e35;
  transition: border-color .2s, opacity .2s;
  opacity: .45;
}
body.prog-ceremonias .slider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.prog-ceremonias .slider-thumb.active { border-color: var(--rose-500); opacity: 1; }
body.prog-ceremonias .slider-thumb:hover:not(.active) { opacity: .78; }
body.prog-ceremonias .thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,15,35,.6) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 4px 6px;
}
body.prog-ceremonias .thumb-overlay span {
  font-size: .58rem; font-weight: 800;
  color: rgba(255,255,255,.65); letter-spacing: .05em;
}
body.prog-ceremonias .thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800;
  color: rgba(255,255,255,.25); letter-spacing: .06em;
}

/* Slide principal */
body.prog-ceremonias .slider-wrap {
  flex: 1; min-width: 0;
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: #0e1829;
  box-shadow: 0 20px 56px rgba(0,0,0,.22);
  user-select: none;
}
body.prog-ceremonias .slider-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
body.prog-ceremonias .slide {
  min-width: 100%; aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
body.prog-ceremonias .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder cinematográfico */
body.prog-ceremonias .slide-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(150deg, #0c1527 0%, #152344 55%, #0a1220 100%);
}
body.prog-ceremonias .slide-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,.015) 3px, rgba(255,255,255,.015) 4px
  );
  pointer-events: none;
}
body.prog-ceremonias .slide-placeholder-num {
  font-size: 6rem; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.055);
  letter-spacing: -.05em;
  position: absolute; right: 1.6rem; bottom: 3.8rem;
  z-index: 0;
}
body.prog-ceremonias .slide-placeholder-lbl {
  font-size: .65rem; font-weight: 800;
  color: rgba(255,255,255,.28);
  text-transform: uppercase; letter-spacing: .2em;
  position: relative; z-index: 1;
}

/* Caption */
body.prog-ceremonias .slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(6,12,28,.9) 0%, rgba(6,12,28,.45) 55%, transparent 100%);
  padding: 2.2rem 1.4rem .85rem; color: #fff;
}
body.prog-ceremonias .slide-caption-counter {
  font-size: .58rem; font-weight: 800; letter-spacing: .16em;
  color: var(--rose-400); text-transform: uppercase; margin-bottom: .3rem;
}
body.prog-ceremonias .slide-caption-title { font-size: .95rem; font-weight: 800; line-height: 1.25; margin-bottom: 2px; }
body.prog-ceremonias .slide-caption-sub   { font-size: .7rem; opacity: .55; }

/* Botones nav — esquina inferior derecha */
body.prog-ceremonias .slider-btn {
  position: absolute; bottom: .85rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s; z-index: 2;
}
body.prog-ceremonias .slider-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }
body.prog-ceremonias .slider-btn.prev { right: 54px; }
body.prog-ceremonias .slider-btn.next { right: 12px; }
body.prog-ceremonias .slider-btn svg  { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.5; }

body.prog-ceremonias .slider-dots { display: none; }

/* ── Cards de ceremonias ── */
body.prog-ceremonias .ceremonia-card {
  background: #fff; border: 1.5px solid var(--slate-200);
  border-radius: 16px; padding: 1.3rem 1.2rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color .15s, box-shadow .15s, transform .2s;
}
body.prog-ceremonias .ceremonia-card:hover { border-color: var(--rose-200); box-shadow: 0 8px 24px rgba(37,99,235,.09); transform: translateY(-2px); }
body.prog-ceremonias .ceremonia-fecha-box {
  min-width: 58px; text-align: center;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  border-radius: 12px; padding: .6rem .4rem; color: #fff; flex-shrink: 0;
}
body.prog-ceremonias .ceremonia-fecha-mes  { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
body.prog-ceremonias .ceremonia-fecha-dia  { font-size: 1.6rem; font-weight: 800; line-height: 1; }
body.prog-ceremonias .ceremonia-fecha-anio { font-size: .62rem; font-weight: 700; opacity: .75; }
body.prog-ceremonias .ceremonia-info-title { font-size: .9rem; font-weight: 800; color: var(--slate-800); margin-bottom: 4px; }
body.prog-ceremonias .ceremonia-info-sub   { font-size: .76rem; color: var(--slate-500); margin-bottom: 8px; line-height: 1.5; }
body.prog-ceremonias .ceremonia-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: .04em; }
body.prog-ceremonias .pill-presencial-cer { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
body.prog-ceremonias .pill-virtual-cer    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
body.prog-ceremonias .pill-hibrida-cer    { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

/* ── Pasos del proceso ── */
body.prog-ceremonias .pasos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 1.2rem; counter-reset: paso;
}
body.prog-ceremonias .paso-card {
  background: #fff; border: 1.5px solid var(--slate-200);
  border-radius: 14px; padding: 1.1rem 1rem;
  counter-increment: paso; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
body.prog-ceremonias .paso-card:hover { border-color: var(--rose-200); box-shadow: 0 4px 18px rgba(37,99,235,.08); }
body.prog-ceremonias .paso-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  color: #fff; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: .6rem;
}
body.prog-ceremonias .paso-title { font-size: .85rem; font-weight: 800; color: var(--slate-800); margin-bottom: 4px; }
body.prog-ceremonias .paso-desc  { font-size: .76rem; color: var(--slate-500); line-height: 1.5; }

/* ── Testimonios egresados ── */
body.prog-ceremonias .egresado-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 1.2rem;
}
body.prog-ceremonias .egresado-card { background: #fff; border: 1.5px solid var(--slate-200); border-radius: 14px; padding: 1.1rem; transition: border-color .15s, box-shadow .15s; }
body.prog-ceremonias .egresado-card:hover { border-color: var(--rose-200); box-shadow: 0 6px 20px rgba(37,99,235,.08); }
body.prog-ceremonias .egresado-quote { font-size: .8rem; color: var(--slate-600); line-height: 1.6; font-style: italic; margin-bottom: .8rem; }
body.prog-ceremonias .egresado-author { display: flex; align-items: center; gap: .7rem; }
body.prog-ceremonias .egresado-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  color: #fff; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.prog-ceremonias .egresado-name { font-size: .78rem; font-weight: 700; color: var(--slate-800); }
body.prog-ceremonias .egresado-prog { font-size: .68rem; color: var(--slate-400); }

/* ── Responsive ── */
@media (max-width: 560px) {
  body.prog-ceremonias .pasos-grid { grid-template-columns: 1fr; }
  body.prog-ceremonias .egresado-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.prog-ceremonias .gallery-layout { flex-direction: column; }
  body.prog-ceremonias .slider-thumbs { flex-direction: row; width: 100%; overflow-x: auto; overflow-y: visible; max-height: none; }
  body.prog-ceremonias .slider-thumb { width: 58px; height: 46px; flex-shrink: 0; }
  body.prog-ceremonias .slide-caption-sub { display: none; }
  body.prog-ceremonias .slide-caption-title { font-size: .82rem; }
  body.prog-ceremonias .ceremonia-card { padding: 1rem .9rem; gap: .8rem; }
  body.prog-ceremonias .ceremonia-fecha-box { min-width: 48px; padding: .5rem .3rem; }
  body.prog-ceremonias .ceremonia-fecha-dia { font-size: 1.3rem; }
  body.prog-ceremonias .pasos-grid { grid-template-columns: 1fr; }
  body.prog-ceremonias .egresado-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  body.prog-ceremonias .slider-thumb { width: 48px; height: 38px; }
  body.prog-ceremonias .ceremonia-card { flex-direction: column; }
  body.prog-ceremonias .ceremonia-fecha-box { display: flex; align-items: center; gap: .5rem; border-radius: 10px; padding: .5rem .8rem; width: 100%; justify-content: flex-start; }
  body.prog-ceremonias .ceremonia-fecha-mes { order: 2; }
  body.prog-ceremonias .ceremonia-fecha-dia { font-size: 1.2rem; order: 1; }
  body.prog-ceremonias .ceremonia-fecha-anio { order: 3; }
}
@media (max-width:400px) { body.prog-catedraticos .docente-card { padding:1.2rem .9rem 1rem; } }

/* ══════════════════════════════════════════════════════════════
   Galería de programa — pg-grid / pg-lightbox (global)
   ══════════════════════════════════════════════════════════════ */

/* Grid masonry-ligero */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: .55rem;
  margin-top: 1.2rem;
}
.pg-item {
  border-radius: 12px; overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--slate-100);
  transition: transform .2s, box-shadow .2s;
}
.pg-item:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.pg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Celdas grandes */
.pg-large { grid-row: span 1; grid-column: span 2; }

/* Placeholder mientras no hay foto */
.pg-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
}
.pg-ph-num {
  font-size: 2.4rem; font-weight: 800;
  color: #cbd5e1; line-height: 1; letter-spacing: -.04em;
}
.pg-ph-lbl {
  font-size: .62rem; font-weight: 700;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .12em;
}

/* Overlay hover en fotos reales */
.pg-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
  border-radius: 12px;
}
.pg-item:hover::after { background: rgba(0,0,0,.15); }

/* Lightbox */
.pg-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,10,22,.94); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem;
}
.pg-lightbox.pg-lb-open { display: flex; }

.pg-lb-img-wrap {
  max-width: 860px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.pg-lb-img-wrap img {
  width: 100%; max-height: 78vh;
  object-fit: contain; border-radius: 10px;
}
.pg-lb-caption {
  font-size: .75rem; color: rgba(255,255,255,.55);
  font-weight: 600; letter-spacing: .04em;
}

.pg-lb-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pg-lb-close:hover { background: rgba(255,255,255,.2); }
.pg-lb-close svg { width: 16px; height: 16px; }

.pg-lb-prev, .pg-lb-next {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pg-lb-prev:hover, .pg-lb-next:hover { background: rgba(255,255,255,.18); }
.pg-lb-prev svg, .pg-lb-next svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 640px) {
  .pg-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 140px 140px; }
  .pg-large { grid-column: span 1; }
  .pg-lb-prev, .pg-lb-next { width: 36px; height: 36px; }
}
@media (max-width: 400px) {
  .pg-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px; }
}

/* ══════════════════════════════════════════════════════════════
   prog-turistico · Lugares Turísticos — paleta ámbar
   ══════════════════════════════════════════════════════════════ */
body.prog-turistico {
  --rose-50:  #fffbeb;
  --rose-100: #fef3c7;
  --rose-200: #fde68a;
  --rose-400: #fbbf24;
  --rose-500: #f59e0b;
  --rose-600: #d97706;
}
body.prog-turistico .nav-home-text span  { color: #f59e0b; }
body.prog-turistico .hero                { background: linear-gradient(135deg, #1c0a00 0%, #3d1f00 40%, #92400e 100%); }
body.prog-turistico .hero::before        { background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,.22) 0%, transparent 60%); }
body.prog-turistico .hero-card-icon      { background: rgba(245,158,11,.18); }
body.prog-turistico .sidebar-cta         { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); box-shadow: 0 4px 14px rgba(245,158,11,.35); }
body.prog-turistico .sidebar-wa          { background: linear-gradient(135deg, #d97706, #f59e0b); }
body.prog-turistico .mid-banner          { background: linear-gradient(135deg, var(--rose-50), #fef9ee); border: 1px solid var(--rose-200); }

/* ── Section header bands ── */
body.prog-turistico .shb-tur  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
body.prog-turistico .shb-rest { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; }
body.prog-turistico .shb-tur  .shb-dot { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px rgba(245,158,11,.5); }
body.prog-turistico .shb-rest .shb-dot { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 0 8px rgba(234,88,12,.5); }
body.prog-turistico .shb-tur  .shb-label { color: #d97706; }
body.prog-turistico .shb-rest .shb-label { color: #c2410c; }

/* ── Grid de lugares ── */
body.prog-turistico .lugares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

/* ── Cards de lugar ── */
body.prog-turistico .lugar-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 18px;
  padding: 1.3rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .25s ease, border-color .2s;
}
body.prog-turistico .lugar-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  border-color: var(--rose-200);
}

body.prog-turistico .lugar-cat {
  display: inline-flex;
  align-items: center;
  font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 50px;
  width: fit-content; margin-bottom: .1rem;
}
body.prog-turistico .lugar-cat-green  { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
body.prog-turistico .lugar-cat-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
body.prog-turistico .lugar-cat-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
body.prog-turistico .lugar-cat-purple { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
body.prog-turistico .lugar-cat-amber  { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

body.prog-turistico .lugar-nombre {
  font-size: .95rem; font-weight: 800;
  color: var(--slate-800); line-height: 1.3;
}
body.prog-turistico .lugar-desc {
  font-size: .75rem; color: var(--slate-500); line-height: 1.55;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--slate-100);
}

/* Tabla de detalles */
body.prog-turistico .lugar-info {
  display: flex; flex-direction: column; gap: .42rem;
  flex: 1;
}
body.prog-turistico .lugar-info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .5rem;
  font-size: .73rem;
  line-height: 1.45;
}
body.prog-turistico .lugar-info-label {
  font-weight: 800;
  color: var(--slate-400);
  text-transform: uppercase;
  font-size: .6rem;
  letter-spacing: .05em;
  padding-top: 1px;
}
body.prog-turistico .lugar-info-row span:last-child {
  color: var(--slate-700);
}

/* Botón Maps */
body.prog-turistico .lugar-maps-btn {
  display: inline-block;
  margin-top: .5rem;
  font-size: .72rem; font-weight: 800;
  color: var(--rose-500);
  text-decoration: none;
  transition: color .15s;
}
body.prog-turistico .lugar-maps-btn:hover { color: var(--rose-600); }

/* ── Responsive ── */
@media (max-width: 600px) {
  body.prog-turistico .lugares-grid { grid-template-columns: 1fr; gap: .8rem; }
  body.prog-turistico .lugar-card { padding: 1.1rem 1rem .9rem; }
}
@media (max-width: 400px) {
  body.prog-turistico .lugar-info-row { grid-template-columns: 60px 1fr; }
}

/* ── Sub-ubicaciones (CHN Hoteles, donde-hospedarme) ── */
body.prog-turistico .hosped-subs {
  display: flex; flex-direction: column; gap: .5rem;
  margin: .4rem 0 .2rem;
}
body.prog-turistico .hosped-sub {
  background: var(--slate-100);
  border-radius: 8px;
  padding: .45rem .65rem;
}
body.prog-turistico .hosped-sub-label {
  font-size: .7rem; font-weight: 800;
  color: var(--rose-600); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .1rem;
}
body.prog-turistico .hosped-sub-dir {
  font-size: .73rem; color: var(--slate-600); line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   prog-campus · Cómo Llegar — paleta verde
   ══════════════════════════════════════════════════════════════ */
body.prog-campus {
  --rose-50:  #f0fdf4;
  --rose-100: #dcfce7;
  --rose-200: #bbf7d0;
  --rose-500: #22c55e;
  --rose-600: #16a34a;
}
body.prog-campus .nav-home-text span  { color: #22c55e; }
body.prog-campus .hero                { background: linear-gradient(135deg, #052e16 0%, #14532d 40%, #166534 100%); }
body.prog-campus .hero::before        { background: radial-gradient(ellipse at 70% 50%, rgba(34,197,94,.18) 0%, transparent 60%); }
body.prog-campus .hero-card-icon      { background: rgba(34,197,94,.15); }
body.prog-campus .sidebar-cta         { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); box-shadow: 0 4px 14px rgba(34,197,94,.35); }
body.prog-campus .sidebar-wa          { background: linear-gradient(135deg, #16a34a, #22c55e); }
body.prog-campus .mid-banner          { background: linear-gradient(135deg, var(--rose-50), #f0fdf9); border: 1px solid var(--rose-200); }

/* ── Section header band ── */
body.prog-campus .shb-campus  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; }
body.prog-campus .shb-campus .shb-dot   { background: linear-gradient(135deg, #22c55e, #4ade80); box-shadow: 0 0 8px rgba(34,197,94,.5); }
body.prog-campus .shb-campus .shb-label { color: #16a34a; }

/* ── Mapa ── */
body.prog-campus .campus-map-wrap {
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.2rem;
}
body.prog-campus .campus-addr-row {
  display: flex; gap: 1.2rem; align-items: flex-start;
  flex-wrap: wrap;
  background: var(--rose-50); border: 1px solid var(--rose-200);
  border-radius: 12px; padding: 1.1rem 1.4rem;
}
body.prog-campus .campus-addr-item { flex: 1; min-width: 160px; }
body.prog-campus .campus-addr-label {
  font-size: .68rem; font-weight: 800; color: var(--rose-600);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem;
}
body.prog-campus .campus-addr-val {
  font-size: .8rem; color: var(--slate-700); line-height: 1.5;
}

/* ── Distancias ── */
body.prog-campus .dist-estado { margin-bottom: 1.6rem; }
body.prog-campus .dist-estado-label {
  font-size: .72rem; font-weight: 800; color: var(--rose-600);
  text-transform: uppercase; letter-spacing: .06em;
  border-left: 3px solid var(--rose-500); padding-left: .6rem;
  margin-bottom: .7rem;
}
body.prog-campus .dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .7rem;
}
body.prog-campus .dist-card {
  background: #fff; border: 1.5px solid var(--slate-200);
  border-radius: 10px; padding: .8rem 1rem;
  transition: box-shadow .2s, border-color .2s;
}
body.prog-campus .dist-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
  border-color: var(--rose-200);
}
body.prog-campus .dist-ciudad {
  font-size: .82rem; font-weight: 800; color: var(--slate-800);
  margin-bottom: .45rem;
}
body.prog-campus .dist-row {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; color: var(--slate-600); line-height: 1.4;
}
body.prog-campus .dist-icon { font-size: .8rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  body.prog-campus .dist-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  body.prog-campus .campus-addr-row { flex-direction: column; gap: .8rem; }
}


/* === PROGRAM COLOR THEMES === */
body.prog-param {
  --rose-50:  #fff4f4;
  --rose-100: #ffd6d6;
  --rose-200: #ffaaaa;
  --rose-400: #f06060;
  --rose-500: #d93636;
  --rose-600: #b52a2a;
}
body.prog-param .nav-home-text span { color: #d93636; }
body.prog-param .hero { background: linear-gradient(135deg, #1a0404 0%, #3d0a0a 40%, #6b1414 100%); }
body.prog-param .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(217,54,54,.28) 0%, transparent 60%); }
body.prog-param .hero-card-icon { background: rgba(217,54,54,.2); }
body.prog-param .mod-item:hover { border-color: #ffaaaa; box-shadow: 0 4px 18px rgba(217,54,54,.08); }
body.prog-param .mod-item.open { border-color: #d93636; box-shadow: 0 8px 32px rgba(217,54,54,.13); }
body.prog-param .sidebar-cta { background: linear-gradient(135deg, #d93636 0%, #f06060 100%); }
body.prog-param .faq-item.open { border-color: #d93636; }
body.prog-param .testi-avatar { background: linear-gradient(135deg, #d93636, #f06060); }
body.prog-param .testi-card:hover { border-color: #ffaaaa; }

body.prog-mspr {
  --rose-50:  #fff8ec;
  --rose-100: #fde9c2;
  --rose-200: #fbd08a;
  --rose-400: #f5a623;
  --rose-500: #e08a00;
  --rose-600: #b86e00;
}
body.prog-mspr .nav-home-text span { color: #e08a00; }
body.prog-mspr .hero { background: linear-gradient(135deg, #1a0e00 0%, #3d2800 40%, #6b4600 100%); }
body.prog-mspr .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(224,138,0,.28) 0%, transparent 60%); }
body.prog-mspr .hero-card-icon { background: rgba(224,138,0,.2); }
body.prog-mspr .mod-item:hover { border-color: #fbd08a; box-shadow: 0 4px 18px rgba(224,138,0,.08); }
body.prog-mspr .mod-item.open { border-color: #e08a00; box-shadow: 0 8px 32px rgba(224,138,0,.13); }
body.prog-mspr .sidebar-cta { background: linear-gradient(135deg, #e08a00 0%, #f5a623 100%); }
body.prog-mspr .faq-item.open { border-color: #e08a00; }
body.prog-mspr .testi-avatar { background: linear-gradient(135deg, #e08a00, #f5a623); }
body.prog-mspr .testi-card:hover { border-color: #fbd08a; }

body.prog-mind {
  --rose-50:  #fff3e8;
  --rose-100: #fddcbe;
  --rose-200: #fab882;
  --rose-400: #f07030;
  --rose-500: #d95500;
  --rose-600: #b04400;
}
body.prog-mind .nav-home-text span { color: #d95500; }
body.prog-mind .hero { background: linear-gradient(135deg, #1a0800 0%, #3d1800 40%, #6b2e00 100%); }
body.prog-mind .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(217,85,0,.28) 0%, transparent 60%); }
body.prog-mind .hero-card-icon { background: rgba(217,85,0,.2); }
body.prog-mind .mod-item:hover { border-color: #fab882; box-shadow: 0 4px 18px rgba(217,85,0,.08); }
body.prog-mind .mod-item.open { border-color: #d95500; box-shadow: 0 8px 32px rgba(217,85,0,.13); }
body.prog-mind .sidebar-cta { background: linear-gradient(135deg, #d95500 0%, #f07030 100%); }
body.prog-mind .faq-item.open { border-color: #d95500; }
body.prog-mind .testi-avatar { background: linear-gradient(135deg, #d95500, #f07030); }
body.prog-mind .testi-card:hover { border-color: #fab882; }

body.prog-rsan {
  --rose-50:  #e8faf8;
  --rose-100: #c0f0ea;
  --rose-200: #84ddd3;
  --rose-400: #2bbcad;
  --rose-500: #0d9e90;
  --rose-600: #087d72;
}
body.prog-rsan .nav-home-text span { color: #0d9e90; }
body.prog-rsan .hero { background: linear-gradient(135deg, #001714 0%, #023e38 40%, #045c54 100%); }
body.prog-rsan .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(13,158,144,.28) 0%, transparent 60%); }
body.prog-rsan .hero-card-icon { background: rgba(13,158,144,.2); }
body.prog-rsan .mod-item:hover { border-color: #84ddd3; box-shadow: 0 4px 18px rgba(13,158,144,.08); }
body.prog-rsan .mod-item.open { border-color: #0d9e90; box-shadow: 0 8px 32px rgba(13,158,144,.13); }
body.prog-rsan .sidebar-cta { background: linear-gradient(135deg, #0d9e90 0%, #2bbcad 100%); }
body.prog-rsan .faq-item.open { border-color: #0d9e90; }
body.prog-rsan .testi-avatar { background: linear-gradient(135deg, #0d9e90, #2bbcad); }
body.prog-rsan .testi-card:hover { border-color: #84ddd3; }

body.prog-nefr {
  --rose-50:  #eef3ff;
  --rose-100: #d5e0fd;
  --rose-200: #a8bcfa;
  --rose-400: #6288f0;
  --rose-500: #3d65e0;
  --rose-600: #2a4ec0;
}
body.prog-nefr .nav-home-text span { color: #3d65e0; }
body.prog-nefr .hero { background: linear-gradient(135deg, #020b24 0%, #0b2060 40%, #1a3a9a 100%); }
body.prog-nefr .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(61,101,224,.28) 0%, transparent 60%); }
body.prog-nefr .hero-card-icon { background: rgba(61,101,224,.2); }
body.prog-nefr .mod-item:hover { border-color: #a8bcfa; box-shadow: 0 4px 18px rgba(61,101,224,.08); }
body.prog-nefr .mod-item.open { border-color: #3d65e0; box-shadow: 0 8px 32px rgba(61,101,224,.13); }
body.prog-nefr .sidebar-cta { background: linear-gradient(135deg, #3d65e0 0%, #6288f0 100%); }
body.prog-nefr .faq-item.open { border-color: #3d65e0; }
body.prog-nefr .testi-avatar { background: linear-gradient(135deg, #3d65e0, #6288f0); }
body.prog-nefr .testi-card:hover { border-color: #a8bcfa; }

body.prog-minb {
  --rose-50:  #f5f0fe;
  --rose-100: #e6d8fc;
  --rose-200: #ccaff9;
  --rose-400: #a070ef;
  --rose-500: #7c3aed;
  --rose-600: #6027c8;
}
body.prog-minb .nav-home-text span { color: #7c3aed; }
body.prog-minb .hero { background: linear-gradient(135deg, #0d0620 0%, #250850 40%, #3d1280 100%); }
body.prog-minb .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.28) 0%, transparent 60%); }
body.prog-minb .hero-card-icon { background: rgba(124,58,237,.2); }
body.prog-minb .mod-item:hover { border-color: #ccaff9; box-shadow: 0 4px 18px rgba(124,58,237,.08); }
body.prog-minb .mod-item.open { border-color: #7c3aed; box-shadow: 0 8px 32px rgba(124,58,237,.13); }
body.prog-minb .sidebar-cta { background: linear-gradient(135deg, #7c3aed 0%, #a070ef 100%); }
body.prog-minb .faq-item.open { border-color: #7c3aed; }
body.prog-minb .testi-avatar { background: linear-gradient(135deg, #7c3aed, #a070ef); }
body.prog-minb .testi-card:hover { border-color: #ccaff9; }

body.prog-onco {
  --rose-50:  #fdf0f8;
  --rose-100: #f9d0ee;
  --rose-200: #f2a2da;
  --rose-400: #e05cb8;
  --rose-500: #c4309a;
  --rose-600: #a0267e;
}
body.prog-onco .nav-home-text span { color: #c4309a; }
body.prog-onco .hero { background: linear-gradient(135deg, #1a0016 0%, #46004a 40%, #78007a 100%); }
body.prog-onco .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(196,48,154,.28) 0%, transparent 60%); }
body.prog-onco .hero-card-icon { background: rgba(196,48,154,.2); }
body.prog-onco .mod-item:hover { border-color: #f2a2da; box-shadow: 0 4px 18px rgba(196,48,154,.08); }
body.prog-onco .mod-item.open { border-color: #c4309a; box-shadow: 0 8px 32px rgba(196,48,154,.13); }
body.prog-onco .sidebar-cta { background: linear-gradient(135deg, #c4309a 0%, #e05cb8 100%); }
body.prog-onco .faq-item.open { border-color: #c4309a; }
body.prog-onco .testi-avatar { background: linear-gradient(135deg, #c4309a, #e05cb8); }
body.prog-onco .testi-card:hover { border-color: #f2a2da; }

body.prog-denfeq {
  --rose-50:  #edf5fb;
  --rose-100: #cde4f5;
  --rose-200: #9ac8eb;
  --rose-400: #4a9fd4;
  --rose-500: #1e80bc;
  --rose-600: #14639a;
}
body.prog-denfeq .nav-home-text span { color: #1e80bc; }
body.prog-denfeq .hero { background: linear-gradient(135deg, #01111e 0%, #042d4a 40%, #0a5078 100%); }
body.prog-denfeq .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(30,128,188,.28) 0%, transparent 60%); }
body.prog-denfeq .hero-card-icon { background: rgba(30,128,188,.2); }
body.prog-denfeq .mod-item:hover { border-color: #9ac8eb; box-shadow: 0 4px 18px rgba(30,128,188,.08); }
body.prog-denfeq .mod-item.open { border-color: #1e80bc; box-shadow: 0 8px 32px rgba(30,128,188,.13); }
body.prog-denfeq .sidebar-cta { background: linear-gradient(135deg, #1e80bc 0%, #4a9fd4 100%); }
body.prog-denfeq .faq-item.open { border-color: #1e80bc; }
body.prog-denfeq .testi-avatar { background: linear-gradient(135deg, #1e80bc, #4a9fd4); }
body.prog-denfeq .testi-card:hover { border-color: #9ac8eb; }

body.prog-suero {
  --rose-50:  #edfaf3;
  --rose-100: #c8f0da;
  --rose-200: #90ddb4;
  --rose-400: #38c077;
  --rose-500: #18a058;
  --rose-600: #0f7e44;
}
body.prog-suero .nav-home-text span { color: #18a058; }
body.prog-suero .hero { background: linear-gradient(135deg, #011810 0%, #04402a 40%, #086040 100%); }
body.prog-suero .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(24,160,88,.28) 0%, transparent 60%); }
body.prog-suero .hero-card-icon { background: rgba(24,160,88,.2); }
body.prog-suero .mod-item:hover { border-color: #90ddb4; box-shadow: 0 4px 18px rgba(24,160,88,.08); }
body.prog-suero .mod-item.open { border-color: #18a058; box-shadow: 0 8px 32px rgba(24,160,88,.13); }
body.prog-suero .sidebar-cta { background: linear-gradient(135deg, #18a058 0%, #38c077 100%); }
body.prog-suero .faq-item.open { border-color: #18a058; }
body.prog-suero .testi-avatar { background: linear-gradient(135deg, #18a058, #38c077); }
body.prog-suero .testi-card:hover { border-color: #90ddb4; }

/* ── prog-ecpal · Violeta paliativo ── */
body.prog-ecpal {
  --rose-50:  #f5f3ff;
  --rose-100: #ede9fe;
  --rose-200: #c4b5fd;
  --rose-400: #8b5cf6;
  --rose-500: #7c3aed;
  --rose-600: #6d28d9;
}
body.prog-ecpal .nav-home-text span { color: #7c3aed; }
body.prog-ecpal .hero { background: linear-gradient(135deg, #0d0520 0%, #2e1065 40%, #4c1d95 100%); }
body.prog-ecpal .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.28) 0%, transparent 60%); }
body.prog-ecpal .hero-card-icon { background: rgba(124,58,237,.2); }
body.prog-ecpal .mod-item:hover { border-color: #c4b5fd; box-shadow: 0 4px 18px rgba(124,58,237,.08); }
body.prog-ecpal .mod-item.open { border-color: #7c3aed; box-shadow: 0 8px 32px rgba(124,58,237,.13); }
body.prog-ecpal .sidebar-cta { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
body.prog-ecpal .faq-item.open { border-color: #7c3aed; }
body.prog-ecpal .testi-avatar { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
body.prog-ecpal .testi-card:hover { border-color: #c4b5fd; }

/* ── prog-ecvc · Azul cardiovascular ── */
body.prog-ecvc {
  --rose-50:  #eff6ff;
  --rose-100: #dbeafe;
  --rose-200: #93c5fd;
  --rose-400: #3b82f6;
  --rose-500: #1d4ed8;
  --rose-600: #1e40af;
}
body.prog-ecvc .nav-home-text span { color: #1d4ed8; }
body.prog-ecvc .hero { background: linear-gradient(135deg, #020b2e 0%, #0c1a5e 40%, #1e3a8a 100%); }
body.prog-ecvc .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(29,78,216,.28) 0%, transparent 60%); }
body.prog-ecvc .hero-card-icon { background: rgba(29,78,216,.2); }
body.prog-ecvc .mod-item:hover { border-color: #93c5fd; box-shadow: 0 4px 18px rgba(29,78,216,.08); }
body.prog-ecvc .mod-item.open { border-color: #1d4ed8; box-shadow: 0 8px 32px rgba(29,78,216,.13); }
body.prog-ecvc .sidebar-cta { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
body.prog-ecvc .faq-item.open { border-color: #1d4ed8; }
body.prog-ecvc .testi-avatar { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
body.prog-ecvc .testi-card:hover { border-color: #93c5fd; }

/* ── prog-ciee · Esmeralda UCI ── */
body.prog-ciee {
  --rose-50:  #ecfdf5;
  --rose-100: #d1fae5;
  --rose-200: #6ee7b7;
  --rose-400: #10b981;
  --rose-500: #047857;
  --rose-600: #065f46;
}
body.prog-ciee .nav-home-text span { color: #047857; }
body.prog-ciee .hero { background: linear-gradient(135deg, #012118 0%, #053d2e 40%, #065f46 100%); }
body.prog-ciee .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(4,120,87,.28) 0%, transparent 60%); }
body.prog-ciee .hero-card-icon { background: rgba(4,120,87,.2); }
body.prog-ciee .mod-item:hover { border-color: #6ee7b7; box-shadow: 0 4px 18px rgba(4,120,87,.08); }
body.prog-ciee .mod-item.open { border-color: #047857; box-shadow: 0 8px 32px rgba(4,120,87,.13); }
body.prog-ciee .sidebar-cta { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
body.prog-ciee .faq-item.open { border-color: #047857; }
body.prog-ciee .testi-avatar { background: linear-gradient(135deg, #047857, #10b981); }
body.prog-ciee .testi-card:hover { border-color: #6ee7b7; }

/* ── prog-nrenal · Ámbar nutrición renal ── */
body.prog-nrenal {
  --rose-50:  #fffbeb;
  --rose-100: #fef3c7;
  --rose-200: #fcd34d;
  --rose-400: #f59e0b;
  --rose-500: #d97706;
  --rose-600: #b45309;
}
body.prog-nrenal .nav-home-text span { color: #d97706; }
body.prog-nrenal .hero { background: linear-gradient(135deg, #1c0f00 0%, #451a03 40%, #78350f 100%); }
body.prog-nrenal .hero::before { background: radial-gradient(ellipse at 70% 50%, rgba(217,119,6,.28) 0%, transparent 60%); }
body.prog-nrenal .hero-card-icon { background: rgba(217,119,6,.2); }
body.prog-nrenal .mod-item:hover { border-color: #fcd34d; box-shadow: 0 4px 18px rgba(217,119,6,.08); }
body.prog-nrenal .mod-item.open { border-color: #d97706; box-shadow: 0 8px 32px rgba(217,119,6,.13); }
body.prog-nrenal .sidebar-cta { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
body.prog-nrenal .faq-item.open { border-color: #d97706; }
body.prog-nrenal .testi-avatar { background: linear-gradient(135deg, #d97706, #f59e0b); }
body.prog-nrenal .testi-card:hover { border-color: #fcd34d; }

/* ── PÁGINAS CONÓCENOS ── */
.cn-hero { max-width: 680px; padding: 2.5rem 0 3rem; }
.cn-wrap { padding: 3rem 0 5rem; max-width: 860px; margin: 0 auto; }
.cn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.5rem 0; }
.cn-card { background: var(--slate-50); border-radius: 16px; padding: 1.8rem 2rem; border: 1px solid var(--slate-200); }
.cn-card.full { grid-column: 1 / -1; }
.cn-card-icon { font-size: 2rem; margin-bottom: .65rem; line-height: 1; }
.cn-card-title { font-size: 1.05rem; font-weight: 800; color: var(--slate-800); margin-bottom: .55rem; }
.cn-card-text { color: var(--slate-700); font-size: .92rem; line-height: 1.82; }
.cn-quote { background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(168,85,247,.04)); border: 1px solid rgba(59,130,246,.18); border-radius: 16px; padding: 1.8rem 2rem 1.8rem 2.5rem; position: relative; overflow: hidden; }
.cn-quote::before { content: '\201C'; font-size: 5rem; line-height: 1; color: rgba(59,130,246,.18); font-family: Georgia, serif; position: absolute; top: -.5rem; left: .5rem; pointer-events: none; }
.cn-quote p { color: var(--slate-700); font-size: 1rem; line-height: 1.85; font-style: italic; }
.cn-logo-colors { display: flex; gap: 1.2rem; margin-top: 1.2rem; flex-wrap: wrap; }
.cn-color-chip { display: flex; align-items: center; gap: .7rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px; padding: .7rem 1rem; flex: 1; min-width: 160px; }
.cn-color-dot { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.cn-color-label { font-size: .82rem; font-weight: 700; color: var(--slate-800); display: block; }
.cn-color-desc { font-size: .75rem; color: var(--slate-500); }
@media (max-width: 640px) {
  .cn-grid { grid-template-columns: 1fr; }
  .cn-card.full { grid-column: 1; }
  .cn-logo-colors { flex-direction: column; }
}

/* ════════════════════════════════════════
   BANDERA PRÓXIMOS EVENTOS (subpáginas)
════════════════════════════════════════ */
.events-flag {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #059669 0%, #10b981 100%);
  color: #fff;
  text-decoration: none;
  padding: .9rem .55rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 20px rgba(16,185,129,.35);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  animation: flag-peek 4s ease-in-out infinite;
}
@keyframes flag-peek {
  0%        { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(16,185,129,.35); }
  8%        { transform: translateY(-50%) translateX(-10px); box-shadow: -8px 0 32px rgba(16,185,129,.6); }
  18%       { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(16,185,129,.35); }
  100%      { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(16,185,129,.35); }
}
.events-flag:hover {
  animation: none;
  transform: translateY(-50%) translateX(-10px) !important;
  box-shadow: -8px 0 32px rgba(16,185,129,.6);
}
.events-flag::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: flag-sheen 4s ease-in-out infinite;
}
@keyframes flag-sheen {
  0%,15% { background-position: 200% 0; }
  30%    { background-position: -200% 0; }
  100%   { background-position: -200% 0; }
}
.events-flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: flag-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0; position: relative; z-index: 1;
}
@keyframes flag-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50%     { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.events-flag-text {
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  text-align: center; line-height: 1.35;
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  position: relative; z-index: 1;
}
.events-flag-arrow {
  width: 14px; height: 14px;
  transform: rotate(-90deg);
  flex-shrink: 0; position: relative; z-index: 1;
  animation: flag-bounce 4s ease-in-out infinite;
}
@keyframes flag-bounce {
  0%,12%,20%,100% { transform: rotate(-90deg) translateX(0); }
  16%             { transform: rotate(-90deg) translateX(3px); }
}
@media (max-width: 860px) {
  .events-flag {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    transform: none;
    animation: flag-peek-mob 4s ease-in-out infinite;
  }
  @keyframes flag-peek-mob {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-10px); }
    18%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  .events-flag:hover { animation: none; transform: translateX(-10px) !important; }
}

/* ════════════════════════════════════════
   BANDERA SOLICITA INFORMES (global)
════════════════════════════════════════ */
.info-flag {
  position: fixed;
  right: 0;
  top: calc(50% + 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: .9rem .55rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 20px rgba(37,99,235,.4);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
  animation: infoflag-peek 5s ease-in-out infinite;
}
@keyframes infoflag-peek {
  0%       { transform: translateX(0);     box-shadow: -3px 0 20px rgba(37,99,235,.4); }
  10%      { transform: translateX(-10px); box-shadow: -8px 0 32px rgba(37,99,235,.65); }
  22%      { transform: translateX(0);     box-shadow: -3px 0 20px rgba(37,99,235,.4); }
  100%     { transform: translateX(0);     box-shadow: -3px 0 20px rgba(37,99,235,.4); }
}
.info-flag:hover {
  animation: none;
  transform: translateX(-10px);
  box-shadow: -8px 0 32px rgba(37,99,235,.65);
}
.info-flag::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: infoflag-sheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes infoflag-sheen {
  0%,18% { background-position: 200% 0; }
  35%    { background-position: -200% 0; }
  100%   { background-position: -200% 0; }
}
.info-flag-icon { position: relative; z-index: 1; flex-shrink: 0; }
.info-flag-text {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
  line-height: 1.35;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  position: relative; z-index: 1;
}
.info-flag-arrow {
  width: 14px; height: 14px;
  transform: rotate(-90deg);
  flex-shrink: 0;
  position: relative; z-index: 1;
  animation: infoflag-bounce 5s ease-in-out infinite;
}
@keyframes infoflag-bounce {
  0%,14%,24%,100% { transform: rotate(-90deg) translateX(0); }
  19%             { transform: rotate(-90deg) translateX(3px); }
}
@media (max-width: 860px) {
  .info-flag { display: none; }
}

/* ════════════════════════════════════════
   MODAL SOLICITA INFORMES (global)
════════════════════════════════════════ */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.info-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.info-modal-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 48px rgba(0,0,0,.18);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.info-modal-overlay.open .info-modal-drawer {
  transform: translateX(0);
}
.info-modal-head {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.info-modal-head-text h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}
.info-modal-head-text p {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.info-modal-close {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background .15s;
}
.info-modal-close:hover { background: rgba(255,255,255,.28); }
.info-modal-body {
  padding: 1.6rem;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.info-form { display: flex; flex-direction: column; gap: .95rem; }
.info-form-sub {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: .2rem;
}
.info-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.info-fg { display: flex; flex-direction: column; gap: .3rem; }
.info-fg label {
  font-size: .75rem;
  font-weight: 600;
  color: #374151;
}
.info-fg input,
.info-fg textarea {
  font-family: inherit;
  font-size: .85rem;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: .65rem .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  width: 100%;
}
.info-fg input:focus,
.info-fg textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,.2);
}
.info-fg textarea { resize: vertical; min-height: 80px; }
.info-form-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .9rem 1rem;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  margin-top: .25rem;
}
.info-form-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,.38);
}
.info-form-note {
  font-size: .7rem;
  color: #94a3b8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin-top: -.2rem;
}
@media (max-width: 480px) {
  .info-form-row { grid-template-columns: 1fr; }
}




/* ════════════════════════════════════════
   INSTALACIONES
════════════════════════════════════════ */
.hero.hero-inst {
  background-image: linear-gradient(to bottom right, rgba(10,18,40,.82) 0%, rgba(10,18,40,.55) 60%, rgba(10,18,40,.72) 100%),
    url('../imagenes/instalaciones/instalaciones (12).JPG');
  background-size: cover;
  background-position: center 40%;
  min-height: 420px;
}
.inst-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
}
.inst-filter-btn {
  font-family: var(--font); font-size: .78rem; font-weight: 700;
  padding: .42rem 1.05rem; border-radius: 50px;
  border: 1.5px solid var(--slate-200); background: #fff;
  color: var(--slate-600); cursor: pointer; transition: all .16s;
}
.inst-filter-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.inst-filter-btn.active { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.inst-grid { column-count: 2; column-gap: .85rem; margin-bottom: 1rem; }
.inst-item {
  break-inside: avoid; margin-bottom: .85rem; border-radius: 14px;
  overflow: hidden; cursor: pointer; position: relative; display: block;
  border: 1.5px solid var(--slate-100); transition: transform .2s ease, box-shadow .2s ease;
}
.inst-item:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.inst-item img { width: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.inst-item:hover img { transform: scale(1.05); }
.inst-item-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem .75rem .55rem;
  background: linear-gradient(to top, rgba(10,18,35,.78) 0%, transparent 100%);
  color: #fff; font-size: .72rem; font-weight: 600; opacity: 0; transition: opacity .18s;
}
.inst-item:hover .inst-item-cap { opacity: 1; }
.inst-item.hidden { display: none; }
.inst-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .25rem; }
.inst-stat-card {
  background: var(--slate-50); border: 1.5px solid var(--slate-100);
  border-radius: 14px; padding: 1rem .85rem; text-align: center;
}
.inst-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--rose-500); letter-spacing: -.04em; line-height: 1; }
.inst-stat-lbl { font-size: .7rem; color: var(--slate-500); font-weight: 500; margin-top: 3px; line-height: 1.35; }
.inst-lb {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.93); z-index: 9999;
  align-items: center; justify-content: center;
}
.inst-lb.open { display: flex; }
.inst-lb-wrap { max-width: min(92vw, 1100px); max-height: 90vh; position: relative; }
.inst-lb-wrap img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 10px; display: block; }
.inst-lb-cap { color: rgba(255,255,255,.6); font-size: .78rem; text-align: center; margin-top: .5rem; }
.inst-lb-close {
  position: absolute; top: -42px; right: 0;
  background: none; border: none; color: #fff; cursor: pointer; padding: 8px;
  opacity: .7; transition: opacity .15s;
}
.inst-lb-close:hover { opacity: 1; }
.inst-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background .15s; backdrop-filter: blur(4px);
}
.inst-lb-btn:hover { background: rgba(255,255,255,.22); }
.inst-lb-prev { left: -54px; }
.inst-lb-next { right: -54px; }
@media (max-width: 720px) {
  .inst-grid { column-count: 1; }
  .inst-lb-prev { left: 4px; }
  .inst-lb-next { right: 4px; }
}
@media (max-width: 520px) {
  .inst-stats-row { grid-template-columns: repeat(2, 1fr); }
}