/* Hotel Booking Button — hotel-booking-button.css
   License: GPL-2.0-or-later
   ------------------------------------------------------------------ */

/* ── Reset base ─────────────────────────────────────────────────── */
.hbb-floating-container *,
.hbb-modal-overlay * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Botón flotante ─────────────────────────────────────────────── */
.hbb-floating-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;
}

.hbb-button {
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
	transition: transform .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
	outline-offset: 4px;
}

.hbb-button:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .34);
}

.hbb-button:focus-visible {
	outline: 3px solid #25D366;
	outline-offset: 4px;
}

.hbb-button:active {
	transform: scale(.96);
}

@keyframes hbbBreathe {
	0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
	50%       { box-shadow: 0 4px 16px rgba(0,0,0,.28), 0 0 0 10px rgba(37,211,102,0); }
}

.hbb-breath {
	animation: hbbBreathe 2.4s ease-in-out infinite;
}

/* ── Overlay ────────────────────────────────────────────────────── */
.hbb-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	align-items: flex-end;
	justify-content: center;
}

.hbb-modal-overlay.active {
	display: flex;
}

@media (min-width: 540px) {
	.hbb-modal-overlay {
		align-items: center;
		padding: 16px;
	}
}

/* ── Modal ──────────────────────────────────────────────────────── */
.hbb-modal {
	background: #fff;
	width: 100%;
	max-width: 420px;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	box-shadow: 0 -4px 40px rgba(0, 0, 0, .18);
	animation: hbbSlideUp .28s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: #1a1a1a;
}

@media (min-width: 540px) {
	.hbb-modal {
		border-radius: 20px;
		box-shadow: 0 8px 48px rgba(0, 0, 0, .22);
		animation: hbbFadeIn .22s ease;
	}
}

@keyframes hbbSlideUp {
	from { transform: translateY(100%); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

@keyframes hbbFadeIn {
	from { transform: translateY(12px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ── Header ─────────────────────────────────────────────────────── */
.hbb-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 22px 16px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #fff;
}

.hbb-modal-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .82;
	margin-bottom: 4px;
}

.hbb-modal-header h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.hbb-modal-subtitle {
	font-size: 13px;
	opacity: .88;
	margin-top: 4px;
	line-height: 1.4;
}

/* ── Botón cerrar ───────────────────────────────────────────────── */
.hbb-close {
	flex-shrink: 0;
	background: rgba(255, 255, 255, .18);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	font-size: 18px;
	transition: background .15s ease;
	margin-top: 2px;
}

.hbb-close:hover {
	background: rgba(255, 255, 255, .32);
}

.hbb-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ── Body ───────────────────────────────────────────────────────── */
.hbb-modal-body {
	padding: 20px 22px 24px;
}

/* ── Campos ─────────────────────────────────────────────────────── */
.hbb-field {
	margin-bottom: 14px;
}

.hbb-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}

.hbb-field input,
.hbb-field select {
	display: block;
	width: 100%;
	padding: 9px 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #111827;
	background: #f9fafb;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}

.hbb-field input::placeholder {
	color: #9ca3af;
}

.hbb-field input:focus,
.hbb-field select:focus {
	outline: none;
	border-color: #25D366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .2);
	background: #fff;
}

.hbb-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.hbb-field-row .hbb-field {
	margin-bottom: 0;
}

.hbb-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

.hbb-field input.wbb-invalid {
	border-color: #ef4444;
	background: #fff5f5;
}

.hbb-field input.wbb-invalid:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .2);
}

.hbb-field input.wbb-valid {
	border-color: #22c55e;
}

.hbb-field-hint {
	display: none;
	font-size: 12px;
	margin-top: 4px;
	line-height: 1.4;
}

.hbb-hint-error { color: #ef4444; }
.hbb-hint-ok    { color: #22c55e; }

/* ── Privacidad ─────────────────────────────────────────────────── */
.hbb-privacy {
	margin-bottom: 16px;
}

.hbb-privacy p {
	font-size: 11.5px;
	color: #9ca3af;
	line-height: 1.5;
	text-align: center;
}

/* ── Botón envío ────────────────────────────────────────────────── */
.hbb-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 13px 20px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity .18s ease, transform .12s ease;
	font-family: inherit;
	letter-spacing: .01em;
}

.hbb-submit:hover { opacity: .92; }
.hbb-submit:active { transform: scale(.98); }
.hbb-submit:focus-visible {
	outline: 3px solid #128C7E;
	outline-offset: 3px;
}

/* ── Submit button animations ───────────────────────────────────── */

/* Pulse (glow) */
@keyframes wbbSubmitPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	50%       { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}
.hbb-submit-pulse {
	animation: wbbSubmitPulse 2s ease-in-out infinite;
}

/* Bounce (hover lift) */
@keyframes wbbSubmitBounce {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-3px); }
}
.hbb-submit-bounce {
	animation: wbbSubmitBounce 1.6s ease-in-out infinite;
}
.hbb-submit-bounce:hover {
	transform: translateY(-4px);
	opacity: 1;
}

/* Shimmer (light sweep) */
@keyframes wbbSubmitShimmer {
	0%   { background-position: -200% center; }
	100% { background-position: 200% center; }
}
.hbb-submit-shimmer {
	background-size: 200% auto;
	background-image: linear-gradient(
		90deg,
		#25D366 0%,
		#128C7E 30%,
		#5DF0A0 50%,
		#128C7E 70%,
		#25D366 100%
	);
	animation: wbbSubmitShimmer 2.4s linear infinite;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 360px) {
	.hbb-floating-container { bottom: 16px; right: 16px; }
	.hbb-modal-header        { padding: 18px 16px 14px; }
	.hbb-modal-body          { padding: 16px 16px 20px; }
	.hbb-field-row           { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.hbb-breath  { animation: none; }
	.hbb-modal,
	.hbb-button  { animation: none; transition: none; }
}
