/* CMP propio Castellana — AEPD: aceptar/rechazar misma facilidad; ≥44px táctil. */
.cs-consent-root{position:fixed;inset:auto 16px 16px 16px;z-index:100001;max-width:560px;margin:0 auto;left:16px;right:16px;font:500 15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:#0f172a}
.cs-consent-panel{background:#fff;border:1px solid #dbe2f0;border-radius:16px;box-shadow:0 18px 50px rgba(15,23,42,.22);padding:18px 18px 14px}
.cs-consent-panel[hidden],.cs-consent-prefs[hidden]{display:none!important}
.cs-consent-title{margin:0 0 8px;font-size:18px;line-height:1.25;font-weight:700;color:#0b1c3d}
.cs-consent-intro{margin:0 0 14px;color:#334155;font-weight:500}
.cs-consent-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.cs-consent-btn{appearance:none;border:0;border-radius:10px;min-height:44px;min-width:44px;padding:10px 14px;font:700 14px/1.2 inherit;cursor:pointer}
.cs-consent-btn:focus-visible{outline:2px solid #0b1c3d;outline-offset:2px}
.cs-consent-btn--accept{background:#0b1c3d;color:#fff}
.cs-consent-btn--reject{background:#eef2ff;color:#0b1c3d;border:1px solid #c7d2fe}
.cs-consent-btn--config,.cs-consent-btn--save{background:#fff;color:#0b1c3d;border:1px solid #cbd5e1}
.cs-consent-btn--save{background:#0b1c3d;color:#fff;border-color:#0b1c3d}
.cs-consent-more{display:inline-flex;align-items:center;min-height:44px;color:#30477f;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cs-consent-prefs{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.cs-consent-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid #f1f5f9}
.cs-consent-row:last-child{border-bottom:0}
.cs-consent-row h3{margin:0 0 4px;font-size:14px;color:#0b1c3d}
.cs-consent-row p{margin:0;font-size:13px;color:#64748b;font-weight:500}
.cs-consent-badge{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}
.cs-consent-switch{position:relative;width:48px;height:28px;flex-shrink:0}
.cs-consent-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.cs-consent-switch span{display:block;width:48px;height:28px;border-radius:999px;background:#cbd5e1;transition:background .15s ease}
.cs-consent-switch span::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.25);transition:transform .15s ease}
.cs-consent-switch input:checked+span{background:#0b1c3d}
.cs-consent-switch input:checked+span::after{transform:translateX(20px)}
.cs-consent-switch input:focus-visible+span{outline:2px solid #0b1c3d;outline-offset:2px}
.cs-consent-reopen{position:fixed;left:12px;bottom:12px;z-index:100000;min-height:44px;min-width:44px;padding:10px 14px;border-radius:999px;border:1px solid #c7d2fe;background:#0b1c3d;color:#fff;font:700 13px/1 system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(15,23,42,.25)}
.cs-consent-reopen:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cs-consent-reopen[hidden]{display:none!important}
@media (max-width:520px){
.cs-consent-root{inset:auto 8px 8px 8px}
.cs-consent-actions{flex-direction:column}
.cs-consent-btn{width:100%}
.cs-consent-reopen{left:8px;bottom:8px}
}
@media (prefers-reduced-motion:reduce){
.cs-consent-switch span,.cs-consent-switch span::after{transition:none}
}
