.liv-viewer,
.liv-viewer * {
	box-sizing: border-box;
}

.liv-viewer {
	--liv-bg: #303845;
	--liv-bg-dark: #242b35;
	--liv-panel: #374151;
	--liv-panel-soft: #414c5d;
	--liv-accent: #f39c12;
	--liv-accent-soft: rgba(243, 156, 18, 0.14);
	--liv-text: #ffffff;
	--liv-muted: #cfd6df;
	--liv-border: rgba(255, 255, 255, 0.13);
	--liv-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	--liv-font-body: 'MuseoSans-300', 'Museo Sans 300', 'Museo Sans', Arial, sans-serif;
	--liv-font-title-medium: 'MuseoSans-500', 'Museo Sans 500', 'Museo Sans', Arial, sans-serif;
	--liv-font-title-bold: 'MuseoSans-700', 'Museo Sans 700', 'Museo Sans', Arial, sans-serif;
	font-family: var(--liv-font-body);
	font-weight: 300;
	margin: 24px auto;
	max-width: 1320px;
	color: var(--liv-text);
}

.liv-hero-panel {
	align-items: center;
	background: radial-gradient(circle at top left, rgba(243, 156, 18, 0.22), transparent 32%), linear-gradient(135deg, #303845 0%, #202731 100%);
	border: 1px solid var(--liv-border);
	border-radius: 26px;
	box-shadow: var(--liv-shadow);
	display: flex;
	gap: 22px;
	justify-content: space-between;
	margin-bottom: 20px;
	overflow: hidden;
	padding: clamp(20px, 3vw, 34px);
	position: relative;
}

.liv-hero-panel:after {
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
	content: '';
	height: 100%;
	left: -65%;
	position: absolute;
	top: 0;
	transform: skewX(-18deg);
	width: 40%;
	animation: liv-shine 7s ease-in-out infinite;
}

.liv-eyebrow,
.liv-preview-step,
.liv-fullscreen-step {
	color: var(--liv-accent);
	display: block;
	font-size: clamp(11px, 1.3vw, 13px);
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.liv-hero-content h2 {
	color: var(--liv-text);
	font-size: clamp(24px, 3.2vw, 42px);
	line-height: 1.08;
	margin: 8px 0 10px;
}

.liv-hero-content p {
	color: var(--liv-muted);
	font-size: clamp(14px, 1.5vw, 17px);
	line-height: 1.65;
	margin: 0;
	max-width: 780px;
}

.liv-hero-counter {
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--liv-border);
	border-radius: 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: clamp(112px, 14vw, 158px);
	padding: 18px;
	position: relative;
	z-index: 1;
}

.liv-hero-counter strong {
	color: #fff;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1;
}

.liv-hero-counter span {
	color: var(--liv-muted);
	font-size: clamp(12px, 1.4vw, 14px);
	margin-top: 6px;
}

.liv-empty-state {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 22px;
	color: #303845;
	padding: 32px;
	text-align: center;
}

.liv-empty-state h3 {
	font-size: clamp(20px, 2.4vw, 28px);
	margin: 0 0 8px;
}

.liv-empty-state p {
	font-size: clamp(14px, 1.5vw, 16px);
	margin: 0;
}

.liv-shell {
	display: grid;
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	gap: 20px;
}

.liv-sidebar,
.liv-preview-card,
.liv-option-card button {
	background: linear-gradient(180deg, var(--liv-panel) 0%, var(--liv-bg-dark) 100%);
	border: 1px solid var(--liv-border);
	box-shadow: var(--liv-shadow);
}

.liv-sidebar {
	border-radius: 24px;
	height: max-content;
	overflow: hidden;
	position: sticky;
	top: 24px;
}

.liv-sidebar-title {
	border-bottom: 1px solid var(--liv-border);
	padding: 18px 18px 14px;
}

.liv-sidebar-title span {
	color: var(--liv-text);
	display: block;
	font-size: clamp(16px, 1.8vw, 19px);
	font-weight: 700;
}

.liv-sidebar-title small {
	color: var(--liv-muted);
	display: block;
	font-size: clamp(12px, 1.2vw, 13px);
	margin-top: 4px;
}

.liv-menu-list {
	display: flex;
	flex-direction: column;
	padding: 10px;
}

.liv-menu-item {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 16px;
	color: var(--liv-muted);
	cursor: pointer;
	display: flex;
	gap: 12px;
	padding: clamp(11px, 1.5vw, 14px);
	text-align: left;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
	width: 100%;
}

.liv-menu-item:hover,
.liv-menu-item:focus {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	outline: none;
	transform: translateX(3px);
}

.liv-menu-item.is-active {
	background: var(--liv-accent-soft);
	box-shadow: inset 3px 0 0 var(--liv-accent);
	color: #fff;
}

.liv-menu-number,
.liv-card-number {
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--liv-border);
	border-radius: 999px;
	color: var(--liv-accent);
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 34px;
	min-width: 34px;
}

