/**
 * Chatbot Dev - estilos exclusivos para la version de desarrollo.
 * Identidad Lyncott: rojo de accion, fondos calidos y tarjetas claras.
 */

:root {
	--lc-red: #C91F2E;
	--lc-red-dark: #A81830;
	--lc-red-soft: #FCE5E4;
	--lc-cream: #FFF8F1;
	--lc-warm: #F4EFE9;
	--lc-white: #FFFFFF;
	--lc-ink: #171717;
	--lc-muted: #65666A;
	--lc-line: #E9E2DC;
	--lc-green: #168A55;
	--lc-shadow-sm: 0 6px 18px rgba(29, 24, 20, 0.08);
	--lc-shadow-md: 0 18px 45px rgba(33, 24, 18, 0.12);
	--lc-radius-lg: 22px;
	--lc-radius: 16px;
	--lc-radius-sm: 10px;
	--lc-transition: 180ms ease;
}

section.onda-first-section {
	padding-bottom: 80px !important;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,248,241,0.72) 100%);
}

.header-seccion-interna {
	height: auto;
	min-height: 36vh;
}

.lyncott-chat-app {
	display: grid;
	grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.82);
	border-radius: var(--lc-radius-lg);
	box-shadow: var(--lc-shadow-md);
	overflow: hidden;
	max-width: 1180px;
	margin: 0 auto;
	height: min(720px, calc(100vh - 140px));
	min-height: 650px;
	position: relative;
}

.lyncott-chat-sidebar {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,248,241,0.96) 100%),
		linear-gradient(90deg, rgba(201,31,46,0.06), rgba(255,255,255,0));
	border-right: 1px solid var(--lc-line);
	display: flex;
	flex-direction: column;
	padding: 28px;
	overflow-y: auto;
}

.lyncott-sidebar-topline,
.lyncott-chat-header {
	display: flex;
	align-items: center;
}

.lyncott-sidebar-topline {
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
	min-height: 42px;
}

.lyncott-chat-brand-logo {
	display: block;
	width: auto;
	max-width: 156px;
	max-height: 46px;
	object-fit: contain;
}

.lyncott-chat-brand-wordmark {
	color: var(--lc-red);
	font-size: 32px;
	font-style: italic;
	font-weight: 800;
	line-height: 1;
}

.lyncott-chat-dev-badge {
	border: 1px solid rgba(201, 31, 46, 0.22);
	border-radius: 999px;
	color: var(--lc-red-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	padding: 5px 9px;
	background: rgba(255,255,255,0.74);
}

.lyncott-avatar-stage {
	position: relative;
	min-height: 360px;
	border-radius: var(--lc-radius);
	overflow: hidden;
	background: var(--lc-warm);
	box-shadow: var(--lc-shadow-sm);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 28px 20px 22px;
	margin-bottom: 22px;
}

.lyncott-avatar-kitchen {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.9)),
		linear-gradient(90deg, transparent 0 18%, rgba(155,109,72,0.18) 18% 19%, transparent 19% 100%),
		linear-gradient(180deg, transparent 0 38%, rgba(126,87,55,0.22) 38% 39%, transparent 39% 100%),
		linear-gradient(135deg, #E7D7C8 0%, #F7EFE7 52%, #F8D9D6 100%);
}

.lyncott-avatar-container {
	position: relative;
	width: 168px;
	height: 168px;
	margin: 0 auto 74px;
	z-index: 2;
}

.lyncott-avatar-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--lc-red);
	color: var(--lc-white);
	font-weight: 800;
	text-align: center;
	flex-shrink: 0;
	user-select: none;
}

.lyncott-avatar-lg {
	width: 168px;
	height: 168px;
	font-size: 38px;
	line-height: 1;
	box-shadow: 0 12px 34px rgba(201, 31, 46, 0.24);
	position: relative;
	flex-direction: column;
	gap: 8px;
}

.lyncott-avatar-lg::after {
	content: "";
	position: absolute;
	bottom: -24px;
	width: 126px;
	height: 72px;
	border-radius: 64px 64px 18px 18px;
	background: #fff;
	border: 3px solid rgba(201, 31, 46, 0.18);
	z-index: -1;
}

.lyncott-avatar-hat {
	width: 76px;
	height: 38px;
	display: block;
	background: #fff;
	border-radius: 36px 36px 12px 12px;
	border: 2px solid rgba(201,31,46,0.12);
	box-shadow:
		-18px 8px 0 -4px #fff,
		18px 8px 0 -4px #fff,
		0 18px 0 -8px #fff;
}

.lyncott-avatar-sm {
	width: 38px;
	height: 38px;
	font-size: 15px;
}

.lyncott-avatar-xs {
	width: 34px;
	height: 34px;
	font-size: 13px;
	box-shadow: 0 8px 18px rgba(201,31,46,0.18);
}

.lyncott-avatar-video-wrap {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	background: var(--lc-red-soft);
	box-shadow: 0 12px 34px rgba(201, 31, 46, 0.24);
}

.lyncott-avatar-video-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lyncott-avatar-signal {
	position: absolute;
	left: 24px;
	right: 24px;
	top: 142px;
	z-index: 1;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	opacity: 0.28;
}

