/* Fricant – Aviso de cookies v1.0.0 */
.fc-root, .fc-root *, .fc-float, .fc-placeholder, .fc-policy .fc-btn { box-sizing: border-box; }
.fc-root {
	--fc-bg: #ffffff; --fc-fg: #1d2530; --fc-muted: #4a5566; --fc-line: #dfe3ea;
	--fc-btn-bg: var(--fc-color, #0b4f8a); --fc-btn-fg: #ffffff;
	font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--fc-fg);
}
.fc-root[hidden] { display: none !important; }
html.fc-lock, html.fc-lock body { overflow: hidden !important; }

/* Capa modal: la web no es usable hasta elegir */
.fc-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	background: rgba(12, 18, 28, .62);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
/* En las páginas legales el aviso queda anclado abajo para poder leerlas, pero no desaparece */
.fc-docked { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; padding: 12px; }
.fc-docked .fc-banner { margin: 0 auto; box-shadow: 0 -4px 30px rgba(0,0,0,.25); }

.fc-banner, .fc-panel {
	background: var(--fc-bg); color: var(--fc-fg); border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35); width: 100%;
}
.fc-banner { max-width: 680px; padding: 24px; max-height: calc(100vh - 32px); overflow: auto; }
.fc-panel { max-width: 760px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.fc-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--fc-fg); }
.fc-text p, .fc-panel-body > p { margin: 0 0 10px; color: var(--fc-muted); }
.fc-links { font-size: 14px; }
.fc-root a { color: var(--fc-btn-bg); text-decoration: underline; }

/* Botones: todos del mismo tamaño y color */
.fc-actions { display: flex; gap: 10px; margin-top: 16px; }
.fc-btn {
	flex: 1 1 0; min-width: 0; min-height: 46px; margin: 0;
	padding: 10px 14px; border: 2px solid var(--fc-btn-bg, var(--fc-color, #0b4f8a)); border-radius: 8px;
	background: var(--fc-btn-bg, var(--fc-color, #0b4f8a)); color: #fff;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
	cursor: pointer; text-transform: none; letter-spacing: normal;
}
.fc-btn:hover { filter: brightness(1.12); }
.fc-btn:focus-visible, .fc-close:focus-visible, .fc-switch input:focus-visible + .fc-slider, .fc-float:focus-visible, .fc-details summary:focus-visible {
	outline: 3px solid #f2b705; outline-offset: 2px;
}
.fc-policy .fc-btn, .fc-open-settings.fc-btn { flex: none; display: inline-block; min-width: 240px; }

/* Panel */
.fc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 14px; border-bottom: 1px solid var(--fc-line); }
.fc-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fc-brand .fc-title { margin: 0; }
.fc-logo { display: block; height: 40px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
.fc-logo + .fc-title { padding-left: 14px; border-left: 1px solid var(--fc-line); }
.fc-close { white-space: nowrap; flex: none; background: none; border: 0; font: inherit; font-size: 15px; color: var(--fc-muted); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.fc-close:hover { background: #f1f3f6; }
.fc-panel-body { padding: 16px 24px; overflow: auto; }
.fc-panel .fc-actions { padding: 14px 24px 20px; margin: 0; border-top: 1px solid var(--fc-line); }
.fc-cat { border: 1px solid var(--fc-line); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; }
.fc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-cat h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--fc-fg); }
.fc-cat p { margin: 8px 0 0; color: var(--fc-muted); font-size: 14px; }
.fc-always { font-size: 13px; font-weight: 600; color: #1b7a3a; white-space: nowrap; }

/* Interruptor (desactivado por defecto) */
.fc-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; cursor: pointer; }
.fc-switch input { position: absolute; z-index: 2; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fc-slider { position: absolute; inset: 0; pointer-events: none; background: #b7bfcc; border-radius: 28px; transition: background .2s; }
.fc-slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fc-switch input:checked + .fc-slider { background: var(--fc-btn-bg); }
.fc-switch input:checked + .fc-slider::before { transform: translateX(22px); }

.fc-details { margin-top: 8px; font-size: 14px; }
.fc-details summary { cursor: pointer; color: var(--fc-btn-bg, #0b4f8a); font-weight: 600; }

/* Tablas (panel y política) */
.fc-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fc-table th, .fc-table td { border: 1px solid #dfe3ea; padding: 8px 10px; text-align: left; vertical-align: top; }
.fc-table th { background: #f4f6f9; font-weight: 700; }
.fc-table code { font-size: 13px; word-break: break-word; background: none; padding: 0; }

/* Botón flotante */
.fc-float {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482000;
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
	border: 0; border-radius: 999px; background: var(--fc-color, #0b4f8a); color: #fff;
	font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Contenido de terceros bloqueado */
.fc-hidden { display: none !important; }
.fc-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 24px; min-height: 220px; background: #f1f3f6; border: 1px dashed #b7bfcc; border-radius: 8px;
	text-align: center; color: #1d2530; font-size: 15px;
}
.fc-placeholder p { margin: 0; max-width: 520px; }
.fc-ph-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fc-ph-actions .fc-btn { flex: 0 0 220px; }

.fc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Política */
.fc-policy h2 { margin-top: 1.6em; }
.fc-policy h3 { margin-top: 1.2em; }

@media (max-width: 640px) {
	.fc-actions { flex-direction: column; }
	.fc-btn { flex: 1 1 auto; width: 100%; }
	.fc-banner { padding: 18px; }
	.fc-panel-head, .fc-panel-body { padding-left: 16px; padding-right: 16px; }
	.fc-brand { gap: 10px; }
	.fc-logo { height: 30px; max-width: 100px; }
	.fc-logo + .fc-title { padding-left: 10px; font-size: 17px; }
	.fc-panel .fc-actions { padding: 12px 16px 16px; }
	.fc-policy .fc-btn, .fc-open-settings.fc-btn { min-width: 0; width: 100%; }
	.fc-table thead { display: none; }
	.fc-table tr { display: block; border: 1px solid #dfe3ea; margin-bottom: 10px; }
	.fc-table td { display: block; border: 0; border-bottom: 1px solid #eef0f4; }
	.fc-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 12px; color: #4a5566; }
	.fc-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fc-slider, .fc-slider::before { transition: none; } }
.fc-banner:focus { outline: none; }
