/**
 * Estilos Frontend para el reemplazo del iframe de CRM Detects Drop (Tema Blanco & WhatsApp)
 */

.crm-drop-replaced-container {
	position: relative;
	width: 100%;
	display: block;
	margin-bottom: 50px;
	transition: opacity 0.3s ease;
}

.crm-drop-fallback-card {
	position: relative;
	width: 100%;
	min-height: unset;
	background: #ffffff; /* Fondo blanco */
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 40px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #374151;
	box-shadow: none;
	box-sizing: border-box;
	animation: crmFadeIn 0.4s ease-out forwards;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.crm-drop-fallback-inner {
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Título más pequeño y responsive */
.crm-drop-title {
	font-size: clamp(16px, 2.2vw, 18px);
	font-weight: 600;
	color: #111827;
	margin: 0 0 10px 0;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.crm-drop-message {
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 20px 0;
}

.crm-drop-message p {
	margin: 0;
}

.crm-drop-message a {
	color: #2563eb;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.crm-drop-message a:hover {
	color: #1d4ed8;
}

/* WhatsApp Box & Button */
.crm-drop-whatsapp-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
	width: 100%;
	max-width: 460px;
	box-sizing: border-box;
}

.crm-drop-whatsapp-cta {
	font-size: 13.5px;
	line-height: 1.5;
	color: #334155;
	margin: 0 0 12px 0;
	font-weight: 500;
}

.crm-drop-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25D366;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 14.5px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 6px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.crm-drop-whatsapp-btn:hover {
	background: #20ba5a;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.crm-drop-whatsapp-btn:active {
	transform: translateY(0);
}

.crm-drop-whatsapp-icon {
	width: 19px;
	height: 19px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Badge con pulso ROJO */
.crm-drop-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.crm-drop-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444; /* Rojo */
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
	animation: crmPulseRed 2s infinite;
}

@keyframes crmPulseRed {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
}

@keyframes crmFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Soporte para móviles */
@media (max-width: 600px) {
	.crm-drop-fallback-card {
		padding: 30px 12px;
		min-height: unset;
	}
	.crm-drop-title {
		font-size: 16px;
	}
	.crm-drop-message {
		font-size: 13px;
	}
	.crm-drop-whatsapp-cta {
		font-size: 13px;
	}
	.crm-drop-whatsapp-btn {
		width: 100%;
		box-sizing: border-box;
	}
}
