/* Blog: listado, archivos y entrada (inc/blog.php, home.php, archive.php, single.php). */

/* ---------- Listado ---------- */
.gwf-blog-hero .gwf-hero__grid { display: flex; flex-direction: column; gap: 28px; }
.gwf-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.gwf-blog-cats a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gwf-line-3); background: var(--gwf-card-2); color: var(--gwf-text-2); font-size: 14px; text-decoration: none; }
.gwf-blog-cats a:hover { border-color: var(--gwf-pink); }
.gwf-blog-cats a[aria-current="page"] { background: rgba(255, 61, 139, .16); border-color: var(--gwf-pink); color: var(--gwf-text); }
.gwf-blog-list { padding-top: 32px; }
.gwf-blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .gwf-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gwf-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gwf-post-card { display: flex; flex-direction: column; background: var(--gwf-card); border: 1px solid var(--gwf-line); border-radius: var(--gwf-radius-lg); overflow: hidden; transition: border-color .15s; }
.gwf-post-card:hover { border-color: var(--gwf-line-3); }
.gwf-post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--gwf-card-2); overflow: hidden; }
.gwf-post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gwf-post-card:hover .gwf-post-card__img img { transform: scale(1.03); }
.gwf-post-card__ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, rgba(255, 61, 139, .25), transparent 60%), radial-gradient(circle at 80% 70%, rgba(172, 134, 246, .25), transparent 55%), var(--gwf-card-2); }
.gwf-post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.gwf-post-card__cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gwf-pink-text); text-decoration: none; }
.gwf-post-card__title { margin: 0; font-family: var(--gwf-font-display); font-size: 20px; line-height: 1.3; }
.gwf-post-card__title a { color: var(--gwf-text); text-decoration: none; }
.gwf-post-card__title a:hover { color: var(--gwf-pink-text); }
.gwf-post-card__excerpt { margin: 0; color: var(--gwf-muted); font-size: 15px; line-height: 1.6; }
.gwf-post-card__meta { margin-top: auto; font-size: 13px; color: var(--gwf-faint); }

.gwf-post-card--big { margin-bottom: 32px; }
@media (min-width: 900px) {
	.gwf-post-card--big { flex-direction: row; }
	.gwf-post-card--big .gwf-post-card__img { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
	.gwf-post-card--big .gwf-post-card__body { padding: 40px; justify-content: center; }
	.gwf-post-card--big .gwf-post-card__title { font-size: 32px; }
	.gwf-post-card--big .gwf-post-card__excerpt { font-size: 17px; }
	.gwf-post-card--big .gwf-post-card__meta { margin-top: 8px; }
}

.gwf-blog-empty { align-items: flex-start; gap: 10px; padding: 40px; }
.gwf-blog-empty strong { font-family: var(--gwf-font-display); font-size: 22px; }
.gwf-blog-tools { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .gwf-blog-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gwf-pagination { margin-top: 40px; }
.gwf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gwf-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--gwf-line-3); color: var(--gwf-text-2); text-decoration: none; }
.gwf-pagination .page-numbers.current { background: var(--gwf-pink); border-color: var(--gwf-pink); color: #fff; }
.gwf-pagination .screen-reader-text { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Entrada ---------- */
.gwf-post__hero { padding-bottom: 8px; }
.gwf-post__head { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.gwf-post__title { margin: 0; font-family: var(--gwf-font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; color: var(--gwf-text); }
.gwf-post__lead { margin: 0; }
.gwf-post__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--gwf-faint); }
.gwf-post__meta span + span::before { content: "·"; margin-right: 18px; color: var(--gwf-line-3); }

.gwf-post__layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 96px; }
@media (min-width: 1100px) { .gwf-post__layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; } }
.gwf-post__main { min-width: 0; }
.gwf-post__img { margin: 0 0 32px; border-radius: var(--gwf-radius-lg); overflow: hidden; border: 1px solid var(--gwf-line); }
.gwf-post__img img { width: 100%; height: auto; display: block; }

