/**
 * CSS para el slider en el frontend
 * Guardar como: css/slider-frontend.css en tu tema
 */

.slider-container {
	position: relative;
	overflow: hidden;
	flex-direction: row;
	max-width: 1440px;
	margin: 0;
	padding: 0;
}

.slider-wrapper {
	position: relative;
	min-width: 1000px;
	width: 70%;
	height: 730px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.slide.active {
	opacity: 1;
}

/* Estilo para slides con enlaces */
.slide-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	text-decoration: none;
	z-index: 2;
}

.slide[data-url] {
	cursor: pointer;
}

.slide[data-url]:hover {
	transform: scale(1.02);
	transition: transform 0.3s ease;
}

.dots-navigation {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
	background: white;
	transform: scale(1.2);
}

.dot:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: scale(1.1);
}

/* Indicador visual para slides con enlaces */
.slide[data-url]::before {
	content: '🔗';
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 8px;
	border-radius: 15px;
	font-size: 12px;
	z-index: 3;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.slide[data-url]:hover::before {
	opacity: 1;
}

/* Controles de navegación adicionales (opcional) */
.slider-controls {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	z-index: 3;
	pointer-events: none;
}

.slider-control {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	pointer-events: auto;
}

.slider-control:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.slider-container {
		margin: 20px auto 0;
	}
	
	.slider-wrapper {
		min-width: 100%;
		width: 100%;
		height: 300px;
	}

	.dots-navigation {
		bottom: 15px;
	}

	.dot {
		width: 10px;
		height: 10px;
	}
	
	.slide[data-url]::before {
		top: 10px;
		right: 10px;
		font-size: 10px;
		padding: 3px 6px;
	}
}

@media (max-width: 480px) {
	.slider-wrapper {
		height: 250px;
	}

	.dots-navigation {
		bottom: 10px;
		gap: 6px;
	}

	.dot {
		width: 8px;
		height: 8px;
	}
	
	.slider-control {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}
}

/* Animaciones mejoradas */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.slide.active {
	animation: slideIn 0.8s ease-out;
}

/* Loading placeholder */
.slider-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #f0f0f0;
	color: #666;
	font-size: 18px;
}

.slider-loading::after {
	content: '';
	width: 20px;
	height: 20px;
	margin-left: 10px;
	border: 2px solid #ccc;
	border-top: 2px solid #666;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}