/* =========================================================================
 * Blog de Victory Creations
 *
 * Se carga solo en el blog (ver inc/blog.php). La tipografía del texto la pone
 * .vc-page-content, que ya existe en style.css y se usa también en las páginas
 * legales: aquí solo va lo que el blog añade.
 * ====================================================================== */

.vc-blog-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 90px;
}

/* ---------- Encabezado del artículo ---------- */
.vc-blog-cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	margin-bottom: 12px;
}
.vc-blog-cat:hover { text-decoration: underline; }

.vc-blog-title {
	font-family: var(--font-display);
	font-weight: var(--wd);
	font-size: clamp(30px, 4.6vw, 46px);
	line-height: 1.08;
	margin: 0 0 20px;
	text-wrap: balance;
}

.vc-blog-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 28px;
}
.vc-blog-meta-name { display: block; font-weight: 800; font-size: 15px; }
.vc-blog-meta-sub { display: block; color: var(--muted); font-size: 13.5px; }

/* ---------- Foto de portada ---------- */
.vc-blog-hero { margin: 0 0 30px; }
.vc-blog-hero img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	display: block;
}
.vc-blog-hero figcaption {
	font-size: 13.5px;
	color: var(--muted);
	margin-top: 9px;
	text-align: center;
}

/* ---------- Cuerpo del artículo ---------- */
.vc-blog-content { font-size: 17.5px; line-height: 1.75; }
.vc-blog-content > h2:first-child { margin-top: 0; }
.vc-blog-content img { max-width: 100%; height: auto; border-radius: 16px; }
.vc-blog-content figure { margin: 26px 0; }
.vc-blog-content figcaption {
	font-size: 13.5px;
	color: var(--muted);
	margin-top: 8px;
	text-align: center;
}
.vc-blog-content .alignleft { float: left; margin: 6px 22px 16px 0; max-width: 50%; }
.vc-blog-content .alignright { float: right; margin: 6px 0 16px 22px; max-width: 50%; }
.vc-blog-content .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.vc-blog-content .alignwide,
.vc-blog-content .alignfull { margin-left: 0; margin-right: 0; }

/* Citas y notas del taller (también los recordatorios de foto en borrador:
   destacan tanto que es imposible publicar sin verlos). */
.vc-blog-content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: var(--soft);
	border-left: 4px solid var(--accent);
	border-radius: 0 14px 14px 0;
}
.vc-blog-content blockquote p:last-child { margin-bottom: 0; }

