/* ==========================================================================
   Piztu — sistema de deseño
   Identidade: a lousa (tinta), o papel, o azul do ollo do lince e a faísca
   (un marcador amarelo que subliña o importante). Cada módulo ten a súa cor.
   ========================================================================== */

:root {
	--pz-ink: #0e1a2b;
	--pz-ink-2: #22314a;
	--pz-text: #1c2738;
	--pz-muted: #556072;
	--pz-faint: #8a93a3;
	--pz-paper: #faf8f3;
	--pz-paper-2: #f2efe6;
	--pz-card: #ffffff;
	--pz-line: #e6e1d5;
	--pz-line-2: #d6d0c1;

	--pz-brand: #1f5fd6;
	--pz-brand-ink: #123f99;
	--pz-brand-soft: #e6eefc;
	--pz-spark: #ffb020;
	--pz-spark-mark: #ffd873;
	--pz-spark-soft: #fff3d6;

	--pz-xesta: #6f52e6;
	--pz-pancho: #0a917f;
	--pz-tao: #e2542d;
	--pz-lua: #3c48b4;

	--pz-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--pz-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--pz-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--pz-r-sm: 10px;
	--pz-r: 16px;
	--pz-r-lg: 24px;
	--pz-sh-1: 0 1px 2px rgb(14 26 43 / .06), 0 2px 8px rgb(14 26 43 / .04);
	--pz-sh-2: 0 2px 6px rgb(14 26 43 / .05), 0 18px 40px -14px rgb(14 26 43 / .2);
	--pz-sh-3: 0 4px 12px rgb(14 26 43 / .06), 0 40px 90px -24px rgb(14 26 43 / .38);

	--pz-wrap: 1200px;
	--pz-gutter: clamp(16px, 4vw, 32px);
	--pz-header-h: 68px;
	--pz-section: clamp(64px, 9vw, 120px);
	--pz-ease: cubic-bezier(.22, .8, .24, 1);

	/* Os restos de estilos en liña que usan as cores de Astra herdan a marca. */
	--ast-global-color-0: var(--pz-brand);
	--ast-global-color-1: var(--pz-brand-ink);
	--ast-global-color-2: var(--pz-ink);
	--ast-global-color-3: var(--pz-text);
	--ast-global-color-4: var(--pz-paper);
	--ast-global-color-5: var(--pz-paper-2);
	--ast-global-color-6: var(--pz-ink);
	--ast-global-color-7: var(--pz-line);
	--ast-global-color-8: var(--pz-ink);
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */

html { overflow-x: clip; scroll-padding-top: calc(var(--pz-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body.pz {
	background: var(--pz-paper);
	color: var(--pz-text);
	font-family: var(--pz-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

.pz h1, .pz h2, .pz h3, .pz h4, .pz h5, .pz h6,
.pz .entry-title {
	font-family: var(--pz-display);
	font-optical-sizing: auto;
	color: var(--pz-ink);
	font-weight: 700;
	text-wrap: balance;
}
.pz h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -.032em; }
.pz h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.024em; }
.pz h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.012em; }
.pz p { text-wrap: pretty; }

.pz a { color: var(--pz-brand); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
.pz a:hover { color: var(--pz-brand-ink); }

.pz :focus-visible {
	outline: 3px solid var(--pz-spark);
	outline-offset: 3px;
	border-radius: 6px;
}

.pz :focus:not(:focus-visible) { outline: none; }

.pz ::selection { background: var(--pz-spark-mark); color: var(--pz-ink); }

.pz-i { flex: none; display: inline-block; vertical-align: middle; }

.pz-wrap {
	width: 100%;
	max-width: calc(var(--pz-wrap) + 2 * var(--pz-gutter));
	margin-inline: auto;
	padding-inline: var(--pz-gutter);
}

.pz-skip {
	position: fixed; left: 16px; top: -100px; z-index: 1000;
	background: var(--pz-ink); color: #fff !important; padding: 10px 16px; border-radius: 999px;
	font-weight: 700; text-decoration: none;
}
.pz-skip:focus { top: 12px; }

#page { overflow-x: clip; }

/* Astra: os contedores pasan a ser neutros, cada sección pon a súa largura. */
.pz #content.site-content { background: transparent; }
.pz .site-content > .ast-container { display: block; max-width: none; padding: 0; }
.pz #primary, .pz .content-area { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.pz .ast-separate-container #primary,
.pz.ast-separate-container .ast-article-single,
.pz.ast-separate-container .ast-article-post { background: transparent; padding: 0; margin: 0; }
.pz .site-main > article { margin: 0; }
.pz.pz-designed .entry-header,
.pz.pz-designed .ast-single-post-order .entry-title { display: none; }
.pz.pz-designed .entry-content > p:empty,
.pz.pz-designed .entry-content > p:has(> br:only-child) { display: none; }
.pz .entry-content > p:last-child:has(+ :not(*)) { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Compoñentes
   ----------------------------------------------------------------------- */

/* Etiqueta superior con faísca */
.pz-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 16px;
	font-family: var(--pz-body);
	font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
	color: var(--pz-brand-ink);
}
.pz-eyebrow .pz-i { color: var(--pz-spark); }

.pz-lead {
	font-size: clamp(1.08rem, 1.5vw, 1.22rem);
	line-height: 1.55;
	color: var(--pz-muted);
	max-width: 38em;
}

/* Botóns: pílulas. A resposta está no premer, non no soltar. */
.pz-btn,
.pz .piztu-man-btn,
.pz .piztu-mod-cta a,
.pz .piztu-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px;
	border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--pz-body); font-size: 1rem; font-weight: 700; line-height: 1.1;
	letter-spacing: .005em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s var(--pz-ease), border-color .2s var(--pz-ease), color .2s var(--pz-ease), box-shadow .2s var(--pz-ease), transform .25s var(--pz-ease);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.pz-btn:active,
.pz .piztu-man-btn:active,
.pz .piztu-mod-cta a:active { transform: scale(.97); transition-duration: .08s; }
.pz-btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.pz-btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

.pz-btn-primary,
.pz .piztu-man-btn,
.pz .piztu-mod-cta a {
	background: var(--pz-brand); color: #fff !important;
	box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 6px 18px -8px rgb(31 95 214 / .7);
}
.pz-btn-primary:hover,
.pz .piztu-man-btn:hover,
.pz .piztu-mod-cta a:hover { background: var(--pz-brand-ink); color: #fff !important; }
.pz-btn-primary .pz-i-arrow { transition: transform .25s var(--pz-ease); }
.pz-btn-primary:hover .pz-i-arrow { transform: translateX(3px); }

.pz-btn-quiet,
.pz .piztu-man-btn.secondary {
	background: var(--pz-card); color: var(--pz-ink) !important;
	border-color: var(--pz-line-2);
	box-shadow: var(--pz-sh-1);
}
.pz-btn-quiet:hover,
.pz .piztu-man-btn.secondary:hover { border-color: var(--pz-ink); background: var(--pz-card); color: var(--pz-ink) !important; }

.pz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Ligazón con frecha */
.pz-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; color: var(--pz-ink) !important; text-decoration: none !important;
	padding: 8px 0;
	background: linear-gradient(var(--pz-spark-mark), var(--pz-spark-mark)) 0 88% / 0 35% no-repeat;
	transition: background-size .35s var(--pz-ease);
}
.pz-link:hover { background-size: 100% 35%; }
.pz-link .pz-i { transition: transform .25s var(--pz-ease); }
.pz-link:hover .pz-i { transform: translateX(3px); }
.pz-link-light { color: #fff !important; background-image: linear-gradient(rgb(255 216 115 / .35), rgb(255 216 115 / .35)); }

/* Glifo e chip de módulo */
.pz-mod-glyph {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 13px;
	background: var(--mod, var(--pz-brand)); color: #fff;
	font-family: var(--pz-display); font-weight: 800; font-size: 1.3rem; line-height: 1;
	box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset, 0 8px 18px -8px var(--mod, var(--pz-brand));
}
.pz-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px 4px 8px; border-radius: 999px;
	background: color-mix(in srgb, var(--mod, var(--pz-brand)) 10%, white);
	color: color-mix(in srgb, var(--mod, var(--pz-brand)) 80%, black);
	font-size: .82rem; font-weight: 700; line-height: 1.3;
}
.pz-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mod, var(--pz-brand)); }
.pz-chip-dark { background: rgb(255 255 255 / .08); color: #fff; }
.pz-chip-dark::before { background: color-mix(in srgb, var(--mod) 70%, white); }

/* A grella de puntos da aula (como o mapa de equipos da aplicación) */
.pz-dots,
.pz-hero::before,
.pz .piztu-qp-hero::before,
.pz .piztu-mod-hero::before,
.pz .piztu-man-hero::before,
.pz .piztu-blog-hero::before,
.pz-page-hero::before {
	background-image: radial-gradient(circle at 1px 1px, rgb(14 26 43 / .13) 1.1px, transparent 0);
	background-size: 22px 22px;
}

/* --------------------------------------------------------------------------
   Cabeceira: un material translúcido que flota sobre o contido
   ----------------------------------------------------------------------- */

.pz-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--pz-header-h);
	transition: background-color .3s var(--pz-ease), box-shadow .3s var(--pz-ease), backdrop-filter .3s var(--pz-ease);
}
.admin-bar .pz-header { top: var(--wp-admin--admin-bar--height, 32px); }
.pz-header.is-scrolled,
.pz-header.is-open {
	background: rgb(250 248 243 / .76);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
	box-shadow: 0 1px 0 rgb(14 26 43 / .06), 0 10px 30px -20px rgb(14 26 43 / .35);
}
.pz-header-inner {
	height: 100%;
	max-width: calc(var(--pz-wrap) + 2 * var(--pz-gutter));
	margin: 0 auto; padding-inline: var(--pz-gutter);
	display: flex; align-items: center; gap: 20px;
}

