/*
Theme Name: PCG Ciudadano
Description: Tema institucional del proyecto PCG. Portada editable y página de principios de la iniciativa.
Author: PCG
Version: 1.3.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: pcg-ciudadano
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dm-sans/DMSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dm-sans/DMSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif";
	src: url("assets/fonts/source-serif/SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif";
	src: url("assets/fonts/source-serif/SourceSerif4Variable-Italic.ttf.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
:root {
	--ink: #103d3e;
	--teal: #25675b;
	--body: #364c49;
	--muted: #516860;
	--paper: #f8f5ec;
	--off-white: #fffdf7;
	--gold: #b36d32;
	--line: #cccec0;
	--gutter: clamp(22px, 5.7vw, 92px);
	--sans: "DM Sans", "Segoe UI", sans-serif;
	--serif: "Source Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--off-white); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #aa5916; outline-offset: 4px; }
.container { width: min(calc(100% - 2 * var(--gutter)), 1360px); margin-inline: auto; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { z-index: 100; top: 1rem; left: 1rem; width: auto; height: auto; padding: 8px 16px; clip-path: none; background: white; color: var(--ink); }
.site-header { position: relative; z-index: 2; background: var(--off-white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .menu, .hero-links { display: flex; align-items: center; }
.header-inner { min-height: 82px; justify-content: space-between; gap: 30px; }
.brand { flex: none; }
.brand a, .brand img { display: block; }
.brand img { width: auto; max-width: 205px; height: 53px; object-fit: contain; }
.brand .bundled-logo img { filter: contrast(1.14); mix-blend-mode: multiply; }
.menu { flex-wrap: wrap; justify-content: end; padding: 0; gap: 10px clamp(22px, 3vw, 52px); list-style: none; }
.menu a { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none; padding: 7px 0; }
.menu a:hover, .menu a[aria-current], .menu .current-menu-item > a { color: var(--teal); }
.menu a[aria-current]::after, .menu .current-menu-item > a::after { content: ""; position: absolute; inset: auto 0 2px; height: 2px; background: var(--teal); }
.default-menu li:last-child a { border: 1px solid #8da99c; padding: 7px 17px; border-radius: 30px; }
.default-menu li:last-child a::after { display: none; }
.default-menu li:last-child a[aria-current], .default-menu li:last-child a:hover { background: #e4eee4; border-color: var(--teal); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #39735e; }
.menu-toggle { border: 1px solid #94a69b; background: transparent; border-radius: 3px; padding: 6px 10px; color: var(--ink); display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.menu-lines { width: 16px; height: 12px; border-block: 1.5px solid; position: relative; }
.menu-lines::after { content: ""; position: absolute; top: 4px; width: 100%; left: 0; border-top: 1.5px solid; }
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(38px, 5.2vw, 88px); padding-block: clamp(44px, 4.6vw, 78px); }
.hero-copy, .hero-figure, .editorial-layout > *, .purpose { min-width: 0; }
.kicker { display: flex; gap: 12px; align-items: center; color: var(--teal); font: 700 .71rem/1.5 var(--sans); letter-spacing: .145em; text-transform: uppercase; }
.rule { flex: none; width: 32px; height: 2px; background: var(--gold); }
.hero h1 { margin: 24px 0 20px; font: 500 clamp(3.6rem, 5.25vw, 5.9rem)/.99 var(--serif); letter-spacing: -.06em; }
.hero h1 em { display: block; color: var(--teal); font-weight: 410; }
.hero-intro { max-width: 50ch; font-size: clamp(1rem, 1.22vw, 1.18rem); line-height: 1.62; }
.hero-links { gap: 16px 27px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; gap: 23px; align-items: center; justify-content: center; padding: 13px 18px; background: var(--ink); color: white; font-size: .92rem; line-height: 1.5; font-weight: 700; text-decoration: none; border-radius: 3px; }
.button span { font-size: 1.17rem; font-weight: 400; line-height: 1; }
.button:hover { background: #245e51; }
.text-link { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover, .footer-back:hover { color: var(--teal); text-decoration-thickness: 2px; }
.hero-figure { margin: 0; align-self: center; }
.art-frame { border: 1px solid #b1b8a2; padding: 6px; background: var(--off-white); box-shadow: 4px 5px 0 #e3e2d2; }
.art-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1.34; object-fit: cover; object-position: 55% center; }
.hero-figure figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--muted); margin: 12px 0 0; font-size: .72rem; letter-spacing: .03em; }
.hero-figure figcaption::before { content: ""; width: 16px; border-top: 1px solid #8b9e8c; }
.section { padding-block: clamp(55px, 6vw, 103px); scroll-margin-top: 28px; }
.editorial-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(38px, 6vw, 98px); }
.section h2, .entry-title { font: 470 clamp(2.65rem, 4.1vw, 4.65rem)/1.045 var(--serif); letter-spacing: -.05em; }
.section h2 { margin-top: 16px; }
.origin { background: var(--off-white); }
.origin-prose { max-width: 64ch; padding-top: 3px; }
.origin-lead { font: 470 clamp(1.5rem, 2.05vw, 2.15rem)/1.31 var(--serif); color: var(--ink); letter-spacing: -.027em; }
.origin-prose > p + p { margin-top: 19px; }
.objective { background: #103e3d; color: #e5eee5; }
.objective h2, .objective h3 { color: #faf7e9; }
.objective .kicker { color: #c6e2cd; }
.objective .rule { background: #e5ad62; }
.objective-head { align-items: end; }
.section-intro { max-width: 55ch; }
.purpose-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: clamp(32px, 4.3vw, 65px); border-top: 1px solid #55756b; }
.purpose { padding: 30px clamp(20px, 2.2vw, 38px) 0; }
.purpose + .purpose { border-left: 1px solid #55756b; }
.purpose:first-child { padding-left: 0; }
.purpose:last-child { padding-right: 0; }
.purpose h3, .phase-list h3 { font: 530 clamp(1.45rem, 2.05vw, 2.05rem)/1.14 var(--serif); letter-spacing: -.034em; }
.purpose p, .phase-list p { margin-top: 11px; font-size: 1rem; line-height: 1.65; }
.purpose-icon { color: #f0ba76; width: 34px; height: 30px; display: block; margin-bottom: 19px; position: relative; }
.purpose-icon i, .purpose-icon b, .purpose-icon::after { position: absolute; display: block; }
.icon-voice i { top: 1px; left: 1px; width: 27px; height: 19px; border: 1.7px solid; border-radius: 5px; }
.icon-voice b { top: 16px; left: 7px; width: 8px; height: 8px; background: #103e3d; border-left: 1.7px solid; border-bottom: 1.7px solid; transform: skewY(-38deg); }
.icon-team i, .icon-team b { top: 3px; width: 21px; height: 21px; border: 1.7px solid; border-radius: 50%; }
.icon-team i { left: 0; }
.icon-team b { left: 13px; }
.icon-responsibility i { top: 0; left: 5px; width: 22px; height: 25px; border: 1.7px solid; border-radius: 2px; }
.icon-responsibility b { top: 7px; left: 10px; width: 12px; height: 6px; border-left: 1.8px solid; border-bottom: 1.8px solid; transform: rotate(-45deg); }
.phase { background: #eaf0e5; }
.phase-summary > p:last-child { max-width: 43ch; margin-top: 22px; }
.phase-list { padding: 0; counter-reset: step; list-style: none; }
.phase-list li { counter-increment: step; position: relative; padding: 19px 0 23px 55px; border-top: 1px solid #9eb2a3; }
.phase-list li:last-child { padding-bottom: 0; }
.phase-list li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 21px; left: 0; color: var(--teal); font: 700 .84rem/1.55 var(--sans); font-variant-numeric: tabular-nums; }
.site-footer { color: var(--ink); background: var(--off-white); border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; gap: 26px; padding-block: 25px; }
.footer-id { display: flex; align-items: center; gap: 14px; }
.footer-id strong { font: 700 1.85rem/1 var(--sans); letter-spacing: -.07em; }
.footer-id > span { border-left: 1px solid var(--line); padding-left: 14px; font-size: .85rem; line-height: 1.3; }
.footer-back { flex-shrink: 0; font-size: .84rem; font-weight: 700; }
.footer-back span { display: inline-block; margin-left: 5px; }
.pcg-interior { min-height: 55vh; max-width: 790px; padding-block: clamp(44px, 6vw, 90px); overflow-wrap: anywhere; }
.pcg-interior h1, .pcg-interior h2, .pcg-interior h3 { font-family: var(--serif); }
.pcg-interior h2 { font-size: 2rem; line-height: 1.25; }
.pcg-interior .entry-title { margin-block: 8px 24px; }
.pcg-interior :is(p,figure,ul,ol,blockquote,table,pre,.wp-block-buttons) { margin-bottom: 1.15em; }
.pcg-interior :is(h2,h3,h4) { margin-block: 1.1em .5em; }
.pcg-interior img { height: auto; }
.pcg-interior table { border-collapse: collapse; }
.pcg-interior :is(th,td) { padding: .5em .7em; border: 1px solid var(--line); }
.pcg-interior pre { padding: 1rem; white-space: pre-wrap; background: var(--paper); }
.pcg-interior time { color: var(--muted); font-size: .86rem; }
.pcg-interior :is(input:not([type="checkbox"]):not([type="radio"]), textarea) { max-width: 100%; padding: 8px 10px; border: 1px solid #8d9c90; border-radius: 3px; }
.pcg-interior :is(input[type="submit"], button) { cursor: pointer; background: var(--ink); color: white; }
.pcg-post-summary { padding: 22px 0; border-top: 1px solid var(--line); }
.pcg-post-summary h2 { margin-top: 4px; }
.pcg-interior .pagination .nav-links, .pcg-interior .comment-navigation .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.comment-form label { display: block; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: .4rem 1rem .8rem 0; }
.alignright { float: right; margin: .4rem 0 .8rem 1rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { color: var(--muted); font-size: .85rem; }
.front-extra { min-height: 0; }
@media (min-width: 1600px) { .hero-layout { padding-block: 80px; } }
@media (max-width: 1000px) and (min-width: 721px) {
	:root { --gutter: 4vw; }
	.hero-layout { gap: 28px; grid-template-columns: 1fr 1fr; }
	.hero h1 { font-size: clamp(3rem, 5.8vw, 3.65rem); }
	.hero-links { gap: 15px; }
	.art-frame img { aspect-ratio: 1.1; }
}
@media (max-width: 720px) {
	.header-inner { flex-wrap: wrap; min-height: 70px; padding-block: 10px; gap: 8px; }
	.brand img { height: 43px; max-width: 160px; }
	.site-menu { flex-basis: 100%; }
	.menu { justify-content: flex-start; gap: 3px 19px; padding: 7px 0 3px; }
	.menu a { font-size: .84rem; }
	.default-menu li:last-child a { padding: 4px 10px; }
	.hero-layout, .editorial-layout { grid-template-columns: 1fr; gap: 28px; }
	.hero-layout { padding-block: 38px 29px; }
	.hero h1 { font-size: clamp(2.9rem, 9.6vw, 4.2rem); letter-spacing: -.055em; margin: 17px 0 16px; }
	.hero h1 em { max-width: 15ch; }
	.hero-links { margin-top: 21px; gap: 16px 22px; }
	.button { padding: 11px 14px; gap: 13px; }
	.art-frame { padding: 4px; box-shadow: 3px 3px 0 #e0dfce; }
	.art-frame img { aspect-ratio: 1.9; object-position: center 56%; }
	.hero-figure figcaption { margin-top: 9px; }
	.section { padding-block: 47px; }
	.section h2 { margin-top: 12px; }
	.origin-prose { padding: 0; }
	.origin-prose > p + p { margin-top: 13px; }
	.purpose-grid { grid-template-columns: 1fr; margin-top: 25px; }
	.purpose, .purpose:first-child, .purpose:last-child { padding: 21px 0 21px 45px; position: relative; }
	.purpose + .purpose { border-left: 0; border-top: 1px solid #55756b; }
	.purpose:last-child { padding-bottom: 0; }
	.purpose-icon { position: absolute; top: 22px; left: 0; transform: scale(.84); transform-origin: top left; }
	.purpose p, .phase-list p { margin-top: 7px; }
	.phase-summary > p:last-child { margin-top: 14px; }
	.phase-list li { padding-left: 38px; }
	.footer-inner { align-items: flex-start; }
	.footer-id { align-items: flex-start; }
}
@media (max-width: 390px) {
	.kicker { font-size: .65rem; gap: 8px; }
	.rule { width: 22px; }
	.hero-links { gap: 13px; }
	.footer-inner { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Fase inicial y lectura de principios */
