/* Soul de Loto — Showcase
   Paleta tomada de la marca: oro del logotipo, verde del loto. */

.soul-gallery,
.soul-sizer-launch,
.soul-modal {
	--sl-gold: #c9a227;
	--sl-gold-soft: #f3ead0;
	--sl-leaf: #1f6b5c;
	--sl-ink: #2b2926;
	--sl-mute: #7a7570;
	--sl-line: #e4dfd6;
	--sl-paper: #ffffff;
	--sl-radius: 10px;
}

/* ---------- Galería ---------- */

.soul-gallery {
	display: block;
	width: 100%;
}

.soul-stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--sl-radius);
	border: 1px solid var(--sl-line);
	background: var(--sl-paper) no-repeat center / 100%;
	aspect-ratio: 1 / 1;
}

.soul-slides,
.soul-slide {
	position: absolute;
	inset: 0;
}

.soul-slide {
	display: none;
	align-items: center;
	justify-content: center;
}

.soul-slide.is-active {
	display: flex;
}

.soul-slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: opacity 0.18s ease;
}

.soul-stage.is-zooming .soul-slide img {
	opacity: 0;
}

.soul-stage.is-zooming {
	cursor: crosshair;
}

.soul-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--sl-line);
	background: rgba(255, 255, 255, 0.94);
	color: var(--sl-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.soul-nav:hover,
.soul-nav:focus-visible {
	background: #fff;
	border-color: var(--sl-gold);
	color: var(--sl-gold);
}

.soul-prev { left: 12px; }
.soul-next { right: 12px; }

.soul-count,
.soul-hint {
	position: absolute;
	bottom: 12px;
	z-index: 3;
	font-size: 11px;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--sl-line);
	color: var(--sl-mute);
	pointer-events: none;
}

.soul-count { left: 12px; }

.soul-hint {
	right: 12px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.soul-stage:hover .soul-hint { opacity: 1; }
.soul-stage.is-zooming .soul-hint { opacity: 0; }

.soul-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.soul-thumb {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--sl-line);
	border-radius: 6px;
	background: var(--sl-paper);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

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

.soul-thumb:hover { border-color: var(--sl-gold); }

.soul-thumb.is-active {
	border-color: var(--sl-gold);
	box-shadow: inset 0 0 0 1px var(--sl-gold);
}

/* ---------- Variaciones en botones ---------- */

.soul-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 4px;
}

.soul-swatch {
	min-width: 46px;
	padding: 9px 14px;
	border: 1px solid var(--sl-line, #e4dfd6);
	border-radius: 6px;
	background: transparent;
	color: #2b2926;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.soul-swatch:hover { border-color: #c9a227; }

.soul-swatch.is-active {
	border-color: #c9a227;
	box-shadow: inset 0 0 0 1px #c9a227;
	color: #8a6f14;
}

.soul-swatch[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.soul-select-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Lanzador del medidor ---------- */

.soul-sizer-launch {
	display: flex;
	margin: 10px 0;
}

.soul-sizer-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sl-gold);
	font-size: 14px;
	cursor: pointer;
	border-bottom: 1px solid currentColor;
	line-height: 1.6;
}

.soul-sizer-icon {
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	display: inline-block;
}

/* ---------- Modal del medidor ---------- */

.soul-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(30, 28, 25, 0.55);
	overflow-y: auto;
}

.soul-modal.is-open { display: flex; }

.soul-modal-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: var(--sl-paper);
	border-radius: 14px;
	padding: 28px 26px 24px;
	color: var(--sl-ink);
	font-size: 15px;
	line-height: 1.6;
}

.soul-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: var(--sl-mute);
	cursor: pointer;
}

.soul-modal h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 500;
	color: var(--sl-ink);
}

.soul-modal p { margin: 0 0 14px; }

.soul-eyebrow {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sl-gold);
	margin: 0 0 6px;
}

.soul-block {
	border-top: 1px solid var(--sl-line);
	padding-top: 18px;
	margin-top: 20px;
}

.soul-card {
	border: 2px dashed var(--sl-gold);
	border-radius: 8px;
	background: var(--sl-gold-soft);
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 8px;
	font-size: 11px;
	color: #8a6f14;
	max-width: 100%;
}

.soul-cal-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.soul-cal-row input[type="range"] { flex: 1; accent-color: var(--sl-gold); }

.soul-rings {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.soul-ring {
	border: 2px solid var(--sl-line);
	border-radius: 50%;
	background: var(--sl-paper);
	color: var(--sl-mute);
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.soul-ring:hover { border-color: var(--sl-gold); }

.soul-ring.is-active {
	border-color: var(--sl-gold);
	color: #8a6f14;
}

.soul-mm {
	width: 110px;
	padding: 9px 10px;
	border: 1px solid var(--sl-line);
	border-radius: 6px;
	font-size: 15px;
}

.soul-result {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f7f5f0;
	font-size: 15px;
}

.soul-result strong { color: #8a6f14; }

.soul-apply {
	margin-top: 14px;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--sl-gold);
	border-radius: 8px;
	background: var(--sl-gold);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.soul-apply[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.soul-fineprint {
	font-size: 12px;
	color: var(--sl-mute);
	margin-top: 14px;
}

/* ---------- Aviso solo en el editor ---------- */

.soul-editor-notice {
	padding: 18px;
	border: 1px dashed #c9a227;
	border-radius: 8px;
	background: #faf7ee;
	color: #8a6f14;
	font-size: 13px;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {

	.soul-nav {
		width: 34px;
		height: 34px;
		font-size: 20px;
	}

	.soul-thumb {
		width: 56px;
		height: 56px;
	}

	.soul-hint { display: none; }

	.soul-modal-box { padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {

	.soul-slide img,
	.soul-nav,
	.soul-thumb,
	.soul-swatch,
	.soul-ring {
		transition: none;
	}
}