.pz-brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--pz-ink) !important; text-decoration: none !important;
	margin-right: auto;
	-webkit-tap-highlight-color: transparent;
}
.pz-brand-lynx {
	width: 44px; height: 44px; object-fit: contain;
	transition: transform .5s cubic-bezier(.3, 1.5, .5, 1);
}
.pz-brand:hover .pz-brand-lynx { transform: rotate(-8deg) scale(1.06); }
.pz-wordmark {
	font-family: var(--pz-display); font-weight: 800; font-size: 1.6rem; line-height: 1;
	letter-spacing: -.045em;
	font-variation-settings: "opsz" 48;
}
.pz-wordmark-i { position: relative; display: inline-block; }
.pz-wordmark-i .pz-i {
	position: absolute; left: 50%; top: -.17em; width: .5em; height: .5em;
	transform: translateX(-50%); color: var(--pz-spark);
	transition: transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.pz-brand:hover .pz-wordmark-i .pz-i { transform: translateX(-50%) rotate(90deg) scale(1.15); }

.pz-nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pz-nav-list a {
	display: block; padding: 8px 14px; border-radius: 999px;
	font-size: .98rem; font-weight: 600; color: var(--pz-ink-2) !important; text-decoration: none !important;
	transition: background-color .2s var(--pz-ease), color .2s var(--pz-ease);
}
.pz-nav-list a:hover { background: rgb(14 26 43 / .06); color: var(--pz-ink) !important; }
.pz-nav-list a:active { background: rgb(14 26 43 / .1); }
.pz-nav-list .current-menu-item > a,
.pz-nav-list .current_page_item > a,
.pz-nav-list .current-menu-ancestor > a {
	background: var(--pz-card); color: var(--pz-ink) !important;
	box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
}

.pz-tools { display: flex; align-items: center; gap: 8px; }

.pz-icon-btn,
.pz-lang-btn,
.pz-burger {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; min-width: 40px; padding: 0 10px;
	border: 0; border-radius: 999px; background: transparent;
	color: var(--pz-ink-2) !important; font: 700 .86rem/1 var(--pz-body); letter-spacing: .04em;
	cursor: pointer; text-decoration: none !important;
	transition: background-color .2s var(--pz-ease), transform .2s var(--pz-ease);
	-webkit-tap-highlight-color: transparent;
}
.pz-icon-btn:hover, .pz-lang-btn:hover, .pz-burger:hover,
.pz-lang-btn[aria-expanded="true"] { background: rgb(14 26 43 / .06); color: var(--pz-ink) !important; }
.pz-icon-btn:active, .pz-lang-btn:active, .pz-burger:active { transform: scale(.94); }
.pz-burger { display: none; }

/* Selector de idioma: xorde desde o propio botón */
.pz-lang { position: relative; }
.pz-lang-list {
	position: absolute; right: 0; top: calc(100% + 8px);
	min-width: 190px; margin: 0; padding: 6px; list-style: none;
	background: rgb(255 255 255 / .92);
	-webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
	border-radius: 16px; box-shadow: var(--pz-sh-3), 0 0 0 1px rgb(14 26 43 / .06);
	transform-origin: calc(100% - 28px) -6px;
	transition: opacity .18s var(--pz-ease), transform .28s var(--pz-ease);
}
.pz-lang-list[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(.92); pointer-events: none; }
.pz-lang-list.is-closing { opacity: 0; transform: scale(.96); }
.pz-lang-list a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: 10px;
	color: var(--pz-ink) !important; font-weight: 600; text-decoration: none !important;
}
.pz-lang-list a:hover { background: rgb(14 26 43 / .06); }
.pz-lang-list a[aria-current] { background: var(--pz-brand-soft); color: var(--pz-brand-ink) !important; }
.pz-lang-code {
	display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 6px;
	background: rgb(14 26 43 / .07); font-size: .72rem; font-weight: 800; letter-spacing: .05em;
}
.pz-lang-list a[aria-current] .pz-lang-code { background: var(--pz-brand); color: #fff; }

/* Panel do móbil: baixa desde a cabeceira e vólvese a ela */
.pz-scrim {
	position: fixed; inset: 0; z-index: 90;
	background: rgb(14 26 43 / .32);
	opacity: 0; transition: opacity .25s linear;
}
.pz-scrim[hidden] { display: none; }
.pz-sheet {
	position: fixed; z-index: 95;
	top: calc(var(--pz-header-h) + 6px); left: 8px; right: 8px;
	max-height: calc(100dvh - var(--pz-header-h) - 20px); overflow: auto;
	padding: 14px 14px 0;
	background: var(--pz-card);
	border-radius: 24px;
	box-shadow: var(--pz-sh-3), 0 0 0 1px rgb(14 26 43 / .05);
	transform-origin: top right;
	overscroll-behavior: contain;
	will-change: transform;
}
.admin-bar .pz-sheet { top: calc(var(--pz-header-h) + 52px); }
.pz-sheet[hidden] { display: none; }
.pz-sheet .pz-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.pz-sheet .pz-nav-list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 12px; border-radius: 14px;
	font-family: var(--pz-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
	box-shadow: none !important;
}
.pz-sheet .pz-nav-list a::after {
	content: ""; width: 9px; height: 9px; border-top: 2px solid var(--pz-faint); border-right: 2px solid var(--pz-faint);
	transform: rotate(45deg); margin-right: 6px;
}
.pz-sheet .pz-nav-list .current-menu-item > a { background: var(--pz-paper); }
.pz-sheet-langs { display: flex; gap: 8px; margin: 12px 0 0; padding: 14px 4px 0; border-top: 1px solid var(--pz-line); list-style: none; }
.pz-sheet-langs a {
	display: inline-grid; place-items: center; height: 40px; min-width: 52px; padding: 0 12px; border-radius: 999px;
	background: var(--pz-paper); color: var(--pz-ink) !important; font-weight: 800; font-size: .86rem; letter-spacing: .05em; text-decoration: none !important;
}
.pz-sheet-langs a[aria-current] { background: var(--pz-ink); color: #fff !important; }
.pz-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 4px 4px; }
.pz-sheet-grabber { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.pz-sheet-grabber span { width: 40px; height: 5px; border-radius: 3px; background: var(--pz-line-2); }

@media (max-width: 1040px) {
	.pz-nav { display: none; }
	.pz-burger { display: inline-flex; }
	.pz-hide-md { display: none; }
}
@media (max-width: 560px) {
	.pz-hide-sm { display: none; }
	.pz-wordmark { font-size: 1.45rem; }
	.pz-brand-lynx { width: 40px; height: 40px; }
	.pz-lang-btn span { display: none; }
}
@media (min-width: 1041px) {
	.pz-sheet, .pz-scrim { display: none !important; }
}

/* --------------------------------------------------------------------------
   Portada
   ----------------------------------------------------------------------- */

.pz-hero {
	position: relative;
	padding: clamp(40px, 7vw, 96px) 0 0;
	isolation: isolate;
}
.pz-hero::before {
	content: ""; position: absolute; inset: calc(-1 * var(--pz-header-h)) 0 30% 0; z-index: -1;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.pz-hero-copy { max-width: 820px; }
.pz-display {
	font-size: clamp(2.7rem, 7.4vw, 5.6rem) !important;
	line-height: 1 !important;
	letter-spacing: -.034em !important;
	margin: 0 0 24px;
	font-variation-settings: "opsz" 96;
}
.pz-display em,
.pz-mark {
	font-style: normal;
	/* O marcador fluorescente da faísca */
	background: linear-gradient(104deg, transparent .2em, var(--pz-spark-mark) .2em, var(--pz-spark-mark) calc(100% - .1em), transparent calc(100% - .1em)) 0 82% / 100% .36em no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	padding: 0 .04em;
}
.pz-hero .pz-lead { margin: 0 0 32px; }
.pz-facts {
	display: flex; flex-wrap: wrap; gap: 8px 22px;
	margin: 28px 0 0; padding: 0; list-style: none;
	font-size: .92rem; font-weight: 600; color: var(--pz-muted);
}
.pz-facts li { display: inline-flex; align-items: center; gap: 8px; }
.pz-facts li::before {
	content: ""; width: 10px; height: 10px; flex: none;
	background: var(--pz-spark);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.pz-hero-visual { position: relative; margin: clamp(40px, 6vw, 72px) 0 0; }
.pz-window {
	position: relative;
	border-radius: 20px; overflow: hidden;
	background: var(--pz-card);
	box-shadow: var(--pz-sh-3), 0 0 0 1px rgb(14 26 43 / .07);
}
.pz-window-bar {
	display: flex; align-items: center; gap: 7px;
	height: 38px; padding: 0 16px;
	background: linear-gradient(#fff, #f7f5ef); border-bottom: 1px solid var(--pz-line);
}
.pz-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--pz-line-2); }
.pz-window-bar i:nth-child(1) { background: #f26b5b; }
.pz-window-bar i:nth-child(2) { background: #f6be4f; }
.pz-window-bar i:nth-child(3) { background: #5cc46a; }
.pz-window-bar span { margin: 0 auto; transform: translateX(-24px); font-size: .78rem; font-weight: 700; color: var(--pz-faint); letter-spacing: .02em; }
.pz-zoom {
	display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
	-webkit-tap-highlight-color: transparent;
}
.pz-zoom img { display: block; width: 100%; height: auto; }

.pz-bubble {
	position: absolute; z-index: 2;
	display: inline-flex; align-items: center; gap: 12px;
	padding: 10px 18px 10px 10px; border-radius: 999px;
	background: rgb(255 255 255 / .86);
	-webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
	box-shadow: var(--pz-sh-2), 0 0 0 1px rgb(14 26 43 / .06);
	font-weight: 700; font-size: .98rem; color: var(--pz-ink); letter-spacing: .005em;
}
.pz-bubble .pz-mod-glyph { width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; }
.pz-bubble-voice { left: clamp(-12px, -1.5vw, 0px); top: 22%; max-width: min(420px, 70%); border-bottom-left-radius: 8px; }
.pz-bubble-status { right: clamp(-12px, -1.5vw, 0px); bottom: 14%; padding: 10px 18px; font-size: .9rem; }
.pz-dot { width: 10px; height: 10px; border-radius: 50%; background: #22b45a; box-shadow: 0 0 0 4px rgb(34 180 90 / .18); }

@media (max-width: 720px) {
	.pz-bubble { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin-top: 12px; max-width: none; }
	.pz-bubble-voice { margin-right: 12px; }
	.pz-bubble-status { display: none; }
	.pz-window { border-radius: 14px; }
	.pz-window-bar { height: 30px; }
	.pz-window-bar i { width: 9px; height: 9px; }
	.pz-hero .pz-actions .pz-btn { flex: 1 1 auto; }
}

/* Seccións */
.pz-section { padding: var(--pz-section) 0 0; }
.pz-section-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.pz-section-head h2 { margin: 0 0 14px; }
.pz-section-head .pz-lead { margin: 0; }
.pz-section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.pz-section-head-row h2 { margin: 0; }

/* Tres formas de usalo */
.pz-modes-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
	margin: 0; padding: 0; list-style: none; counter-reset: none;
}
.pz-mode {
	position: relative;
	padding: 28px; border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
}
.pz-mode h3 { margin: 18px 0 12px; font-size: 1.4rem; }
.pz-mode p { margin: 0; color: var(--pz-muted); font-size: 1rem; }
.pz-mode .pz-mode-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pz-mode-num,
.pz-flow-num {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--pz-ink); color: #fff; font-family: var(--pz-display); font-weight: 800; font-size: 1rem;
}
.pz-mode:first-child { background: var(--pz-ink); box-shadow: var(--pz-sh-2); }
.pz-mode:first-child h3 { color: #fff; }
.pz-mode:first-child p { color: rgb(255 255 255 / .72); }
.pz-mode:first-child .pz-mode-num { background: var(--pz-spark); color: var(--pz-ink); }
.pz-mode:first-child .pz-chip { background: rgb(255 255 255 / .09); color: #fff; }
.pz-mode:first-child .pz-chip::before { background: color-mix(in srgb, var(--mod) 70%, white); }

/* Módulos */
.pz-mods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pz-mod {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 6px;
	min-height: 290px; padding: 26px;
	border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
	color: var(--pz-text) !important; text-decoration: none !important;
	transition: transform .35s var(--pz-ease), box-shadow .35s var(--pz-ease);
	-webkit-tap-highlight-color: transparent;
}
.pz-mod::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--mod) 16%, transparent), transparent);
	transition: transform .5s var(--pz-ease);
}
.pz-mod:hover { transform: translateY(-4px); box-shadow: var(--pz-sh-2), 0 0 0 1px color-mix(in srgb, var(--mod) 30%, var(--pz-line)); }
.pz-mod:hover::after { transform: scale(1.5); }
.pz-mod:active { transform: translateY(-1px) scale(.985); transition-duration: .1s; }
.pz-mod .pz-mod-glyph { margin-bottom: 22px; }
.pz-mod-role { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--mod) 85%, black); }
.pz-mod-name { font-family: var(--pz-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--pz-ink); }
.pz-mod-text { color: var(--pz-muted); font-size: 1rem; line-height: 1.5; }
.pz-mod-go {
	margin-top: auto; align-self: flex-start;
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: color-mix(in srgb, var(--mod) 10%, white); color: var(--mod);
	transition: background-color .3s var(--pz-ease), color .3s var(--pz-ease), transform .3s var(--pz-ease);
}
.pz-mod:hover .pz-mod-go { background: var(--mod); color: #fff; transform: translateX(4px); }

/* Do material á aula: a lousa */
.pz-flow { margin-top: var(--pz-section); padding: var(--pz-section) 0; background: var(--pz-ink); color: #dfe5ee; position: relative; isolation: isolate; overflow: hidden; }
.pz-flow::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .1) 1.1px, transparent 0);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.pz-flow h2 { color: #fff; max-width: 18em; }
.pz-flow .pz-eyebrow { color: var(--pz-spark-mark); }
.pz-flow-steps {
	position: relative;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
	margin: 0 0 40px; padding: 0; list-style: none;
}
.pz-flow-step {
	position: relative; padding: 28px; border-radius: var(--pz-r-lg);
	background: rgb(255 255 255 / .045); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09);
}
.pz-flow-step:not(:last-child)::after {
	content: ""; position: absolute; top: 46px; right: -16px; width: 16px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--pz-spark) 0 4px, transparent 4px 8px);
}
.pz-flow-num { background: var(--pz-spark); color: var(--pz-ink); }
.pz-flow-step h3 { color: #fff; font-size: 1.6rem; margin: 18px 0 12px; }
.pz-flow-step .pz-mode-stack { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.pz-flow-step p { margin: 0; color: rgb(223 229 238 / .78); }

/* Últimos artigos e grella do blog */
.pz-cards,
.pz .piztu-front-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.pz-card,
.pz .piztu-front-grid .listing-item {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--pz-r-lg); background: var(--pz-card);
	box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
	transition: transform .35s var(--pz-ease), box-shadow .35s var(--pz-ease);
}
.pz-card:hover,
.pz .piztu-front-grid .listing-item:hover { transform: translateY(-4px); box-shadow: var(--pz-sh-2), 0 0 0 1px var(--pz-line); }
.pz-card-media,
.pz .piztu-front-grid .listing-item .image {
	display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pz-paper-2); margin: 0;
}
.pz-card-media img,
.pz .piztu-front-grid .listing-item .image img {
	width: 100%; height: 100%; object-fit: cover; display: block; margin: 0;
	transition: transform .6s var(--pz-ease);
}
.pz-card:hover .pz-card-media img,
.pz .piztu-front-grid .listing-item:hover .image img { transform: scale(1.04); }
.pz-card-media img.is-logo,
.pz .piztu-front-grid .listing-item .image img[src*="-logo"],
.pz .piztu-front-grid .listing-item .image img.blog-grid-logo { object-fit: contain; padding: 28px; background: #fff; }
.pz-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.pz-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 26px; }
.pz-card-meta:empty { display: none; }
.pz-card[hidden] { display: none; }

