/* Dinamo Legal — banner de cookies (usa los colores del tema Dinamo si está activo). */
.dnl, .dnl-tab {
	--l-primary: var(--dn-primary, #E4572E);
	--l-dark: var(--dn-dark, #16181D);
	--l-radius: var(--dn-radius, 14px);
	font-family: var(--dn-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.dnl[hidden], .dnl-tab[hidden], .dnl [hidden] { display: none !important; }
.dnl__box {
	position: fixed; z-index: 99990;
	width: min(440px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem); overflow-y: auto;
	background: #fff; color: #2b2e35; font-size: .9rem; line-height: 1.55;
	border-radius: var(--l-radius); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05);
	padding: 1.4rem 1.4rem 1.1rem;
	animation: dnl-in .5s cubic-bezier(.2, .7, .2, 1);
}
.dnl__box--abajo-izquierda { left: 1rem; bottom: 1rem; }
.dnl__box--abajo-centro { left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(980px, calc(100vw - 2rem)); }
.dnl__box--centro { left: 50%; top: 50%; transform: translate(-50%, -50%); }
@keyframes dnl-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
.dnl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dnl__title { font-weight: 700; font-size: 1.02rem; margin: 0 0 .5rem; color: var(--l-dark); font-family: var(--dn-font-head, inherit); }
.dnl__close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #777; padding: 0 .2rem; }
.dnl__close:hover { color: var(--l-dark); }
.dnl__text { margin: 0 0 1rem; }
.dnl__prefs { display: grid; gap: .5rem; margin-bottom: 1rem; }
.dnl__cat { border: 1px solid rgba(0,0,0,.1); border-radius: 10px; background: #fafafa; }
.dnl__cat summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; cursor: pointer; font-weight: 600; list-style: none; }
.dnl__cat summary::-webkit-details-marker { display: none; }
.dnl__cat summary > span::before { content: "›"; display: inline-block; margin-right: .5rem; transition: transform .2s; }
.dnl__cat[open] summary > span::before { transform: rotate(90deg); }
.dnl__cat p { margin: 0; padding: 0 .9rem .8rem; font-size: .84rem; color: #555; }
.dnl__always { font-style: normal; font-size: .78rem; color: #2e7d32; font-weight: 600; }
.dnl__switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.dnl__switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.dnl__slider { position: absolute; inset: 0; background: #c9c9c9; border-radius: 24px; transition: .25s; cursor: pointer; }
.dnl__slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.dnl__switch input:checked + .dnl__slider { background: var(--l-primary); }
.dnl__switch input:checked + .dnl__slider::before { transform: translateX(18px); }
.dnl__switch input:focus-visible + .dnl__slider { outline: 3px solid var(--l-primary); outline-offset: 2px; }
.dnl__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dnl__box--abajo-centro .dnl__actions { grid-template-columns: repeat(3, auto); justify-content: start; }
.dnl-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .75em 1.1em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer;
	border: 2px solid var(--l-primary); transition: .2s;
}
/* Aceptar y Denegar con el mismo peso visual (Guía de cookies AEPD). */
.dnl-btn--primary { background: var(--l-primary); color: #fff; }
.dnl-btn--primary:hover { filter: brightness(.92); }
.dnl-btn--ghost { background: transparent; color: var(--l-dark); border-color: rgba(0,0,0,.18); grid-column: 1 / -1; }
.dnl-btn--ghost:hover { border-color: var(--l-dark); }
.dnl__box--abajo-centro .dnl-btn--ghost { grid-column: auto; }
.dnl__links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .9rem 0 0; font-size: .78rem; }
.dnl__links a { color: #555; }
.dnl-tab {
	position: fixed; z-index: 99980; left: 1rem; bottom: 0;
	padding: .55rem 1rem; border: 0; border-radius: 10px 10px 0 0; cursor: pointer;
	background: var(--l-dark); color: #fff; font-size: .78rem; font-weight: 600;
	box-shadow: 0 -4px 20px -8px rgba(0,0,0,.35);
	transform: translateY(2px); transition: transform .2s;
}
.dnl-tab:hover { transform: translateY(0); }

/* Textos legales */
.dnl-legal h2 { margin-top: 2rem; }
.dnl-legal > :first-child { margin-top: 0; }
.dnl-legal .dnl-falta { background: #fff3cd; color: #7a5b00; padding: 0 .3em; border-radius: 4px; }
.dnl-tabla { overflow-x: auto; }
.dnl-tabla table { min-width: 600px; }
.dnl-legal__fecha { margin-top: 2.5rem; color: #777; }
.dnl-legal .dnl-btn { margin-top: .2rem; }

@media (max-width: 520px) {
	.dnl__box, .dnl__box--abajo-centro { left: .5rem; right: .5rem; bottom: .5rem; width: auto; transform: none; }
	.dnl__box--abajo-centro .dnl__actions { grid-template-columns: 1fr 1fr; }
	.dnl__box--abajo-centro .dnl-btn--ghost { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .dnl__box { animation: none; } }