.gwf-post__side { display: none; }
@media (min-width: 1100px) {
	.gwf-post__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; align-self: start; }
	.gwf-post__toc--inline { display: none; }
}
.gwf-post__toc { background: var(--gwf-card); border: 1px solid var(--gwf-line); border-radius: var(--gwf-radius-lg); padding: 20px 22px; }
.gwf-post__toc strong, .gwf-post__toc summary { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gwf-muted); }
.gwf-post__toc summary { cursor: pointer; }
.gwf-post__toc ol { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.gwf-post__toc a { color: var(--gwf-text-2); text-decoration: none; }
.gwf-post__toc a:hover { color: var(--gwf-pink-text); }
.gwf-post__toc--inline { margin-bottom: 28px; }
.gwf-post__side-cta { display: flex; flex-direction: column; gap: 10px; background: var(--gwf-card-2); border: 1px solid var(--gwf-pink); border-radius: var(--gwf-radius-lg); padding: 22px; }
.gwf-post__side-cta strong { font-family: var(--gwf-font-display); font-size: 18px; line-height: 1.3; }

/* Texto del editor */
.gwf-post__content { font-size: 18px; line-height: 1.75; color: var(--gwf-text-2); }
.gwf-post__content > * + * { margin-top: 1.1em; }
.gwf-post__content h2 { margin-top: 2em; font-family: var(--gwf-font-display); font-size: 30px; line-height: 1.2; color: var(--gwf-text); scroll-margin-top: 96px; }
.gwf-post__content h3 { margin-top: 1.6em; font-family: var(--gwf-font-display); font-size: 22px; line-height: 1.3; color: var(--gwf-text); }
.gwf-post__content h4 { margin-top: 1.4em; font-size: 18px; color: var(--gwf-text); }
.gwf-post__content p { margin-bottom: 0; }
.gwf-post__content a { color: var(--gwf-pink-text); text-decoration: underline; text-underline-offset: 3px; }
.gwf-post__content strong, .gwf-post__content b { color: var(--gwf-text); }
.gwf-post__content ul, .gwf-post__content ol { padding-left: 1.3em; }
.gwf-post__content li + li { margin-top: .45em; }
.gwf-post__content li::marker { color: var(--gwf-pink); }
.gwf-post__content blockquote { margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 3px solid var(--gwf-pink); background: var(--gwf-card); border-radius: 0 14px 14px 0; color: var(--gwf-text); font-size: 19px; }
.gwf-post__content blockquote p { margin: 0; }
.gwf-post__content img { max-width: 100%; height: auto; border-radius: 14px; }
.gwf-post__content figure { margin-left: 0; margin-right: 0; }
.gwf-post__content figcaption { margin-top: 8px; font-size: 14px; color: var(--gwf-faint); text-align: center; }
.gwf-post__content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.gwf-post__content th, .gwf-post__content td { padding: 12px 16px; border: 1px solid var(--gwf-line-2); text-align: left; }
.gwf-post__content th { background: var(--gwf-card); color: var(--gwf-text); }
.gwf-post__content hr { border: 0; border-top: 1px solid var(--gwf-line); margin: 2.4em 0; }
.gwf-post__content code { background: var(--gwf-card-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.gwf-post__content .wp-block-image, .gwf-post__content .wp-block-table { margin-left: 0; margin-right: 0; }
.gwf-post__content details { border: 1px solid var(--gwf-line); border-radius: 14px; padding: 14px 18px; background: var(--gwf-card); }
.gwf-post__content summary { cursor: pointer; color: var(--gwf-text); font-weight: 600; }

/* CTA al final del artículo, según la categoría */
.gwf-post__cta { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--gwf-radius-lg); background: radial-gradient(circle at 90% 0%, rgba(255, 61, 139, .22), transparent 55%), var(--gwf-card); border: 1px solid var(--gwf-line-3); }
.gwf-post__cta-title { font-family: var(--gwf-font-display); font-size: 26px; line-height: 1.25; color: var(--gwf-text); }
.gwf-post__cta p { margin: 0; color: var(--gwf-text-2); }
.gwf-post__cta .gwf-btn { align-self: flex-start; }

/* Peso de títulos (Sora se carga en 600/700/800) y aire alrededor de listas */
.gwf-post__content h2, .gwf-post__content h3, .gwf-post-card__title { font-weight: 700; letter-spacing: -.01em; }
.gwf-post__content h4 { font-weight: 700; }
.gwf-post__content ul, .gwf-post__content ol { margin-top: .9em; margin-bottom: 0; }
.gwf-post__content ul + p, .gwf-post__content ol + p { margin-top: 1.1em; }
.gwf-post-card--big .gwf-post-card__title { font-weight: 800; }
