/* Section-specific styles. Shared tokens, buttons and motion live in style.css. The timeline lives in timeline.css. */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* Faint triangles echo the Coalición LAC logo; kept small (brief: "reducir los elementos flotantes"). */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero::before { width: 300px; height: 260px; right: -90px; top: -50px; background: rgb(245 197 24 / 0.08); transform: rotate(18deg); }
.hero::after { width: 160px; height: 140px; right: 22%; bottom: -70px; background: rgb(224 88 63 / 0.12); transform: rotate(-24deg); }
.hero__title { max-width: 20ch; margin-top: 0.75rem; }
.hero__lead { max-width: 64ch; opacity: 0.94; }
.hero__motto { max-width: 34ch; margin-top: 0.5rem; padding-left: 1rem; border-left: 3px solid var(--wp--preset--color--coral); font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; }
.hero__actions { margin-top: 1.25rem; }
.deadline-line { margin-top: 1.25rem; font-weight: 700; color: var(--wp--preset--color--oro); }

/* Official "20 años de compromiso con los derechos humanos" logo (round 4): vector, white text, no box. */
.hero-logo20 { display: flex; justify-content: center; }
.logo20 { width: 100%; max-width: 380px; margin: 0; }
.logo20 img { display: block; width: 100%; max-width: 380px; height: auto; }
@media (max-width: 781px) {
	/* Columns stack on mobile: the logo moves above the title at a smaller size. */
	.hero .wp-block-columns { flex-direction: column-reverse; }
	.hero-logo20 { justify-content: flex-start; }
	.logo20 img { max-width: 220px; }
}

/* ---------- Por qué ahora ---------- */
.stats { gap: 0.75rem; margin-block: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: var(--wp--preset--color--crema); color: var(--wp--preset--color--vino); font-weight: 600; }
.stat::before { content: ""; width: 26px; height: 26px; background: var(--wp--preset--color--vino); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.stat--cities { --icon: var(--icon-city); }
.stat--countries { --icon: var(--icon-globe); }
.stat strong { font-family: var(--wp--preset--font-family--display); font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--bordo); }
.section-why .toggle { border-top: 1px solid var(--wp--preset--color--arena); padding-top: 0.5rem; }

/* ---------- Del escritorio al territorio (plum band; no strong yellow, as Paula asked) ---------- */
.section-territory .section-title::after { background: var(--wp--preset--color--coral); }
.territory-cards { gap: 1.25rem; margin-top: 2rem; }
.territory-card { height: 100%; padding: 1.75rem 1.5rem; border-radius: var(--radius-card); background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); }
.territory-card::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 12px; background: rgb(224 88 63 / 0.18) var(--icon) center / 24px no-repeat; }
.territory-card--root { --icon: var(--icon-root); }
.territory-card--city { --icon: var(--icon-city-light); }
.territory-card--action { --icon: var(--icon-action); }
.territory-card__title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.territory-card p { margin: 0; opacity: 0.92; }

/* ---------- Públicos (WhatsApp) ---------- */
.wa-cards { gap: 1.25rem; margin-top: 2rem; }
.wa-card { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 2rem 1.5rem; border-radius: var(--radius-card); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16); }
/* Same group icon as --icon-group, pre-coloured green: a mask would also cut away the circle behind it. */
.wa-card::before {
	content: ""; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(43 194 102 / 0.4);
	background: rgb(43 194 102 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BC266' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.6 3.2-6 6.5-6s5.9 2.4 6.5 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16.5 14c2.6.2 4.4 2.3 5 5'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.wa-card .wp-block-buttons, .wa-card .wp-block-button, .wa-card .wp-block-button__link { width: 100%; }

/* ---------- Cómo participar ---------- */
.qr-row { gap: 1.25rem; margin-block: 1.25rem 1.5rem; }
.qr { margin: 0; flex: none; }
.qr img { padding: 6px; background: var(--wp--preset--color--blanco); border: 1px solid var(--wp--preset--color--arena); border-radius: 12px; }
.qr-link { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* A long unbroken URL can wrap and round the box to 47.9 px; the padding keeps it at 48+. */
.qr-link a { padding-block: 2px; }
@media (max-width: 781px) { .qr { display: none; } }
.time-note { display: flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.time-note::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--icon-clock) center / contain no-repeat; mask: var(--icon-clock) center / contain no-repeat; }
.qr-hint { margin-top: 0.25rem; }
@media (max-width: 781px) { .qr-hint { display: none; } }
.counts-note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--wp--preset--color--crema); border-left: 4px solid var(--wp--preset--color--vino); }
.counts-note > * { margin-block: 0.25rem; }
.counts-note h4 { font-size: 1.0625rem; color: var(--wp--preset--color--vino); }