.lyncott-avatar-signal span {
	display: block;
	width: 22%;
	height: 2px;
	border-radius: 999px;
	background: rgba(255,255,255,0.88);
	box-shadow: 0 0 0 1px rgba(201,31,46,0.08);
	transform-origin: center;
}

.lyncott-avatar-stage[data-avatar-state="talking"] .lyncott-avatar-signal {
	opacity: 0.8;
}

.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-signal {
	opacity: 0.56;
}

.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-signal span {
	animation: lc-thinking 1.1s ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-signal span:nth-child(2),
.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-signal span:nth-child(4) {
	animation-delay: 140ms;
}

.lyncott-avatar-stage[data-avatar-state="talking"] .lyncott-avatar-signal span {
	animation: lc-wave 900ms ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="talking"] .lyncott-avatar-signal span:nth-child(2) {
	animation-delay: 120ms;
}

.lyncott-avatar-stage[data-avatar-state="talking"] .lyncott-avatar-signal span:nth-child(3) {
	animation-delay: 240ms;
}

.lyncott-avatar-stage[data-avatar-state="talking"] .lyncott-avatar-signal span:nth-child(4) {
	animation-delay: 360ms;
}

.lyncott-avatar-card,
.lyncott-sidebar-welcome,
.lyncott-empty-card,
.lyncott-msg-bot .lyncott-msg-bubble {
	background: rgba(255,255,255,0.96);
	border: 1px solid rgba(233,226,220,0.9);
	box-shadow: var(--lc-shadow-sm);
}

.lyncott-avatar-card {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 22px;
	border-radius: var(--lc-radius);
	padding: 15px 16px;
	z-index: 4;
}

.lyncott-avatar-card p,
.lyncott-sidebar-welcome p {
	margin: 0 0 7px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lc-ink);
}

.lyncott-avatar-card p:last-child,
.lyncott-sidebar-welcome p:last-child {
	margin-bottom: 0;
}

.lyncott-sidebar-name {
	font-size: 24px;
	font-weight: 800;
	color: var(--lc-ink);
	margin: 0 0 3px;
}

.lyncott-sidebar-subtitle {
	font-size: 14px;
	color: var(--lc-muted);
	margin: 0 0 18px;
}

.lyncott-sidebar-welcome {
	border-radius: var(--lc-radius);
	padding: 15px 16px;
	width: 100%;
	margin-bottom: 18px;
}

.lyncott-sidebar-suggestions,
.lyncott-empty-suggestions {
	display: flex;
	flex-direction: column;
	gap: 9px;
	width: 100%;
}

.lyncott-suggestion-btn {
	background: rgba(255,255,255,0.94);
	border: 1px solid rgba(233,226,220,0.95);
	border-radius: 12px;
	padding: 11px 13px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lc-ink);
	cursor: pointer;
	text-align: left;
	transition: border-color var(--lc-transition), color var(--lc-transition), background var(--lc-transition), transform var(--lc-transition), box-shadow var(--lc-transition);
	line-height: 1.35;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

.lyncott-suggestion-btn span[aria-hidden="true"] {
	border-radius: 999px;
	background: var(--lc-red-soft);
	color: var(--lc-red-dark);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	padding: 5px 7px;
	white-space: nowrap;
}

.lyncott-suggestion-btn:hover {
	border-color: rgba(201,31,46,0.38);
	background: #fff;
	color: var(--lc-red-dark);
	box-shadow: 0 8px 18px rgba(201,31,46,0.08);
	transform: translateY(-1px);
}

.lyncott-suggestion-btn:focus-visible,
.lyncott-new-chat-btn:focus-visible,
.lyncott-input-icon-btn:focus-visible,
.lyncott-send-btn:focus-visible,
.lyncott-action-btn:focus-visible {
	outline: 3px solid rgba(201, 31, 46, 0.34);
	outline-offset: 2px;
}

.lyncott-chat-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background:
		linear-gradient(180deg, #fff 0%, #fff 18%, #FCFAF8 100%);
}

.lyncott-chat-header {
	justify-content: space-between;
	gap: 16px;
	padding: 20px 26px;
	border-bottom: 1px solid var(--lc-line);
	background: rgba(255,255,255,0.98);
	flex-shrink: 0;
	min-height: 80px;
}

