/* Encuesta Parrillas Argentinas — estilos públicos */
.aem-enc {
	--aem-celeste: #74acdf;
	--aem-celeste-osc: #2f6fa8;
	--aem-sol: #f6b40e;
	--aem-brasa: #c0392b;
	--aem-texto: #1f2933;
	--aem-suave: #5f6b76;
	--aem-borde: #e3e8ee;
	--aem-fondo: #ffffff;
	max-width: 760px;
	margin: 2em auto;
	padding: 24px;
	background: var(--aem-fondo);
	border: 1px solid var(--aem-borde);
	border-top: 6px solid var(--aem-celeste);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(31, 41, 51, .06);
	color: var(--aem-texto);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.aem-enc *, .aem-enc *::before, .aem-enc *::after { box-sizing: border-box; }
.aem-enc [hidden] { display: none !important; }

.aem-enc-titulo { margin: 0 0 4px; font-size: 1.6em; line-height: 1.2; }
.aem-enc-sub { margin: 0 0 10px; color: var(--aem-suave); font-size: .95em; }
.aem-enc-total { font-weight: 700; color: var(--aem-celeste-osc); }
.aem-enc-intro { margin: 0 0 16px; }

.aem-enc-aviso {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	font-weight: 600;
}
.aem-enc-aviso-ok { background: #e8f4fc; color: #1d4f7a; border: 1px solid #b9dbf3; }
.aem-enc-aviso-error { background: #fdecea; color: #8a1f17; border: 1px solid #f5c2bd; }

.aem-enc-buscar {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--aem-borde);
	border-radius: 10px;
	font-size: 1em;
	background: #f7f9fb;
}
.aem-enc-buscar:focus { outline: 2px solid var(--aem-celeste); background: #fff; }
.aem-enc-sugerencia { margin: 8px 2px 0; color: var(--aem-suave); }

.aem-enc-lista { list-style: none; margin: 14px 0 0; padding: 0; }
.aem-enc-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 10px;
	border-bottom: 1px solid var(--aem-borde);
	border-radius: 10px;
	transition: background .3s;
}
.aem-enc-item:last-child { border-bottom: 0; }
.aem-enc-podio-1 { background: linear-gradient(90deg, rgba(246, 180, 14, .14), transparent 70%); }
.aem-enc-mio { background: #eef6fd; }
.aem-enc-destacada { animation: aem-brillo 1.6s ease 2; }
@keyframes aem-brillo { 50% { background: rgba(246, 180, 14, .3); } }

.aem-enc-pos {
	flex: 0 0 34px;
	text-align: center;
	font-weight: 700;
	font-size: 1.15em;
	color: var(--aem-suave);
}
.aem-enc-info { flex: 1 1 200px; min-width: 0; }
.aem-enc-nombre { font-size: 1.05em; margin-right: 6px; }
.aem-enc-zona {
	display: inline-block;
	font-size: .8em;
	color: var(--aem-suave);
	background: #f1f4f7;
	padding: 1px 8px;
	border-radius: 20px;
	vertical-align: middle;
}
.aem-enc-barra {
	display: block;
	height: 8px;
	margin: 7px 0 4px;
	background: #edf1f5;
	border-radius: 8px;
	overflow: hidden;
}
.aem-enc-barra > span {
	display: block;
	height: 100%;
	min-width: 3px;
	background: linear-gradient(90deg, var(--aem-celeste), var(--aem-celeste-osc));
	border-radius: 8px;
	transition: width .6s ease;
}
.aem-enc-podio-1 .aem-enc-barra > span { background: linear-gradient(90deg, var(--aem-sol), #e08e0b); }
.aem-enc-num { font-size: .85em; color: var(--aem-suave); }

.aem-enc-votar, .aem-enc-boton {
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: var(--aem-celeste-osc);
	color: #fff;
	font-weight: 700;
	font-size: .95em;
	padding: 9px 20px;
	cursor: pointer;
	transition: transform .1s, background .2s;
}
.aem-enc-votar:hover, .aem-enc-boton:hover { background: #245a8a; }
.aem-enc-votar:active, .aem-enc-boton:active { transform: scale(.97); }
.aem-enc-boton:disabled { opacity: .6; cursor: wait; }
.aem-enc-tu-voto { font-weight: 700; color: var(--aem-celeste-osc); white-space: nowrap; }

.aem-enc-ver-mas, .aem-enc-link, .aem-enc-cancelar, .aem-enc-copiar {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	color: var(--aem-celeste-osc);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-size: 1em;
}
.aem-enc-ver-mas { display: block; margin: 12px auto 0; }

/* Panel de voto (aparece debajo de la opción elegida) */
.aem-enc-panel-voto {
	flex: 0 0 calc(100% - 46px);
	margin: 6px 0 2px auto;
	padding: 14px;
	background: #f7fbff;
	border: 1px solid #cfe3f5;
	border-radius: 12px;
}
.aem-enc-panel-titulo { margin: 0 0 10px; }
.aem-enc-panel-botones { display: flex; align-items: center; gap: 16px; margin-top: 10px; }

/* Campos */
.aem-enc label > span { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }
.aem-enc input[type="text"], .aem-enc input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfd8e1;
	border-radius: 9px;
	font-size: 1em;
	background: #fff;
}
.aem-enc input[type="text"]:focus, .aem-enc input[type="email"]:focus { outline: 2px solid var(--aem-celeste); border-color: var(--aem-celeste); }
.aem-enc-campo-email { display: block; max-width: 360px; }
.aem-enc-check { display: flex !important; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: .92em; cursor: pointer; }
.aem-enc-check > span { font-weight: 400 !important; margin: 0 !important; font-size: 1em !important; }
.aem-enc-check input { margin-top: 3px; }
.aem-enc-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aem-enc-nota { margin: 10px 0 0; font-size: .8em; color: var(--aem-suave); }

.aem-enc-form {
	margin-top: 22px;
	padding: 18px;
	background: #fafbfc;
	border: 1px dashed #cfd8e1;
	border-radius: 12px;
}
.aem-enc-form h3 { margin: 0 0 12px; font-size: 1.15em; }
.aem-enc-campos { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 12px; }
.aem-enc-form .aem-enc-boton { margin-top: 14px; }

.aem-enc-compartir {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--aem-borde);
	font-size: .95em;
}
.aem-enc-whatsapp {
	display: inline-block;
	background: #25d366;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 7px 16px;
	border-radius: 999px;
}
.aem-enc-vacio { padding: 16px 4px; color: var(--aem-suave); }

.aem-enc .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

@media (max-width: 600px) {
	.aem-enc { padding: 16px; border-radius: 10px; margin: 1em 0; }
	.aem-enc-titulo { font-size: 1.3em; }
	.aem-enc-campos { grid-template-columns: 1fr; }
	.aem-enc-panel-voto { flex-basis: 100%; margin-left: 0; }
	.aem-enc-votar { width: 100%; }
	.aem-enc-pos { flex-basis: 26px; }
}

/* Cuenta regresiva */
.aem-enc-cuenta {
	margin: 4px 0 16px;
	padding: 14px 16px;
	text-align: center;
	background: linear-gradient(135deg, #eaf4fc, #f8fbfe);
	border: 1px solid #cfe3f5;
	border-radius: 12px;
}
.aem-enc-cuenta-titulo { display: block; font-weight: 700; color: var(--aem-celeste-osc); margin-bottom: 8px; }
.aem-enc-cuenta-cajas { display: flex; justify-content: center; gap: 10px; }
.aem-enc-caja {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 66px;
	padding: 8px 6px 6px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(47, 111, 168, .12);
}
.aem-enc-caja strong {
	font-size: 1.9em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--aem-texto);
}
.aem-enc-caja small { font-size: .75em; color: var(--aem-suave); text-transform: uppercase; letter-spacing: .04em; }
.aem-enc-cuenta-fecha { display: block; margin-top: 8px; font-size: .85em; color: var(--aem-suave); }
.aem-enc-cuenta-urgente { background: linear-gradient(135deg, #fff4e0, #fffaf2); border-color: #f3d39a; }
.aem-enc-cuenta-urgente .aem-enc-cuenta-titulo { color: #b36b00; }
.aem-enc-cuenta-urgente .aem-enc-caja strong { color: #b36b00; }

/* Ganadora */
.aem-enc-ganadora {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 4px 0 16px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #fff6d9, #fffdf5);
	border: 1px solid #f3d27a;
	border-radius: 12px;
}
.aem-enc-ganadora-copa { font-size: 2.4em; line-height: 1; }
.aem-enc-ganadora small { display: block; color: var(--aem-suave); }
.aem-enc-ganadora strong { display: block; font-size: 1.4em; line-height: 1.2; }
.aem-enc-ganadora-votos { font-size: .9em; color: #8a6300; font-weight: 600; }

@media (max-width: 600px) {
	.aem-enc-cuenta-cajas { gap: 6px; }
	.aem-enc-caja { min-width: 0; flex: 1; }
	.aem-enc-caja strong { font-size: 1.5em; }
}
