/**
 * Tema embed encuesta — INFORME DIGITAL (blanco y negro).
 * Sin bloque brand; sin borde superior accent en .encw-embed.
 */

@font-face {
	font-family: MarcinAntB;
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("/wp-content/fonts/marcinantb-regular-webfont.woff2") format("woff2");
}

@font-face {
	font-family: MarcinAntB;
	font-style: normal;
	font-weight: 600 900;
	font-display: swap;
	src: url("/wp-content/fonts/marcinantb-bold-webfont.woff2") format("woff2");
}

:root {
	--font-serif: "Source Serif 4", Georgia, serif;
	--font-serif-roman: "Source Serif 4", Georgia, serif;
	--font-sans: MarcinAntB, sans-serif;
	--encw-font-serif: "Source Serif 4", Georgia, serif;
	--encw-font-serif-roman: var(--font-serif-roman);
	--encw-font-sans: var(--font-sans);
}

html {
	overflow: visible;
}

.encw-body {
	margin: 0;
	padding: 0;
	font-family: var(--font-serif-roman);
	background: #fff;
	color: #000;
	overflow: visible;
}

.encw-embed {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding: 1.75rem 0 1.75rem;
	border-top: none;
	overflow: visible;
}

/* iframe embebido desde portada / home: sin padding superior en #encw-root (.encw-embed) */
.encw-embed.encw-embed--home {
	padding-top: 0;
}

.encw-status,
.encw-confirm,
.encw-results-note,
.encw-share__copied {
	font-family: var(--font-serif-roman);
}

.encw-status {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.2rem 0.45rem;
	border: 1px solid #000;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #000;
	background: #fff;
}

.encw-status[hidden] {
	display: none;
}

@media (min-width: 769px) {
	/* Escritorio: asegurar sin separación superior en el body del embed */
	.encw-body {
		padding-top: 0;
		margin-top: 0;
	}
}

@media (max-width: 768px) {
	/* Centrar el bloque real de encuesta dentro del iframe en mobile */
	.encw-body {
		display: flex;
		justify-content: center;
		padding-top: 0;
		margin-top: 0;
	}

	.encw-embed {
		width: min(100%, 32rem);
		padding-top: 0;
		margin-top: 0;
		margin-left: auto;
		margin-right: auto;
	}
}

.encw-question {
	margin: 0 0 1rem;
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.25;
	font-weight: 700;
	color: #111;
}

.encw-options {
	list-style: none;
	margin: 1.35rem 0 2.35rem;
	padding: 1rem 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.encw-option label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: #111;
}

.encw-option input[type="radio"] {
	margin-top: 0.2rem;
	accent-color: #000;
}

.encw-option--mine .encw-option-label {
	font-weight: 800;
}

.encw-option-label {
	flex: 1;
}

.encw-actions {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1rem;
	position: relative;
	z-index: 20;
	overflow: visible;
}

.encw-btn-vote {
	display: inline-block;
	margin: 0;
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--encw-font-sans);
	color: #fff;
	background: #000;
	border: 1px solid #000;
	border-radius: 2px;
	cursor: pointer;
}

.encw-btn-vote:hover {
	background: #333;
	border-color: #333;
}

.encw-results--hidden {
	display: none;
	margin: 0;
}

.encw-results {
	margin-top: 0.75rem;
}

@media (min-width: 769px) {
	.encw-results {
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}
}

.encw-confirm {
	margin: 0.85rem 0 0.25rem;
	font-size: 0.875rem;
	line-height: 1.35;
	font-weight: 400;
	color: #000;
}

.encw-confirm strong {
	font-weight: 800;
}

.encw-confirm[hidden],
.encw-results-note[hidden] {
	display: none;
}

.encw-results-note {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #444;
}

/* Tras votar / ya votó: título en negrita; el texto de privacidad sigue en .encw-trust */
.encw-participated {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.875rem;
	line-height: 1.35;
	color: #000;
	font-family: var(--font-serif-roman);
}

.encw-participated strong {
	font-weight: 800;
}

.encw-participated[hidden] {
	display: none;
	margin: 0;
}

.encw-trust {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #444;
	font-family: var(--font-serif-roman);
}

.encw-share {
	margin: 0;
	position: relative;
	z-index: 30;
}

.encw-share[hidden],
.encw-share__menu[hidden],
.encw-share__copied[hidden],
.encw-share__btn[hidden] {
	display: none;
}

.encw-share__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--encw-font-sans);
	border-radius: 2px;
	cursor: pointer;
}

.encw-share__toggle:hover {
	background: #f0f0f0;
}

.encw-share__menu {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	min-width: 13rem;
	border: 1px solid #000;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.encw-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem;
	min-height: 2.25rem;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid #e6e6e6;
	background: transparent;
	color: #111;
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	font-family: var(--encw-font-sans);
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
}

.encw-share__btn svg {
	display: block;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	overflow: visible;
}

.encw-share__btn span {
	display: inline-block;
	line-height: 1.1;
}

.encw-share__btn:hover {
	background: #f0f0f0;
	color: #000;
}

.encw-share__btn:last-child {
	border-bottom: 0;
}

.encw-share__copied {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	color: #444;
}

.encw-result-bars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.encw-result-label {
	font-size: 0.8125rem;
	line-height: 1.25;
	color: #111;
	margin-bottom: 0.8rem;
	font-family: var(--font-serif-roman);
}

.encw-result-row--mine .encw-result-label {
	font-weight: 800;
}

.encw-result-bar-wrap {
	height: 8px;
	background: #e5e5e5;
	border-radius: 2px;
	overflow: hidden;
}

.encw-result-bar-fill {
	height: 100%;
	background: #000;
	border-radius: 2px;
	width: var(--encw-pct, 0%);
	animation: encw-bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes encw-bar-grow {
	from { width: 0%; }
	to   { width: var(--encw-pct, 0%); }
}

@media (prefers-reduced-motion: reduce) {
	.encw-result-bar-fill {
		animation: none;
	}
}

.encw-result-meta {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

.encw-result-pct {
	font-size: 0.75rem;
	font-weight: 700;
	color: #000;
	font-family: var(--font-serif-roman);
}

/* Modal */
.encw-modal {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	min-height: 100%;
	padding: 1.5rem 1rem;
	overflow: auto;
	z-index: 99999;
}

.encw-modal[hidden] {
	display: none;
}

.encw-modal__box {
	position: relative;
	max-width: 22rem;
	width: 100%;
	background: #fff;
	color: #000;
	border: 1px solid #000;
	padding: 1.25rem 1.25rem 1rem;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.encw-modal__close {
	position: absolute;
	top: 0.35rem;
	right: 0.45rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.encw-modal__title,
.encw-modal__text {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	font-family: var(--font-serif);
}

.encw-modal__lead,
.encw-modal__privacy {
	margin: 0 0 0.75rem;
	font-family: var(--font-serif-roman);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #222;
}

.encw-modal__benefits {
	margin: 0 0 0.85rem 1.05rem;
	padding: 0;
	font-family: var(--font-serif-roman);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #111;
}

.encw-modal__privacy {
	font-weight: 700;
	color: #000;
}

.encw-modal__btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.75rem;
	padding: 0.6rem 1rem;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-family: var(--encw-font-sans);
	border-radius: 2px;
	cursor: pointer;
}

.encw-modal__btn--primary {
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.encw-modal__link {
	display: block;
	text-align: center;
	font-size: 0.8125rem;
	color: #000;
	font-family: var(--font-serif-roman);
}

.encw-modal-open {
	overflow: visible;
}