.lyncott-chat-header-left {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.lyncott-header-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lyncott-header-name {
	font-size: 16px;
	font-weight: 800;
	color: var(--lc-ink);
}

.lyncott-header-status {
	font-size: 12px;
	color: var(--lc-green);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lyncott-chat-header-links {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.lyncott-header-topic {
	min-height: 38px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 13px;
}

.lyncott-header-topic svg {
	width: 16px;
	height: 16px;
	color: var(--lc-ink);
}

.lyncott-new-chat-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--lc-red);
	border: 1px solid var(--lc-red);
	border-radius: 14px;
	padding: 11px 18px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 800;
	color: var(--lc-white);
	cursor: pointer;
	transition: background var(--lc-transition), border-color var(--lc-transition), transform var(--lc-transition), box-shadow var(--lc-transition);
	white-space: nowrap;
}

.lyncott-new-chat-btn:hover {
	background: var(--lc-red-dark);
	border-color: var(--lc-red-dark);
	box-shadow: 0 12px 24px rgba(201,31,46,0.22);
	transform: translateY(-1px);
}

.lyncott-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 22px 30px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-behavior: smooth;
	background:
		linear-gradient(90deg, rgba(201,31,46,0.04) 0, rgba(201,31,46,0) 34%),
		linear-gradient(180deg, #FEFEFE 0%, #FCFAF8 100%);
}

.lyncott-chat-messages::-webkit-scrollbar {
	width: 7px;
}

.lyncott-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

.lyncott-chat-messages::-webkit-scrollbar-thumb {
	background: #D8D0C8;
	border-radius: 999px;
}

.lyncott-chat-empty {
	min-height: 100%;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	animation: lc-fade-in 260ms ease;
}

.lyncott-empty-avatar {
	width: 44px;
	height: 44px;
	align-self: start;
	margin-top: 34px;
}

.lyncott-empty-card {
	border-radius: var(--lc-radius);
	padding: 22px;
	max-width: 560px;
}

.lyncott-empty-kicker {
	margin: 0 0 7px;
	color: var(--lc-red-dark);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
}

.lyncott-empty-card h2 {
	margin: 0 0 8px;
	color: var(--lc-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.lyncott-empty-card p {
	margin: 0 0 18px;
	color: var(--lc-ink);
	font-size: 14px;
	line-height: 1.65;
}

.lyncott-suggestion-chip {
	flex-direction: row;
	justify-content: space-between;
	padding: 11px 14px;
}

.lyncott-msg-user,
.lyncott-msg-bot {
	animation: lc-fade-in 220ms ease;
}

.lyncott-msg-user {
	display: flex;
	justify-content: flex-end;
}

.lyncott-msg-user .lyncott-msg-bubble {
	background: var(--lc-red-soft);
	color: var(--lc-ink);
	border: 1px solid rgba(201,31,46,0.12);
	border-radius: var(--lc-radius) var(--lc-radius) 6px var(--lc-radius);
	max-width: min(76%, 520px);
	padding: 12px 15px 18px;
	font-size: 14px;
	line-height: 1.6;
	word-wrap: break-word;
	position: relative;
}

.lyncott-msg-user .lyncott-msg-bubble::after {
	content: "Tú";
	position: absolute;
	right: 14px;
	bottom: 5px;
	color: rgba(23,23,23,0.46);
	font-size: 10px;
	font-weight: 700;
}

.lyncott-msg-bot {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: flex-start;
}

.lyncott-msg-bot-content {
	max-width: min(82%, 640px);
	min-width: 0;
}

.lyncott-msg-bot .lyncott-msg-bubble {
	border-radius: var(--lc-radius) var(--lc-radius) var(--lc-radius) 6px;
	padding: 16px 18px;
	color: var(--lc-ink);
	font-size: 14px;
	line-height: 1.72;
	word-wrap: break-word;
}

.lyncott-msg-bot .lyncott-msg-bubble p {
	margin: 0 0 12px;
}

.lyncott-msg-bot .lyncott-msg-bubble p:last-child {
	margin-bottom: 0;
}

.lyncott-msg-bot .lyncott-msg-bubble strong {
	font-weight: 800;
}

.lyncott-msg-bot .lyncott-msg-bubble h3,
.lyncott-msg-bot .lyncott-msg-bubble h4 {
	margin: 16px 0 8px;
	color: var(--lc-red-dark);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.lyncott-msg-bot .lyncott-msg-bubble h3:first-child,
.lyncott-msg-bot .lyncott-msg-bubble h4:first-child {
	margin-top: 0;
}

.lyncott-msg-bot .lyncott-msg-bubble ul,
.lyncott-msg-bot .lyncott-msg-bubble ol {
	margin: 10px 0 12px;
	padding-left: 22px;
}

.lyncott-msg-bot .lyncott-msg-bubble li {
	margin-bottom: 6px;
}

.lyncott-msg-bot .lyncott-msg-bubble a {
	color: var(--lc-red-dark);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lyncott-msg-bot .lyncott-msg-divider {
	border: 0;
	border-top: 1px solid var(--lc-line);
	margin: 14px 0;
}

.lyncott-msg-source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
	font-size: 12px;
	color: var(--lc-red-dark);
	font-weight: 800;
}

.lyncott-msg-source svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.lyncott-msg-source a {
	color: inherit;
	text-decoration: none;
}

.lyncott-msg-source a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lyncott-msg-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	min-height: 30px;
	opacity: 0.78;
	transition: opacity var(--lc-transition);
}

.lyncott-msg-bot:hover .lyncott-msg-actions,
.lyncott-msg-actions:focus-within {
	opacity: 1;
}

.lyncott-action-btn {
	background: transparent;
	border: 1px solid transparent;
	padding: 6px;
	cursor: pointer;
	color: var(--lc-muted);
	border-radius: 8px;
	transition: background var(--lc-transition), border-color var(--lc-transition), color var(--lc-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
}

.lyncott-action-btn:hover {
	background: #fff;
	border-color: var(--lc-line);
	color: var(--lc-ink);
}

.lyncott-action-btn.lyncott-action-active {
	background: var(--lc-red-soft);
	border-color: rgba(201,31,46,0.2);
	color: var(--lc-red-dark);
}

.lyncott-action-btn svg {
	width: 15px;
	height: 15px;
}

.lyncott-chat-typing {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 30px 10px;
	animation: lc-fade-in 220ms ease;
	background: #FCFAF8;
}

.lyncott-typing-dots {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: var(--lc-radius) var(--lc-radius) var(--lc-radius) 6px;
	color: var(--lc-muted);
	font-size: 12px;
	font-weight: 700;
	box-shadow: var(--lc-shadow-sm);
}

.lyncott-typing-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lc-red);
	animation: lc-bounce 1.2s infinite;
}

.lyncott-typing-dots i:nth-child(3) {
	animation-delay: 0.16s;
}

.lyncott-typing-dots i:nth-child(4) {
	animation-delay: 0.32s;
}

.lyncott-chat-error {
	padding: 10px 24px;
	background: #FFF4D7;
	border-top: 1px solid #F1CD75;
	color: #73520D;
	font-size: 13px;
	display: none;
}

.lyncott-chat-error.visible {
	display: block;
}

.lyncott-chat-input-wrap {
	border-top: 1px solid var(--lc-line);
	padding: 14px 24px 16px;
	background: rgba(255,255,255,0.98);
	flex-shrink: 0;
}

.lyncott-chat-input-row {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	background: #fff;
	border-radius: 999px;
	padding: 8px 10px;
	border: 1px solid var(--lc-line);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 22px rgba(29,24,20,0.05);
	transition: border-color var(--lc-transition), box-shadow var(--lc-transition);
}

.lyncott-chat-input-row:focus-within {
	border-color: rgba(201,31,46,0.48);
	box-shadow: 0 0 0 4px rgba(201,31,46,0.08);
}

.lyncott-input-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #F8F5F2;
	border: 1px solid var(--lc-line);
	border-radius: 12px;
	cursor: pointer;
	color: var(--lc-muted);
	flex-shrink: 0;
	transition: background var(--lc-transition), color var(--lc-transition), border-color var(--lc-transition);
}

.lyncott-input-icon-btn:hover {
	background: var(--lc-red-soft);
	border-color: rgba(201,31,46,0.2);
	color: var(--lc-red-dark);
}

.lyncott-image-preview {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.lyncott-image-preview img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--lc-line);
}

