
/** ADD YOUR AWESOME CODES HERE **/
/* ---------- Monograma del navbar (reemplaza el logo de corona) ---------- */
.na-monogram {
	font-family: "Great Vibes", cursive;
	font-size: 38px;
	line-height: 60px;
	color: #2E56D9 !important;
	text-decoration: none !important;
}

/* ---------- Texto de bienvenida (Ignacio & Adriana) ---------- */
.intro-names {
	font-size: 80px !important;
	color: #2E56D9 !important;
	margin-bottom: 10px;
}
.intro-date {
	font-size: 54px !important;
	letter-spacing: 4px;
}
.intro-tagline {
	font-style: italic;
}

/* ---------- Cuenta regresiva (simplyCountdown) ---------- */
#countdown {
	padding: 40px 0 30px;
}
#countdown .title-box {
	margin-bottom: 15px;
}
.simply-countdown {
	text-align: center;
	margin-bottom: 1em;
}
.simply-countdown > .simply-section {
	display: inline-block;
	width: 100px;
	height: 100px;
	background: #2E56D9;
	margin: 0 4px;
	border-radius: 50%;
	position: relative;
}
.simply-countdown > .simply-section > div {
	display: table-cell;
	vertical-align: middle;
	height: 100px;
	width: 100px;
}
.simply-countdown > .simply-section .simply-amount,
.simply-countdown > .simply-section .simply-word {
	display: block;
	color: #fff;
}
.simply-countdown > .simply-section .simply-amount {
	font-size: 30px;
}
.simply-countdown > .simply-section .simply-word {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}
@media (max-width: 480px) {
	.simply-countdown > .simply-section {
		width: 74px;
		height: 74px;
		margin: 0 2px 6px;
	}
	.simply-countdown > .simply-section > div {
		height: 74px;
		width: 74px;
	}
	.simply-countdown > .simply-section .simply-amount {
		font-size: 22px;
	}
	.simply-countdown > .simply-section .simply-word {
		font-size: 11px;
	}
	.intro-names { font-size: 64px !important; }
	.intro-date { font-size: 40px !important; }
}

/* ---------- Burbuja de música (YouTube oculto) ---------- */
.music-bubble {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(46, 86, 217, 0.9);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease;
}
.music-bubble:hover {
	transform: scale(1.08);
}
.music-bubble.playing {
	animation: music-bubble-pulse 2s infinite ease-in-out;
}
.music-bubble span,
.music-bubble i {
	pointer-events: none;
}
@keyframes music-bubble-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 86, 217, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35); }
	50% { box-shadow: 0 0 0 12px rgba(46, 86, 217, 0), 0 4px 12px rgba(0, 0, 0, 0.35); }
}

/* ---------- Modales de WhatsApp ---------- */
.rsvp-yes {
	font-size: 22px;
	color: #1b7f4b;
	margin-bottom: 15px;
}
.whatsapp-note {
	font-size: 14px;
	color: #777;
	margin-bottom: 0;
}

/* ---------- Sobre de apertura (intro de la invitación) ---------- */
html.envelope-lock,
body.envelope-lock {
	overflow: hidden !important;   /* custom.js fija overflow:visible al cargar */
	height: 100%;
}

.envelope-overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 10500;                /* bajo el preloader (11000), sobre todo lo demás */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 50% 40%, #eaf5ff 0%, #d7edff 60%, #b6dcee 100%);
	transition: opacity 1s ease, visibility 1s ease;
	touch-action: none;
}
.envelope-overlay.reveal {
	opacity: 0;
	visibility: hidden;
}
.envelope-overlay.reveal .envelope {
	transform: scale(1.35) translateY(8%);
}