/* Portada xerada: a lousa coa grella de puntos e o lince coma adhesivo */
.pz-cover {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%;
	background:
		radial-gradient(circle at 1px 1px, rgb(255 255 255 / .16) 1.1px, transparent 0) 0 0 / 22px 22px,
		radial-gradient(120% 90% at var(--gx, 20%) 0%, color-mix(in srgb, var(--mod, var(--pz-brand)) 45%, transparent), transparent 60%),
		var(--pz-ink);
}
.pz-cover::after {
	content: ""; position: absolute; right: var(--sx, 18%); top: var(--sy, 22%); width: 14px; height: 14px;
	background: var(--pz-spark);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.pz-card-media .pz-cover img,
.pz .pz-cover img {
	width: 38%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain;
	padding: 8px; border-radius: 50%; background: #fff;
	box-shadow: 0 2px 0 rgb(0 0 0 / .08), 0 14px 30px -10px rgb(0 0 0 / .6);
	transform: rotate(var(--tilt, 0deg));
}
.pz-card:hover .pz-card-media .pz-cover img { transform: rotate(var(--tilt, 0deg)) scale(1.06); }
.pz-card time,
.pz .piztu-front-grid .listing-item .date { font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--pz-faint); text-transform: uppercase; }
.pz-card h2,
.pz-card h3 { margin: 0; font-size: 1.28rem; line-height: 1.22; letter-spacing: -.012em; }
.pz-card h2 a,
.pz-card h3 a,
.pz .piztu-front-grid .listing-item .title { color: var(--pz-ink) !important; text-decoration: none !important; }
/* Toda a tarxeta é premible, pero a ligazón real é o título */
.pz-card h2 a::after,
.pz-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pz-card h2 a:focus-visible,
.pz-card h3 a:focus-visible { outline: none; }
.pz-card:has(a:focus-visible) { box-shadow: 0 0 0 3px var(--pz-brand), var(--pz-sh-2); }
.pz-card p { margin: 0; color: var(--pz-muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Chamada final co lince */
.pz-end { padding-bottom: var(--pz-section); }
.pz-end-card {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 32px;
	background:
		radial-gradient(circle at 1px 1px, rgb(138 83 0 / .16) 1.1px, transparent 0) 0 0 / 22px 22px,
		var(--pz-spark-soft);
	box-shadow: inset 0 0 0 1px rgb(138 83 0 / .1);
}
.pz-end-card h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.pz-end-card .pz-lead { color: #6b5530; margin: 0 0 28px; }
.pz-end-lynx { width: clamp(160px, 22vw, 300px); height: auto; margin: -20px -10px -40px 0; filter: drop-shadow(0 20px 30px rgb(138 83 0 / .2)); }
@media (max-width: 720px) {
	.pz-end-card { grid-template-columns: 1fr; }
	.pz-end-lynx { justify-self: end; margin: -24px -12px -48px 0; width: 160px; }
}

@media (max-width: 1040px) {
	.pz-mods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pz-mod { min-height: 0; }
}
@media (max-width: 820px) {
	.pz-modes-grid, .pz-flow-steps { grid-template-columns: 1fr; }
	.pz-flow-step:not(:last-child)::after { top: auto; bottom: -16px; left: 46px; right: auto; width: 2px; height: 16px; background: repeating-linear-gradient(180deg, var(--pz-spark) 0 4px, transparent 4px 8px); }
}
@media (max-width: 520px) {
	.pz-mods-grid { grid-template-columns: 1fr; }
	.pz-mod .pz-mod-glyph { margin-bottom: 12px; }
}

/* --------------------------------------------------------------------------
   Pé: a lousa
   ----------------------------------------------------------------------- */

.pz-footer {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--pz-ink); color: rgb(223 229 238 / .72);
	padding: clamp(56px, 7vw, 88px) 0 28px;
	font-size: .98rem;
}
.pz-front + .pz-footer,
.pz-footer { margin-top: 0; }
.pz:not(.home) .pz-footer { margin-top: var(--pz-section); }
.pz-footer::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .07) 1.1px, transparent 0);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at 0 0, #000, transparent 70%); mask-image: radial-gradient(ellipse at 0 0, #000, transparent 70%);
}
.pz-footer a { color: #fff !important; text-decoration: none !important; }
.pz-footer a:hover { color: var(--pz-spark-mark) !important; }
.pz-footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.pz-brand-light { color: #fff !important; margin-bottom: 18px; }
.pz-brand-light .pz-brand-lynx { width: 52px; height: 52px; }
.pz-footer-brand p { max-width: 30em; margin: 0 0 20px; }
.pz-footer-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.pz-footer h2 { font-family: var(--pz-body) !important; font-size: .78rem !important; letter-spacing: .1em !important; text-transform: uppercase; color: rgb(223 229 238 / .5) !important; margin: 6px 0 16px; font-weight: 700; }
.pz-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pz-footer ul a { font-weight: 600; }
.pz-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: .88rem; }
.pz-footer-bottom p { margin: 0; }
.pz-footer-bottom a { text-decoration: underline !important; text-decoration-color: rgb(255 255 255 / .3) !important; }
.pz-footer-made { display: inline-flex; align-items: center; gap: 8px; }
.pz-footer-made .pz-i { color: var(--pz-spark); }
@media (max-width: 760px) {
	.pz-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
	.pz-footer-brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Páxinas deseñadas (Que é, Módulos, Manual, Blog): restilado do marcado
   existente coas pezas do sistema
   ----------------------------------------------------------------------- */

.pz .entry-content .piztu-qp-hero,
.pz .entry-content .piztu-mod-hero,
.pz .entry-content .piztu-man-hero,
.pz .entry-content .piztu-blog-hero {
	position: relative; isolation: isolate;
	max-width: calc(860px + 2 * var(--pz-gutter)); margin: 0 auto;
	padding: clamp(48px, 7vw, 96px) var(--pz-gutter) clamp(16px, 3vw, 32px);
	text-align: center;
}
.pz .entry-content .piztu-qp-hero::before,
.pz .entry-content .piztu-mod-hero::before,
.pz .entry-content .piztu-man-hero::before,
.pz .entry-content .piztu-blog-hero::before {
	content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--pz-header-h)) -30vw 0;
	-webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse 50% 70% at 50% 30%, #000 10%, transparent 70%);
}
.pz .piztu-man .piztu-man-hero::before { display: none; }
.pz .piztu-qp-eyebrow,
.pz .piztu-mod-eyebrow,
.pz .piztu-man-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
	font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pz-brand-ink);
}
.pz .piztu-qp-eyebrow::before,
.pz .piztu-mod-eyebrow::before,
.pz .piztu-man-eyebrow::before,
.pz .pz-bullet-spark::before {
	content: ""; width: 13px; height: 13px; flex: none; background: var(--pz-spark);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.pz .piztu-qp-hero h1,
.pz .piztu-mod-hero h1,
.pz .piztu-man-hero h1,
.pz .piztu-man-hero h2,
.pz .piztu-blog-hero h1 {
	font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 22px;
}
.pz .piztu-qp-hero p,
.pz .piztu-mod-hero p,
.pz .piztu-man-hero p,
.pz .piztu-blog-hero p {
	font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--pz-muted);
	max-width: 40em; margin: 0 auto; text-align: center;
}

