/* ===========================================================
   Unicode · Cookie consent banner + preferences modal
   Stile coerente con unicode-3d.css (palette glass / navy)
   =========================================================== */

:root {
  --uc-bg:      #0b0f23;
  --uc-surface: #0f1530;
  --uc-indigo:  #303c97;
  --uc-blue:    #5d76b8;
  --uc-peri:    #a0b0da;
  --uc-text:    #e8ecff;
  --uc-muted:   #7585b5;
  --uc-border:  rgba(160, 176, 218, .14);
}

#uc-consent,
#uc-consent * { box-sizing: border-box; }

/* ---- Banner ------------------------------------------------ */
.uc-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100vw - 32px));
  z-index: 99999;
  background: rgba(11, 15, 35, .92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--uc-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(48, 60, 151, .15);
  padding: 22px 24px;
  color: var(--uc-text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.uc-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.uc-banner h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.uc-banner p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--uc-peri);
  margin: 0 0 16px;
}
.uc-banner p a,
.uc-modal a {
  color: var(--uc-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.uc-btn {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  flex: 1 1 auto;
  white-space: nowrap;
}
.uc-btn:hover { transform: translateY(-1px); }
.uc-btn-primary {
  background: linear-gradient(135deg, var(--uc-indigo), #3f50c2);
  color: #fff;
}
.uc-btn-ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--uc-text);
  border-color: var(--uc-border);
}
.uc-btn-link {
  background: none;
  color: var(--uc-peri);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex: 0 0 auto;
}

/* ---- Preferences modal ------------------------------------- */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 6, 16, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.uc-modal-overlay.is-visible { opacity: 1; pointer-events: auto; }

.uc-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  padding: 28px;
  color: var(--uc-text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  transform: translateY(16px) scale(.98);
  transition: transform .3s ease;
}
.uc-modal-overlay.is-visible .uc-modal { transform: translateY(0) scale(1); }

.uc-modal h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.uc-modal > p {
  font-size: .9rem;
  color: var(--uc-peri);
  line-height: 1.55;
  margin: 0 0 20px;
}

.uc-option {
  border: 1px solid var(--uc-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .03);
}
.uc-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.uc-option-head h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .98rem;
  font-weight: 600;
  margin: 0;
}
.uc-option p {
  font-size: .82rem;
  color: var(--uc-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Toggle switch */
.uc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.uc-switch input { opacity: 0; width: 0; height: 0; }
.uc-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(160, 176, 218, .25);
  border-radius: 26px; transition: background .2s ease;
}
.uc-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s ease;
}
.uc-switch input:checked + .uc-slider { background: var(--uc-indigo); }
.uc-switch input:checked + .uc-slider::before { transform: translateX(20px); }
.uc-switch input:disabled + .uc-slider { background: var(--uc-blue); opacity: .7; cursor: not-allowed; }

.uc-tag {
  font-size: .72rem;
  color: var(--uc-muted);
  font-family: 'Outfit', system-ui, sans-serif;
}

.uc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 540px) {
  .uc-actions { flex-direction: column; }
  .uc-btn { width: 100%; }
}

/* ---- Footer legal links ------------------------------------ */
.footer-legal {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--uc-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .82rem;
}
.footer-legal a {
  color: var(--uc-muted);
  text-decoration: none;
  transition: color .2s ease;
  cursor: pointer;
}
.footer-legal a:hover { color: var(--uc-peri); }
.footer-legal span { color: rgba(160, 176, 218, .3); }

/* ---- Brief form: consenso privacy --------------------------- */
.form-consent { margin: 4px 0 14px; }
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--uc-peri);
}
.consent-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--uc-indigo);
  cursor: pointer;
}
.consent-check a { color: var(--uc-blue); text-decoration: underline; text-underline-offset: 2px; }
.form-note {
  margin: 10px 0 0;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--uc-muted);
}
