/*
Theme Name: wapz
Theme URI: https://wapz.app/
Author: Vendema
Description: Tema de wapz.app: landing de WhatsApp para agencias de GoHighLevel y blog.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wapz
*/

/* Blog, entradas y páginas. Los estilos de la landing están en assets/landing.css. */
.blog-head { padding: 80px 0 40px; text-align: center; }
.blog-head .sec-head { margin-bottom: 0; }
.blog-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 110px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--lime-tint); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb.empty { display: grid; place-items: center; font: 800 44px/1 Poppins, sans-serif; letter-spacing: -0.05em; color: var(--ink); background: var(--lime); }
.post-card .in { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .date { font: 800 12px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7CB518; }
.post-card h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .more { margin-top: auto; padding-top: 8px; font: 700 15px/1 Poppins, sans-serif; }
.pager { display: flex; justify-content: center; gap: 10px; padding-bottom: 110px; margin-top: -60px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 15px/1 Poppins, sans-serif; }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-note { text-align: center; color: var(--muted); padding: 0 0 110px; }

.article { max-width: 760px; margin: 0 auto; padding: 72px 0 100px; }
.article .back { display: inline-flex; gap: 8px; font: 600 14.5px/1 Poppins, sans-serif; color: var(--muted); margin-bottom: 28px; }
.article .back:hover { color: var(--ink); }
.article h1 { font-size: clamp(36px, 5vw, 56px); margin: 18px 0 20px; }
.article .meta { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.article .cover { margin: 36px 0 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.article .cover img { width: 100%; height: auto; }
.entry { margin-top: 40px; font-size: 18px; line-height: 1.75; color: #1F2226; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 1.8em; }
.entry h3 { margin-top: 1.6em; }
.entry h2, .entry h3 { line-height: 1.15; }
.entry a { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry img { max-width: 100%; height: auto; border-radius: 14px; }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 4px solid var(--lime); background: var(--soft); border-radius: 0 14px 14px 0; }
.entry code { background: var(--soft); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.entry pre { background: #101113; color: #E6E8EA; padding: 16px 18px; border-radius: 14px; overflow-x: auto; }
.entry pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-cta { margin-top: 56px; border-radius: 26px; background: var(--lime); padding: 40px 32px; text-align: center; }
.post-cta h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.post-cta p { color: #2F3A0C; margin-bottom: 24px; }

.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0; }
.notfound .lead { margin: 0 auto 30px; max-width: 520px; }

@media (max-width: 860px) {
	.posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.posts { grid-template-columns: 1fr; padding-bottom: 80px; }
	.article { padding: 44px 0 80px; }
	.entry { font-size: 17px; }
}

/* Language switcher and first-visit language hint */
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font: 700 12.5px/1 Poppins, sans-serif; }
.lang-sw a { padding: 7px 9px; border-radius: 999px; color: var(--muted); }
.lang-sw a:hover { color: var(--ink); }
.lang-sw a[aria-current] { background: var(--ink); color: #fff; }
.foot-sw { align-self: center; }
.lang-bar { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); transition: transform .35s ease; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px -14px rgba(11,11,12,.6); font: 600 14.5px/1.3 Manrope, sans-serif; max-width: calc(100vw - 24px); }
.lang-bar.show { transform: translate(-50%, 0); }
.lang-bar button { border: 0; background: transparent; color: #A9AEB4; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.lang-bar button:hover { color: #fff; }
@media (max-width: 640px) {
	.nav-cta .lang-sw { padding: 2px; }
	.nav-cta .lang-sw a { padding: 6px 7px; font-size: 11.5px; }
	.lang-bar { left: 12px; right: 12px; transform: translateY(160%); border-radius: 20px; flex-wrap: wrap; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.lang-bar.show { transform: none; }
	.lang-bar span { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .lang-bar { transition: none; } }
.nav-links a { white-space: nowrap; }
@media (max-width: 1080px) { .nav-links { gap: 18px; font-size: 14px; } }
