/**
 * Hoja de Estilos de Cavalry Player para WordPress/Elementor.
 * Diseñado con estética premium, responsiva y micro-animaciones.
 */

.cavalry-auto-container {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	width: auto;
	margin: 0 auto;
	overflow: hidden;
	background: transparent;
	border-radius: 8px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cavalry-auto-container:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.cavalry-canvas {
	display: block;
	max-width: 100%;
	height: auto !important; /* Permitir que sea fluido responsivamente */
	background: transparent;
}

/**
 * Vista de marcador de posición (Placeholder) en el Editor de Elementor
 */
.cavalry-player-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	text-align: center;
	background: linear-gradient(135deg, #1f242d, #12151b);
	border: 2px dashed #3a4454;
	border-radius: 12px;
	color: #a0aec0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 500;
	min-height: 200px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
	transition: all 0.3s ease;
}

.cavalry-player-placeholder:before {
	content: '\e918'; /* Código de icono de Elementor para animación o similar */
	font-family: eicons;
	font-size: 42px;
	color: #635bff;
	margin-bottom: 15px;
	animation: pulsePlaceholder 2s infinite ease-in-out;
}

.cavalry-player-placeholder:hover {
	border-color: #635bff;
	color: #ffffff;
}

@keyframes pulsePlaceholder {
	0%, 100% {
		transform: scale(1);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.08);
		opacity: 1;
		text-shadow: 0 0 10px rgba(99, 91, 255, 0.5);
	}
}