.lyncott-image-remove-btn {
	background: var(--lc-red);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--lc-transition), transform var(--lc-transition);
}

.lyncott-image-remove-btn:hover {
	background: var(--lc-red-dark);
	transform: scale(1.06);
}

.lyncott-chat-textarea {
	flex: 1;
	border: none;
	background: transparent;
	resize: none;
	font-size: 14px;
	line-height: 1.5;
	padding: 10px 4px;
	color: var(--lc-ink);
	font-family: inherit;
	max-height: 120px;
	overflow-y: auto;
	outline: none;
	min-height: 40px;
}

.lyncott-chat-textarea::placeholder {
	color: #77787B;
}

.lyncott-chat-textarea:disabled {
	opacity: 0.72;
}

.lyncott-send-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--lc-red);
	color: var(--lc-white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
	transition: background var(--lc-transition), transform var(--lc-transition), opacity var(--lc-transition), box-shadow var(--lc-transition);
}

.lyncott-send-btn:hover {
	background: var(--lc-red-dark);
	box-shadow: 0 12px 24px rgba(201,31,46,0.24);
	transform: translateY(-1px) scale(1.03);
}

.lyncott-send-btn:disabled {
	opacity: 0.44;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.nota-info {
	color: var(--lc-muted);
	font-size: 11px;
	line-height: 1.45;
	margin: 10px auto 0;
	text-align: center;
	max-width: 780px;
}

#controlesk {
	display: none !important;
}

@keyframes lc-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes lc-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.42; }
	30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes lc-wave {
	0%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(7); }
}

@keyframes lc-thinking {
	0%, 100% { transform: scaleX(0.72); opacity: 0.45; }
	50% { transform: scaleX(1); opacity: 0.92; }
}

