/* ── MC WhatsApp — Botón flotante ─────────────────────────────────────── */

@font-face {
	font-family: 'Toyota Type';
	src: url( '../fonts/ToyotaType-Book.woff2' ) format( 'woff2' ),
	     url( '../fonts/ToyotaType-Book.woff' )  format( 'woff' );
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Toyota Type';
	src: url( '../fonts/ToyotaType-Regular.woff2' ) format( 'woff2' ),
	     url( '../fonts/ToyotaType-Regular.woff' )  format( 'woff' );
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Toyota Type';
	src: url( '../fonts/ToyotaType-Semibold.woff2' ) format( 'woff2' ),
	     url( '../fonts/ToyotaType-Semibold.woff' )  format( 'woff' );
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Toyota Type';
	src: url( '../fonts/ToyotaType-Bold.woff2' ) format( 'woff2' ),
	     url( '../fonts/ToyotaType-Bold.woff' )  format( 'woff' );
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.mcwa {
	--mcwa-accent: #eb0a1e;
	--mcwa-launcher: #25d366;
	--mcwa-offset-x: 24px;
	--mcwa-offset-y: 24px;

	position: fixed;
	bottom: var( --mcwa-offset-y );
	z-index: 99990;
	font-family: 'Toyota Type', Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
}

.mcwa.mcwa--right { right: var( --mcwa-offset-x ); align-items: flex-end; }
.mcwa.mcwa--left  { left:  var( --mcwa-offset-x ); align-items: flex-start; }

/* ── Botón flotante ──────────────────────────────────────────────────── */
/* Se fuerza con !important para ganar a los estilos de botón/enlace del tema. */

.mcwa .mcwa__launcher {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 60px !important;
	height: 60px !important;
	min-width: 60px !important;
	min-height: 60px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	outline: none !important;
	border-radius: 50% !important;
	background: var( --mcwa-launcher ) !important;
	color: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	overflow: hidden !important;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.22 ) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.mcwa .mcwa__launcher:hover,
.mcwa .mcwa__launcher:focus {
	transform: translateY( -2px );
	box-shadow: 0 10px 26px rgba( 0, 0, 0, 0.28 ) !important;
	background: var( --mcwa-launcher ) !important;
	color: #fff !important;
}

.mcwa .mcwa__launcher-icon {
	display: block !important;
	width: 30px !important;
	height: 30px !important;
	fill: currentColor !important;
	flex: 0 0 auto !important;
}

.mcwa .mcwa__launcher-icon path { fill: currentColor !important; }

/* ── Panel ──────────────────────────────────────────────────────────── */

.mcwa__panel {
	width: 320px;
	max-width: calc( 100vw - 32px );
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, 0.25 );
	opacity: 0;
	transform: translateY( 12px ) scale( 0.98 );
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.mcwa.mcwa--open .mcwa__panel {
	opacity: 1;
	transform: translateY( 0 ) scale( 1 );
	pointer-events: auto;
}

.mcwa__panel[hidden] { display: none; }

.mcwa__panel-head {
	position: relative;
	background: var( --mcwa-accent );
	color: #fff;
	padding: 22px 46px 20px 22px;
}

.mcwa__heading {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.mcwa__subheading {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.92;
}

.mcwa__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.mcwa__close:hover,
.mcwa__close:focus { background: rgba( 255, 255, 255, 0.18 ); color: #fff; }

/* ── Agentes ────────────────────────────────────────────────────────── */

.mcwa__agents {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 340px;
	overflow-y: auto;
}

.mcwa__agent {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f3f4f6;
	text-decoration: none;
	color: #1f2937;
	transition: background 0.2s ease, transform 0.15s ease;
}

.mcwa__agent:hover,
.mcwa__agent:focus {
	background: #e9eaed;
	color: #1f2937;
	transform: translateY( -1px );
}

.mcwa__avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var( --mcwa-accent );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcwa__agent-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mcwa__agent-name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
}

.mcwa__agent-role {
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.2;
}

.mcwa__badge {
	align-self: flex-start;
	margin-top: 2px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #fff;
	background: #22c55e;
	border-radius: 999px;
	padding: 2px 10px;
	line-height: 1.4;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media ( max-width: 480px ) {
	.mcwa__panel { width: calc( 100vw - 32px ); }
}
