/* Real Cycle — Assistant | Creado por Creovationstudio.com */

#rca-root {
	--rca-accent: #FF6B00;
	--rca-offset: 20px;
	--rca-bg: #0b0b0b;
	--rca-bg-2: #141414;
	--rca-bg-3: #1c1c1c;
	--rca-line: rgba(255, 255, 255, .09);
	--rca-line-2: rgba(255, 255, 255, .18);
	--rca-white: #f5f5f5;
	--rca-text: #d6d6d6;
	--rca-soft: #a3a3a3;
	--rca-muted: #777;
	--rca-font: 'Inter', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	position: fixed;
	right: var(--rca-offset);
	bottom: var(--rca-offset);
	z-index: 99990;
	font-family: var(--rca-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--rca-text);
	-webkit-font-smoothing: antialiased;
}

#rca-root *,
#rca-root *::before,
#rca-root *::after { box-sizing: border-box; }

#rca-root button { font-family: inherit; }
#rca-root [hidden] { display: none !important; }

/* ---------- Launcher ---------- */
.rca-launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rca-accent);
	color: #0a0a0a;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 color-mix(in srgb, var(--rca-accent) 60%, transparent);
	transition: transform .25s ease, box-shadow .25s ease;
	animation: rca-pulse 3.2s ease-out 2.5s 3;
}
.rca-launcher:hover { transform: translateY(-2px) scale(1.04); }
.rca-launcher:focus-visible { outline: 2px solid var(--rca-white); outline-offset: 3px; }
.rca-launcher span { position: absolute; display: grid; place-items: center; transition: opacity .2s, transform .25s; }
.rca-ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
#rca-root.is-open .rca-ic-open { opacity: 0; transform: rotate(90deg) scale(.6); }
#rca-root.is-open .rca-ic-close { opacity: 1; transform: none; }

@keyframes rca-pulse {
	0% { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 0 color-mix(in srgb, var(--rca-accent) 55%, transparent); }
	70% { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 16px transparent; }
	100% { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 0 transparent; }
}

/* ---------- Teaser ---------- */
.rca-teaser {
	position: absolute;
	right: 0;
	bottom: 74px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 4px 4px 2px;
	background: var(--rca-white);
	border-radius: 16px 16px 4px 16px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	animation: rca-in .35s ease;
	white-space: nowrap;
}
.rca-teaser-text {
	padding: 8px 10px 8px 14px;
	border: 0;
	background: none;
	color: #111;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
}
.rca-teaser-x {
	width: 24px; height: 24px; padding: 0;
	border: 0; border-radius: 50%;
	background: #e9e9e9; color: #555;
	font-size: 15px; line-height: 24px; cursor: pointer;
}

/* ---------- Panel ---------- */
.rca-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 2 * var(--rca-offset)));
	height: min(600px, calc(100vh - 120px));
	height: min(600px, calc(100dvh - 120px));
	background: var(--rca-bg);
	border: 1px solid var(--rca-line);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	transform-origin: bottom right;
	animation: rca-pop .28s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes rca-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rca-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rca-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 14px 16px;
	background:
		radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--rca-accent) 22%, transparent) 0%, transparent 55%),
		var(--rca-bg-2);
	border-bottom: 1px solid var(--rca-line);
}
.rca-avatar {
	display: grid; place-items: center; flex: none;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--rca-accent); color: #0a0a0a;
}
.rca-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rca-id strong {
	color: var(--rca-white); font-size: 14px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rca-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--rca-soft); }
.rca-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .15); }
.rca-status em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rca-lang { display: flex; padding: 2px; border: 1px solid var(--rca-line-2); border-radius: 999px; }
.rca-lang button {
	padding: 3px 8px; border: 0; border-radius: 999px; background: transparent;
	color: var(--rca-soft); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; cursor: pointer;
}
.rca-lang button.is-on { background: var(--rca-white); color: #0a0a0a; }
#rca-root.rca-needs-lang .rca-lang { visibility: hidden; }

.rca-icon {
	display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--rca-soft); cursor: pointer;
}
.rca-icon:hover { background: rgba(255, 255, 255, .08); color: var(--rca-white); }
#rca-root.rca-needs-lang .rca-restart { visibility: hidden; }