.dialogs { margin-top: var(--wp--preset--spacing--60) !important; scroll-margin-top: 90px; }
.dialog-card .step-label { margin-bottom: 0.75rem; }
.dialog__date { margin-bottom: 0; padding-top: 1rem; font-weight: 700; color: var(--wp--preset--color--vino); }
.schedule { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 14px; background: var(--wp--preset--color--blanco); box-shadow: var(--shadow-card); }
.schedule__title { margin: 0 0 0.5rem; font-size: 1.0625rem; color: var(--wp--preset--color--vino); }
.schedule__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.schedule__list strong { display: inline-block; min-width: 4.5rem; color: var(--wp--preset--color--ciruela); }
.dialogs-meta { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted); }
/* Soft grey label, no yellow (round 3). */
.notice-bar { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem !important; padding: 0.9rem 1.25rem; border-radius: 14px; background: rgb(34 22 46 / 0.06); font-weight: 600; }
.notice-bar::before { content: ""; width: 1.4em; height: 1.4em; flex: none; background: var(--muted); -webkit-mask: var(--icon-info) center / contain no-repeat; mask: var(--icon-info) center / contain no-repeat; }

/* ---------- Documentos + Concurso ---------- */
.docs-category { margin-top: 2rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 800; color: var(--wp--preset--color--vino); }
.docs-grid { gap: 1.25rem; }
.doc-card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; border-radius: 16px; border: 1px solid rgb(34 22 46 / 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.doc-card h4 { margin-block: 0.5rem; font-size: 1.125rem; }
.doc-category { align-self: flex-start; margin: 0 0 0.75rem; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 700; background: var(--wp--preset--color--crema); color: var(--wp--preset--color--vino); }
.doc-meta { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.contest-card { margin-top: var(--wp--preset--spacing--60) !important; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.contest-poster img { aspect-ratio: 900 / 1265; height: auto; border-radius: 14px; box-shadow: var(--shadow-card); }
.facts { padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--wp--preset--color--coral); transform: rotate(45deg); }
.contest-contact { font-size: 0.875rem; }
@media (max-width: 781px) { .contest-poster { max-width: 260px; margin-inline: auto; } }

/* ---------- Cierre + pie ---------- */
.closing-quote { font-style: italic; font-weight: 500; max-width: 24ch; margin-inline: auto; }
.closing-lead { max-width: 40ch; margin-inline: auto; opacity: 0.94; }
.closing-note { margin-bottom: 0; font-weight: 700; color: var(--wp--preset--color--oro); }
.closing-rule { width: 80px; margin-block: 2.5rem 1.5rem !important; border-color: rgb(255 255 255 / 0.3); }
.closing-credit, .closing-contact { margin-block: 0.25rem; font-size: 0.9375rem; }
.closing-contact a, .section-closing .microtext a { color: var(--wp--preset--color--blanco); }
.toggle--privacy { max-width: 62ch; margin-inline: auto; text-align: center; scroll-margin-top: 110px; }
.toggle--privacy summary { justify-content: center; font-size: 0.875rem; }
.toggle--privacy p { text-align: left; font-size: 0.875rem; }
.toggle--privacy a { color: var(--wp--preset--color--blanco); }
.page-title .wp-block-post-title { margin: 0; }

/* Header logos shrink on phones so all three fit next to the language switch. */
@media (max-width: 781px) {
	.site-header .logo--mundo img { height: 30px !important; }
	.site-header .logo--intendencia img { height: 24px !important; }
	.site-header .logo--coalicion img { height: 32px !important; }
}
@media (max-width: 440px) {
	.site-header { gap: 0.5rem; }
	.site-header .logo-row { gap: 0.5rem; }
	.site-header .logo--mundo img { height: 24px !important; }
	.site-header .logo--intendencia img { height: 18px !important; }
	.site-header .logo--coalicion img { height: 26px !important; }
	.lang-switch a { padding: 0 0.6rem; font-size: 0.8125rem; }
}
