:root {
	--dxp-bg: #FAF7F2;
	--dxp-ink: #2E2A27;
	--dxp-main: #3F7A74;
	--dxp-accent: #C0673F;
	--dxp-line: #E6E0D8;
	--dxp-help: #B3412E;
}
@media (prefers-color-scheme: dark) {
	:root:not(.dxp-light) {
		--dxp-bg: #1E2321;
		--dxp-ink: #EDE8E1;
		--dxp-main: #7FB5AD;
		--dxp-line: #3A4240;
	}
}

html.dxp-big { font-size: 118.75%; }

/* Barra de ayuda */
.dxp-bar {
	position: sticky;
	top: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px;
	background: var(--dxp-bg);
	border-bottom: 1px solid var(--dxp-line);
	font-family: inherit;
	font-size: 16px;
}
body.admin-bar .dxp-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dxp-bar { top: 0; } }
.dxp-bar__help {
	display: inline-block;
	background: var(--dxp-help);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 999px;
	line-height: 1.2;
}
.dxp-bar__help:hover, .dxp-bar__help:focus-visible { filter: brightness(1.08); }
.dxp-bar__tools { display: flex; gap: 8px; }
.dxp-bar__btn {
	font: inherit;
	font-weight: 600;
	background: transparent;
	color: var(--dxp-ink);
	border: 1.5px solid var(--dxp-ink);
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	line-height: 1.2;
	min-height: 44px;
}
.dxp-bar__btn[aria-pressed="true"] { background: var(--dxp-ink); color: var(--dxp-bg); }
.dxp-bar__exit { border-color: var(--dxp-main); color: var(--dxp-main); }
@media (max-width: 480px) {
	.dxp-bar { padding: 8px 12px; }
	.dxp-bar__help { padding: 10px 14px; }
	.dxp-bar__btn { padding: 8px 10px; }
}

/* Aviso legal al pie */
.dxp-legal {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	text-align: center;
	font-size: 0.875rem;
	color: var(--dxp-ink);
	opacity: 0.85;
}
.dxp-legal p { margin: 0.4em 0; }

/* Aviso de mayoría de edad */
.dxp-gate[hidden] { display: none; }
.dxp-gate {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(30, 35, 33, 0.72);
}
.dxp-gate__box {
	background: var(--dxp-bg);
	color: var(--dxp-ink);
	max-width: 520px;
	width: 100%;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}
.dxp-gate__brand {
	font-family: "Lora", Georgia, serif;
	font-size: 1.5rem;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
	color: var(--dxp-ink);
}
.dxp-gate__brand span { color: var(--dxp-accent); }
.dxp-gate h2 { font-size: 1.375rem; line-height: 1.3; margin: 0 0 12px; }
.dxp-gate p, .dxp-gate li { font-size: 1.0625rem; line-height: 1.55; }
.dxp-gate a { color: var(--dxp-main); font-weight: 700; }
.dxp-gate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.dxp-gate__actions button {
	font: inherit;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 999px;
	cursor: pointer;
	min-height: 48px;
}
.dxp-gate__yes { background: var(--dxp-main); color: #fff; border: 0; }
.dxp-gate__no { background: transparent; color: var(--dxp-ink); border: 1.5px solid var(--dxp-ink); }
html.dxp-gate-open { overflow: hidden; }

/* Ficha de recurso */
.dxp-ficha {
	margin-top: 2em;
	padding: 20px 24px;
	border: 1px solid var(--dxp-line);
	border-radius: 12px;
	background: rgba(63, 122, 116, 0.06);
}
.dxp-ficha__titulo { font-size: 1.125rem; margin: 0 0 8px; }
.dxp-ficha ul { margin: 0 0 12px; padding-left: 1.2em; }
.dxp-ficha__aviso { font-size: 0.875rem; opacity: 0.85; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Videoteca */
.dxp-video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #2E2A27;
	cursor: pointer;
}
.dxp-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.dxp-video:hover img, .dxp-video:focus-visible img { transform: scale(1.03); }
.dxp-video__noimg { display: block; width: 100%; height: 100%; background: var(--dxp-main); }
.dxp-video__play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	border-radius: 50%; background: rgba(250, 247, 242, 0.92); box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.dxp-video__play::after {
	content: ""; position: absolute; left: 26px; top: 20px;
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--dxp-main);
}
.dxp-video:focus-visible { outline: 3px solid var(--dxp-accent); outline-offset: 3px; }
.dxp-video-figure { margin: 0 0 1.5em; }

.dxp-vt-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 28px; }
.dxp-vt-filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; font-weight: 600; }
.dxp-vt-filtros select { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dxp-line); background: #fff; color: #2E2A27; min-width: 180px; }
.dxp-vt-filtros button { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--dxp-main); color: #fff; cursor: pointer; min-height: 44px; }
.dxp-vt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.dxp-vt-item { margin: 0; }
.dxp-vt-titulo { font-size: 1.1rem; line-height: 1.35; margin: 12px 0 4px; }
.dxp-vt-titulo a { color: inherit; text-decoration: none; }
.dxp-vt-titulo a:hover { text-decoration: underline; }
.dxp-vt-canal { margin: 0; font-size: 0.9rem; opacity: 0.8; }
.dxp-vt-pag { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.dxp-vt-pag a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--dxp-line); text-decoration: none; }
.dxp-vt-pag a[aria-current] { background: var(--dxp-main); color: #fff; border-color: var(--dxp-main); }

.dxp-player[hidden] { display: none; }
.dxp-player { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30,35,33,.8); }
.dxp-player__box { position: relative; width: 100%; max-width: 900px; }
.dxp-player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.dxp-player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.dxp-player__title { color: #FAF7F2; margin: 12px 0 0; font-size: 1.05rem; }
.dxp-player__close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #FAF7F2; color: #2E2A27; font-size: 28px; line-height: 1; cursor: pointer; }