.phase-page-link { text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: #70978a; }
.phase-page-link:hover { color: var(--teal); text-decoration-color: currentColor; }
.phase-page-link span { display: inline-block; color: var(--teal); font: 400 .77em/1 var(--sans); }
.principles-mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.principles-mast-inner { display: flex; align-items: center; justify-content: space-between; padding-block: clamp(28px, 3.5vw, 60px); gap: 36px; }
.principles-mast h1 { margin: 17px 0 0; color: var(--ink); font: 470 clamp(3.25rem, 5.5vw, 6rem)/1 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.principles-mast .kicker a { text-decoration-thickness: 1px; text-underline-offset: .23em; }
.principles-landscape { flex: 0 1 285px; align-self: stretch; min-height: 134px; border: 5px solid var(--off-white); outline: 1px solid var(--line); background: url("assets/img/atitlan.webp") center 39% / cover; }
.principles-layout { display: grid; grid-template-columns: minmax(175px, .45fr) minmax(0,1.55fr); gap: clamp(32px, 5vw, 78px); max-width: 1150px; padding-block: clamp(40px, 5vw, 82px); }
.principles-no-index { display: block; max-width: 760px; }
.principles-rail { align-self: start; }
.principles-index { border-block: 1px solid var(--line); }
.principles-index summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: .95rem; padding: 14px 0; }
.principles-index summary::marker, .principles-index li::marker { color: var(--teal); }
.principles-index ol { padding: 0 0 16px 1.65em; font: 400 .86rem/1.45 var(--sans); }
.principles-index li { padding: 4px 0 4px 2px; }
.principles-index a { text-decoration-thickness: 1px; }
.principles-reading { min-width: 0; max-width: 760px; }
.principles-copy { counter-reset: principle; overflow-wrap: anywhere; }
.principles-copy > p { margin-block: .8em 1.25em; }
.principles-copy > .principle-label { margin: 0 0 .7em; color: var(--teal); font-weight: 700; font-size: .75rem; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.principles-copy > .principle-central { color: var(--ink); margin: 0; font: 480 clamp(1.75rem, 2.4vw, 2.65rem)/1.25 var(--serif); letter-spacing: -.03em; }
.principles-copy h2 { margin: 1.25em 0 .38em; color: var(--ink); font: 490 clamp(2rem,3vw,3rem)/1.14 var(--serif); letter-spacing: -.045em; }
.principles-copy > h3 { position: relative; counter-increment: principle; margin: 25px 0 0; padding: 21px 0 0 48px; border-top: 1px solid var(--line); font: 520 clamp(1.45rem,1.9vw,2rem)/1.2 var(--serif); letter-spacing: -.028em; scroll-margin-top: 24px; }
.principles-copy > h3::before { content: counter(principle, decimal-leading-zero); position: absolute; left: 0; top: 26px; color: var(--teal); font: 700 .82rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.principles-copy > h3 + p { margin-left: 48px; }
.principles-return { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (min-width: 901px) {
	.principles-rail { position: sticky; top: 24px; }
	.admin-bar .principles-rail { top: 58px; }
	.principles-index nav { max-height: 65vh; overflow: auto; }
}
@media (max-width: 900px) {
	.principles-layout { display: block; max-width: 760px; }
	.principles-rail { margin-bottom: 28px; }
}
@media (max-width: 720px) {
	.principles-landscape { display: none; }
	.principles-mast h1 { font-size: clamp(2.8rem, 10vw, 4.2rem); }
	.principles-copy > h3 { padding-left: 34px; }
	.principles-copy > h3 + p { margin-left: 34px; }
}

/* Horizonte de formación y cuenta regresiva en la portada. */
.horizon { background: var(--ink); color: #e1ece6; }
.horizon-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(34px, 3.7vw, 65px); }
.horizon h2 { margin-bottom: 14px; color: var(--off-white); font: 470 clamp(2.45rem, 3.2vw, 3.75rem)/1.07 var(--serif); letter-spacing: -.045em; }
.horizon-copy p { max-width: 64ch; font-size: 1rem; line-height: 1.6; }
.horizon-copy p + p { margin-top: .65em; }
.horizon-counter { min-width: 0; padding-left: clamp(20px, 2.8vw, 50px); border-left: 1px solid #55796f; }
.horizon-counter .kicker { color: #d3e8d4; font-size: .69rem; letter-spacing: .11em; }
.horizon-counter .rule { width: 24px; background: #e5ad62; }
.clock-values { display: grid; grid-template-columns: 1.4fr repeat(3,minmax(0,1fr)); padding-block: 18px 12px; }
.clock-unit { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.clock-unit + .clock-unit { border-left: 1px solid #55796f; }
.clock-unit:first-child { align-items: flex-start; }
.clock-unit strong { color: #fff9e9; font: 475 clamp(2.1rem, 3.3vw, 4rem)/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.05em; }
.clock-unit > span { font-size: .76rem; line-height: 1.6; color: #d3e8d4; }
.clock-date { margin-top: 12px; color: #d3e8d4; font-size: .8rem; line-height: 1.5; }
.clock-finished { margin-block: 16px; font: 475 2rem/1.2 var(--serif); color: var(--off-white); }
@media (max-width: 850px) {
	.horizon-layout { grid-template-columns: 1fr; gap: 24px; }
	.horizon-counter { border-left: 0; border-top: 1px solid #55796f; padding: 20px 0 0; }
	.clock-values { max-width: 460px; padding-block: 12px 4px; }
	.clock-unit strong { font-size: clamp(1.95rem, 7.3vw, 3rem); }
}

/* Información para el grupo promotor y espacio de registro. */
.participa-page .principles-mast h1 { max-width: 20ch; text-wrap: balance; }
.participa-layout { max-width: 820px; padding-block: clamp(32px,5vw,76px); }
.participa-copy { overflow-wrap: anywhere; }
.participa-copy > p { margin-block: 0 1em; }
.participa-copy .participa-lead { color: var(--ink); font: 475 clamp(1.45rem,2.15vw,2.1rem)/1.35 var(--serif); letter-spacing: -.025em; }
.participa-copy > h2 { color: var(--ink); margin: 1.35em 0 .5em; font: 495 clamp(1.9rem,3vw,2.8rem)/1.15 var(--serif); letter-spacing: -.035em; }
.participa-reference { background: var(--paper); border-left: 3px solid var(--gold); padding: clamp(16px,2vw,26px); margin: 18px 0 23px; }
.participa-reference p + p { margin-top: .8rem; }
.participa-reference-label { color: var(--teal); font-weight: 700; font-size: .89rem; }
.participa-source { font-size: .86rem; color: var(--muted); }
.pcg-registration-slot { margin-top: 34px; scroll-margin-top: 22px; }
@media (min-width: 721px) and (max-width: 1130px) {
	.site-menu .menu { column-gap: clamp(12px,1.75vw,22px); }
	.site-menu .menu a { font-size: .86rem; }
}
.participa-jump a { color: var(--teal); font-weight: 700; text-underline-offset: .18em; }
.phase-participa-link { display: inline-block; margin-top: .65em; color: var(--teal); font: 700 .95rem/1.5 var(--sans); }
@media (min-width: 721px) and (max-width: 940px) {
	.header-inner { flex-wrap: wrap; min-height: 70px; gap: 8px; padding-block: 10px; }
	.site-menu { flex-basis: 100%; }
	.site-menu .menu { justify-content: flex-start; gap: 4px 21px; padding-block: 5px; }
}
.pcg-participacion-inactiva { color: var(--ink); padding: 20px; border: 1px solid var(--line); background: var(--paper); }


.participa-voluntariado { margin-block: 1.8em; padding: clamp(18px, 2.6vw, 32px); background: #eef2e9; border-left: 3px solid var(--teal); }
.participa-voluntariado h2 { color: var(--ink); margin: 0 0 .55em; font: 490 clamp(1.65rem, 2.8vw, 2.35rem)/1.16 var(--serif); letter-spacing: -.035em; }
.participa-voluntariado p + p { margin-top: .85em; }
