/* Aviso de consentimiento de estadísticas (charlyestv.com). Discreto, accesible y legible en tema claro y oscuro. */
.ctv-consent { position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px;
  margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: #ffffff; color: #13212b; border: 1px solid #d5dde3;
  box-shadow: 0 18px 50px -12px rgba(10, 20, 30, .35); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ctv-consent-title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.ctv-consent-text { margin: 0 0 12px; color: #3a4a55; }
.ctv-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ctv-consent-btn { min-height: 44px; min-width: 120px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid #13212b; background: #ffffff; color: #13212b;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.ctv-consent-btn:hover { background: #eef2f5; }
.ctv-consent-btn:focus-visible { outline: 3px solid #2b7de9; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .ctv-consent { background: #121c24; color: #e8eef2; border-color: #2b3c48; }
  .ctv-consent-text { color: #b8c6cf; }
  .ctv-consent-btn { background: #121c24; color: #e8eef2; border-color: #e8eef2; }
  .ctv-consent-btn:hover { background: #1c2a35; }
}
@media (max-width: 980px) { .ctv-consent { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } } /* por encima de barras inferiores móviles */
@media (prefers-reduced-motion: no-preference) { .ctv-consent { animation: ctv-in .2s ease-out; } @keyframes ctv-in { from { opacity: 0; transform: translateY(8px); } } }
@media print { .ctv-consent { display: none; } }
