#app { position: fixed; inset: 0; }

/* Logo */
#siteLogo {
position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
z-index: 7; pointer-events: none;
transition: opacity 180ms ease, transform 240ms ease;
filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
#siteLogo img { display: block; height: 114px; width: auto; }

#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
#hud {
position: fixed; left: 12px; bottom: 12px; color: #aaa;
font: 12px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
background: rgba(0,0,0,0.35); padding: 6px 8px; border-radius: 8px; border: 1px solid #333; z-index: 5; user-select: none; pointer-events: none;
}

/* Hover (vignette + label) */
#vignette {
position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 160ms ease;
background:
radial-gradient(circle at var(--hx,50%) var(--hy,50%), rgba(0,0,0,0) var(--inner, 120px), rgba(0,0,0,0.55) var(--outer, 260px)),
radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
z-index: 4;
}
#hotspotLabel {
position: fixed; transform: translate(-50%, 0);
color: #fff; font: 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.15); padding: 6px 10px;
border-radius: 10px; pointer-events: none; z-index: 6; opacity: 0; transition: opacity 120ms ease; white-space: nowrap;
}
canvas { display: block; }

/* ---------- Modales ---------- */
.modal{
	position: fixed; inset: 0; background: rgba(0,0,0,0.5);
	display: none; align-items: center; justify-content: center; z-index: 20;
	opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.modal.open { display: flex; opacity: 1; pointer-events: auto; }

.modal-content {
	width: min(1400px, 98vw); height: min(96dvh, 980px);
	background: transparent; border: none; border-radius: 14px;
	overflow: hidden; color: #eee; display: grid; grid-template-rows: auto 1fr; gap: 8px;
	position: relative; transform: scale(0.98); transition: transform 220ms ease;
}
.modal.open .modal-content { transform: scale(1); }

.modal-header { display: grid; place-items: center; gap: 6px; padding: 6px 10px; }
.modal-title {
	font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(24px, 3.8vw, 40px);
	letter-spacing: .4px; margin: 6px 0 2px; color: #F1C073; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.modal-subtitle {
	font: 500 clamp(12px, 1.6vw, 16px)/1.35 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: #e8e1d7; text-align: center; margin-bottom: 4px; opacity: .9;
}
.btn-close {
	position: absolute; top: 14px; right: 16px;
	cursor: pointer; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid #2d2d2d;
	border-radius: 10px; padding: 10px 14px; font: 14px system-ui; transition: transform .06s ease;
	z-index: 50; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-close:active { transform: scale(.98); }

.modal-body.slider { position: relative; border-radius: 12px; background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.10)); overflow: hidden; }

.modal-bg   { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: center / contain no-repeat url('../images/symbol-bg.png'); opacity: 0.6; filter: saturate(0.9); }
.modal-dim  { position: absolute; inset: 0; background: rgba(0,0,0,0.72); z-index: 1; }

.viewer-wrap { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr; background: transparent; z-index: 3; }
.viewer-stage { position: relative; min-height: 300px; display: grid; }
.slide { position: absolute; inset: 0; display: none; }
.slide.active { display: block; }

.edge-nav-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	appearance: none; border: 3px solid #F1C073; background: #F1C073; color: #000;
	width: 64px; height: 64px; border-radius: 50%; font: 900 24px/1 system-ui; display: grid; place-items: center;
	cursor: pointer; z-index: 40; box-shadow: 0 6px 28px rgba(0,0,0,0.3); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.edge-nav-btn:active { transform: translateY(-50%) scale(0.98); }
.edge-left  { left: 28px; }
.edge-right { right: 28px; }

.object-caption {
	position: absolute; bottom: 9dvh; right: 6%;
	z-index: 45; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.16);
	border-radius: 14px; padding: 14px 16px; max-width: min(48ch, 50vw); box-shadow: 0 10px 28px rgba(0,0,0,0.45); backdrop-filter: blur(4px);
}
.object-caption h2 {
	margin: 0 0 6px 0; font-family: 'Cinzel', serif; font-weight: 800; color: #F1C073; font-size: clamp(18px, 2.8vw, 26px); letter-spacing: .3px; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.object-caption p  { margin: 0; font: 500 clamp(13px, 1.8vw, 15px)/1.45 system-ui; color: #e6e2db; opacity: .95; }
.object-caption [contenteditable]:focus { outline: 1px solid #2a2a2a; background: rgba(0,0,0,0.28); border-radius: 8px; }

.modal-final .modal-content { width: 100vw; height: 100dvh; border-radius: 0; background: rgba(0,0,0,0.2); display: grid; grid-template-rows: 1fr; }
.final-body { position: relative; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 100%;
	background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0.75));
}
.final-col-left { position: relative; overflow: hidden; display: grid; grid-template-rows: 1fr auto; align-items: end; background: #000; max-height: 100dvh; }
.final-col-left img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.02) saturate(1.05); max-height: calc(100dvh - 80px); }
.final-inline-actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0 28px; color: #fff; font: 700 clamp(14px, 2vw, 18px)/1 system-ui; }
.final-inline-actions button {
	background: rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.75); color: #fff; cursor: pointer; padding: 12px 22px; margin: 0 6px;
	border-radius: 14px; font: 800 clamp(14px, 2vw, 18px) system-ui; -webkit-tap-highlight-color: transparent; box-shadow: 0 6px 22px rgba(0,0,0,0.35); }