@media screen and (max-width: 1024px) {
	.lyncott-chat-app {
		grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
		height: min(700px, calc(100vh - 120px));
	}

	.lyncott-chat-sidebar {
		padding: 22px;
	}

	.lyncott-avatar-stage {
		min-height: 310px;
	}

	.lyncott-avatar-container,
	.lyncott-avatar-lg,
	.lyncott-avatar-video-wrap {
		width: 132px;
		height: 132px;
	}

	.lyncott-avatar-lg {
		font-size: 30px;
	}

	.lyncott-avatar-hat {
		width: 62px;
		height: 31px;
	}

	.lyncott-chat-header {
		padding: 16px 20px;
	}

	.lyncott-chat-header-links {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	section.onda-first-section {
		padding-bottom: 44px !important;
	}

	.lyncott-chat-app {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 82vh;
		border-radius: 18px;
		margin: 0 -8px;
	}

	.lyncott-chat-sidebar {
		flex: 0 0 auto;
		padding: 14px;
		border-right: none;
		border-bottom: 1px solid var(--lc-line);
		overflow: visible;
	}

	.lyncott-sidebar-topline {
		margin-bottom: 12px;
	}

	.lyncott-avatar-stage {
		min-height: 280px;
		margin-bottom: 12px;
	}

	.lyncott-sidebar-name,
	.lyncott-sidebar-subtitle,
	.lyncott-sidebar-welcome,
	.lyncott-sidebar-suggestions {
		display: none;
	}

	.lyncott-chat-header {
		min-height: 64px;
		padding: 12px 14px;
	}

	.lyncott-header-status {
		max-width: 170px;
	}

	.lyncott-new-chat-btn {
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 50%;
		font-size: 0;
	}

	.lyncott-chat-messages {
		min-height: 360px;
		padding: 16px 14px 22px;
	}

	.lyncott-chat-empty {
		align-items: start;
		padding-top: 8px;
	}

	.lyncott-msg-bot-content,
	.lyncott-msg-user .lyncott-msg-bubble {
		max-width: 92%;
	}

	.lyncott-chat-input-wrap {
		padding: 10px 12px 12px;
	}
}

@media screen and (max-width: 480px) {
	.lyncott-chat-app {
		margin: 0 -15px;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.lyncott-avatar-stage {
		min-height: 220px;
		padding: 18px 14px;
	}

	.lyncott-avatar-card {
		left: 14px;
		right: 14px;
		bottom: 14px;
		padding: 13px;
	}

	.lyncott-avatar-card p {
		font-size: 13px;
	}

	.lyncott-avatar-container,
	.lyncott-avatar-lg,
	.lyncott-avatar-video-wrap {
		width: 96px;
		height: 96px;
	}

	.lyncott-avatar-container {
		margin-bottom: 66px;
	}

	.lyncott-avatar-lg {
		font-size: 22px;
	}

	.lyncott-avatar-hat {
		width: 48px;
		height: 24px;
	}

	.lyncott-chat-messages {
		gap: 13px;
		min-height: 330px;
	}

	.lyncott-chat-empty {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.lyncott-empty-avatar {
		display: none;
	}

	.lyncott-empty-card {
		padding: 16px;
	}

	.lyncott-empty-card h2 {
		font-size: 18px;
	}

	.lyncott-msg-bot {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 8px;
	}

	.lyncott-avatar-xs {
		width: 30px;
		height: 30px;
	}

	.lyncott-msg-bot .lyncott-msg-bubble,
	.lyncott-msg-user .lyncott-msg-bubble {
		font-size: 13px;
		max-width: 96%;
	}

	.lyncott-msg-bot-content {
		max-width: 100%;
	}

	.lyncott-chat-input-row {
		border-radius: 18px;
		align-items: flex-end;
	}

	.lyncott-input-icon-btn {
		width: 38px;
		height: 38px;
	}

	.lyncott-send-btn {
		width: 42px;
		height: 42px;
	}

	.nota-info {
		font-size: 10px;
	}
}

/* =====================================================
   Segunda iteracion UX: app mas amplia y scroll interno
   ===================================================== */

section.onda-first-section main > .container {
	width: min(1580px, calc(100vw - 48px));
	max-width: min(1580px, calc(100vw - 48px));
}

body:has(.lyncott-chat-app) {
	overflow: hidden;
}

body:has(.lyncott-chat-app) .header-seccion-interna,
body:has(.lyncott-chat-app) .mask-onda-fs,
body:has(.lyncott-chat-app) footer.site-footer {
	display: none !important;
}

body:has(.lyncott-chat-app) section.onda-first-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 24px !important;
}

body:has(.lyncott-chat-app) section.onda-first-section main {
	width: 100%;
	margin-top: 0 !important;
}

body.page-template-page-chat-dev,
body.page-template-page-chat-dev-php {
	overflow: hidden;
}

body.page-template-page-chat-dev .header-seccion-interna,
body.page-template-page-chat-dev-php .header-seccion-interna,
body.page-template-page-chat-dev .mask-onda-fs,
body.page-template-page-chat-dev-php .mask-onda-fs,
body.page-template-page-chat-dev footer.site-footer,
body.page-template-page-chat-dev-php footer.site-footer {
	display: none !important;
}

body.page-template-page-chat-dev section.onda-first-section,
body.page-template-page-chat-dev-php section.onda-first-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 24px !important;
}

body.page-template-page-chat-dev section.onda-first-section main,
body.page-template-page-chat-dev-php section.onda-first-section main {
	width: 100%;
	margin-top: 0 !important;
}

section.onda-first-section {
	padding-bottom: 36px !important;
}

.header-seccion-interna {
	min-height: 22vh;
}

.lyncott-chat-app {
	width: 100%;
	max-width: 1580px;
	height: clamp(740px, 88vh, 930px);
	min-height: min(740px, 88vh);
	grid-template-columns: minmax(320px, 30%) minmax(0, 70%);
}

.lyncott-chat-main {
	min-height: 0;
	overflow: hidden;
}

.lyncott-chat-header {
	padding: 16px 26px;
	min-height: 72px;
	flex-shrink: 0;
}

.lyncott-new-chat-btn {
	position: relative;
	z-index: 3;
}

.lyncott-chat-sidebar {
	min-height: 0;
	padding: 22px 26px;
	overflow-y: auto;
}

.lyncott-sidebar-topline {
	margin-bottom: 16px;
}

.lyncott-avatar-stage {
	min-height: 300px;
	padding: 20px 18px 18px;
	margin-bottom: 16px;
}

.lyncott-avatar-container,
.lyncott-avatar-lg,
.lyncott-avatar-video-wrap {
	width: 132px;
	height: 132px;
}

.lyncott-avatar-container {
	margin-bottom: 72px;
}

.lyncott-avatar-lg {
	font-size: 30px;
}

.lyncott-avatar-lg::after {
	width: 104px;
	height: 58px;
	bottom: -18px;
}

.lyncott-avatar-hat {
	width: 62px;
	height: 31px;
}

.lyncott-avatar-signal {
	top: 118px;
}

.lyncott-avatar-card {
	left: 16px;
	right: 16px;
	bottom: 16px;
	padding: 13px 14px;
}

.lyncott-avatar-card p,
.lyncott-sidebar-welcome p {
	font-size: 13px;
	line-height: 1.48;
}

.lyncott-sidebar-name {
	font-size: 20px;
}

.lyncott-sidebar-subtitle {
	margin-bottom: 12px;
}

.lyncott-sidebar-welcome {
	padding: 13px 14px;
	margin-bottom: 14px;
}

.lyncott-sidebar-suggestions {
	gap: 8px;
}

.lyncott-suggestion-btn {
	min-height: 42px;
	padding: 10px 13px;
}

.lyncott-chat-messages {
	min-height: 0;
	padding: 24px 34px 76px;
	gap: 22px;
	overscroll-behavior: contain;
	scroll-padding-bottom: 88px;
}

.lyncott-chat-empty {
	align-items: start;
	padding-top: 22px;
}

.lyncott-empty-card {
	max-width: 720px;
}

.lyncott-msg-user .lyncott-msg-bubble {
	max-width: min(75%, 780px);
	font-size: 15px;
	line-height: 1.62;
}

.lyncott-msg-bot-content {
	max-width: min(85%, 980px);
}

.lyncott-msg-bot .lyncott-msg-bubble {
	padding: 20px 24px;
	font-size: 15px;
	line-height: 1.75;
}

.lyncott-msg-bot .lyncott-msg-bubble p {
	margin-bottom: 15px;
}

.lyncott-msg-bot .lyncott-msg-bubble h3,
.lyncott-msg-bot .lyncott-msg-bubble h4 {
	margin: 22px 0 10px;
	font-size: 16px;
}

.lyncott-msg-bot .lyncott-msg-bubble ul,
.lyncott-msg-bot .lyncott-msg-bubble ol {
	margin: 12px 0 18px;
	padding-left: 30px;
}

.lyncott-msg-bot .lyncott-msg-bubble li {
	margin-bottom: 8px;
	padding-left: 2px;
}

.lyncott-chat-typing {
	flex-shrink: 0;
	padding: 0 34px 12px;
}

.lyncott-chat-input-wrap {
	flex-shrink: 0;
	padding: 18px 26px 18px;
}

.lyncott-chat-input-row {
	border-radius: 20px;
	gap: 12px;
	padding: 12px 14px;
}

.lyncott-chat-textarea {
	min-height: 54px;
	max-height: 162px;
	font-size: 15px;
	line-height: 1.5;
	padding: 15px 6px 10px;
}

.lyncott-input-icon-btn {
	width: 54px;
	height: 54px;
	border-radius: 14px;
}

.lyncott-send-btn {
	width: 58px;
	height: 58px;
}

.lyncott-send-btn svg {
	width: 24px;
	height: 24px;
}

.lyncott-image-preview img {
	width: 56px;
	height: 56px;
}

.nota-info {
	margin-top: 8px;
}

.lyncott-recipe-response {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,246,0.98));
}

