/* Consentimiento de cookies: barra compacta (una fila en escritorio, tres botones directos en móvil). Sin consentimiento no se carga gtag.js (consent.js). */
#pwConsent { position:fixed; left:max(10px, env(safe-area-inset-left)); right:max(10px, env(safe-area-inset-right)); bottom:max(10px, env(safe-area-inset-bottom)); z-index:40; display:flex; justify-content:center; pointer-events:none; }
#pwConsent[hidden] { display:none; }
#pwConsent .pwc-in { pointer-events:auto; box-sizing:border-box; width:100%; max-width:920px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; background:#0e1524; color:#eef2f8; border:1px solid rgba(227,193,90,.5); border-radius:14px; padding:10px 14px; box-shadow:0 14px 40px -10px rgba(0,0,0,.7); font:400 13.5px/1.45 Inter,system-ui,sans-serif; max-height:60vh; overflow:auto; }
#pwConsent .pwc-t { flex:1 1 320px; margin:0; color:#b7c3d6; } #pwConsent strong { color:#fff; font-size:14px; }
#pwConsent .pwc-opts { flex:1 1 100%; display:flex; gap:18px; flex-wrap:wrap; margin:0; } #pwConsent .pwc-opts[hidden] { display:none; } #pwConsent .pwc-opts input { width:20px; height:20px; vertical-align:middle; }
#pwConsent .pwc-act { flex:0 0 auto; display:flex; gap:8px; align-items:center; }
#pwConsent .pwc-b { min-height:44px; padding:8px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.25); background:transparent; color:#eef2f8; font:600 13.5px Inter,sans-serif; cursor:pointer; white-space:nowrap; }
#pwConsent .pwc-p { background:linear-gradient(135deg,#f0d57a,#d4a937); color:#1a1405; border:0; }
#pwConsent .pwc-b:focus-visible, #pwConsent a:focus-visible { outline:3px solid #fff; outline-offset:2px; }
#pwConsent .pwc-l { color:#e3c15a; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
html[data-eco-theme="light"] #pwConsent .pwc-in { background:#fff; color:#10151f; border-color:#b8902a; } html[data-eco-theme="light"] #pwConsent .pwc-t { color:#4a5568; } html[data-eco-theme="light"] #pwConsent strong { color:#10151f; }
html[data-eco-theme="light"] #pwConsent .pwc-b { color:#10151f; border-color:rgba(0,0,0,.3); } html[data-eco-theme="light"] #pwConsent .pwc-p { color:#1a1405; border:0; }
html[data-eco-theme="light"] #pwConsent .pwc-l { color:#7a5a00; }
/* Con un modal abierto (pago, etc.) la barra se oculta: nunca debe tapar un botón de compra. */
body:has(#cyberScoreModal:not(.hidden)) #pwConsent { display:none; }
@media (max-width:640px) {
  #pwConsent .pwc-in { padding:9px 10px; gap:6px; font-size:12.5px; }
  #pwConsent .pwc-act { flex:1 1 100%; } #pwConsent .pwc-b { flex:1 1 0; padding:6px 6px; font-size:13px; white-space:normal; line-height:1.15; }
}
/* Disparador «Preferencias de cookies»: enlace discreto en el pie, a la izquierda (el asistente flota a la derecha). */
.pwc-foot-wrap { max-width:80rem; margin:0 auto; padding:8px 16px 0; text-align:center; }
.pwc-foot { display:inline-flex; align-items:center; min-height:44px; margin:4px 0; font-size:13px; opacity:.85; color:#e3c15a; text-decoration:underline; text-underline-offset:3px; }
html[data-eco-theme="light"] .pwc-foot { color:#b9d8cf; }
/* Flechas de navegación (arriba / pie): centradas a la derecha, sin chocar con el asistente (abajo) ni la barra de cookies. */
.pw-arrows { position:fixed; right:max(12px, env(safe-area-inset-right)); top:50%; transform:translateY(-50%); z-index:38; display:flex; flex-direction:column; gap:8px; }
.pw-arrows button { width:44px; height:44px; border-radius:50%; border:1px solid rgba(227,193,90,.55); background:rgba(14,21,36,.92); color:#e3c15a; cursor:pointer; display:grid; place-items:center; padding:0; box-shadow:0 8px 20px -8px rgba(0,0,0,.7); }
.pw-arrows button:hover { background:#000; color:#fff; } .pw-arrows button:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.pw-arrows svg { width:20px; height:20px; }
html[data-eco-theme="light"] .pw-arrows button { background:rgba(255,255,255,.95); color:#7a5a00; border-color:#b8902a; }
@media (max-width:640px) { .pw-arrows button { width:40px; height:40px; opacity:.9; } }
@media print { .pw-arrows { display:none; } }
