/* Consentimiento de Cookies LB */
#lbc-raiz {
	--lbc-color: #1e73be;
	--lbc-color-texto: #ffffff;
	--lbc-fondo: #ffffff;
	--lbc-texto: #222222;
	--lbc-gris: #f0f0f0;
	--lbc-borde: #dddddd;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lbc-texto);
}
#lbc-raiz *, #lbc-raiz *::before, #lbc-raiz *::after { box-sizing: border-box; }
#lbc-raiz [hidden] { display: none !important; }

.lbc-fondo {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 2147483000;
}

.lbc-banner {
	position: fixed;
	z-index: 2147483001;
	background: var(--lbc-fondo);
	color: var(--lbc-texto);
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	padding: 20px 24px 14px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

/* Ventana centrada */
.lbc--modal .lbc-banner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px));
}
/* Barra inferior */
.lbc--barra .lbc-banner {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	max-height: 80vh;
}
.lbc--barra .lbc-banner > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* Tarjeta en la esquina */
.lbc--esquina .lbc-banner {
	left: 16px;
	bottom: 16px;
	width: min(400px, calc(100vw - 32px));
}

.lbc-cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.lbc-titulo {
	margin: 0 auto;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	text-align: center;
}
.lbc--esquina .lbc-titulo, .lbc--barra .lbc-titulo { margin: 0; text-align: left; }
.lbc-cerrar {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0 4px;
}
.lbc-texto p { margin: 0 0 10px; font-size: 13.5px; }

/* Botones */
.lbc-botones {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 14px;
}
.lbc-btn {
	appearance: none;
	border: 1px solid var(--lbc-gris);
	background: var(--lbc-gris);
	color: var(--lbc-texto);
	border-radius: 6px;
	padding: 11px 12px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: filter .15s ease;
}
.lbc-btn:hover { filter: brightness(.95); }
.lbc-btn--principal {
	background: var(--lbc-color);
	border-color: var(--lbc-color);
	color: var(--lbc-color-texto);
}
.lbc-btn:focus-visible, .lbc-cerrar:focus-visible, .lbc-flotante:focus-visible, .lbc-cat summary:focus-visible {
	outline: 2px solid var(--lbc-color);
	outline-offset: 2px;
}

.lbc-enlaces { text-align: center; margin: 10px 0 0; font-size: 13px; }
.lbc-enlaces a { color: var(--lbc-color); text-decoration: underline; }

/* Panel de preferencias */
.lbc-panel { margin-top: 10px; }
.lbc-cat {
	border: 1px solid var(--lbc-borde);
	border-radius: 6px;
	margin-bottom: 8px;
	background: #fafafa;
}
.lbc-cat summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}
.lbc-cat summary::-webkit-details-marker { display: none; }
.lbc-cat-nombre::before {
	content: "›";
	display: inline-block;
	margin-right: 8px;
	transition: transform .15s ease;
}
.lbc-cat[open] .lbc-cat-nombre::before { transform: rotate(90deg); }
.lbc-cat p { margin: 0; padding: 0 12px 12px; font-size: 13px; font-weight: 400; }
.lbc-siempre { font-size: 12px; font-weight: 600; color: #2e7d32; }

/* Interruptor */
.lbc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.lbc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.lbc-slider {
	position: absolute;
	inset: 0;
	background: #c4c4c4;
	border-radius: 22px;
	transition: background .15s ease;
}
.lbc-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .15s ease;
}
.lbc-switch input:checked + .lbc-slider { background: var(--lbc-color); }
.lbc-switch input:checked + .lbc-slider::before { transform: translateX(18px); }
.lbc-switch input:focus-visible + .lbc-slider { outline: 2px solid var(--lbc-color); outline-offset: 2px; }

/* Botón flotante */
.lbc-flotante {
	position: fixed;
	left: 16px;
	bottom: 0;
	z-index: 2147482999;
	background: var(--lbc-fondo);
	color: var(--lbc-texto);
	border: 1px solid var(--lbc-borde);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
}

/* Móvil */
@media (max-width: 600px) {
	.lbc-botones { grid-template-columns: 1fr; }
	.lbc--modal .lbc-banner,
	.lbc--esquina .lbc-banner {
		top: auto;
		bottom: 0;
		left: 0;
		transform: none;
		width: 100%;
		border-radius: 12px 12px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#lbc-raiz * { transition: none !important; }
}