/* Que é Piztu */
.pz .piztu-qp-section {
	max-width: calc(var(--pz-wrap) + 2 * var(--pz-gutter)); margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--pz-gutter) 0;
}
.pz .piztu-qp-section h2 { margin: 0 0 16px; max-width: 20em; }
.pz .piztu-qp-section > p { font-size: 1.1rem; line-height: 1.65; color: var(--pz-muted); max-width: 44em; margin: 0 0 18px; }
.pz .piztu-qp-section > p[style] { margin-top: 0 !important; }
.pz .piztu-qp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pz .piztu-qp-mode {
	padding: 28px; border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
}
.pz .piztu-qp-mode .icon,
.pz .piztu-man-card .icon {
	display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
	border-radius: 14px; background: var(--pz-ink); color: #fff;
}
.pz .piztu-qp-mode:nth-child(1) .icon { background: var(--pz-brand); }
.pz .piztu-qp-mode:nth-child(2) .icon { background: var(--pz-tao); }
.pz .piztu-qp-mode:nth-child(3) .icon { background: var(--pz-lua); }
.pz .piztu-qp-mode .icon svg { stroke: #fff; }
.pz .piztu-qp-mode h3 { font-size: 1.3rem; margin: 0 0 10px; }
.pz .piztu-qp-mode p { margin: 0; color: var(--pz-muted); font-size: 1rem; line-height: 1.6; }
.pz .piztu-qp-note {
	margin: 24px 0 0; text-align: center; font-weight: 700; color: var(--pz-ink);
}
.pz .piztu-qp-note::after { content: ""; display: block; width: 64px; height: 6px; margin: 12px auto 0; border-radius: 3px; background: var(--pz-spark-mark); }
.pz .piztu-qp-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 44em; }
.pz .piztu-qp-list li {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 16px 20px; border-radius: var(--pz-r);
	background: var(--pz-card); box-shadow: 0 0 0 1px var(--pz-line);
	font-size: 1.02rem; color: var(--pz-text);
}
.pz .piztu-qp-list svg { flex: none; margin-top: 4px; color: var(--pz-pancho); stroke: var(--pz-pancho); }