.final-inline-actions button:active { transform: scale(0.98); }
.final-inline-actions .sep { width: 1px; height: 20px; background: rgba(255,255,255,0.6); }

.final-col-right { position: relative; padding: clamp(16px, 3vw, 40px); display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(10px, 2.2vw, 18px); align-content: start;max-height: 96dvh; }
.final-subtitle { color: #e9e3d9; font: 500 clamp(14px, 2vw, 18px)/1.35 system-ui; opacity: .95; }
.final-title-warrior { font-family: 'Cinzel', serif; color: #F1C073; font-weight: 800; font-size: clamp(26px, 4.2vw, 56px); letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.final-playlist-container { display: none; }
.final-tracklist { margin: 0; padding: 0 0 0 28px; list-style: decimal; color: #f2f2f2; font: 500 clamp(13px, 1.6vw, 16px)/1.5 system-ui; max-height: 60dvh; overflow: auto; }
.final-cta { align-self: end; margin-top: 10px; }
.btn-spotify { padding: 14px 18px; font: 700 15px system-ui; color:#000; background:#F1C073; border:2px solid #F1C073; border-radius:12px; cursor:pointer; box-shadow: 0 6px 26px rgba(0,0,0,0.25); }
.btn-spotify img { width: 22px; vertical-align: middle; }
@media (min-width: 800px) and (max-height: 680px) {
	.final-col-right {
		gap: 10px;
		padding: 20px;
	}
	.final-title-warrior {
		font-size: 38px;
	}
}

@media (max-width: 960px){
	.final-body { grid-template-columns: 1fr; }
	.final-col-left { height: 42dvh; }
	.final-col-right { height: auto; }
}

@media (max-width: 760px){
	#siteLogo img { height: 99px; }
	.edge-nav-btn { width: 56px; height: 56px; font-size: 22px; }
	.object-caption { left: 6%; bottom: unset; top: 60%; max-width: 80vw; }
}

/* ====== SLIDER DE IMÁGENES (Modal 3) – centrado vertical real ====== */
#modal3 .viewer-stage { position: relative; height: 100%; min-height: 300px; display: block !important; }
#viewer3-stage { position: absolute; inset: 0; display: flex !important; align-items: center !important; justify-content: center !important; min-height: 300px; height: 100%; }
.img-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.img-stage img { max-width: 92%; max-height: 92%; width: auto; height: auto; object-fit: contain; margin: auto; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.45); border-radius: 8px; }

/* ===== Overlay de bienvenida ===== */
#introOverlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 1; pointer-events: auto; transition: opacity 220ms ease; }
#introOverlay.hidden { opacity: 0; pointer-events: none; }
.intro-card { text-align: center; color: #fff; padding: clamp(16px, 4vw, 36px); display: grid; gap: clamp(16px, 3vw, 28px); }
.intro-title { font-family: 'Cinzel', serif; font-weight: 800; color: #fff; font-size: clamp(40px, 8vw, 84px); letter-spacing: .8px; }
.intro-sub { font: 500 clamp(14px, 2.2vw, 18px)/1.45 system-ui; color: #ececec; }
.intro-icons { display: grid; grid-auto-flow: column; gap: clamp(20px, 6vw, 56px); align-items: center; justify-content: center; }
.intro-icons .item { display: grid; gap: 10px; justify-items: center; }
.intro-icons img { width: clamp(34px, 6vw, 60px); height: clamp(34px, 6vw, 60px); object-fit: contain; }
.intro-icons .label { font: 600 clamp(12px, 1.8vw, 14px)/1 system-ui; color: #e8e8e8; }

.btn-intro { padding: 14px 20px; font: 700 clamp(14px, 2vw, 16px) system-ui; color:#000; background:#F1C073; border:2px solid #F1C073; border-radius:12px; cursor:pointer; box-shadow: 0 6px 26px rgba(0,0,0,0.25); justify-self: center; }

/* Interacción barra Select solo cuando modal open */
.modal .select-bar { pointer-events: none; }
.modal.open .select-bar { pointer-events: auto; }

.select-bar { position: absolute; left: 0; right: 0; bottom: 14px; display: grid; place-items: center; z-index: 200; }
.select-bar .btn-select { position: relative; z-index: 201; padding: 12px 18px; font: 700 15px system-ui; color:#000; background:#F1C073; border:2px solid #F1C073; border-radius:12px; cursor:pointer; box-shadow: 0 6px 26px rgba(0,0,0,0.25); }

/* Toast */
#toast{ position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); z-index: 2000; pointer-events: none;
background: rgba(0,0,0,0.75); color: #fff; padding: 10px 14px; border-radius: 12px; font: 700 14px/1 system-ui; letter-spacing: .2px;
opacity: 0; transition: opacity 180ms ease, transform 180ms ease; box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(241,192,115,0.25);
border: 1px solid rgba(255,255,255,0.15);
}
#toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======= Estilos específicos para Modal 1 (naming) ======= */
#modal1 .modal-body.slider{
background: #000 url('../images/exhibition-bg.jpg') center/cover no-repeat !important;
}
.name-field-wrap{
	position: absolute; inset: 0;
	display: grid; place-items: center; z-index: 3;
	padding: 18px;
}
.name-card{
	display: grid; gap: 10px; justify-items: center;
	background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.16);
	padding: 16px 18px; border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.45); backdrop-filter: blur(4px);
	max-width: min(600px, 90vw);
}
.playlist-input{
	width: min(560px, 80vw);
	font-family: 'MedievalSharp', cursive;
	font-size: clamp(18px, 3.2vw, 28px);
	color: #fff; background: rgba(0,0,0,0.6);
	border: 2px solid #F1C073; border-radius: 12px;
	padding: 12px 14px; text-align: center;
	outline: none;
}
.playlist-input::placeholder{ color: rgba(255,255,255,0.65); }
.name-microcopy{
	font: 600 clamp(12px,1.6vw,14px)/1.35 system-ui; color: #e8e1d7; opacity: .9; text-align:center;
}
.name-actions{ display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
#btnNext1{ min-width: 200px; }

/*  Quitar symbol-bg.png sólo en Modal 1 y 2  */
#modal1 .modal-bg, #modal3 .modal-bg{ background-image: none !important; display: none; }
#modal2 .modal-bg {opacity: 0.2;}
#modal1 .modal-dim { background: rgba(0,0,0,0.55);}
#modal2 .modal-dim { background: rgba(0,0,0,0.85);}

/* Sombra nítida para títulos y subtítulos dentro del rectángulo */
.modal .modal-title{
	/* capa de contorno nítido (4 direcciones) */
	text-shadow:
	0 1px 0 rgba(0,0,0,.85),
	0 -1px 0 rgba(0,0,0,.85),
	1px 0 0 rgba(0,0,0,.85),
	-1px 0 0 rgba(0,0,0,.85),
	/* leve glow para suavizar el borde */
	0 0 6px rgba(0,0,0,.35);
}

.modal .modal-subtitle{
	/* más sutil para no “ensuciar” el cuerpo de texto */
	text-shadow:
	0 1px 0 rgba(0,0,0,.75),
	0 0 4px rgba(0,0,0,.25);
}
/* Borde dorado elegante para todas las modales (excepto la final) */
.modal:not(.modal-final) .modal-body.slider {
	border: 1px solid rgba(241, 192, 115, 0.15); /* tono dorado */
	box-shadow:
	0 0 10px rgba(241, 192, 115, 0.35),  /* brillo exterior difuso */
	inset 0 0 10px rgba(241, 192, 115, 0.15); /* leve reflejo interior */
	border-radius: 14px; /* asegura redondeo */
}

@media (max-width: 760px) {
	.playlist-input {
		width: calc(100% - 36px);
	}
	.final-tracklist {
		max-height: 24dvh;
	}
	.final-col-left {
		height: 47dvh;
		align-items: start;
	}
	.final-col-left img {
		width: auto;
		height: 39dvh;
		margin: 0 auto;
	}
	.final-inline-actions {
		padding: 10px 0 10px;
	}
	.final-col-right {
		gap: 4px;
	}
}

