.site-analytics { font: 14px/1.5 system-ui,sans-serif; color: #172b40; }
.site-analytics [hidden] { display: none !important; }
.analytics-manage { position: fixed; inset: auto auto 10px 10px; z-index: 450; padding: 5px 10px; background: #ffffffd9; color: #34495d; border: 1px solid #cfdbe5; border-radius: 999px; font: 12px/1.4 system-ui,sans-serif; cursor: pointer; }
.analytics-panel { position: fixed; inset: auto 12px 12px 12px; z-index: 451; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-width: 980px; margin-inline: auto; max-height: calc(100dvh - 24px); overflow: auto; box-sizing: border-box; padding: 12px 16px; border: 1px solid #b8c9d8; border-radius: 16px; background: #fff; box-shadow: 0 10px 40px #172b4026; }
.analytics-panel strong { display: block; font-size: 15px; }
.analytics-panel p { margin: 4px 0; color: #34495d; font: inherit; }
.analytics-privacy { color: #075a9e; text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.analytics-actions button { flex: 1; min-width: 140px; padding: 9px 14px; border: 1px solid #426784; border-radius: 8px; color: #123d60; background: #f2f7fa; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.analytics-close { border: 0; color: #123d60; background: transparent; text-decoration: underline; font: inherit; cursor: pointer; }
.site-analytics button:focus-visible,.site-analytics a:focus-visible { outline: 3px solid #126caa; outline-offset: 3px; }
.analytics-status { position: fixed; left: 12px; bottom: 42px; z-index: 449; max-width: min(440px,calc(100vw - 24px)); margin: 0; padding: 2px 6px; background: #fff; color: #34495d; font: 12px/1.4 system-ui,sans-serif; }
.analytics-status:empty { display: none; }
.analytics-copy { flex: 1 1 320px; min-width: 0; }
.analytics-more { display: inline-block; margin-right: 14px; vertical-align: top; }
.analytics-more[open] { display: block; margin: 6px 0; }
.analytics-more summary { color: #075a9e; text-decoration: underline; cursor: pointer; }
/* Mientras el aviso está abierto, su botón de preferencias no compite por el mismo rincón. */
.site-analytics:has(.analytics-panel:not([hidden])) .analytics-manage { visibility: hidden; }
@media (max-width: 600px) { .analytics-panel { inset: auto 8px 8px 8px; padding: 12px; } .analytics-actions { flex: 1 1 100%; } .analytics-actions button { min-width: 0; } }