.pz .piztu-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pz .piztu-vs-card {
	padding: 30px; border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: 0 0 0 1px var(--pz-line);
}
.pz .piztu-vs-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 1.5rem; }
.pz .piztu-vs-card.piztu-vs-highlight { background: var(--pz-ink); box-shadow: var(--pz-sh-3); }
.pz .piztu-vs-card.piztu-vs-highlight h3 { color: #fff; }
.pz .piztu-vs-badge {
	padding: 5px 11px; border-radius: 999px; background: var(--pz-spark); color: var(--pz-ink);
	font-family: var(--pz-body); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.pz .piztu-vs-row { padding: 14px 0; border-bottom: 1px solid var(--pz-line); }
.pz .piztu-vs-highlight .piztu-vs-row { border-color: rgb(255 255 255 / .1); }
.pz .piztu-vs-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pz .piztu-vs-label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pz-faint); margin-bottom: 4px; }
.pz .piztu-vs-value { color: var(--pz-text); font-size: 1.02rem; }
.pz .piztu-vs-highlight .piztu-vs-value { color: #fff; font-weight: 600; }
.pz .piztu-yes { display: flex; align-items: flex-start; gap: 10px; }
.pz .piztu-yes svg { flex: none; margin-top: 4px; stroke: var(--pz-spark); color: var(--pz-spark); }
.pz .piztu-qp-table-note { margin: 24px 0 0; font-size: 1.05rem; font-style: italic; color: var(--pz-muted); max-width: 44em; }

/* Módulos: cada sección colle a cor do seu módulo */
.pz #xesta { --mod: var(--pz-xesta); }
.pz #pancho { --mod: var(--pz-pancho); }
.pz #tao { --mod: var(--pz-tao); }
.pz #lua { --mod: var(--pz-lua); }
.pz .piztu-mod-section {
	--mod-bg: color-mix(in srgb, var(--mod, var(--pz-brand)) 7%, var(--pz-paper));
	max-width: calc(var(--pz-wrap) + 2 * var(--pz-gutter)); margin: 0 auto;
	padding: clamp(48px, 7vw, 96px) var(--pz-gutter) 0;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 80px);
}
.pz .piztu-mod-section.rev .piztu-mod-text { order: 2; }
.pz .piztu-mod-text .num {
	display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
	border-radius: 15px; background: var(--mod); color: #fff;
	font-family: var(--pz-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
	box-shadow: 0 10px 24px -10px var(--mod);
}
.pz .piztu-mod-text h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -.04em; margin: 0 0 8px; }
.pz .piztu-mod-text .tagline {
	font-family: var(--pz-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.012em;
	color: color-mix(in srgb, var(--mod) 80%, black); margin: 0 0 18px;
}
.pz .piztu-mod-text p { font-size: 1.06rem; line-height: 1.65; color: var(--pz-muted); margin: 0 0 22px; }
.pz .piztu-mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pz .piztu-mod-list li { position: relative; padding-left: 30px; font-size: 1rem; line-height: 1.55; color: var(--pz-text); }
.pz .piztu-mod-list li::before {
	content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 14px; background: var(--mod);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.pz .piztu-mod-list li svg { display: none; }
.pz .piztu-mod-shot {
	position: relative; display: grid; place-items: center;
	padding: clamp(20px, 3vw, 36px); border-radius: 28px;
	background:
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--mod) 28%, transparent) 1.1px, transparent 0) 0 0 / 22px 22px,
		var(--mod-bg);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mod) 14%, transparent);
	border: 0;
}
.pz .piztu-mod-shot img {
	display: block; max-width: 100%; max-height: 460px; width: auto; height: auto;
	border-radius: 12px; box-shadow: var(--pz-sh-2), 0 0 0 1px rgb(14 26 43 / .06);
	cursor: zoom-in; transition: transform .4s var(--pz-ease);
}
.pz .piztu-mod-shot img:hover { transform: translateY(-3px); }
@media (max-width: 860px) {
	.pz .piztu-mod-section { grid-template-columns: 1fr; }
	.pz .piztu-mod-section.rev .piztu-mod-text { order: 0; }
}