.lyncott-recipe-title {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lc-line);
	color: var(--lc-ink);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
}

.lyncott-recipe-intro {
	margin-bottom: 18px;
	color: var(--lc-ink);
}

.lyncott-recipe-card {
	margin: 16px 0;
	padding: 16px 18px;
	border: 1px solid rgba(233,226,220,0.95);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(29, 24, 20, 0.06);
}

.lyncott-recipe-card:first-child {
	margin-top: 0;
}

.lyncott-recipe-card h4 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px !important;
	color: var(--lc-red-dark) !important;
	font-size: 16px !important;
	font-weight: 800;
	line-height: 1.25;
}

.lyncott-recipe-card h4::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lc-red);
	box-shadow: 0 0 0 5px var(--lc-red-soft);
	flex: 0 0 auto;
}

.lyncott-recipe-card ul,
.lyncott-recipe-card ol {
	margin-bottom: 0 !important;
	padding-left: 32px !important;
}

.lyncott-recipe-card p:last-child,
.lyncott-recipe-card ul:last-child,
.lyncott-recipe-card ol:last-child {
	margin-bottom: 0 !important;
}

@media screen and (min-width: 1025px) {
	body {
		overflow-x: hidden;
	}
}

@media screen and (min-width: 769px) and (max-width: 1320px) {
	section.onda-first-section main > .container {
		width: min(100%, calc(100vw - 32px));
		max-width: min(100%, calc(100vw - 32px));
	}

	.lyncott-chat-app {
		grid-template-columns: minmax(280px, 32%) minmax(0, 68%);
		height: clamp(690px, 86vh, 860px);
		min-height: min(690px, 86vh);
	}

	.lyncott-chat-sidebar {
		padding: 18px;
	}

	.lyncott-avatar-stage {
		min-height: 260px;
	}

	.lyncott-chat-messages {
		padding: 20px 24px 68px;
	}

	.lyncott-msg-bot-content {
		max-width: 88%;
	}
}

