/* Blog de Campus Virtual. La base (colores, tipografías, menú, botones, buscador, pie) viene de
   campusvirtual.edu.pe/style.css; aquí solo va lo propio del blog. */

.nav-links a.is-on { color: var(--ink); }

/* ── Portada del blog ─────────────────────────────────── */
.blog-hero { padding: 88px 0 24px; text-align: center; }
.blog-hero h1 { max-width: 920px; margin: 20px auto 0; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.blog-hero h1 span { color: var(--muted); }
.blog-hero .lead { max-width: 580px; margin: 20px auto 0; font-size: 18px; color: var(--muted); }
.blog-hero.is-tag { padding-bottom: 8px; }
.blog-hero a.eyebrow { text-decoration: none; }
.search-fake { width: 100%; gap: 12px; cursor: text; text-align: left; font: inherit; color: var(--faint); }
.search-fake .i { color: var(--muted); }
.search-fake .ph { flex: 1; min-width: 0; font: 500 16px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-fake .btn { height: 44px; }
@media (max-width: 640px) { .search-fake { flex-wrap: nowrap; padding: 6px 6px 6px 16px; border-radius: 999px; } .search-fake .btn { width: auto; margin-top: 0; border-radius: 999px; } }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: border-color .15s; }
.chips a:hover { border-color: var(--ink); }

/* ── Tarjetas de artículos ────────────────────────────── */
.posts { padding: 48px 20px 112px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; gap: 36px; } }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.pc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .pc-img img { transform: scale(1.025); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.pc-tag { align-self: flex-start; font: 500 12.5px/1 var(--mono); color: var(--orange-ink); text-decoration: none; }
.pc-title { font-size: 21px; line-height: 1.22; letter-spacing: -0.02em; }
.pc-title a { text-decoration: none; }
.pc-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.pc-excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { font: 500 12.5px/1.4 var(--mono); color: var(--faint); }
/* El más reciente, destacado a todo el ancho */
.post-card.is-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.post-card.is-big .pc-img { border-radius: 20px; }
.post-card.is-big .pc-body { padding-top: 0; gap: 12px; }
.post-card.is-big .pc-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.post-card.is-big .pc-excerpt { font-size: 17px; -webkit-line-clamp: 4; }
@media (max-width: 860px) { .post-card.is-big { grid-template-columns: 1fr; gap: 0; } .post-card.is-big .pc-body { padding-top: 20px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 56px; font: 500 13px/1 var(--mono); color: var(--muted); }

/* ── Artículo ─────────────────────────────────────────── */
.article { padding: 72px 20px 24px; }
.article-head { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; font: 500 13px/1 var(--mono); color: var(--faint); }
.crumbs a { color: var(--orange-ink); text-decoration: none; }
.article-head h1 { margin-top: 18px; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.article-head .lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article-meta .by { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.article-meta .brand-mark { width: 22px; height: 22px; }
.article-cover { max-width: 1080px; margin: 44px auto 0; }
.article-cover img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.article-cover figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }

/* Contenido escrito en Ghost */
.gh-content { max-width: 720px; margin: 48px auto 0; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.gh-content > * + * { margin-top: 1.25em; }
.gh-content h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.18; letter-spacing: -0.03em; color: var(--ink); }
.gh-content h3 { margin-top: 1.8em; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.gh-content h2 + *, .gh-content h3 + * { margin-top: 0.7em; }
.gh-content strong { color: var(--ink); font-weight: 600; }
.gh-content a { color: var(--orange-ink); text-underline-offset: 3px; }
.gh-content a:hover { color: var(--ink); }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.5em; }
.gh-content li::marker { color: var(--orange); }
.gh-content ol li::marker { font-weight: 600; }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); font-size: 1.1em; color: var(--ink); }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.gh-content code { padding: 2px 6px; border-radius: 6px; background: var(--soft); font: 500 0.85em var(--mono); }
.gh-content pre { padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #fafafa; overflow-x: auto; font-size: 0.85em; }
.gh-content pre code { padding: 0; background: none; color: inherit; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content .kg-image-card img { margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); }
.gh-content figcaption { margin-top: 10px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.gh-content .kg-width-wide { position: relative; width: min(1040px, calc(100vw - 40px)); left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; border: 0; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.gh-content th { padding: 12px; text-align: left; font: 600 13px/1.3 var(--sans); color: var(--ink); background: var(--soft); border-bottom: 1px solid var(--line); }
.gh-content td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.gh-content td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .gh-content table { display: block; overflow-x: auto; } .gh-content td { min-width: 150px; } .gh-content td:first-child { min-width: 0; } }
/* Bloques propios de los artículos */
.cv-note { padding: 16px 20px; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--soft); font-size: 16px; line-height: 1.6; }
.cv-cta { margin-top: 2.4em; padding: 30px 32px; border-radius: 20px; background: var(--ink); color: #fff; }
.cv-cta strong { display: block; color: #fff; font: 700 1.4rem/1.2 var(--display); letter-spacing: -0.02em; }
.cv-cta p { margin-top: 8px; color: var(--night-muted); font-size: 16px; line-height: 1.6; }
.gh-content .cv-cta a.cv-btn { display: inline-flex; align-items: center; height: 44px; margin-top: 18px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; }
.gh-content .cv-cta a.cv-btn:hover { background: var(--orange-2); color: #fff; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 720px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { margin-right: 8px; font-weight: 600; }
.related { padding: 72px 20px 112px; }
.related h2 { margin-bottom: 28px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.post-template .final, .page-template .final { margin-top: 0; }
.home-template .final, .tag-template .final, .author-template .final, .paged .final { margin-top: 0; }

/* Celular: la marca no se parte en dos líneas; en pantallas muy angostas queda solo el botón de búsqueda */
.nav .brand { flex-shrink: 0; }
.nav .brand-name { white-space: nowrap; }
@media (max-width: 380px) { .nav .nav-cta .btn-dark { display: none; } }
.article-meta .by .brand-mark { display: inline-flex; flex: none; }
