@keyframes dhsPulse {
	0% { 
		box-shadow: 0 0 0 0 var(--pulse-color, #ff6b6b);
		opacity: 1;
	}
	70% { 
		box-shadow: 0 0 0 10px transparent;
		opacity: 0.7;
	}
	100% { 
		box-shadow: 0 0 0 0 transparent;
		opacity: 1;
	}
}

.dhs-wrapper {
	--pulse-color: #ff6b6b;
	--mobile-modal-width: 90%;
	--mobile-modal-height: 80vh;
	--mobile-btn-size: 56px;
}

@keyframes dhsLineAnim {
	from {
		stroke-dashoffset: 1000;
		opacity: 0;
	}
	to {
		stroke-dashoffset: 0;
		opacity: 1;
	}
}

@keyframes dhsFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.dhs-wrapper {
	position: relative;
	width: 100%;
}

.dhs-gallery-wrapper {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
}

.dhs-gallery {
	position: relative;
	width: 100%;
	aspect-ratio: 16/10;
	background: #f0f0f0;
	overflow: hidden;
	flex: 1;
}

.dhs-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	animation: dhsFadeIn 0.4s;
}

.dhs-slide.active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.dhs-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dhs-lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.dhs-hotspots {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* LIVE PREVIEW */
.dhs-previews {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.dhs-preview-point {
	position: absolute;
	width: 8px;
	height: 8px;
	background: rgba(255, 107, 107, 0.5);
	border: 2px solid rgba(255, 107, 107, 0.8);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 999;
	box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* DOT */
.dhs-dot {
	position: absolute;
	width: 18px;
	height: 18px;
	background: #ff6b6b;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	transform: translate(-50%, -50%);
	z-index: 10;
	animation: dhsPulse 2s infinite;
}

.dhs-dot:hover {
	animation: none;
	box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.2);
}

.dhs-dot.active {
	animation: none;
	box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.2);
}

/* LÍNEA */
.dhs-line {
	stroke: #ff6b6b;
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	pointer-events: none;
}

.dhs-line.animate {
	animation: dhsLineAnim var(--line-duration) ease-in-out forwards;
}

/* CÍRCULO FINAL */
.dhs-end-dot {
	position: absolute;
	width: 18px;
	height: 18px;
	background: #ff6b6b;
	border: 2px solid #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 11;
	pointer-events: auto;
	cursor: pointer;
	opacity: 0;
}

.dhs-end-dot.show {
	opacity: 1;
}

/* MODAL */
.dhs-modal {
	position: absolute;
	pointer-events: auto;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.8);
	transition: all 0.3s ease;
	white-space: normal;
	word-wrap: break-word;
	padding: 16px;
	min-width: 180px;
	max-width: 280px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.dhs-modal.no-box {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
}

.dhs-modal.show {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.dhs-modal.modal-line {
	transform-origin: left center;
}

.dhs-modal.modal-line.show {
	transform: scale(1) translateX(10px);
}

.dhs-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.dhs-desc {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* PAGINACIÓN FIJA */
.dhs-pagination-fixed {
	position: relative;
	z-index: 50;
}

.dhs-pag-top .dhs-pagination-fixed {
	order: -1;
	margin-bottom: 16px;
}

.dhs-pag-bottom .dhs-pagination-fixed {
	margin-top: 16px;
}

.dhs-indicators {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.dhs-indicator {
	width: 10px;
	height: 10px;
	background: #ccc;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s;
}

.dhs-indicator:hover {
	background: #999;
}

.dhs-indicator.active {
	background: #333;
	transform: scale(1.2);
}

/* NAVEGACIÓN - FLECHAS */
.dhs-nav-arrows {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 50;
}

.dhs-arrows-sides .dhs-gallery-wrapper {
	gap: 20px;
}

.dhs-prev-side,
.dhs-next-side {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
}

.dhs-prev-side {
	left: 0;
}

.dhs-next-side {
	right: 0;
}

.dhs-btn {
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	font-size: 18px;
	color: #333;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	font-weight: bold;
	flex-shrink: 0;
}

.dhs-btn:hover {
	background: #e0e0e0;
	transform: scale(1.05);
}

@media (max-width: 768px) {
	/* OCULTAR HOTSPOTS EN MOBILE */
	.dhs-dot {
		display: none;
	}
	
	.dhs-end-dot {
		display: none;
	}
	
	.dhs-lines {
		display: none;
	}
	
	.dhs-hotspots {
		display: none;
	}

	.dhs-modal {
		display: none;
	}

	/* BOTÓN FLOTANTE */
	.dhs-mobile-info-btn {
		position: absolute;
		bottom: 20px;
		right: 20px;
		width: var(--mobile-btn-size);
		height: var(--mobile-btn-size);
		background: rgba(255, 107, 107, 0.9);
		border-radius: 50%;
		cursor: pointer;
		z-index: 100;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 24px;
		color: white;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		transition: all 0.3s ease;
		border: 2px solid rgba(255, 255, 255, 0.3);
	}
	
	.dhs-mobile-info-btn::after {
		content: 'ℹ';
		position: absolute;
	}
	
	.dhs-mobile-info-btn:active {
		transform: scale(0.95);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	}

	/* MODAL FULLSCREEN GLASS */
	.dhs-mobile-modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		z-index: 9999;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		display: flex;
		align-items: flex-end;
		padding: 20px;
	}

	.dhs-mobile-modal.show {
		opacity: 1;
		visibility: visible;
	}

	.dhs-mobile-content {
		width: var(--mobile-modal-width);
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: 20px 20px 0 0;
		padding: 24px;
		max-height: var(--mobile-modal-height);
		overflow-y: auto;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
		animation: slideUp 0.3s ease;
	}

	@keyframes slideUp {
		from {
			transform: translateY(100%);
			opacity: 0;
		}
		to {
			transform: translateY(0);
			opacity: 1;
		}
	}

	.dhs-mobile-close {
		position: absolute;
		top: 20px;
		right: 20px;
		width: 32px;
		height: 32px;
		background: rgba(0, 0, 0, 0.5);
		border: none;
		border-radius: 50%;
		color: white;
		cursor: pointer;
		font-size: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 10001;
		transition: all 0.2s ease;
	}

	.dhs-mobile-close:active {
		transform: scale(0.9);
	}

	.dhs-mobile-item {
		padding: 16px;
		margin-bottom: 12px;
		background: rgba(255, 107, 107, 0.1);
		border-left: 4px solid #ff6b6b;
		border-radius: 8px;
		transition: all 0.2s ease;
	}

	.dhs-mobile-item:active {
		background: rgba(255, 107, 107, 0.2);
	}

	.dhs-mobile-item-title {
		font-size: 16px;
		font-weight: 600;
		color: #000;
		margin-bottom: 8px;
	}

	.dhs-mobile-item-desc {
		font-size: 13px;
		color: #666;
		line-height: 1.5;
	}

	.dhs-btn {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.dhs-indicator {
		width: 8px;
		height: 8px;
	}

	.dhs-prev-side,
	.dhs-next-side {
		position: static;
		transform: none;
	}

	.dhs-arrows-sides .dhs-gallery-wrapper {
		gap: 12px;
	}
}
