.eae-notice,
.eae-notice * {
	box-sizing: border-box;
}

.eae-notice[hidden] {
	display: none !important;
}

.eae-notice {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: clamp(18px, 4vw, 48px);
	font-family: inherit;
	opacity: 0;
	transition: opacity 260ms ease;
}

.eae-notice.is-visible {
	opacity: 1;
}

.eae-notice__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 20, 27, 0.52);
	-webkit-backdrop-filter: blur(18px) saturate(125%);
	backdrop-filter: blur(18px) saturate(125%);
}

.eae-notice__card {
	position: relative;
	isolation: isolate;
	width: min(760px, 100%);
	min-height: min(560px, calc(100vh - 36px));
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: clamp(48px, 8vw, 88px) clamp(24px, 8vw, 84px);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: clamp(22px, 4vw, 38px);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
		var(--eae-popup-background, #132f3b);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
	color: #fff;
	transform: translateY(20px) scale(0.98);
	transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eae-notice.is-visible .eae-notice__card {
	transform: translateY(0) scale(1);
}

.eae-notice__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--eae-popup-accent) 78%, transparent), transparent 34%),
		radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.16), transparent 38%);
	opacity: 0.85;
	pointer-events: none;
}

.eae-notice__background,
.eae-notice__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.eae-notice__background { z-index: 0; }
.eae-notice__background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eae-notice__shade { z-index: 1; background: rgba(6, 20, 27, var(--eae-background-overlay, 0.28)); }

.eae-notice__glow {
	position: absolute;
	top: -140px;
	right: -110px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--eae-popup-accent, #e95420);
	filter: blur(85px);
	opacity: 0.42;
	pointer-events: none;
	z-index: 2;
}

.eae-notice__content {
	position: absolute;
	left: var(--eae-content-x, 50%);
	top: var(--eae-content-y, 50%);
	z-index: 4;
	width: min(var(--eae-content-width, 540px), calc(100% - 48px));
	max-width: 680px;
	transform: translate(-50%, -50%);
	text-align: center;
}

.eae-notice__content--left {
	text-align: left;
}

.eae-notice__content--right {
	text-align: right;
}

.eae-notice__content--left .eae-notice__message,
.eae-notice__content--left .eae-notice__button {
	margin-left: 0;
	margin-right: auto;
}

.eae-notice__content--right .eae-notice__message,
.eae-notice__content--right .eae-notice__button {
	margin-left: auto;
	margin-right: 0;
}

.eae-notice__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0 0 18px;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
}

.eae-notice__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2.8rem, 12vw, var(--eae-title-size, 104px));
	font-weight: 800;
	letter-spacing: -0.065em;
	line-height: 0.88;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.eae-notice__title--gradient {
	background: linear-gradient(100deg, #fff 10%, var(--eae-popup-accent) 42%, #fff 72%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: eaeTitleShimmer 4.5s linear infinite;
}

.eae-notice__title--glow {
	text-shadow: 0 0 18px color-mix(in srgb, var(--eae-popup-accent) 72%, transparent), 0 0 48px color-mix(in srgb, var(--eae-popup-accent) 40%, transparent);
}

.eae-notice__title--outline {
	-webkit-text-stroke: 2px #fff;
	color: transparent;
	text-shadow: none;
}

.eae-notice__message {
	max-width: 500px;
	margin: 28px auto 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.55;
}

.eae-notice__coupon {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 28px auto 0;
	padding: 10px 12px 10px 18px;
	border: 1px dashed rgba(255, 255, 255, 0.52);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.14);
	font-size: 0.9rem;
}

.eae-notice__coupon strong {
	padding: 8px 12px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--eae-popup-background, #132f3b);
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.eae-notice__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: min(330px, 100%);
	min-height: 58px;
	margin: 28px auto 0;
	padding: 15px 24px;
	border-radius: 15px;
	background: var(--eae-popup-accent, #e95420);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--eae-popup-accent) 34%, transparent);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 180ms ease, filter 180ms ease;
}

.eae-notice__button:hover,
.eae-notice__button:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.eae-notice__button span {
	font-size: 1.35em;
	line-height: 1;
}

.eae-notice__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 7;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background 180ms ease, transform 180ms ease;
}

.eae-notice__close:hover,
.eae-notice__close:focus-visible {
	background: rgba(255, 255, 255, 0.23);
	transform: rotate(4deg);
}

.eae-notice__close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.eae-notice__visual {
	position: absolute;
	left: var(--eae-layer-x, 50%);
	top: var(--eae-layer-y, 50%);
	width: min(var(--eae-layer-width, 280px), 100%);
	transform: translate(-50%, -50%) rotate(var(--eae-layer-rotation, 0deg));
	pointer-events: none;
}

.eae-notice__visual--behind {
	z-index: 3;
}

