/* Magenta Catálogo – Aviso +18 (v1.7.1) */

html.mgc-age-open,
html.mgc-age-open body {
	overflow: hidden !important;
}

/* Mientras está abierto no se ven WhatsApp ni el aviso de cookies. */
html.mgc-age-open .mgc-wa-float,
html.mgc-age-open .basel-cookies-popup {
	visibility: hidden !important;
}

.mgc-age {
	--age-magenta: var(--mgc-bg, #9c3586);
	--age-noche: #3f195d;
	--age-lacre: #7e182d;
	--age-champan: #cbb296;
	--age-ink: #0b0a0c;
	--age-muted: #6e6168;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(156, 53, 134, .55), rgba(63, 25, 93, 0) 70%),
		rgba(26, 11, 39, .82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	animation: mgc-age-fade .35s ease both;
}

.mgc-age[hidden] {
	display: none;
}

.mgc-age *,
.mgc-age *::before,
.mgc-age *::after {
	box-sizing: border-box;
}

.mgc-age-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	border-radius: 28px;
	background: linear-gradient(180deg, #fbf8f5 0%, #f6f2ee 100%);
	border: 1px solid rgba(203, 178, 150, .7);
	box-shadow: 0 30px 80px rgba(10, 2, 16, .45), 0 0 0 6px rgba(255, 255, 255, .06);
	text-align: center;
	animation: mgc-age-in .45s cubic-bezier(.2, .8, .2, 1) both;
}

.mgc-age-media {
	aspect-ratio: 1024 / 642;
	max-height: 34vh;
	width: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
}

/* La foto se funde con la tarjeta. */
.mgc-age-media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(180deg, rgba(251, 248, 245, 0), #fbf8f5);
}

.mgc-age-body {
	position: relative;
	padding: 0 24px 22px;
}

/* Sello de lacre. */
.mgc-age-seal {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin: -40px auto 10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #a8324f 0%, var(--age-lacre) 55%, #560f1f 100%);
	box-shadow: 0 0 0 3px #fbf8f5, 0 0 0 4.5px var(--age-champan), 0 8px 18px rgba(86, 15, 31, .35);
	color: #f6e9d8;
	font-family: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	letter-spacing: .02em;
	line-height: 1;
	padding-top: 3px;
}

.mgc-age-kicker {
	margin: 0 0 6px;
	font-family: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #9a7b58;
}

.mgc-age-title {
	margin: 0 0 10px !important;
	font-family: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif !important;
	font-size: 23px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--age-noche) !important;
}

.mgc-age-text {
	margin: 0 auto 18px;
	max-width: 330px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--age-muted);
}

.mgc-age-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mgc-age-yes {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #b0449a 0%, var(--age-magenta) 50%, #7a2768 100%);
	color: #fff !important;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(156, 53, 134, .38);
	transition: transform .15s ease, box-shadow .15s ease;
}

.mgc-age-yes:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(156, 53, 134, .45);
}

.mgc-age-no {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border-radius: 999px;
	border: 1.5px solid rgba(203, 178, 150, .8);
	color: var(--age-noche) !important;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none !important;
	background: rgba(255, 255, 255, .6);
}

.mgc-age-no:hover {
	background: #fff;
}

.mgc-age-yes:focus-visible,
.mgc-age-no:focus-visible {
	outline: 2px solid var(--age-noche);
	outline-offset: 3px;
}

.mgc-age-note {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--age-muted);
	opacity: .85;
}

.mgc-age.is-leaving {
	animation: mgc-age-out .35s ease both;
	pointer-events: none;
}

@keyframes mgc-age-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes mgc-age-in {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: none; }
}

@keyframes mgc-age-out {
	to { opacity: 0; }
}

/* Pantallas bajas (celular acostado): foto más pequeña. */
@media (max-height: 620px) {
	.mgc-age-media {
		max-height: 24vh;
	}
	.mgc-age-title {
		font-size: 20px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mgc-age,
	.mgc-age-card,
	.mgc-age.is-leaving {
		animation: none;
	}
	.mgc-age-yes {
		transition: none;
	}
}