/* ---------- Body ---------- */
.rca-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 14px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: #333 transparent;
}

.rca-msg { display: flex; animation: rca-in .25s ease; }
.rca-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
.rca-user { justify-content: flex-end; }

.rca-bubble {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.rca-bot .rca-bubble { background: var(--rca-bg-3); color: var(--rca-text); border-bottom-left-radius: 6px; }
.rca-user .rca-bubble { background: var(--rca-accent); color: #0a0a0a; border-bottom-right-radius: 6px; font-weight: 500; }
.rca-bubble strong { color: var(--rca-white); font-weight: 600; }
.rca-user .rca-bubble strong { color: #0a0a0a; }
.rca-bubble a { color: var(--rca-accent); text-decoration: underline; text-underline-offset: 2px; }

.rca-typing .rca-bubble { display: flex; gap: 4px; padding: 13px 16px; }
.rca-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--rca-soft); animation: rca-dot 1s infinite ease-in-out; }
.rca-typing i:nth-child(2) { animation-delay: .15s; }
.rca-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rca-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.rca-note { align-self: center; margin: 4px 0; font-size: 11.5px; color: var(--rca-muted); }

.rca-action {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px;
	border: 1px solid var(--rca-accent);
	color: var(--rca-white) !important; text-decoration: none !important;
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	transition: background .2s, color .2s;
}
.rca-action:hover { background: var(--rca-accent); color: #0a0a0a !important; }

/* ---------- Chips ---------- */
.rca-chips { animation: rca-in .3s ease; }
.rca-chips-title { margin: 2px 2px 6px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--rca-muted); }
.rca-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rca-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border: 1px solid var(--rca-line-2); border-radius: 999px;
	background: transparent; color: var(--rca-white);
	font-size: 12.5px; line-height: 1.3; text-align: left; cursor: pointer;
	transition: border-color .2s, background .2s;
}
.rca-chip:hover { border-color: var(--rca-accent); background: color-mix(in srgb, var(--rca-accent) 12%, transparent); }
.rca-chip svg { width: 14px; height: 14px; color: var(--rca-accent); }
.rca-chip-talk { border-color: color-mix(in srgb, var(--rca-accent) 55%, transparent); }

/* ---------- Language picker ---------- */
.rca-picker {
	margin: auto 0;
	padding: 18px 8px;
	text-align: center;
	animation: rca-in .3s ease;
}
.rca-picker-ico {
	display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px;
	border-radius: 50%; border: 1px solid var(--rca-line-2); color: var(--rca-accent);
}
.rca-picker-ico svg { width: 28px; height: 28px; }
.rca-picker-title { margin: 0; color: var(--rca-white); font-size: 18px; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; }
.rca-picker-sub { margin: 4px 0 18px; color: var(--rca-muted); font-size: 12.5px; }
.rca-picker-btns { display: grid; gap: 8px; }
.rca-picker-btns button {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; border: 1px solid var(--rca-line-2); border-radius: 14px;
	background: var(--rca-bg-2); color: var(--rca-white); font-size: 15px; cursor: pointer;
	transition: border-color .2s, transform .2s;
}
.rca-picker-btns button:hover { border-color: var(--rca-accent); transform: translateY(-1px); }
.rca-picker-btns b {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--rca-accent); color: #0a0a0a; font-size: 11px; letter-spacing: .06em;
}

