/* EU Cookie Consent — CSS propio, sin fuentes ni iconos externos */
.eucc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--eucc-bg, #1a1a1a);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.eucc-banner[hidden] { display: none; }

.eucc-banner.eucc-pos-bottom { bottom: 0; }
.eucc-banner.eucc-pos-top { top: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }

.eucc-banner.eucc-pos-bottom-left-box {
	left: 16px;
	right: auto;
	bottom: 16px;
	max-width: 380px;
	border-radius: 12px;
}

.eucc-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
}
.eucc-pos-bottom-left-box .eucc-banner__inner {
	flex-direction: column;
	align-items: stretch;
	padding: 20px;
}

.eucc-banner__text { flex: 1 1 320px; min-width: 0; }
.eucc-banner__title { font-weight: 700; margin: 0 0 4px; font-size: 15px; }
.eucc-banner__desc { margin: 0; opacity: 0.9; }
.eucc-banner__desc a { color: #fff; text-decoration: underline; }

.eucc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

.eucc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}
.eucc-btn--solid { background: var(--eucc-btn, #2e6659); color: #fff; }
.eucc-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.eucc-btn--ghost { background: transparent; color: #fff; opacity: 0.85; text-decoration: underline; border: none; }
.eucc-btn:hover { filter: brightness(1.1); }
.eucc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Modal de preferencias */
.eucc-modal { position: fixed; inset: 0; z-index: 1000000; }
.eucc-modal[hidden] { display: none; }
.eucc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.eucc-modal__panel {
	position: relative;
	max-width: 560px;
	margin: 6vh auto;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	color: #1a1a1a;
	border-radius: 14px;
	padding: 28px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.eucc-modal__title { margin: 0 0 18px; font-size: 18px; }

.eucc-category {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #eee;
}
.eucc-category:first-child { border-top: none; }
.eucc-category__label { font-weight: 600; margin: 0 0 4px; font-size: 14px; }
.eucc-category__desc { margin: 0; font-size: 13px; color: #555; }

.eucc-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.eucc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.eucc-switch__track {
	position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: background 0.15s;
}
.eucc-switch__track::before {
	content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
	background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.eucc-switch input:checked + .eucc-switch__track { background: var(--eucc-btn, #2e6659); }
.eucc-switch input:checked + .eucc-switch__track::before { transform: translateX(18px); }
.eucc-switch input:disabled + .eucc-switch__track { background: #b7c7c3; cursor: not-allowed; }

.eucc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.eucc-modal__actions .eucc-btn--solid,
.eucc-modal__actions .eucc-btn--outline { color-scheme: light; }
.eucc-modal__actions .eucc-btn--outline { color: #1a1a1a; border-color: #ccc; }

/* Enlace flotante para reabrir preferencias */
.eucc-reopen-link--float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--eucc-btn, #2e6659);
	color: #fff;
	border: none;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.eucc-reopen-link { background: none; border: none; text-decoration: underline; cursor: pointer; font: inherit; color: inherit; padding: 0; }

@media (max-width: 640px) {
	.eucc-banner__actions { width: 100%; }
	.eucc-btn { flex: 1 1 auto; }
}