/* Manual e descargas */
.pz .piztu-man { margin-top: clamp(64px, 8vw, 120px); padding-top: 1px; background: var(--pz-paper-2); scroll-margin-top: var(--pz-header-h) !important; }
.pz.pz-designed .entry-content > .piztu-man-hero:first-child + .piztu-man-section,
.pz .piztu-man-section {
	max-width: calc(1080px + 2 * var(--pz-gutter)); margin: 0 auto;
	padding: clamp(24px, 4vw, 40px) var(--pz-gutter) 0;
}
.pz .piztu-man .piztu-man-section:last-child { padding-bottom: clamp(56px, 7vw, 96px); }
.pz .piztu-man-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pz .piztu-man-card {
	display: flex; flex-direction: column;
	padding: 32px; border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: var(--pz-sh-1), 0 0 0 1px var(--pz-line);
}
.pz .piztu-man-card:first-child .icon { background: var(--pz-brand); }
.pz .piztu-man-card:nth-child(2) .icon { background: var(--pz-lua); }
.pz .piztu-man-card .icon:empty::before,
.pz .piztu-man-card .icon:not(:has(svg))::before {
	content: ""; width: 20px; height: 20px; background: #fff;
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.pz .piztu-man-card .q { flex: none; margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: var(--pz-faint); }
.pz .piztu-man-card h3 { margin: 0 0 12px; font-size: 1.6rem; letter-spacing: -.025em; }
.pz .piztu-man-card p { margin: 0 0 24px; color: var(--pz-muted); font-size: 1rem; line-height: 1.6; flex: 1; }
.pz .piztu-man-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pz .piztu-man-dl .piztu-man-btn:first-child:not(.secondary) { flex: 1 1 100%; min-height: 52px; }
.pz .piztu-man-btn { font-size: .94rem; }
.pz .piztu-man-btn.secondary { min-height: 40px; padding: 0 16px; font-size: .88rem; box-shadow: none; }
.pz .piztu-man-start { max-width: calc(820px + 2 * var(--pz-gutter)); }
.pz .piztu-man-start h2 { text-align: center; margin: clamp(32px, 5vw, 56px) 0 12px; }
.pz .piztu-man-start-intro { text-align: center; color: var(--pz-muted); font-size: 1.08rem; max-width: 36em; margin: 0 auto 28px; }
.pz .piztu-man-step {
	display: flex; gap: 20px; padding: 28px; border-radius: var(--pz-r-lg);
	background: var(--pz-card); box-shadow: 0 0 0 1px var(--pz-line);
}
.pz .piztu-man-step + .piztu-man-step { margin-top: 12px; }
.pz .piztu-man-step-num {
	flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--pz-spark); color: var(--pz-ink); font-family: var(--pz-display); font-weight: 800; font-size: 1.15rem;
}
.pz .piztu-man-step-body h3 { margin: 6px 0 10px; font-size: 1.3rem; }
.pz .piztu-man-step-body p { margin: 0 0 14px; color: var(--pz-muted); font-size: 1rem; line-height: 1.65; }
.pz .piztu-man-step-body .piztu-man-dl { margin: 0 0 14px; }
/* A páxina "Manual" por separado non leva o fondo da sección */
.pz.pz-designed .entry-content > .piztu-man-hero:first-child ~ .piztu-man-section:last-of-type { padding-bottom: 0; }

.pz .piztu-mod-cta {
	position: relative; isolation: isolate; overflow: hidden;
	max-width: var(--pz-wrap); margin: clamp(56px, 7vw, 96px) auto 0;
	width: calc(100% - 2 * var(--pz-gutter));
	padding: clamp(36px, 5vw, 64px); border-radius: 32px; text-align: center;
	background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .09) 1.1px, transparent 0) 0 0 / 22px 22px, var(--pz-ink);
}
.pz .piztu-mod-cta h2 { color: #fff; margin: 0 0 12px; }
.pz .piztu-mod-cta p { color: rgb(223 229 238 / .75); font-size: 1.1rem; margin: 0 0 26px; }
.pz .piztu-mod-cta a { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }

/* Botón "volver arriba" de Astra */
.pz #ast-scroll-top {
	width: 44px; height: 44px; border-radius: 50%; right: 20px; bottom: 20px;
	background: var(--pz-ink); color: #fff; box-shadow: var(--pz-sh-2);
	display: grid; place-items: center; transition: transform .2s var(--pz-ease), opacity .2s;
}
.pz #ast-scroll-top:active { transform: scale(.92); }

/* Lightbox antigo das páxinas: substituído polo do tema */
.pz .piztu-lightbox { display: none !important; }