.eae-notice__visual--front {
	z-index: 5;
}

.eae-notice__visual-motion,
.eae-notice__visual img {
	display: block;
	width: 100%;
}

.eae-notice__visual-motion { will-change: transform, opacity; }

.eae-notice__visual img {
	height: auto;
	max-height: min(74vh, 620px);
	object-fit: contain;
	filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.28));
}

.eae-text-animation--none,
.eae-visual-animation--none {
	opacity: 1;
}

.eae-text-animation--fade-up,
.eae-text-animation--zoom,
.eae-text-animation--slide-left,
.eae-text-animation--slide-right,
.eae-text-animation--pop,
.eae-text-animation--pop-up,
.eae-text-animation--stamp,
.eae-visual-animation--fade-up,
.eae-visual-animation--zoom,
.eae-visual-animation--slide-left,
.eae-visual-animation--slide-right,
.eae-visual-animation--pop,
.eae-visual-animation--pop-up,
.eae-visual-animation--stamp,
.eae-visual-animation--float,
.eae-visual-animation--pulse {
	opacity: 0;
}

.eae-notice.is-visible .eae-text-animation--fade-up,
.eae-notice.is-visible .eae-visual-animation--fade-up,
.eae-notice.is-visible .eae-visual-animation--float,
.eae-notice.is-visible .eae-visual-animation--pulse {
	animation: eaeLayerFadeUp 700ms 150ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eae-notice.is-visible .eae-text-animation--zoom,
.eae-notice.is-visible .eae-visual-animation--zoom {
	animation: eaeLayerZoom 700ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eae-notice.is-visible .eae-text-animation--slide-left,
.eae-notice.is-visible .eae-visual-animation--slide-left {
	animation: eaeLayerSlideLeft 760ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eae-notice.is-visible .eae-text-animation--slide-right,
.eae-notice.is-visible .eae-visual-animation--slide-right {
	animation: eaeLayerSlideRight 760ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eae-notice.is-visible .eae-text-animation--pop,
.eae-notice.is-visible .eae-visual-animation--pop {
	animation: eaeLayerPop 620ms 100ms cubic-bezier(0.18, 0.89, 0.32, 1.35) forwards;
}

.eae-notice.is-visible .eae-text-animation--pop-up,
.eae-notice.is-visible .eae-visual-animation--pop-up {
	animation: eaeLayerPopUp 720ms 100ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eae-notice.is-visible .eae-text-animation--stamp,
.eae-notice.is-visible .eae-visual-animation--stamp {
	animation: eaeLayerStamp 680ms 100ms cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards;
}

.eae-notice.is-visible .eae-visual-animation--float img {
	animation: eaeImageFloat 4.5s 900ms ease-in-out infinite;
}

.eae-notice.is-visible .eae-visual-animation--pulse img {
	animation: eaeImagePulse 3.6s 900ms ease-in-out infinite;
}

@keyframes eaeLayerFadeUp {
	from { opacity: 0; transform: translate(-50%, calc(-50% + 38px)); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes eaeLayerZoom {
	from { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes eaeLayerSlideLeft {
	from { opacity: 0; transform: translate(calc(-50% - 80px), -50%); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes eaeLayerSlideRight {
	from { opacity: 0; transform: translate(calc(-50% + 80px), -50%); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes eaeLayerPop {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
	72% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
	100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes eaeLayerPopUp {
	0% { opacity: 0; transform: translate(-50%, calc(-50% + 105px)) scale(0.7); }
	68% { opacity: 1; transform: translate(-50%, calc(-50% - 10px)) scale(1.04); }
	100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes eaeLayerStamp {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(2.35) rotate(-11deg); }
	68% { opacity: 1; transform: translate(-50%, -50%) scale(0.91) rotate(2.5deg); }
	100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes eaeImageFloat {
	0%, 100% { transform: translateY(0) rotate(-1deg); }
	50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes eaeImagePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.045); }
}

@keyframes eaeTitleShimmer {
	to { background-position: -220% center; }
}

body.eae-notice-open {
	overflow: hidden !important;
}

@media (max-width: 600px) {
	.eae-notice {
		padding: 12px;
	}

	.eae-notice__card {
		min-height: min(620px, calc(100dvh - 24px));
		max-height: calc(100dvh - 24px);
		padding: 64px 22px 42px;
		border-radius: 24px;
	}

	.eae-notice__content {
		left: 50%;
		top: clamp(38%, var(--eae-content-y, 50%), 66%);
		width: calc(100% - 40px);
	}

	.eae-notice__title { font-size: clamp(2.55rem, 12vw, 4.75rem); }
	.eae-notice__message { margin-top: 20px; font-size: clamp(.92rem, 4vw, 1.08rem); line-height: 1.42; }
	.eae-notice__coupon { margin-top: 20px; }
	.eae-notice__button { min-height: 52px; margin-top: 20px; padding: 13px 20px; }

	.eae-notice__visual {
		width: min(var(--eae-layer-width, 280px), 78vw);
	}

	.eae-notice__visual--hide-mobile {
		display: none;
	}

	.eae-notice__coupon {
		flex-direction: column;
		gap: 8px;
		padding: 12px 16px;
	}
}

@media (max-width: 380px), (max-height: 620px) {
	.eae-notice__card { padding: 54px 18px 28px; }
	.eae-notice__eyebrow { min-height: 27px; margin-bottom: 12px; padding: 5px 10px; font-size: .68rem; }
	.eae-notice__title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
	.eae-notice__message,.eae-notice__coupon,.eae-notice__button { margin-top: 14px; }
	.eae-notice__coupon { padding: 8px 12px; }
	.eae-notice__button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.eae-notice,
	.eae-notice__card,
	.eae-notice__button,
	.eae-notice__close {
		transition: none;
	}

	.eae-text-animation--fade-up,
	.eae-text-animation--zoom,
	.eae-text-animation--slide-left,
	.eae-text-animation--slide-right,
	.eae-text-animation--pop,
	.eae-text-animation--pop-up,
	.eae-text-animation--stamp,
	.eae-visual-animation--fade-up,
	.eae-visual-animation--zoom,
	.eae-visual-animation--slide-left,
	.eae-visual-animation--slide-right,
	.eae-visual-animation--pop,
	.eae-visual-animation--pop-up,
	.eae-visual-animation--stamp,
	.eae-visual-animation--float,
	.eae-visual-animation--pulse {
		opacity: 1;
		animation: none !important;
		transform: translate(-50%, -50%);
	}

	.eae-notice__visual img,
	.eae-notice__title--gradient {
		animation: none !important;
	}
}

@supports not (backdrop-filter: blur(1px)) {
	.eae-notice__backdrop {
		background: rgba(6, 20, 27, 0.88);
	}
}

body.eae-notice-blur-fallback > *:not(.eae-notice) { filter: blur(10px); }

/* Las capas visuales animan un contenedor interno; su posición y rotación no se pierden. */
.eae-notice.is-visible .eae-visual-animation--fade-up,
.eae-notice.is-visible .eae-visual-animation--float,
.eae-notice.is-visible .eae-visual-animation--pulse { animation: eaeVisualFadeUp 700ms 150ms cubic-bezier(.16,1,.3,1) forwards; }
.eae-notice.is-visible .eae-visual-animation--zoom { animation: eaeVisualZoom 700ms 120ms cubic-bezier(.16,1,.3,1) forwards; }
.eae-notice.is-visible .eae-visual-animation--slide-left { animation: eaeVisualLeft 760ms 120ms cubic-bezier(.16,1,.3,1) forwards; }
.eae-notice.is-visible .eae-visual-animation--slide-right { animation: eaeVisualRight 760ms 120ms cubic-bezier(.16,1,.3,1) forwards; }
.eae-notice.is-visible .eae-visual-animation--pop { animation: eaeVisualPop 620ms 100ms cubic-bezier(.18,.89,.32,1.35) forwards; }
.eae-notice.is-visible .eae-visual-animation--pop-up { animation: eaeVisualPopUp 720ms 100ms cubic-bezier(.16,1,.3,1) forwards; }
.eae-notice.is-visible .eae-visual-animation--stamp { animation: eaeVisualStamp 680ms 100ms cubic-bezier(.2,.9,.3,1.25) forwards; }
@keyframes eaeVisualFadeUp { from { opacity:0; transform:translateY(38px); } to { opacity:1; transform:none; } }
@keyframes eaeVisualZoom { from { opacity:0; transform:scale(.72); } to { opacity:1; transform:scale(1); } }
@keyframes eaeVisualLeft { from { opacity:0; transform:translateX(-80px); } to { opacity:1; transform:none; } }
@keyframes eaeVisualRight { from { opacity:0; transform:translateX(80px); } to { opacity:1; transform:none; } }
@keyframes eaeVisualPop { 0% { opacity:0; transform:scale(.35); } 72% { transform:scale(1.1); } 100% { opacity:1; transform:scale(1); } }
@keyframes eaeVisualPopUp { 0% { opacity:0; transform:translateY(105px) scale(.7); } 68% { transform:translateY(-10px) scale(1.04); } 100% { opacity:1; transform:none; } }
@keyframes eaeVisualStamp { 0% { opacity:0; transform:scale(2.35) rotate(-11deg); } 68% { transform:scale(.91) rotate(2.5deg); } 100% { opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce) {
	.eae-notice__visual-motion { opacity: 1 !important; animation: none !important; transform: none !important; }
}
