#ahac-aviso {
	--ahac-bg: #ffffff;
	--ahac-fg: #222222;
	--ahac-btn: #222222;
	--ahac-btn-fg: #ffffff;
	position: fixed;
	left: 12px;
	right: 12px;
	z-index: 2147483000;
	box-sizing: border-box;
	max-width: 600px;
	margin: 0 auto;
	padding: 16px 18px;
	background: var(--ahac-bg);
	color: var(--ahac-fg);
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
	font-size: 15px;
	line-height: 1.45;
}
#ahac-aviso[hidden] { display: none !important; }
#ahac-aviso.ahac-abajo { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
#ahac-aviso.ahac-arriba { top: calc(12px + env(safe-area-inset-top, 0px)); }

#ahac-aviso .ahac-texto p { margin: 0 0 10px; }
#ahac-aviso .ahac-texto a { color: inherit; text-decoration: underline; }
#ahac-aviso .ahac-botones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 4px;
}
#ahac-aviso .ahac-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}
#ahac-aviso .ahac-btn[hidden] { display: none; }
#ahac-aviso .ahac-btn-ok { background: var(--ahac-btn); color: var(--ahac-btn-fg); }
#ahac-aviso .ahac-btn-sec {
	background: transparent;
	color: var(--ahac-fg);
	box-shadow: inset 0 0 0 1.5px currentColor;
}
#ahac-aviso .ahac-btn:focus-visible { outline: 3px solid var(--ahac-btn); outline-offset: 2px; }

/* Dispositivos del hotel */
html.ahac-kiosko .ahac-solo-movil { display: none !important; }
html:not(.ahac-kiosko) .ahac-solo-hotel { display: none !important; }

/* Aviso de vuelta automática desde las páginas legales */
#ahac-volver {
	position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%); z-index: 2147483001;
	background: rgba(20, 20, 20, .92); color: #fff; border-radius: 999px;
	padding: 10px 18px; font-size: 15px; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
#ahac-volver[hidden] { display: none !important; }

/* Pie legal y códigos QR */
.ahac-pie-legal { font-size: .9em; width: 100%; box-sizing: border-box; }
.ahac-pie-legal.ahac-centro { text-align: center; }
.ahac-pie-legal.ahac-derecha { text-align: right; }
.ahac-pie-legal.ahac-centro .ahac-qr-items { justify-content: center; }
.ahac-pie-legal.ahac-derecha .ahac-qr-items { justify-content: flex-end; }
.ahac-pie-legal.ahac-centro .ahac-legal-enlaces,
.ahac-pie-legal.ahac-derecha .ahac-legal-enlaces { display: block; }
.ahac-legal-enlaces a { color: inherit; }
.ahac-legal-qr-texto { margin: 0 0 8px; }
.ahac-qr-items { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ahac-qr { margin: 0; text-align: center; }
.ahac-qr-img { margin: 0 auto; }
.ahac-qr-img svg { display: block; width: 100%; height: 100%; }
.ahac-pie-legal .ahac-qr figcaption,
.ahac-qr-wrap .ahac-qr figcaption { margin-top: 6px; color: inherit; font-size: inherit; font-style: normal; line-height: 1.4; }
html.ahac-redirigiendo body { visibility: hidden !important; }

/* Páginas legales: enlaces inactivos y botón volver */
.ahac-url { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; user-select: all; -webkit-user-select: all; }
.ahac-volver-wrap { margin: 0 0 18px; }
.ahac-volver-abajo { margin: 28px 0 0; }
.ahac-volver-btn {
	appearance: none; border: 0; border-radius: 8px; cursor: pointer;
	padding: 12px 20px; min-height: 48px; font: inherit; font-weight: 600;
	background: var(--ahac-btn, #222); color: var(--ahac-btn-fg, #fff);
}
.ahac-volver-btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Política de cookies */
.ahac-politica mark.ahac-falta { background: #ffe58a; color: #222; padding: 0 3px; }

/* Tabla de la política de cookies */
.ahac-tabla-wrap { overflow-x: auto; }
.ahac-tabla { width: 100%; border-collapse: collapse; font-size: .95em; }
.ahac-tabla th, .ahac-tabla td { padding: 8px 10px; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; vertical-align: top; }
.ahac-tabla th { font-weight: 600; }