.liv-menu-text {
	font-size: clamp(13px, 1.35vw, 15px);
	font-weight: 600;
	line-height: 1.25;
}

.liv-main-panel {
	min-width: 0;
}

.liv-preview-card {
	border-radius: 26px;
	overflow: hidden;
}

.liv-preview-info {
	padding: clamp(18px, 2.3vw, 26px);
}

.liv-preview-info h3 {
	color: var(--liv-text);
	font-size: clamp(22px, 2.8vw, 34px);
	line-height: 1.12;
	margin: 7px 0 9px;
}

.liv-preview-description {
	color: var(--liv-muted);
	font-size: clamp(14px, 1.45vw, 16px);
	line-height: 1.6;
	margin: 0;
}

.liv-preview-stage {
	align-items: center;
	background: #111827;
	border-bottom: 1px solid var(--liv-border);
	border-top: 1px solid var(--liv-border);
	display: flex;
	justify-content: center;
	min-height: clamp(280px, 46vw, 620px);
	overflow: hidden;
	padding: clamp(12px, 2vw, 24px);
	position: relative;
}

.liv-preview-image {
	display: block;
	max-height: clamp(260px, 42vw, 570px);
	max-width: 100%;
	object-fit: contain;
	opacity: 0;
	position: relative;
	transform: scale(0.985);
	transition: opacity 220ms ease, transform 220ms ease;
	z-index: 2;
}

.liv-preview-image.is-loaded {
	opacity: 1;
	transform: scale(1);
}

.liv-preview-placeholder {
	align-items: center;
	background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 18px;
	color: rgba(255,255,255,0.66);
	display: flex;
	font-size: clamp(13px, 1.5vw, 16px);
	inset: clamp(12px, 2vw, 24px);
	justify-content: center;
	padding: 24px;
	position: absolute;
	text-align: center;
	z-index: 1;
}

.liv-preview-placeholder span:before {
	content: 'Imagen no asignada';
}

.liv-preview-stage.has-image .liv-preview-placeholder {
	display: none;
}

.liv-preview-actions {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: clamp(14px, 2vw, 20px);
}

