/* ASD Botón de Reserva — frontend styles
   Designs: sm / lg button, banner. Brand: deep green #173332, rosé #f3bbc4. */

.asd-br-button,
.asd-br-banner__cta {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	color: #13251f;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	background-image: linear-gradient( 120deg, #f3bbc4, #f7b733, #25d366, #f3bbc4 );
	background-size: 300% 100%;
	animation: asd-br-shimmer 6s linear infinite;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.asd-br-button .asd-br-icon,
.asd-br-button .asd-br-label,
.asd-br-banner__cta .asd-br-icon,
.asd-br-banner__cta .asd-br-label {
	position: relative;
	z-index: 1;
}

.asd-br-button:focus-visible,
.asd-br-banner__cta:focus-visible {
	outline: 3px solid #173332;
	outline-offset: 2px;
}

.asd-br-button:hover,
.asd-br-banner__cta:hover {
	transform: translateY( -2px );
}

.asd-br-button:active,
.asd-br-banner__cta:active {
	transform: translateY( 0 ) scale( 0.98 );
}

/* Small */
.asd-br-button--sm {
	min-height: 40px;
	gap: 8px;
	padding: 0 18px;
	font-size: 14px;
	box-shadow: 0 6px 18px rgba( 37, 211, 102, 0.28 );
}

/* Large (default) */
.asd-br-button--lg {
	min-height: 54px;
	padding: 0 28px;
	font-size: 16px;
	box-shadow: 0 12px 32px rgba( 37, 211, 102, 0.3 );
	animation: asd-br-shimmer 6s linear infinite, asd-br-pulse 2.6s ease-in-out infinite;
}

/* Banner (wide horizontal) */
.asd-br-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	border-radius: 20px;
	padding: 24px 28px;
	background-image: linear-gradient( 120deg, #173332 0%, #1d3f3c 55%, #214a48 100% );
	box-shadow: 0 16px 40px rgba( 23, 51, 50, 0.35 );
}

.asd-br-banner::after {
	content: "";
	position: absolute;
	bottom: -40px;
	left: 30%;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient( circle, #f3bbc4, transparent 70% );
	opacity: 0.35;
	pointer-events: none;
}

.asd-br-banner__text {
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 180px;
}

.asd-br-banner__eyebrow {
	display: block;
	color: #f3bbc4;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.asd-br-banner__heading {
	display: block;
	color: #fff;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}

.asd-br-banner__cta {
	min-height: 52px;
	padding: 0 26px;
	font-size: 15px;
	animation: asd-br-shimmer 6s linear infinite, asd-br-pulse 2.6s ease-in-out infinite;
}

/* Floating global */
.asd-br-floating {
	position: fixed;
	bottom: calc( 20px + env( safe-area-inset-bottom, 0px ) );
	z-index: 9999;
	max-width: calc( 100vw - 32px );
	transition: opacity 200ms ease, transform 200ms ease;
}

.asd-br-floating--br {
	right: 20px;
}

.asd-br-floating--bl {
	left: 20px;
}

.asd-br-floating--closing {
	opacity: 0;
	transform: translateY( 12px );
	pointer-events: none;
}

.asd-br-floating__close {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 2;
	width: 26px;
	height: 26px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #173332;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.3 );
}

.asd-br-floating--bl .asd-br-floating__close {
	right: auto;
	left: -10px;
}

.asd-br-floating__close:focus-visible {
	outline: 3px solid #f3bbc4;
	outline-offset: 2px;
}

/* Responsive: banner stacks, floating banner becomes bottom bar */
@media ( max-width: 600px ) {
	.asd-br-banner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.asd-br-banner__cta {
		width: 100%;
	}

	.asd-br-floating {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}

	.asd-br-floating .asd-br-button {
		width: 100%;
	}
}

@keyframes asd-br-shimmer {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 300% 50%;
	}
}

@keyframes asd-br-pulse {
	0%, 100% {
		box-shadow: 0 12px 32px rgba( 37, 211, 102, 0.3 );
	}
	50% {
		box-shadow: 0 16px 40px rgba( 243, 187, 196, 0.55 );
	}
}

/* Accessibility: respect reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.asd-br-button,
	.asd-br-banner__cta {
		animation: none;
		background-position: 0% 50%;
	}

	.asd-br-button:hover,
	.asd-br-banner__cta:hover {
		transform: none;
	}
}