/* ---------- Contact card ---------- */
.rca-contact {
	width: 100%; max-width: 320px; padding: 14px;
	border: 1px solid var(--rca-line); border-radius: 16px; background: var(--rca-bg-2);
}
.rca-contact-title { margin: 0; color: var(--rca-white); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rca-contact-sub { margin: 2px 0 10px; font-size: 12.5px; color: var(--rca-soft); }
.rca-contact-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rca-cbtn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 10px; border-radius: 12px;
	background: var(--rca-bg-3); border: 1px solid var(--rca-line);
	color: var(--rca-white) !important; text-decoration: none !important; font-size: 13px; font-weight: 500;
	transition: background .2s, border-color .2s, color .2s;
}
.rca-cbtn svg { color: var(--rca-accent); }
.rca-cbtn:hover { border-color: var(--rca-accent); }
.rca-cbtn-wa { background: #1f3b2a; border-color: #2b5a3e; }
.rca-cbtn-wa svg { color: #25d366; }
.rca-cbtn-wa:hover { border-color: #25d366; }

/* ---------- Events ---------- */
.rca-events { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rca-ev {
	display: flex; gap: 10px; padding: 8px;
	border: 1px solid var(--rca-line); border-radius: 14px; background: var(--rca-bg-2);
	color: var(--rca-text) !important; text-decoration: none !important;
	transition: border-color .2s, transform .2s;
}
.rca-ev:hover { border-color: var(--rca-accent); transform: translateY(-1px); }
.rca-ev-img {
	flex: none; width: 78px; height: 78px; border-radius: 10px;
	background: #222 center/cover no-repeat;
}
.rca-ev-noimg { display: grid; place-items: center; color: var(--rca-accent); }
.rca-ev-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rca-ev-date { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rca-accent); }
.rca-ev-title { margin-top: 2px; color: var(--rca-white); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.rca-ev-loc { font-size: 12px; color: var(--rca-soft); }
.rca-ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--rca-white); }
.rca-ev-foot b { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rca-accent); }
.rca-ev.is-sold { opacity: .55; }
.rca-ev.is-sold .rca-ev-foot b { color: var(--rca-soft); }
.rca-events .rca-action { align-self: flex-start; margin-top: 2px; }

/* ---------- Form ---------- */
.rca-form {
	display: flex; gap: 8px; align-items: center;
	margin: 0; padding: 10px 12px 12px;
	border-top: 1px solid var(--rca-line);
	background: var(--rca-bg);
}
#rca-root.rca-needs-lang .rca-form { opacity: .35; pointer-events: none; }
.rca-input {
	flex: 1; min-width: 0; height: 44px; margin: 0 !important; padding: 0 16px !important;
	border: 1px solid var(--rca-line-2) !important; border-radius: 999px !important;
	background: var(--rca-bg-2) !important; color: var(--rca-white) !important;
	font-family: inherit !important; font-size: 16px !important; box-shadow: none !important; outline: none;
}
.rca-input::placeholder { color: var(--rca-muted); }
.rca-input:focus { border-color: var(--rca-accent) !important; }
.rca-send {
	display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: var(--rca-accent); color: #0a0a0a; cursor: pointer;
	transition: transform .2s;
}
.rca-send:hover { transform: scale(1.06); }

.rca-credit {
	display: block; padding: 0 0 9px; background: var(--rca-bg); text-align: center;
	font-size: 10.5px; color: var(--rca-muted) !important; text-decoration: none !important; letter-spacing: .02em;
}
.rca-credit strong { color: var(--rca-accent); font-weight: 600; }

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 520px) {
	#rca-root { right: 14px; bottom: 14px; }
	#rca-root.is-open { inset: 0; }
	#rca-root.is-open .rca-launcher { display: none; }
	#rca-root.is-open::before {
		content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); animation: rca-in .2s ease;
	}
	.rca-panel {
		position: fixed; left: 0; right: 0; bottom: 0;
		width: 100%; height: 88vh; height: 88dvh;
		border-radius: 22px 22px 0 0; border-bottom: 0;
		transform-origin: bottom center;
	}
	.rca-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
	#rca-root *, #rca-root *::before { animation: none !important; transition: none !important; }
}