/* Blog (páxina con [display-posts]): mesmas tarxetas, por tandas */
.pz .piztu-front-grid { max-width: calc(var(--pz-wrap) + 2 * var(--pz-gutter)); margin: 40px auto 0; padding: 0 var(--pz-gutter); }
.pz-more { display: flex; justify-content: center; margin: 40px 0 0; }
.pz-more-count {
	min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px;
	display: inline-grid; place-items: center;
	background: var(--pz-paper-2); color: var(--pz-muted); font-size: .82rem; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Páxinas sinxelas (Sobre Piztu…) e entradas do blog
   ----------------------------------------------------------------------- */

.pz-page-hero {
	position: relative; isolation: isolate; text-align: center;
	padding: clamp(48px, 7vw, 96px) var(--pz-gutter) clamp(24px, 4vw, 40px);
}
.pz-page-hero::before {
	content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--pz-header-h)) 0 0;
	-webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse 50% 70% at 50% 30%, #000 10%, transparent 70%);
}
.pz-page-hero h1 { max-width: 16em; margin: 0 auto; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.04em; }

/* As páxinas sinxelas usan o título de Astra como cabeceira con grella de puntos */
.pz.pz-plain .entry-header {
	position: relative; isolation: isolate; text-align: center;
	padding: clamp(48px, 7vw, 96px) var(--pz-gutter) clamp(24px, 4vw, 48px) !important; margin: 0 !important;
}
.pz.pz-plain .entry-header::before {
	content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--pz-header-h)) 0 0;
	background-image: radial-gradient(circle at 1px 1px, rgb(14 26 43 / .13) 1.1px, transparent 0); background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 45% 70% at 50% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse 45% 70% at 50% 30%, #000 10%, transparent 70%);
}
.pz.pz-plain .entry-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem) !important; line-height: 1.02; letter-spacing: -.04em; margin: 0 auto; max-width: 14em; }
.pz.pz-plain .entry-content,
.pz.single-post .entry-content {
	max-width: calc(720px + 2 * var(--pz-gutter)); margin: 0 auto; padding: 0 var(--pz-gutter);
	font-size: 1.125rem; line-height: 1.72;
}
.pz.pz-plain .entry-content h2,
.pz.single-post .entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .6em; }
.pz.pz-plain .entry-content h3,
.pz.single-post .entry-content h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.pz .entry-content .wp-block-separator { border: 0; height: 6px; width: 64px; margin: 3em auto; background: var(--pz-spark-mark); border-radius: 3px; opacity: 1; }

/* Entrada individual */
.pz.single-post .ast-article-single { padding: 0 !important; }
.pz.single-post .entry-header,
.pz.single-post .ast-single-entry-banner {
	position: relative; isolation: isolate; text-align: center;
	max-width: calc(900px + 2 * var(--pz-gutter)); margin: 0 auto !important;
	padding: clamp(40px, 6vw, 80px) var(--pz-gutter) 8px !important;
	background: transparent !important;
}
.pz.single-post .entry-header::before {
	content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--pz-header-h)) -30vw 0;
	background-image: radial-gradient(circle at 1px 1px, rgb(14 26 43 / .13) 1.1px, transparent 0); background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 45% 70% at 50% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse 45% 70% at 50% 30%, #000 10%, transparent 70%);
}
.pz.single-post .entry-title { font-size: clamp(2rem, 4.6vw, 3.4rem) !important; line-height: 1.06; letter-spacing: -.035em; margin: 0 auto 16px; max-width: 18em; }
.pz.single-post .entry-meta,
.pz.single-post .entry-meta * { font-size: .9rem; font-weight: 600; color: var(--pz-faint) !important; text-decoration: none !important; }
.pz.single-post .ast-single-post-order > *:not(.entry-title):not(.entry-meta) { margin-left: auto; margin-right: auto; }
.pz.single-post .post-thumb-img-content,
.pz.single-post .ast-single-post-featured-section {
	max-width: calc(1000px + 2 * var(--pz-gutter)); margin: 24px auto 48px !important; padding: 0 var(--pz-gutter);
}
.pz.single-post .post-thumb-img-content img,
.pz.single-post .ast-single-post-featured-section img { width: 100%; border-radius: 22px; box-shadow: var(--pz-sh-3); }

