/* Todo cuelga de #asistente-carnaval: el id le gana a los estilos del tema (Elementor) sin usar !important. */
#asistente-carnaval {
	--ac-noche: #10204F;   /* azul del fondo del sitio */
	--ac-rojo: #E30613;
	--ac-amarillo: #FFC20E;
	--ac-verde: #1E9E3A;
	--ac-azul: #1D9BE2;
	--ac-bruma: #F1F3F8;
	--ac-tinta: #1A2142;
	font-family: Poppins, system-ui, sans-serif;
}
#asistente-carnaval button,
#asistente-carnaval input {
	font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none;
	min-height: 0; margin: 0; box-shadow: none; background-image: none;
}
#asistente-carnaval button:focus-visible,
#asistente-carnaval input:focus-visible { outline: 3px solid var(--ac-amarillo); outline-offset: 2px; }

#asistente-carnaval .ac-boton {
	position: fixed; right: 20px; bottom: 20px; z-index: 99998;
	display: grid; place-items: center; width: 60px; height: 60px; padding: 0;
	border: 3px solid var(--ac-amarillo); border-radius: 50%;
	background: var(--ac-rojo); color: #fff; cursor: pointer;
	box-shadow: 0 6px 18px rgba(16, 32, 79, .35);
	transition: transform .15s ease;
}
#asistente-carnaval .ac-boton:hover { background: var(--ac-rojo); color: #fff; transform: scale(1.06); }
#asistente-carnaval .ac-boton[aria-expanded="true"] { transform: scale(.9); }

#asistente-carnaval .ac-panel {
	position: fixed; right: 20px; bottom: 92px; z-index: 99998;
	width: 380px; max-width: calc(100vw - 40px);
	height: 560px; max-height: calc(100vh - 150px); /* deja libre la barra de WordPress y el menú */
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; color: var(--ac-tinta); border-radius: 18px;
	font-size: 15px; line-height: 1.5;
	box-shadow: 0 18px 50px rgba(16, 32, 79, .35);
}
#asistente-carnaval .ac-panel[hidden] { display: none; }

#asistente-carnaval .ac-cabecera {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 14px 14px 18px; background: var(--ac-noche); color: #fff;
}
#asistente-carnaval .ac-titulos { display: flex; flex-direction: column; min-width: 0; }
#asistente-carnaval .ac-titulo { font-size: 17px; font-weight: 700; line-height: 1.25; }
#asistente-carnaval .ac-subtitulo { font-size: 12.5px; opacity: .8; line-height: 1.35; }
#asistente-carnaval .ac-cerrar {
	flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #fff;
	font-size: 26px; line-height: 1; cursor: pointer;
}
#asistente-carnaval .ac-cerrar:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* La franja de colores del logo: el único adorno. */
#asistente-carnaval .ac-franja {
	height: 5px; flex: none;
	background: linear-gradient(90deg, var(--ac-rojo) 0 25%, var(--ac-amarillo) 25% 50%, var(--ac-verde) 50% 75%, var(--ac-azul) 75%);
}

#asistente-carnaval .ac-mensajes {
	flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
	background: #fff;
}
#asistente-carnaval .ac-msg {
	max-width: 85%; padding: 10px 14px; border-radius: 16px;
	white-space: pre-wrap; overflow-wrap: anywhere;
}
#asistente-carnaval .ac-bot { align-self: flex-start; background: var(--ac-bruma); border-bottom-left-radius: 4px; }
#asistente-carnaval .ac-yo { align-self: flex-end; background: var(--ac-noche); color: #fff; border-bottom-right-radius: 4px; }
#asistente-carnaval .ac-error { background: #FDECEA; color: #8A1C14; }
#asistente-carnaval .ac-fuentes {
	margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(26, 33, 66, .12);
	font-size: 13px; white-space: normal;
}
#asistente-carnaval .ac-fuentes a { display: block; color: var(--ac-noche); text-decoration: underline; text-underline-offset: 2px; }
#asistente-carnaval .ac-fuentes a + a { margin-top: 4px; }

#asistente-carnaval .ac-form {
	display: flex; gap: 8px; margin: 0; padding: 12px; border-top: 1px solid rgba(26, 33, 66, .1); background: #fff;
}
#asistente-carnaval .ac-entrada {
	flex: 1; min-width: 0; height: 44px; padding: 0 16px;
	border: 1.5px solid #D5DAE6; border-radius: 22px; background: #fff; color: var(--ac-tinta);
	font-size: 15px;
}
#asistente-carnaval .ac-entrada:focus { border-color: var(--ac-noche); }
#asistente-carnaval .ac-enviar {
	flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 22px;
	background: var(--ac-rojo); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
#asistente-carnaval .ac-enviar:hover { background: #C10510; color: #fff; }
#asistente-carnaval .ac-enviar:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
	#asistente-carnaval .ac-boton { right: 14px; bottom: 14px; }
	#asistente-carnaval .ac-panel { right: 8px; bottom: 84px; width: calc(100vw - 16px); max-width: none; max-height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) {
	#asistente-carnaval .ac-boton { transition: none; }
}
