/**
 * Tarjeta regalo.
 *  - Banner fijo al pie de la pantalla (toda la web salvo compra y pago).
 *  - Página /regalo: se apoya en ticket-flow.css (mismas piezas que la compra
 *    de entradas); aquí solo va lo propio de la tarjeta.
 */

/* ───────── Banner fijo ─────────
   Rojo de la marca, entra desde abajo y el regalo se mueve de vez en
   cuando para que no pase desapercibido. La X lo cierra 24 h. */
.mt-gift-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9980;
	background: linear-gradient(100deg, #b5121b 0%, #fe3331 45%, #e0262a 100%);
	border-top: 3px solid #e3c75e;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
	padding-bottom: env(safe-area-inset-bottom);
	font-family: inherit;
	overflow: hidden;
	animation: mt-gift-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.4s both;
}
/* Brillo que cruza el banner cada pocos segundos. */
.mt-gift-banner::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 30%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-20deg);
	animation: mt-gift-shine 5s ease-in-out 1.5s infinite;
	pointer-events: none;
}
.mt-gift-banner.is-closing { animation: mt-gift-out 0.3s ease forwards; }
.mt-gift-banner-in {
	position: relative;
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 64px 14px 18px;
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fff;
	text-decoration: none;
}
.mt-gift-banner-in:hover,
.mt-gift-banner-in:focus-visible { color: #fff; text-decoration: none; }
.mt-gift-banner-in:focus-visible { outline: 3px solid #e3c75e; outline-offset: -3px; }
.mt-gift-banner-ico {
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e3c75e;
	color: #131a3d;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
	animation: mt-gift-wiggle 4s ease-in-out 1.2s infinite;
}
.mt-gift-banner-ico svg { width: 27px; height: 27px; }
.mt-gift-banner-txt { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.mt-gift-banner-txt strong { display: block; font-size: 20px; color: #fff; letter-spacing: 0.2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.mt-gift-banner-sub { display: block; margin-top: 2px; font-size: 14.5px; color: rgba(255, 255, 255, 0.95); }
.mt-gift-banner-cta {
	flex: 0 0 auto;
	padding: 12px 28px;
	border-radius: 999px;
	background: #fff;
	color: #c8151f;
	font-weight: 800;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	animation: mt-gift-pulse 2.4s ease-in-out 1.5s infinite;
	transition: background 0.15s ease, color 0.15s ease;
}
.mt-gift-banner-in:hover .mt-gift-banner-cta { background: #e3c75e; color: #131a3d; }
.mt-gift-banner-close {
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	right: max(10px, calc((100% - 1100px) / 2 + 10px));
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.22);
	color: #fff;
	cursor: pointer;
	z-index: 1;
	transition: background 0.15s ease;
}
.mt-gift-banner-close:hover,
.mt-gift-banner-close:focus-visible { background: rgba(0, 0, 0, 0.4); color: #fff; }
.mt-gift-banner-close:focus-visible { outline: 2px solid #e3c75e; outline-offset: 2px; }

@keyframes mt-gift-in {
	from { transform: translateY(110%); }
	to { transform: translateY(0); }
}
@keyframes mt-gift-out {
	to { transform: translateY(110%); opacity: 0; }
}
@keyframes mt-gift-shine {
	0%, 60% { left: -40%; }
	100% { left: 130%; }
}
@keyframes mt-gift-wiggle {
	0%, 80%, 100% { transform: rotate(0) scale(1); }
	84% { transform: rotate(-14deg) scale(1.1); }
	88% { transform: rotate(12deg) scale(1.1); }
	92% { transform: rotate(-8deg) scale(1.05); }
	96% { transform: rotate(4deg) scale(1); }
}
@keyframes mt-gift-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(255, 255, 255, 0.7); }
	50% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.mt-gift-banner,
	.mt-gift-banner::before,
	.mt-gift-banner-ico,
	.mt-gift-banner-cta { animation: none; }
	.mt-gift-banner::before { display: none; }
}

@media (max-width: 600px) {
	.mt-gift-banner-in { padding: 10px 48px 10px 12px; gap: 10px; }
	.mt-gift-banner-ico { width: 40px; height: 40px; }
	.mt-gift-banner-ico svg { width: 22px; height: 22px; }
	.mt-gift-banner-txt strong { font-size: 16px; }
	.mt-gift-banner-sub { font-size: 12px; }
	.mt-gift-banner-cta { padding: 10px 14px; font-size: 13px; letter-spacing: 0.3px; }
	.mt-gift-banner-close { right: 8px; width: 30px; height: 30px; }
}
@media (max-width: 380px) {
	.mt-gift-banner-sub { display: none; }
}

/* Hueco al final de la página para que el banner no tape el pie, y el botón
   de WhatsApp (Joinchat) por encima del banner. */
body.mt-has-gift-banner { padding-bottom: var(--mt-gift-banner-h, 64px); }
body.mt-has-gift-banner .joinchat {
	--bottom: calc(var(--mt-gift-banner-h, 64px) + 14px);
	bottom: calc(var(--mt-gift-banner-h, 64px) + 14px) !important;
}

/* ───────── Página /regalo ───────── */
.mt-gift { max-width: 980px; margin: 0 auto; }

.mt-gift-admin-note {
	margin: 0 0 18px;
	padding: 10px 14px;
	background: #fff8e5;
	border: 1px solid #f0c33c;
	border-radius: 10px;
	font-size: 0.86rem;
	text-align: center;
}

/* En la compra las tarjetas de sección son una leyenda; aquí se eligen. */
.mt-gift .mt-zones-overview .mt-gift-zone { cursor: pointer; }
.mt-gift .mt-zones-overview .mt-gift-zone-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mt-gift .mt-zones-overview .mt-gift-zone.selected {
	border-color: var(--mt-zone-color);
	background: color-mix(in srgb, var(--mt-zone-color) 9%, #fff);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--mt-zone-color) 35%, transparent);
}
.mt-gift .mt-zones-overview .mt-gift-zone:has(.mt-gift-zone-input:focus-visible) {
	outline: 3px solid rgba(254, 51, 49, 0.45);
	outline-offset: 2px;
}
.mt-gift .mt-zonepreview-svg circle { cursor: pointer; }

/* Píldora cantidad + continuar: mismo control que el paso 1 de la compra. */
.mt-gift .mt-step-footer .mt-continue-btn { flex: 0 0 auto; min-height: 0; }

/* Paso 2 */
.mt-gift-send {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	max-width: 640px;
	margin: 0 auto 16px;
}
.mt-gift-choice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	background: var(--mt-paper);
	border: 2px solid var(--mt-line);
	border-radius: var(--mt-radius);
	cursor: pointer;
	line-height: 1.35;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mt-gift-choice input { margin-top: 3px; accent-color: var(--mt-accent); }
.mt-gift-choice strong { display: block; }
.mt-gift-choice small { display: block; color: var(--mt-ink-soft); font-size: 0.82rem; margin-top: 2px; }
.mt-gift-choice:has(input:checked) {
	border-color: var(--mt-accent);
	box-shadow: 0 0 0 3px rgba(254, 51, 49, 0.12);
}

.mt-gift-fields { max-width: 640px; margin: 0 auto 18px; }
.mt-gift-recipient { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.mt-gift-recipient[hidden] { display: none; }
.mt-gift-field {
	display: block;
	margin-bottom: 12px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mt-ink-soft);
}
.mt-gift-field input,
.mt-gift-field textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 2px solid var(--mt-line);
	border-radius: var(--mt-radius-sm);
	background: var(--mt-paper);
	color: var(--mt-ink);
	font: inherit;
	font-size: 16px; /* evita el zoom de iOS */
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mt-gift-field input:focus,
.mt-gift-field textarea:focus {
	outline: none;
	border-color: var(--mt-accent);
	box-shadow: 0 0 0 4px rgba(254, 51, 49, 0.16);
}
.mt-gift-field textarea { resize: vertical; }

.mt-gift .mt-order-summary { max-width: 640px; margin-left: auto; margin-right: auto; }
.mt-gift .mt-summary-seat-zone { font-size: 0.8rem; }

.mt-gift-small {
	max-width: 640px;
	margin: 0 auto 10px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--mt-ink-soft);
	text-align: center;
}
.mt-gift-error {
	max-width: 640px;
	margin: 0 auto 10px;
	color: var(--mt-danger);
	font-weight: 700;
	text-align: center;
}
.mt-gift-error[hidden] { display: none; }

.mt-gift .mt-flow-step[data-step="2"] .mt-step-footer { max-width: 640px; margin-left: auto; margin-right: auto; }

.mt-gift-off { text-align: center; padding: 30px 0; }

@media (max-width: 600px) {
	.mt-gift-send,
	.mt-gift-recipient { grid-template-columns: 1fr; }
}
