/* Banner de consentimiento de cookies — Unión Atlántica */
.uac, .uac * { box-sizing: border-box; }

.uac {
  --uac-ink: #262826;
  --uac-body: #515351;
  --uac-muted: #6E6F6E;
  --uac-line: #E9EAE9;
  --uac-paper: #FBF7F1;
  --uac-blue: #3E89FF;
  --uac-green: #73E5A2;
  --uac-yellow: #FFD762;
  --uac-coral: #FF9688;
  --uac-sky: #7EB0FF;

  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 28px 24px;
  background: #fff;
  color: var(--uac-body);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(38, 40, 38, .18), 0 2px 8px rgba(38, 40, 38, .08);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  animation: uac-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
.uac[hidden] { display: none; }
.uac.is-leaving { animation: uac-out .25s ease both; }

@keyframes uac-in  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes uac-out { to   { opacity: 0; transform: translateY(12px); } }

/* Hilera de formas, el motivo gráfico de la marca */
.uac__shapes { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.uac__shapes i { display: block; height: 14px; border-radius: 999px; }
.uac__shapes i:nth-child(1) { width: 14px; background: var(--uac-yellow); }
.uac__shapes i:nth-child(2) { width: 34px; background: var(--uac-green); }
.uac__shapes i:nth-child(3) { width: 14px; background: var(--uac-sky); }
.uac__shapes i:nth-child(4) { width: 14px; background: var(--uac-coral); }

.uac__title {
  margin: 0 0 8px;
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--uac-ink);
  outline: none;
}
.uac__text { margin: 0 0 20px; color: var(--uac-body); }
.uac__text a, .uac__panel a { color: var(--uac-blue); text-decoration: underline; text-underline-offset: 2px; }
.uac__text a:hover, .uac__panel a:hover { color: #387DE8; }

/* Botones */
.uac__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uac__btn {
  flex: 1 1 0;
  min-height: 46px;
  padding: 12px 18px;
  border: 1.5px solid var(--uac-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--uac-ink);
  font: 700 14px/1 'Manrope', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.uac__btn:hover { background: var(--uac-paper); }
.uac__btn:active { transform: scale(.98); }
.uac__btn--primary { background: var(--uac-ink); color: #fff; }
.uac__btn--primary:hover { background: var(--uac-blue); border-color: var(--uac-blue); color: #fff; }
.uac__link {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--uac-muted);
  font: 600 13px/1 'Manrope', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.uac__link:hover { color: var(--uac-ink); }

.uac button:focus-visible,
.uac a:focus-visible,
.uac input:focus-visible + .uac__switch {
  outline: 3px solid var(--uac-blue);
  outline-offset: 2px;
}

/* Panel de preferencias */
.uac__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px; padding: 0;
  border: 0; background: none;
  color: var(--uac-muted); font: 600 13px/1 'Manrope', sans-serif; cursor: pointer;
}
.uac__back:hover { color: var(--uac-ink); }

.uac__cats { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--uac-line); }
.uac__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--uac-line); }
.uac__cat-name { margin: 0 0 2px; font-weight: 800; font-size: 15px; color: var(--uac-ink); }
.uac__cat-desc { margin: 0; font-size: 13px; color: var(--uac-body); }

.uac__toggle { position: relative; flex: none; margin-top: 2px; cursor: pointer; }
.uac__toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.uac__switch {
  display: block; width: 46px; height: 28px; border-radius: 999px;
  background: #D4D6D4; transition: background .2s; position: relative;
}
.uac__switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.uac__toggle input:checked + .uac__switch { background: var(--uac-green); }
.uac__toggle input:checked + .uac__switch::after { transform: translateX(18px); }
.uac__toggle input:disabled { cursor: not-allowed; }
.uac__toggle input:disabled + .uac__switch { opacity: .55; }

/* Enlaces del footer */
.uac-footer-link {
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.footer__copy .col-auto a { color: inherit; text-decoration: underline; }

@media (max-width: 575px) {
  .uac { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 18px; border-radius: 24px; max-height: calc(100vh - 24px); }
  .uac__actions { flex-direction: column; }
  .uac__btn { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .uac, .uac.is-leaving { animation: none; }
  .uac__switch, .uac__switch::after, .uac__btn { transition: none; }
}