/* As entradas levan estilos en liña da época anterior: unifícanse aquí */
.pz.single-post .entry-content > div[style*="max-width"] { max-width: none !important; padding: 0 !important; font-family: inherit !important; color: inherit !important; line-height: inherit !important; }
.pz.single-post .entry-content h2[style] {
	font-family: var(--pz-display) !important; font-size: clamp(1.5rem, 2.6vw, 2rem) !important; font-weight: 700 !important;
	color: var(--pz-ink) !important; letter-spacing: -.025em; line-height: 1.15;
	border: 0 !important; padding: 0 !important; margin: 2.2em 0 .6em !important;
}
.pz.single-post .entry-content h2[style]::after { content: ""; display: block; width: 48px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--pz-spark-mark); }
.pz.single-post .entry-content p[style*="color"] { color: var(--pz-muted) !important; }
.pz.single-post .entry-content img { border-radius: 14px; height: auto; }
.pz.single-post .entry-content figure,
.pz.single-post .entry-content .wp-caption { max-width: 100%; }
.pz.single-post .entry-content a { font-weight: 600; }
.pz.single-post .entry-content ul,
.pz.single-post .entry-content ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.pz.single-post .entry-content li { margin-bottom: .5em; }
.pz.single-post .entry-content li::marker { color: var(--pz-brand); }
.pz .entry-content blockquote,
.pz .entry-content div[style*="border-left"] {
	margin: 2em 0 !important; padding: 20px 24px !important;
	border: 0 !important; border-radius: var(--pz-r) !important;
	background: var(--pz-spark-soft) !important; color: #5f4a24 !important;
	font-style: normal; box-shadow: inset 4px 0 0 var(--pz-spark);
}
.pz .entry-content code,
.pz .entry-content kbd { font-family: var(--pz-mono); font-size: .88em; padding: .12em .4em; border-radius: 6px; background: var(--pz-paper-2); color: var(--pz-ink); }
.pz .entry-content pre { font-family: var(--pz-mono); background: var(--pz-ink) !important; color: #e8edf5 !important; border-radius: var(--pz-r); padding: 20px 24px; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.pz .entry-content pre code { background: none; padding: 0; color: inherit; }
.pz .entry-content table { border-collapse: collapse; width: 100%; font-size: .98rem; margin: 1.6em 0; }
.pz .entry-content th, .pz .entry-content td { border: 0 !important; border-bottom: 1px solid var(--pz-line) !important; padding: 10px 12px; text-align: left; }
.pz .entry-content th { font-weight: 700; color: var(--pz-ink); background: var(--pz-paper-2); }
.pz .entry-content iframe { max-width: 100%; border-radius: 14px; }

/* Navegación entre entradas */
.pz .post-navigation {
	max-width: calc(720px + 2 * var(--pz-gutter)); margin: 64px auto 0 !important; padding: 24px var(--pz-gutter) 0 !important;
	border-top: 1px solid var(--pz-line);
}
.pz .post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pz .post-navigation a { display: block; padding: 18px 20px; border-radius: var(--pz-r); background: var(--pz-card); box-shadow: 0 0 0 1px var(--pz-line); color: var(--pz-ink) !important; font-weight: 700; text-decoration: none !important; transition: box-shadow .25s var(--pz-ease), transform .25s var(--pz-ease); }
.pz .post-navigation a:hover { box-shadow: var(--pz-sh-2), 0 0 0 1px var(--pz-line); transform: translateY(-2px); }
.pz .post-navigation .nav-next { text-align: right; }
.pz .post-navigation .ast-left-arrow, .pz .post-navigation .ast-right-arrow { color: var(--pz-brand); }
@media (max-width: 600px) { .pz .post-navigation .nav-links { grid-template-columns: 1fr; } }

/* Arquivos, categorías e busca (archive.php) */
.pz-listing { padding-bottom: 0; }
.pz-listing .pz-page-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.pz-listing .pz-page-hero h1 { max-width: 18em; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.pz-listing-page { margin: 12px 0 0; color: var(--pz-faint); font-weight: 700; }
.pz-search {
	display: flex; gap: 8px; max-width: 560px; margin: 28px auto 0; padding: 6px;
	border-radius: 999px; background: var(--pz-card); box-shadow: var(--pz-sh-2), 0 0 0 1px var(--pz-line);
	transition: box-shadow .2s var(--pz-ease);
}
.pz-search:focus-within { box-shadow: var(--pz-sh-2), 0 0 0 2px var(--pz-brand); }
.pz .pz-search input[type="search"] {
	flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0 !important; background: transparent !important;
	font: inherit; font-size: 1.05rem; color: var(--pz-ink); outline: none; box-shadow: none !important;
}
.pz-search .pz-btn { flex: none; }
.pz-empty { text-align: center; padding: 8px 0 24px; }
.pz-empty img { margin: 0 auto 8px; transform: rotate(-6deg); }
.pz-empty .pz-lead { margin: 0 auto 12px; }

.pz-pages { margin: 48px 0 0; }
.pz-pages .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pz-pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
	font-weight: 700; color: var(--pz-ink) !important; text-decoration: none !important;
	transition: background-color .2s var(--pz-ease), transform .25s var(--pz-ease);
}
.pz-pages a.page-numbers:hover { background: var(--pz-paper-2); }
.pz-pages a.page-numbers:active { transform: scale(.95); transition-duration: .08s; }
.pz-pages .page-numbers.current { background: var(--pz-ink); color: #fff !important; }
.pz-pages .page-numbers.dots { min-width: 24px; color: var(--pz-faint) !important; }
.pz-pages .prev, .pz-pages .next { box-shadow: 0 0 0 1px var(--pz-line-2); background: var(--pz-card); padding: 0 18px; }
.pz-pages .prev .pz-i { transform: rotate(180deg); }
@media (max-width: 600px) {
	.pz-pages .prev span, .pz-pages .next span { display: none; }
	.pz-pages .prev, .pz-pages .next { padding: 0; width: 44px; }
}

/* 404 */
.pz-404 { text-align: center; padding: clamp(64px, 10vw, 140px) var(--pz-gutter) 0; position: relative; isolation: isolate; }
.pz-404 img { width: 180px; height: auto; margin: 0 auto 8px; display: block; transform: rotate(-8deg); }
.pz-404 h1 { margin: 0 0 14px; }
.pz-404 .pz-lead { margin: 0 auto 28px; }
.pz-404 .pz-actions { justify-content: center; }

/* eduApps (plugin): só herda tipografía e cores da marca */
.pz .piztu-apps { font-family: var(--pz-body); }
.pz .piztu-apps a { text-decoration: none; }
.pz .piztu-apps h1, .pz .piztu-apps h2 { font-family: var(--pz-display); }

/* --------------------------------------------------------------------------
   Banner de cookies (Complianz) coa identidade
   ----------------------------------------------------------------------- */

.pz .cmplz-cookiebanner {
	border-radius: 22px !important;
	box-shadow: var(--pz-sh-3), 0 0 0 1px rgb(14 26 43 / .06) !important;
	font-family: var(--pz-body) !important;
	background: rgb(255 255 255 / .94) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.pz .cmplz-cookiebanner .cmplz-title { font-family: var(--pz-display) !important; font-weight: 700 !important; color: var(--pz-ink) !important; }
.pz .cmplz-cookiebanner .cmplz-message { color: var(--pz-muted) !important; }
.pz .cmplz-cookiebanner .cmplz-btn {
	border-radius: 999px !important; font-weight: 700 !important; font-family: var(--pz-body) !important;
	transition: transform .1s var(--pz-ease), background-color .2s var(--pz-ease) !important;
}
.pz .cmplz-cookiebanner .cmplz-btn:active { transform: scale(.97); }
.pz .cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--pz-brand) !important; border-color: var(--pz-brand) !important; color: #fff !important; }
.pz .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.pz .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.pz .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: var(--pz-paper) !important; border-color: var(--pz-line) !important; color: var(--pz-ink) !important; }
.pz .cmplz-cookiebanner .cmplz-close { color: var(--pz-muted) !important; }
.pz #cmplz-manage-consent .cmplz-manage-consent { border-radius: 12px 12px 0 0 !important; font-family: var(--pz-body) !important; background: var(--pz-ink) !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   Visor de imaxes do tema (crece desde a imaxe premida e volve a ela)
   ----------------------------------------------------------------------- */

.pz-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 4vh 4vw; cursor: zoom-out; }
.pz-viewer-scrim { position: absolute; inset: 0; background: rgb(14 26 43 / .82); opacity: 0; }
.pz-viewer img {
	position: relative; max-width: 100%; max-height: 92vh; width: auto; height: auto;
	border-radius: 14px; box-shadow: 0 40px 100px rgb(0 0 0 / .5);
	transform-origin: 0 0; will-change: transform;
}
.pz .pz-viewer-close {
	position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 0;
	display: grid; place-items: center; cursor: pointer;
	padding: 0; background: rgb(255 255 255 / .14); color: #fff;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	opacity: 0;
}

/* --------------------------------------------------------------------------
   Entradas suaves ao facer scroll (só se hai JS e movemento permitido)
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.pz-js [data-pz-reveal] {
		opacity: 0; transform: translateY(14px);
		transition: opacity .6s var(--pz-ease), transform .8s var(--pz-ease);
		transition-delay: var(--pz-delay, 0ms);
	}
	.pz-js [data-pz-reveal].is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Accesibilidade: movemento, transparencia e contraste
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.pz *, .pz *::before, .pz *::after {
		transition-property: opacity, background-color, color, border-color, box-shadow !important;
		transition-duration: .15s !important;
		animation: none !important;
	}
	.pz-mod:hover, .pz-card:hover { transform: none; }
	.pz-card:hover .pz-card-media img { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
	.pz-header.is-scrolled, .pz-header.is-open, .pz-lang-list, .pz-bubble, .pz .cmplz-cookiebanner {
		background: var(--pz-card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	}
	.pz-header.is-scrolled, .pz-header.is-open { background: var(--pz-paper) !important; }
}

@media (prefers-contrast: more) {
	:root { --pz-muted: #364152; --pz-faint: #4f5a6b; --pz-line: #9aa3b2; --pz-line-2: #6b7586; }
	.pz-header.is-scrolled { background: var(--pz-paper); box-shadow: 0 1px 0 var(--pz-ink); }
	.pz-btn-quiet { border-color: var(--pz-ink); }
}

@media print {
	.pz-header, .pz-sheet, .pz-scrim, .pz-footer, .cmplz-cookiebanner { display: none !important; }
	body.pz { background: #fff; }
}
