/* Capas superpuestas: visor de fotos, sorpresas (modal) y escena final */

/* -------- botón de cierre compartido -------- */
.overlay-close {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	font-size: 1.1rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease;
}
.overlay-close:hover {
	transform: scale(1.08);
}

/* -------- visor de fotos -------- */
#lightbox {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(20, 12, 0, 0.86);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
	animation: overlay-in 0.25s ease;
}
#lightbox[hidden] {
	display: none;
}
#lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
@keyframes overlay-in {
	from {
		opacity: 0;
	}
}

/* -------- sorpresas -------- */
.surprise-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 560px;
	margin: 0 auto;
}
@media (max-width: 520px) {
	.surprise-grid {
		grid-template-columns: 1fr;
	}
}
.surprise {
	border: none;
	cursor: pointer;
	border-radius: 20px;
	padding: 34px 18px;
	color: #fff3d6;
	text-align: center;
	font-family: inherit;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease;
}
.surprise:hover {
	transform: translateY(-4px);
}
.surprise .emo {
	display: block;
	font-size: 3rem;
	line-height: 1.1;
}
.surprise .ttl {
	display: block;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: 1.35rem;
	margin-top: 10px;
}
.surprise .sub {
	display: block;
	font-size: 0.8rem;
	opacity: 0.8;
	margin-top: 2px;
}
.surprise--galaxia {
	background: radial-gradient(circle at 50% 35%, #6b4a00, #140d00 75%);
}
.surprise--noche {
	background: linear-gradient(180deg, #05060c, #2a3a6b);
}
.surprise--rosa {
	background: linear-gradient(160deg, #e8765a, #8e2a3a);
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: #000;
	animation: overlay-in 0.25s ease;
}
.modal iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* -------- escena nocturna de flores -------- */
.night-scene {
	width: 100%;
	height: min(70vh, 560px);
	min-height: 340px;
	background: #010113;
	overflow: hidden;
}
.night-scene iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	pointer-events: none;
}

/* -------- botón de sonido -------- */
.sound-toggle {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 15;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: linear-gradient(160deg, #ffc933, #f2a007);
	color: var(--ink);
	font-size: 1.25rem;
	line-height: 1;
	box-shadow: 0 8px 20px rgba(217, 142, 4, 0.35);
	transition: transform 0.2s ease;
}
.sound-toggle:hover {
	transform: scale(1.08);
}
