/* Bedramon Cookies. "Aceptar" and "Rechazar" share exactly the same style:
   AEPD guide (mayo 2024), 3.1.2.2 and 3.2.1 — same level, same visibility. */

.bc-aviso,
.bc-panel,
.bc-flotante {
	--bc-color: #007a66;
	--bc-fondo: #ffffff;
	--bc-texto: #1d2327;
	--bc-suave: #50575e;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bc-texto);
	box-sizing: border-box;
}

.bc-aviso *,
.bc-panel * {
	box-sizing: border-box;
}

.bc-aviso[hidden],
.bc-panel[hidden] {
	display: none !important;
}

.bc-aviso {
	position: fixed;
	z-index: 99990;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 960px;
	margin: 0 auto;
	padding: 18px 20px;
	background: var(--bc-fondo);
	border-radius: 10px;
	border-top: 4px solid var(--bc-color);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.bc-titulo {
	margin: 0;
	width: 100%;
	font-weight: 700;
	font-size: 17px;
}

.bc-texto {
	margin: 0;
	flex: 1 1 420px;
}

.bc-texto a,
.bc-panel a {
	color: var(--bc-color);
	text-decoration: underline;
	white-space: nowrap;
}

.bc-botones {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.bc-boton {
	appearance: none;
	min-width: 130px;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--bc-color);
	border-radius: 6px;
	background: var(--bc-color);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.bc-boton:hover {
	filter: brightness(0.92);
}

.bc-boton.bc-secundario {
	background: #ffffff;
	color: var(--bc-color);
}

.bc-enlace {
	appearance: none;
	min-height: 44px;
	padding: 10px 6px;
	border: 0;
	background: none;
	color: var(--bc-color);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.bc-boton:focus-visible,
.bc-enlace:focus-visible,
.bc-cerrar:focus-visible,
.bc-flotante:focus-visible,
.bc-panel input:focus-visible {
	outline: 3px solid #1d2327;
	outline-offset: 2px;
}

/* Configuration panel (second layer) */
.bc-panel {
	position: fixed;
	z-index: 99995;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bc-panel-caja {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	background: var(--bc-fondo);
	border-radius: 10px;
	border-top: 4px solid var(--bc-color);
}

.bc-panel .bc-texto {
	margin: 8px 0 16px;
}

.bc-cat {
	padding: 12px 0;
	border-top: 1px solid #dcdcde;
}

.bc-cat label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.bc-cat input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--bc-color);
}

.bc-cat p {
	margin: 4px 0 0 30px;
	color: var(--bc-suave);
	font-size: 14px;
}

.bc-siempre {
	margin-left: auto;
	font-size: 13px;
	color: var(--bc-suave);
}

.bc-panel .bc-botones {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
}

.bc-cerrar {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--bc-suave);
	cursor: pointer;
}

/* Permanent access to the settings (AEPD guide, 3.2.9) */
.bc-flotante {
	position: fixed;
	z-index: 99980;
	left: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border: 1px solid var(--bc-color);
	border-radius: 18px;
	background: #ffffff;
	color: var(--bc-color);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bc-con-aviso .bc-flotante {
	display: none;
}

@media (max-width: 600px) {
	.bc-aviso {
		left: 8px;
		right: 8px;
		bottom: 8px;
		padding: 14px 16px;
		font-size: 14px;
	}
	.bc-texto {
		flex-basis: 100%;
	}
	.bc-botones {
		width: 100%;
	}
	.bc-boton {
		flex: 1 1 0;
		min-width: 0;
	}
	.bc-enlace {
		width: 100%;
		text-align: center;
	}
	.bc-panel .bc-boton {
		flex-basis: 100%;
	}
	.bc-panel-caja {
		padding: 20px 16px;
	}
}

@media print {
	.bc-aviso,
	.bc-panel,
	.bc-flotante {
		display: none !important;
	}
}