.envelope-title {
	font-family: "Great Vibes", cursive;
	font-size: 34px;
	color: #2E56D9;
	margin: 0 0 56px;
	text-align: center;
	padding: 0 16px;
	transition: opacity .5s ease;
}
.envelope-hint {
	font-family: "Quintessential", cursive;
	font-size: 16px;
	color: #5b7aa8;
	margin: 46px 0 0;
	letter-spacing: 1px;
	transition: opacity .4s ease;
}
.envelope-overlay.open .envelope-title,
.envelope-overlay.open .envelope-hint {
	opacity: 0;
}

.envelope {
	position: relative;
	width: min(88vw, 520px);
	aspect-ratio: 3 / 2;
	perspective: 1200px;
	transition: transform 1.2s ease-in .1s;
	filter: drop-shadow(0 18px 28px rgba(46, 86, 217, .25));
}
.envelope > div {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}

.envelope-back { background: #a9cdea; border-radius: 6px; }

/* Tarjeta que sale del sobre */
.envelope-card {
	top: 6% !important;
	left: 7% !important;
	width: 86% !important;
	height: 88% !important;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 2;
	transition: transform 1s cubic-bezier(.3, .8, .3, 1) .85s;
}
.envelope-card strong {
	font-family: "Great Vibes", cursive;
	font-weight: normal;
	font-size: clamp(30px, 8vw, 46px);
	color: #2E56D9;
	line-height: 1.1;
}
.envelope-card span {
	font-family: "Quintessential", cursive;
	font-size: clamp(13px, 3.4vw, 18px);
	letter-spacing: 3px;
	color: #444;
	margin-top: 8px;
}

/* Solapas frontales (bolsillo del sobre) */
.envelope-left   { background: #c4e0f6; clip-path: polygon(0 0, 50% 55%, 0 100%); z-index: 3; border-radius: 6px 0 0 6px; }
.envelope-right  { background: #c4e0f6; clip-path: polygon(100% 0, 50% 55%, 100% 100%); z-index: 3; border-radius: 0 6px 6px 0; }
.envelope-bottom { background: #b6d7f0; clip-path: polygon(0 100%, 50% 55%, 100% 100%); z-index: 4; border-radius: 0 0 6px 6px; }

/* Solapa superior: gira sobre su borde superior */
.envelope-flap {
	height: 100% !important;
	background: #d3e9fb;
	clip-path: polygon(0 0, 100% 0, 50% 55%);
	transform-origin: 50% 0;
	z-index: 5;
	transition: transform .8s ease-in-out, z-index 0s linear .4s;
}

/* Botón-sello con las iniciales */
.envelope-seal {
	position: absolute;
	top: 55%;
	left: 50%;
	width: 78px;
	height: 78px;
	margin: -39px 0 0 -39px;
	border-radius: 50%;
	border: 3px solid #fff;
	background: #2E56D9;
	color: #fff;
	font-family: "Great Vibes", cursive;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	z-index: 6;
	padding: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
	animation: seal-pulse 2s infinite ease-in-out;
	transition: opacity .35s ease, transform .35s ease;
}
.envelope-seal:hover { transform: scale(1.08); }
.envelope-seal:focus { outline: 3px solid rgba(255, 255, 255, .9); outline-offset: 2px; }
@keyframes seal-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 86, 217, .5), 0 4px 12px rgba(0, 0, 0, .35); }
	50%      { box-shadow: 0 0 0 16px rgba(46, 86, 217, 0), 0 4px 12px rgba(0, 0, 0, .35); }
}

/* Estado abierto */
.envelope-overlay.open .envelope-seal  { opacity: 0; transform: scale(.5); pointer-events: none; animation: none; }
.envelope-overlay.open .envelope-flap  { transform: rotateX(180deg); z-index: 1; }
.envelope-overlay.open .envelope-card  { transform: translateY(-62%); z-index: 2; }

@media (max-width: 480px) {
	.envelope-title { font-size: 28px; margin-bottom: 44px; }
	.envelope-seal { width: 66px; height: 66px; margin: -33px 0 0 -33px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.envelope-overlay, .envelope, .envelope-card, .envelope-flap, .envelope-seal { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}