.liv-action-button,
.liv-nav-button,
.liv-control-button,
.liv-close-viewer {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	font-family: var(--liv-font-title-medium);
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.liv-action-button {
	background: var(--liv-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 25px rgba(243, 156, 18, 0.28);
	color: #1f2630;
	font-size: clamp(13px, 1.45vw, 15px);
	font-weight: 800;
	padding: 12px 20px;
}

.liv-action-button:hover,
.liv-action-button:focus {
	box-shadow: 0 12px 30px rgba(243, 156, 18, 0.38);
	outline: none;
	transform: translateY(-1px);
}

.liv-preview-nav {
	align-items: center;
	display: flex;
	gap: 10px;
}

.liv-nav-button {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--liv-border);
	border-radius: 999px;
	color: #fff;
	font-size: 28px;
	height: 42px;
	line-height: 1;
	width: 42px;
}

.liv-nav-button:hover,
.liv-nav-button:focus {
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.liv-current-count {
	color: var(--liv-muted);
	font-size: clamp(12px, 1.3vw, 14px);
	font-weight: 700;
	min-width: 54px;
	text-align: center;
}

.liv-card-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 20px;
}

.liv-option-card {
	margin: 0;
}

.liv-option-card button {
	border-radius: 22px;
	color: var(--liv-text);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-height: 178px;
	padding: clamp(16px, 2vw, 22px);
	position: relative;
	text-align: left;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
	width: 100%;
}

.liv-option-card button:hover,
.liv-option-card button:focus,
.liv-option-card.is-active button {
	border-color: rgba(243, 156, 18, 0.55);
	outline: none;
	transform: translateY(-3px);
}

.liv-option-card.is-active button {
	background: linear-gradient(180deg, #455164 0%, #303845 100%);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(243, 156, 18, 0.35);
}

.liv-option-card strong {
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.25;
}

.liv-option-card em {
	color: var(--liv-muted);
	font-size: clamp(12px, 1.3vw, 14px);
	font-style: normal;
	line-height: 1.45;
}

.liv-fullscreen-viewer {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 220ms ease;
	z-index: 999999;
}

.liv-fullscreen-viewer.is-open {
	opacity: 1;
	pointer-events: auto;
}

.liv-fullscreen-backdrop {
	backdrop-filter: blur(5px);
	background: rgba(7, 11, 18, 0.86);
	inset: 0;
	position: absolute;
}

.liv-fullscreen-dialog {
	background: #151b24;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.52);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: min(94vh, 980px);
	overflow: hidden;
	position: relative;
	transform: translateY(18px) scale(0.985);
	transition: transform 220ms ease;
	width: min(96vw, 1480px);
	z-index: 1;
}

.liv-fullscreen-viewer.is-open .liv-fullscreen-dialog {
	transform: translateY(0) scale(1);
}

.liv-fullscreen-header,
.liv-fullscreen-footer {
	align-items: center;
	background: linear-gradient(90deg, #303845, #222a35);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: clamp(12px, 1.6vw, 18px) clamp(14px, 2vw, 24px);
}

.liv-fullscreen-header h3 {
	color: #fff;
	font-size: clamp(16px, 2vw, 24px);
	line-height: 1.2;
	margin: 3px 0 0;
}

.liv-close-viewer {
	align-items: center;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 999px;
	color: #fff;
	display: flex;
	font-size: 32px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	width: 44px;
}

.liv-close-viewer:hover,
.liv-close-viewer:focus,
.liv-control-button:hover,
.liv-control-button:focus {
	background: rgba(255,255,255,0.18);
	outline: none;
	transform: translateY(-1px);
}

.liv-fullscreen-stage {
	background: #0b111a;
	overflow: hidden;
	position: relative;
}

.liv-image-pan-area {
	align-items: center;
	cursor: grab;
	display: flex;
	height: 100%;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.liv-image-pan-area.is-dragging {
	cursor: grabbing;
}

.liv-fullscreen-image {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transform-origin: center center;
	transition: opacity 180ms ease, transform 80ms linear;
	user-select: none;
	will-change: transform;
}

.liv-fullscreen-footer {
	flex-wrap: wrap;
}

.liv-zoom-controls {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.liv-control-button {
	background: rgba(255,255,255,0.09);
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 999px;
	color: #fff;
	font-size: clamp(12px, 1.3vw, 14px);
	font-weight: 700;
	min-height: 40px;
	padding: 9px 14px;
}

body.liv-viewer-lock-scroll {
	overflow: hidden !important;
}

@keyframes liv-shine {
	0%, 68% {
		left: -70%;
	}
	100% {
		left: 130%;
	}
}

@media (max-width: 1100px) {
	.liv-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.liv-shell {
		grid-template-columns: 1fr;
	}

	.liv-sidebar {
		position: static;
	}

	.liv-menu-list {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 14px;
		scroll-snap-type: x mandatory;
	}

	.liv-menu-item {
		min-width: 230px;
		scroll-snap-align: start;
	}

	.liv-menu-item:hover,
	.liv-menu-item:focus {
		transform: translateY(-1px);
	}
}

@media (max-width: 680px) {
	.liv-viewer {
		margin: 16px auto;
	}

	.liv-hero-panel,
	.liv-preview-actions,
	.liv-fullscreen-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.liv-hero-counter {
		align-self: stretch;
	}

	.liv-card-grid {
		grid-template-columns: 1fr;
	}

	.liv-option-card button {
		min-height: 142px;
	}

	.liv-action-button,
	.liv-preview-nav {
		justify-content: center;
		width: 100%;
	}

	.liv-fullscreen-dialog {
		border-radius: 0;
		height: 100vh;
		width: 100vw;
	}

	.liv-fullscreen-header,
	.liv-fullscreen-footer {
		padding: 12px;
	}

	.liv-control-button {
		flex: 1 1 auto;
	}

	.liv-zoom-controls {
		width: 100%;
	}
}

/* Version 1.0.1 refinements: collapsible sidebar and cleaner public viewer. */
.liv-shell {
	transition: grid-template-columns 220ms ease;
}

.liv-sidebar-head {
	align-items: center;
	border-bottom: 1px solid var(--liv-border);
	display: flex;
	gap: 12px;
	padding: 14px;
}

.liv-sidebar-toggle {
	-webkit-appearance: none;
	appearance: none;
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--liv-border);
	border-radius: 14px;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 44px;
	flex-direction: column;
	gap: 5px;
	height: 44px;
	justify-content: center;
	padding: 0;
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
	width: 44px;
}

.liv-sidebar-toggle span {
	background: #ffffff;
	border-radius: 999px;
	display: block;
	height: 2px;
	transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
	width: 20px;
}

.liv-sidebar-toggle:hover,
.liv-sidebar-toggle:focus {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
	outline: none;
	transform: translateY(-1px);
}

.liv-sidebar-title {
	border-bottom: 0;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.liv-viewer.is-sidebar-collapsed .liv-shell {
	grid-template-columns: 74px minmax(0, 1fr);
}

.liv-viewer.is-sidebar-collapsed .liv-sidebar-head {
	justify-content: center;
	padding-left: 10px;
	padding-right: 10px;
}

.liv-viewer.is-sidebar-collapsed .liv-sidebar-title {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(-6px);
	visibility: hidden;
}

.liv-viewer.is-sidebar-collapsed .liv-menu-list {
	padding: 10px 8px;
}

.liv-viewer.is-sidebar-collapsed .liv-menu-item {
	justify-content: center;
	padding-left: 8px;
	padding-right: 8px;
}

.liv-viewer.is-sidebar-collapsed .liv-menu-text {
	display: none;
}

.liv-viewer.is-sidebar-collapsed .liv-menu-item:hover,
.liv-viewer.is-sidebar-collapsed .liv-menu-item:focus {
	transform: translateX(0) scale(1.03);
}

.liv-viewer.is-sidebar-collapsed .liv-sidebar-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.liv-viewer.is-sidebar-collapsed .liv-sidebar-toggle span:nth-child(2) {
	opacity: 0;
}

.liv-viewer.is-sidebar-collapsed .liv-sidebar-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
	.liv-sidebar-head {
		padding: 12px 14px;
	}

	.liv-viewer.is-sidebar-collapsed .liv-shell {
		grid-template-columns: 1fr;
	}

	.liv-viewer.is-sidebar-collapsed .liv-sidebar {
		min-height: 68px;
	}

	.liv-viewer.is-sidebar-collapsed .liv-sidebar-head {
		border-bottom: 0;
		justify-content: flex-start;
	}

	.liv-viewer.is-sidebar-collapsed .liv-menu-list {
		display: none;
	}

	.liv-viewer.is-sidebar-collapsed .liv-sidebar-title {
		display: block;
		opacity: 1;
		pointer-events: auto;
		position: static;
		transform: none;
		visibility: visible;
	}

	.liv-viewer.is-sidebar-collapsed .liv-sidebar-title span:after {
		color: var(--liv-muted);
		content: ' oculto';
		font-size: 12px;
		font-weight: 500;
	}
}

@media (max-width: 680px) {
	.liv-sidebar-toggle {
		flex-basis: 42px;
		height: 42px;
		width: 42px;
	}
}

/* Version 1.0.4 refinement: focus target after selecting a menu option or normal navigation. */
/* Version 1.0.5 refinement: tooltip remains only on the sidebar menu. */
.liv-shell:focus {
	outline: none;
}

/* Version 1.0.3 refinement: MuseoSans typography mapping. */
.liv-viewer p,
.liv-viewer .liv-preview-description,
.liv-viewer .liv-empty-state p,
.liv-viewer .liv-hero-counter span,
.liv-viewer .liv-preview-placeholder,
.liv-viewer .liv-current-count {
	font-family: var(--liv-font-body);
	font-weight: 300;
}

.liv-viewer h1,
.liv-viewer h2,
.liv-viewer h3,
.liv-viewer h4,
.liv-viewer h5,
.liv-viewer h6,
.liv-viewer .liv-hero-content h2,
.liv-viewer .liv-preview-info h3,
.liv-viewer .liv-fullscreen-header h3,
.liv-viewer .liv-empty-state h3,
.liv-viewer .liv-hero-counter strong,
.liv-viewer .liv-menu-number,
.liv-viewer .liv-card-number {
	font-family: var(--liv-font-title-bold);
	font-weight: 700;
}

.liv-viewer .liv-eyebrow,
.liv-viewer .liv-preview-step,
.liv-viewer .liv-fullscreen-step,
.liv-viewer .liv-sidebar-title span,
.liv-viewer .liv-menu-text,
.liv-viewer .liv-action-button,
.liv-viewer .liv-control-button,
.liv-viewer .liv-current-count {
	font-family: var(--liv-font-title-medium);
	font-weight: 500;
}

.liv-viewer .liv-action-button,
.liv-viewer .liv-control-button,
.liv-viewer .liv-current-count,
.liv-viewer .liv-menu-number,
.liv-viewer .liv-card-number,
.liv-viewer .liv-eyebrow,
.liv-viewer .liv-preview-step,
.liv-viewer .liv-fullscreen-step {
	font-synthesis: none;
}