@media screen and (max-width: 768px) {
	section.onda-first-section main > .container {
		width: auto;
		max-width: none;
	}

	.lyncott-chat-app {
		height: min(88vh, 820px);
		min-height: 680px;
	}

	.lyncott-chat-sidebar {
		max-height: 260px;
		overflow-y: auto;
	}

	.lyncott-avatar-stage {
		min-height: 220px;
	}

	.lyncott-chat-main {
		flex: 1;
	}

	.lyncott-chat-messages {
		min-height: 0;
		padding-bottom: 68px;
	}
}

@media screen and (max-width: 480px) {
	.lyncott-chat-app {
		height: min(90vh, 780px);
		min-height: 620px;
	}

	.lyncott-chat-sidebar {
		max-height: 230px;
	}

	.lyncott-chat-input-row {
		gap: 8px;
		padding: 9px 10px;
	}

	.lyncott-chat-textarea {
		min-height: 48px;
		max-height: 144px;
		font-size: 14px;
		padding-top: 12px;
	}

	.lyncott-input-icon-btn,
	.lyncott-send-btn {
		width: 46px;
		height: 46px;
	}

	.lyncott-msg-bot .lyncott-msg-bubble {
		padding: 16px;
	}

	.lyncott-recipe-title {
		font-size: 18px;
	}

	.lyncott-recipe-card {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =====================================================
   Avatar D-ID: estados explicitos y capas seguras
   ===================================================== */

.lyncott-avatar-stage {
	isolation: isolate;
}

.lyncott-avatar-kitchen {
	z-index: 1;
}

.lyncott-avatar-container {
	z-index: 3;
}

.lyncott-avatar-fallback {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--lc-transition), visibility var(--lc-transition), transform var(--lc-transition);
}

.lyncott-avatar-video-wrap {
	display: block !important;
	z-index: 3;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--lc-transition), visibility var(--lc-transition);
}

.lyncott-avatar-video-wrap video {
	display: block;
	background: transparent;
}

.lyncott-avatar-loading {
	position: absolute;
	left: 18px;
	right: 18px;
	top: 18px;
	z-index: 4;
	border: 1px solid rgba(201, 31, 46, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--lc-red-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	padding: 9px 12px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--lc-transition), visibility var(--lc-transition), transform var(--lc-transition);
}

.lyncott-avatar-sound-toggle {
	position: absolute;
	right: 18px;
	bottom: 128px;
	z-index: 5;
	border: 1px solid rgba(201, 31, 46, 0.24);
	border-radius: 999px;
	background: var(--lc-red);
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 10px 12px;
	box-shadow: 0 10px 22px rgba(201, 31, 46, 0.2);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity var(--lc-transition), visibility var(--lc-transition), transform var(--lc-transition), background var(--lc-transition);
}

.lyncott-avatar-sound-toggle:hover {
	background: var(--lc-red-dark);
}

.lyncott-avatar-sound-toggle:focus-visible {
	outline: 3px solid rgba(201, 31, 46, 0.34);
	outline-offset: 2px;
}

.lyncott-avatar-sound-toggle.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.lyncott-avatar-debug {
	position: absolute;
	left: 10px;
	right: auto;
	bottom: 8px;
	z-index: 20;
	width: min(240px, calc(100% - 20px));
	max-height: 74px;
	overflow: auto;
	margin: 0;
	padding: 7px 8px;
	border-radius: 8px;
	background: rgba(23, 23, 23, 0.72);
	color: #fff;
	font-size: 9px;
	line-height: 1.35;
	text-align: left;
	white-space: pre-wrap;
	pointer-events: none;
}

.lyncott-avatar-stage[data-avatar-state="idle"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="loading"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="fallback"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="error"] .lyncott-avatar-fallback {
	opacity: 1;
	visibility: visible;
}