/* Tablas: las de precios son el contenido que más cita la IA. */
.vc-blog-content table { font-size: 15.5px; }
.vc-blog-content th { background: var(--soft); }
@media (max-width: 640px) {
	.vc-blog-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Tarjeta de producto dentro del artículo ---------- */
.vc-cta-prod {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 18px;
	margin: 30px 0;
	box-shadow: 0 20px 40px -34px rgba(60, 40, 20, .5);
}
.vc-cta-prod-img {
	flex: 0 0 118px;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
}
.vc-cta-prod-img img {
	width: 118px;
	height: 118px;
	object-fit: cover;
	display: block;
	border-radius: 14px;
}
.vc-cta-prod-body { flex: 1 1 auto; min-width: 0; }
.vc-cta-prod-name {
	font-family: var(--font-display);
	font-weight: var(--wd);
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 5px;
}
.vc-cta-prod-text { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.vc-cta-prod-price { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.vc-cta-prod-price .woocommerce-Price-amount { color: var(--accent); }
.vc-cta-prod-btns { display: flex; flex-wrap: wrap; gap: 9px; }

.vc-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border-radius: 999px;
	padding: 11px 20px;
	font-weight: 800;
	font-size: 14.5px;
	text-decoration: none !important;
	line-height: 1;
	transition: transform .15s, filter .15s;
}
.vc-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.vc-cta-btn-main { background: var(--accent); color: var(--accent-ink) !important; }
.vc-cta-btn-wa { background: #25D366; color: #fff !important; }
.vc-cta-btn-wa svg { flex: 0 0 auto; }

@media (max-width: 560px) {
	.vc-cta-prod { flex-direction: column; align-items: stretch; text-align: left; }
	.vc-cta-prod-img, .vc-cta-prod-img img { width: 100%; height: 170px; flex: none; }
	.vc-cta-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Quién firma ---------- */
.vc-blog-author {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--soft2);
	border-radius: 20px;
	padding: 22px;
	margin: 40px 0 0;
}
.vc-blog-author-name { font-weight: 800; font-size: 16.5px; margin: 0; }
.vc-blog-author-role { font-size: 13.5px; color: var(--muted); margin: 2px 0 8px; }
.vc-blog-author-bio { font-size: 15px; line-height: 1.6; margin: 0; }
.vc-blog-author-wa {
	display: inline-block;
	margin-top: 10px;
	font-weight: 800;
	font-size: 14.5px;
	color: var(--accent);
	text-decoration: none;
}
.vc-blog-author-wa:hover { text-decoration: underline; }

/* ---------- Listados ---------- */
.vc-blog-index-head { margin-bottom: 38px; }
.vc-blog-index-title {
	font-family: var(--font-display);
	font-weight: var(--wd);
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.06;
	margin: 0 0 8px;
	text-wrap: balance;
}
.vc-blog-index-rule { width: 56px; height: 4px; border-radius: 999px; background: var(--accent); margin: 0 0 20px; }
.vc-blog-index-intro { font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 62ch; }
.vc-blog-index-intro p { margin: 0 0 14px; }

.vc-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}
.vc-blog-index .vc-blog-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.vc-blog-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .15s, box-shadow .15s;
}
.vc-blog-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -32px rgba(60, 40, 20, .55); }
.vc-blog-card-img {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--soft);
	line-height: 0;
	overflow: hidden;
}
.vc-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-blog-card-ph {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	opacity: .5;
}
.vc-blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.vc-blog-card-title {
	font-family: var(--font-display);
	font-weight: var(--wd);
	font-size: 21px;
	line-height: 1.22;
	margin: 0 0 9px;
	text-wrap: balance;
}
.vc-blog-card-title a { color: var(--ink); text-decoration: none; }
.vc-blog-card-title a:hover { color: var(--accent); }
.vc-blog-card-ex { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; flex: 1 1 auto; }
.vc-blog-card-meta { font-size: 13px; color: var(--muted); }

/* ---------- Navegación entre artículos ---------- */
.vc-blog-related { margin-top: 52px; }
.vc-blog-related-title {
	font-family: var(--font-display);
	font-weight: var(--wd);
	font-size: 26px;
	margin: 0 0 20px;
}
.vc-blog-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 44px;
}
.vc-blog-nav-a {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px 18px;
	text-decoration: none;
	color: var(--ink);
	transition: border-color .15s;
}
.vc-blog-nav-a:hover { border-color: var(--accent); }
.vc-blog-nav-a span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.vc-blog-nav-a strong { font-size: 15px; line-height: 1.35; font-weight: 700; }
.vc-blog-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) {
	.vc-blog-nav { grid-template-columns: 1fr; }
	.vc-blog-nav-next { text-align: left; grid-column: 1; }
}

.vc-blog-back { margin-top: 34px; text-align: center; }
.vc-blog-back a { color: var(--accent); font-weight: 800; text-decoration: none; }
.vc-blog-back a:hover { text-decoration: underline; }

/* ---------- Paginación y vacío ---------- */
.vc-blog-index .navigation.pagination { margin-top: 44px; }
.vc-blog-index .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.vc-blog-index .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
}
.vc-blog-index .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vc-blog-index .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.vc-blog-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.vc-blog-empty-btn {
	display: inline-block;
	margin-top: 16px;
	background: var(--accent);
	color: var(--accent-ink);
	text-decoration: none;
	border-radius: 999px;
	padding: 13px 26px;
	font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
	.vc-blog-card, .vc-cta-btn, .vc-blog-nav-a { transition: none; }
	.vc-blog-card:hover, .vc-cta-btn:hover { transform: none; }
}
