/* Perfil público del docente (usa los tokens del tema Sky Safety) */
.tpub-hero { position: relative; padding: 56px 0 40px; color: #fff; background: linear-gradient(120deg, rgba(11, 61, 110, .94), rgba(18, 94, 170, .86)), var(--tpub-cover, linear-gradient(120deg, #0b3d6e, #125eaa)); background-size: cover; background-position: center; }
.tpub-hero-inner { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.tpub-avatar { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 5px solid rgba(255, 255, 255, .9); background: #1b93e6; flex: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.tpub-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpub-avatar span { display: grid; place-items: center; height: 100%; font-size: 56px; font-weight: 700; }
.tpub-id { flex: 1; min-width: 260px; }
.tpub-id .eyebrow { color: #ffd166; }
.tpub-id h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.tpub-role { font-size: 18px; margin: 0; color: rgba(255, 255, 255, .9); }
.tpub-meta, .tpub-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tpub-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; text-decoration: none; font-weight: 600; }
.tpub-links a:hover { background: rgba(255, 255, 255, .14); }
.tpub-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: -24px 0 0; position: relative; }
.tpub-figures div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tpub-figures dt { font-size: 30px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.tpub-figures dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tpub-main { padding-top: 40px; }
.tpub-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.tpub-block + .tpub-block { margin-top: 40px; }
.tpub-block h2 { margin: 0 0 14px; }
.tpub-bio { line-height: 1.7; color: var(--text); }
.tpub-bio img { max-width: 100%; height: auto; border-radius: 10px; }
.tpub-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b1520; }
.tpub-video iframe, .tpub-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tpub-courses { display: grid; gap: 14px; }
.tpub-course { display: flex; gap: 16px; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tpub-course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tpub-course-img { width: 180px; flex: none; background-size: cover; background-position: center; min-height: 110px; }
.tpub-course-body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 4px; }
.tpub-course-body small { color: var(--sky-deep); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.tpub-course-body b { color: var(--ink); font-size: 17px; }
.tpub-course-body span { color: var(--muted); font-size: 13px; }
.tpub-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.tpub-timeline li { position: relative; padding: 0 0 22px 6px; }
.tpub-timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--sky); }
.tpub-timeline b { display: block; color: var(--ink); }
.tpub-timeline span { color: var(--muted); font-size: 14px; }
.tpub-timeline p { margin: 6px 0 0; }
.tpub-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header) + 16px); }
.tpub-card h3 { margin: 0 0 12px; font-size: 17px; }
.tpub-quote { margin: 0; padding: 18px 20px; border-left: 4px solid var(--sky); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; font-size: 17px; font-style: italic; color: var(--ink); }
.tpub-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tpub-tags li { padding: 4px 10px; border-radius: 999px; background: #e8f4fe; color: var(--blue); font-size: 13px; font-weight: 600; }
.tpub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tpub-list b { display: block; color: var(--ink); font-size: 15px; }
.tpub-list span { display: block; color: var(--muted); font-size: 13px; }
.tpub-list a { font-size: 13px; font-weight: 600; }
.tpub-cta { background: var(--paper); }
.tpub-cta p { color: var(--text); font-size: 14px; }
@media (max-width: 900px) { .tpub-grid { grid-template-columns: 1fr; } .tpub-side { position: static; } }
@media (max-width: 560px) { .tpub-hero-inner { flex-direction: column; text-align: center; } .tpub-meta, .tpub-links { justify-content: center; } .tpub-avatar { width: 128px; height: 128px; } .tpub-course { flex-direction: column; } .tpub-course-img { width: 100%; height: 140px; } .tpub-course-body { padding: 0 16px 16px; } }
.tpub-mini { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: inherit; text-decoration: none; transition: box-shadow .2s; }
.tpub-mini:hover { box-shadow: var(--shadow); }
.tpub-mini-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; background: #125eaa; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.tpub-mini-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpub-mini-body { display: flex; flex-direction: column; gap: 3px; }
.tpub-mini-body b { color: var(--ink); font-size: 17px; }
.tpub-mini-body small { color: var(--muted); }
.tpub-mini-body span { font-size: 14px; color: var(--text); }
.tpub-mini-body em { font-style: normal; color: var(--blue); font-weight: 700; font-size: 14px; }