.lyncott-avatar-stage[data-avatar-state="loading"] .lyncott-avatar-loading {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lyncott-avatar-stage[data-avatar-state="loading"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-container {
	animation: lc-avatar-pulse 1.6s ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="ready"] .lyncott-avatar-video-wrap,
.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-video-wrap {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lyncott-avatar-stage[data-avatar-state="ready"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-fallback {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-signal {
	opacity: 0.82;
}

.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-signal span {
	animation: lc-wave 900ms ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="error"] .lyncott-avatar-card p:last-child::after,
.lyncott-avatar-stage[data-avatar-state="fallback"] .lyncott-avatar-card p:last-child::after {
	content: " Lyn está disponible por chat.";
}

@keyframes lc-avatar-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.025); }
}

@media screen and (max-width: 480px) {
	.lyncott-avatar-sound-toggle {
		right: 14px;
		bottom: 104px;
		font-size: 11px;
		padding: 9px 10px;
	}

	.lyncott-avatar-loading {
		left: 14px;
		right: 14px;
		top: 14px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lyncott-avatar-stage[data-avatar-state="loading"] .lyncott-avatar-fallback,
	.lyncott-avatar-stage[data-avatar-state="playing"] .lyncott-avatar-container {
		animation: none !important;
	}
}

/* =====================================================
   Avatar estatico: provider local sin D-ID
   ===================================================== */

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-video-wrap,
.lyncott-avatar-stage[data-avatar-provider="none"] .lyncott-avatar-video-wrap {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto;
}

.lyncott-avatar-stage[data-avatar-provider="none"] .lyncott-avatar-container,
.lyncott-avatar-stage[data-avatar-provider="none"] .lyncott-avatar-signal,
.lyncott-avatar-stage[data-avatar-provider="none"] .lyncott-avatar-loading,
.lyncott-avatar-stage[data-avatar-provider="none"] .lyncott-avatar-sound-toggle {
	display: none !important;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-container {
	animation: lc-avatar-float 4.8s ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback {
	animation: lc-avatar-breathe 3.8s ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback::before {
	content: "";
	position: absolute;
	inset: 22px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 36% 43%, rgba(255,255,255,0.86) 0 4px, transparent 5px),
		radial-gradient(circle at 63% 43%, rgba(255,255,255,0.86) 0 4px, transparent 5px),
		radial-gradient(circle at 50% 58%, rgba(255,255,255,0.42) 0 13px, transparent 14px);
	opacity: 0.58;
	animation: lc-avatar-blink 5.6s ease-in-out infinite;
	pointer-events: none;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback.has-photo {
	border-radius: 30px;
	background: transparent;
	box-shadow: 0 20px 44px rgba(201,31,46,0.18);
	overflow: visible;
}

.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback.has-photo::before,
.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback.has-photo::after {
	display: none;
}

.lyncott-avatar-photo {
	display: block;
	width: 188px;
	height: 188px;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	border-radius: 32px;
	filter: drop-shadow(0 16px 28px rgba(201,31,46,0.18));
	transform: translate(-10px, -10px);
}

.lyncott-avatar-stage[data-avatar-provider="static"][data-avatar-state="thinking"] .lyncott-avatar-loading,
.lyncott-avatar-stage[data-avatar-provider="static"][data-avatar-state="speaking"] .lyncott-avatar-loading,
.lyncott-avatar-stage[data-avatar-provider="static"][data-avatar-state="waiting"] .lyncott-avatar-loading,
.lyncott-avatar-stage[data-avatar-provider="did"][data-avatar-state="thinking"] .lyncott-avatar-loading,
.lyncott-avatar-stage[data-avatar-provider="did"][data-avatar-state="waiting"] .lyncott-avatar-loading {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-container,
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-container {
	animation: lc-avatar-thinking 1.5s ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-container,
.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-fallback,
.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-hat {
	animation: lc-avatar-speaking 760ms ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-signal,
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-signal {
	opacity: 0.82;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-signal span,
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-signal span {
	animation: lc-wave 820ms ease-in-out infinite;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-signal span:nth-child(2),
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-signal span:nth-child(2) {
	animation-delay: 110ms;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-signal span:nth-child(3),
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-signal span:nth-child(3) {
	animation-delay: 220ms;
}

.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-signal span:nth-child(4),
.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-signal span:nth-child(4) {
	animation-delay: 330ms;
}

.lyncott-avatar-stage.is-scanning::after {
	content: "";
	position: absolute;
	left: 24px;
	right: 24px;
	top: 82px;
	height: 3px;
	z-index: 6;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, rgba(201,31,46,0.95), transparent);
	box-shadow: 0 0 24px rgba(201,31,46,0.34);
	animation: lc-avatar-scan 1.25s ease-in-out infinite;
	pointer-events: none;
}

.lyncott-avatar-stage.is-scanning .lyncott-avatar-kitchen {
	filter: saturate(1.08) contrast(1.02);
}

@keyframes lc-avatar-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

@keyframes lc-avatar-breathe {
	0%, 100% { transform: scale(1); box-shadow: 0 12px 34px rgba(201,31,46,0.2); }
	50% { transform: scale(1.025); box-shadow: 0 18px 42px rgba(201,31,46,0.28); }
}

@keyframes lc-avatar-blink {
	0%, 46%, 50%, 100% { opacity: 0.58; transform: scaleY(1); }
	48% { opacity: 0.28; transform: scaleY(0.68); }
}

@keyframes lc-avatar-thinking {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes lc-avatar-speaking {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-2px) scale(1.025); }
}

@keyframes lc-avatar-scan {
	0% { transform: translateY(-44px); opacity: 0; }
	12%, 88% { opacity: 1; }
	100% { transform: translateY(126px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-container,
	.lyncott-avatar-stage[data-avatar-provider="static"] .lyncott-avatar-fallback,
	.lyncott-avatar-stage[data-avatar-state="thinking"] .lyncott-avatar-container,
	.lyncott-avatar-stage[data-avatar-state="waiting"] .lyncott-avatar-container,
	.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-container,
	.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-fallback,
	.lyncott-avatar-stage[data-avatar-state="speaking"] .lyncott-avatar-hat,
	.lyncott-avatar-stage.is-scanning::after {
		animation: none !important;
	}
}
