/* Aviso compartido por el sitio público y el área de usuario. */
.cookie-notice-visible { padding-bottom: var(--cookie-notice-space, 230px); }
.cookie-notice {
  position: fixed;
  z-index: 1000;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  width: auto;
  max-width: 1120px;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #d6deea;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 50px rgba(6, 18, 35, .22);
  font-family: var(--font);
}
.cookie-notice[hidden], .cookie-notice-error[hidden] { display: none; }
.cookie-notice-label { display: block; margin-bottom: 6px; color: #536581; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cookie-notice h2 { margin: 0 0 8px; color: #0b1f3a; font-size: 1.1rem; line-height: 1.35; }
.cookie-notice p { margin: 0; color: #44506a; font-size: .88rem; line-height: 1.6; }
.cookie-notice a { color: #1d579c; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-notice-actions { min-width: 150px; max-width: 240px; margin: 0; display: grid; gap: 8px; }
.cookie-notice-actions .cookie-secondary { background: #fff; color: #0b1f3a; }
.cookie-notice-actions .cookie-secondary:hover { background: #edf3fa; }
.cookie-configure { text-align: center; font-size: .85rem; padding: 6px; }
.privacy-summary { margin: 24px 0; font-size: .85rem; line-height: 1.6; }
.privacy-summary h2 { font-size: 1.05rem; }
.consent-options { border: 1px solid #d6deea; border-radius: 10px; padding: 18px; margin: 20px 0; }
.consent-options legend { padding: 0 6px; font-weight: 600; }
.consent-option { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .9rem; line-height: 1.5; }
.consent-option input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: #0b1f3a; }
.consent-terms { margin: 24px 0; }
.cookie-page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-notice-accept {
  width: 100%;
  padding: 13px 26px;
  border: 1px solid #0b1f3a;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  cursor: pointer;
  font: 600 .9rem var(--font);
  line-height: 1.4;
}
.cookie-notice-accept:hover { background: #1b3866; }
.cookie-notice-accept:focus-visible, .cookie-notice a:focus-visible { outline: 3px solid #86b6ef; outline-offset: 4px; }
.cookie-notice-accept:disabled { cursor: wait; opacity: .65; }
.cookie-notice p.cookie-notice-error { margin-top: 10px; color: #a32626; font-size: .8rem; }
@media (max-width: 640px) {
  .cookie-notice { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: 16px; }
  .cookie-notice-actions { max-width: none; }
  .cookie-notice-visible { padding-bottom: var(--cookie-notice-space, 310px); }
}
