/* Gestionar promociones – estilos
   Para separar los avisos de otros elementos fijos (p. ej. banner de cookies):
   .gprom-summary, .gprom-fab { --gprom-left: 16px; --gprom-bottom: 90px; } */

/* ---------- Popup grande ---------- */
.gprom-overlay {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(10, 12, 20, .78);
	opacity: 0; transition: opacity .3s ease;
	padding: 16px; box-sizing: border-box;
}
.gprom-overlay.is-visible { opacity: 1; }
.gprom-modal {
	position: relative; max-width: 100%; max-height: 100%;
	transform: scale(.94) translateY(10px); transition: transform .3s ease;
	line-height: 0;
}
.gprom-overlay.is-visible .gprom-modal { transform: none; }
.gprom-modal__img {
	display: block; max-width: min(92vw, 900px);
	max-height: 86vh; max-height: 86dvh;
	width: auto; height: auto; border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.gprom-modal__link { display: block; cursor: pointer; }
.gprom-close {
	position: absolute; top: 10px; right: 10px;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(0, 0, 0, .7); color: #fff;
	font: 400 28px/40px Arial, sans-serif; text-align: center;
	transition: background .2s ease;
}
.gprom-close:hover, .gprom-close:focus { background: #000; }

/* ---------- Banner informativo ---------- */
.gprom-summary, .gprom-fab {
	position: fixed;
	left: var(--gprom-left, 16px);
	bottom: calc(var(--gprom-bottom, 16px) + env(safe-area-inset-bottom, 0px));
	z-index: 999998;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.gprom-summary {
	width: 380px; max-width: calc(100vw - 32px);
	background: #fff; color: #1d2327; border-radius: 18px;
	box-shadow: 0 0 0 2px #ff4d6d, 0 18px 50px rgba(190, 30, 70, .38);
	overflow: hidden;
	transform: translateY(24px) scale(.97); opacity: 0;
	transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), opacity .3s ease;
}
.gprom-summary.is-visible { transform: none; opacity: 1; }
.gprom-summary__head {
	position: relative; overflow: hidden;
	padding: 16px 52px 14px 16px; color: #fff;
	background: linear-gradient(135deg, #c2185b 0%, #ff4d6d 55%, #ff9800 100%);
}
.gprom-summary__head::after {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
	transform: skewX(-20deg); animation: gprom-shine 3.6s ease-in-out infinite; pointer-events: none;
}
.gprom-pill {
	display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
	background: #ffe14d; color: #7a1030;
	font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.gprom-summary__title { display: block; font-size: 19px; line-height: 1.2; font-weight: 800; }
.gprom-summary__sub { display: block; margin-top: 4px; font-size: 13px; opacity: .95; }
.gprom-summary__close {
	position: absolute; top: 10px; right: 10px; z-index: 1;
	width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .25); color: #fff; font-size: 22px; line-height: 32px; text-align: center;
}
.gprom-summary__close:hover, .gprom-summary__close:focus { background: rgba(255, 255, 255, .45); }
.gprom-summary__list { list-style: none; margin: 0; padding: 10px; max-height: 50vh; overflow-y: auto; }
.gprom-summary__list li { margin: 0 0 8px; padding: 0; }
.gprom-summary__list li:last-child { margin-bottom: 0; }
.gprom-item {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 8px; margin: 0; border: 1px solid #ffd3dc; border-radius: 14px;
	background: #fff6f8; cursor: pointer; text-align: left; color: inherit; font: inherit;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gprom-item:hover, .gprom-item:focus { background: #ffeaf0; border-color: #ff4d6d; transform: translateY(-1px); }
.gprom-item__thumb { flex: none; line-height: 0; }
.gprom-item__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.gprom-item__body { flex: 1 1 auto; min-width: 0; }
.gprom-item__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.gprom-item__until { display: block; margin-top: 2px; font-size: 12.5px; color: #6b5560; }
.gprom-tag {
	display: inline-block; margin-top: 5px; padding: 2px 9px; border-radius: 999px;
	background: #d63638; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.5;
	animation: gprom-blink 1.4s ease-in-out infinite;
}
.gprom-item__go {
	flex: none; padding: 8px 12px; border-radius: 999px;
	background: #d6275a; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
}

/* ---------- Botón flotante ---------- */
.gprom-fab {
	display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
	padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(135deg, #ff4d6d, #ff8a3d); color: #fff;
	font-size: 15px; font-weight: 800; line-height: 1.2; text-align: left;
	box-shadow: 0 6px 22px rgba(255, 77, 109, .55);
	animation: gprom-pulse 2s infinite;
}
.gprom-fab:hover { filter: brightness(1.07); }
.gprom-fab__icon { display: inline-block; animation: gprom-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 80%; }

@keyframes gprom-pulse {
	0%   { box-shadow: 0 6px 22px rgba(255, 77, 109, .55), 0 0 0 0 rgba(255, 77, 109, .5); }
	70%  { box-shadow: 0 6px 22px rgba(255, 77, 109, .55), 0 0 0 14px rgba(255, 77, 109, 0); }
	100% { box-shadow: 0 6px 22px rgba(255, 77, 109, .55), 0 0 0 0 rgba(255, 77, 109, 0); }
}
@keyframes gprom-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes gprom-blink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes gprom-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.gprom-overlay { padding: 12px; }
	.gprom-modal__img { max-width: 94vw; }
	.gprom-summary { left: 10px; right: 10px; width: auto; max-width: none; border-radius: 16px; }
	.gprom-summary, .gprom-fab { bottom: calc(var(--gprom-bottom, 10px) + env(safe-area-inset-bottom, 0px)); }
	.gprom-fab { left: 10px; max-width: calc(100vw - 20px); padding: 12px 16px; font-size: 14px; }
	.gprom-summary__head { padding: 14px 50px 12px 14px; }
	.gprom-summary__title { font-size: 17px; }
	.gprom-summary__list { max-height: 38vh; padding: 8px; }
	.gprom-item { gap: 10px; padding: 7px; }
	.gprom-item__thumb img { width: 54px; height: 54px; }
	.gprom-item__title { font-size: 14px; }
	.gprom-item__go { padding: 7px 10px; font-size: 12.5px; }
}
@media (max-width: 340px) {
	.gprom-item__go { display: none; }
}
@media (max-height: 520px) {
	.gprom-summary__list { max-height: 28vh; }
	.gprom-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gprom-fab, .gprom-fab__icon, .gprom-tag, .gprom-summary__head::after { animation: none; }
	.gprom-overlay, .gprom-modal, .gprom-summary { transition: none; }
}
