/* AI-Coach · Filtro de agenda. Colores: los del panel del widget (Estilo → Colores), que parten de los colores globales. */
.acf {
	--acf-azul: var(--e-global-color-primary, #0a3b57);
	--acf-acento: var(--e-global-color-lptinta, #17798b);
	--acf-suave: var(--e-global-color-lpc50, #eef8fa);
	--acf-tinta: var(--e-global-color-text, #283239);
	--acf-gris: var(--e-global-color-lpg2, #4a5760);
	--acf-linea: #e2e9ee;
	--acf-borde: var(--e-global-color-rdgrisclaro, #c9d6dd);
	--acf-aviso: var(--e-global-color-lpc100, #d9f1f5);
	font-family: "Inter AI-Coach", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--acf-tinta);
	min-width: 0;
}
.acf * { box-sizing: border-box; margin: 0; }

/* Paso y barra de avance */
.acf__paso { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: 14px 22px 0; border-top: 1px solid var(--acf-linea); }
.acf__etapa { font-weight: 600; color: var(--acf-azul); }
.acf__cuenta { font: 500 13px/1.2 "JetBrains Mono AI-Coach", ui-monospace, monospace; color: var(--acf-gris); }
.acf__avance { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--e-global-color-lplinea, #dde5ea); overflow: hidden; }
.acf__avance i { display: block; height: 100%; background: var(--acf-acento); transform-origin: left; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }

/* Pregunta */
.acf__cuerpo { padding: 18px 22px 22px; }
.acf__cuerpo--agenda { padding: 10px 22px 4px; }
.acf__preg { border: 0; padding: 0; min-width: 0; }
.acf__preg legend { padding: 0; margin-bottom: 4px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--acf-azul); }
.acf__preg legend:focus, .acf__aviso:focus { outline: none; }
.acf__ayuda { margin-bottom: 12px; font-size: 14px; color: var(--acf-gris); }
.acf__filas { display: grid; gap: 8px; }
.acf__fila { position: relative; display: block; cursor: pointer; }
.acf__fila input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.acf__fila span { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--acf-borde); border-radius: 12px; color: var(--acf-tinta); transition: border-color .16s, background-color .16s; }
.acf__fila span::before { content: ""; flex: none; width: 16px; height: 16px; border: 1.5px solid #8fa0ab; border-radius: 50%; background: #fff; transition: border-width .16s, border-color .16s; }
.acf__fila input:hover + span { border-color: var(--acf-azul); }
.acf__fila input:checked + span { border-color: var(--acf-azul); background: var(--acf-suave); }
.acf__fila input:checked + span::before { border: 5px solid var(--acf-azul); }
.acf__fila input:focus-visible + span { outline: 3px solid var(--acf-acento); outline-offset: 2px; }

/* Pie de la pregunta: volver y pista */
.acf__botones { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.acf__pista { font-size: 14px; color: var(--acf-gris); text-align: right; }
/* Selectores dobles: el tema pinta los botones de rosado al pasar el mouse. */
.acf .acf__link, .acf .acf__link:hover, .acf .acf__link:focus {
	padding: 8px 0; border: 0; background: none; box-shadow: none; color: var(--acf-azul); font: 600 14px/1.3 "Inter AI-Coach", sans-serif;
	text-decoration: underline; text-underline-offset: .2em; cursor: pointer; white-space: normal;
}
.acf .acf__link:focus-visible, .acf .acf__btn:focus-visible { outline: 3px solid var(--acf-acento); outline-offset: 2px; }

/* Aviso cuando una respuesta no califica */
.acf__aviso { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--acf-aviso); color: var(--e-global-color-lpazul950, #062536); }
.acf__opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.acf .acf__btn, .acf .acf__btn:hover, .acf .acf__btn:focus {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.35em; border: 0; border-radius: 999px;
	background: var(--acf-azul); color: #fff; font: 600 16px/1 "Inter AI-Coach", sans-serif; text-decoration: none; cursor: pointer;
	transition: transform .16s cubic-bezier(.16, 1, .3, 1);
}
.acf .acf__btn:active { transform: scale(.97); }
.acf .acf__btn--sec, .acf .acf__btn--sec:hover, .acf .acf__btn--sec:focus { background: rgba(10, 59, 87, .08); color: var(--acf-azul); }

@media (max-width: 767px) {
	.acf__paso { padding-inline: 16px; }
	.acf__cuerpo { padding: 16px 16px 20px; }
	.acf__cuerpo--agenda { padding: 8px 16px 4px; }
}
@media (prefers-reduced-motion: reduce) { .acf * { transition: none !important; } }
