/* ── Banner de cookies — Prelo Studio ────────────────────────── */
.pc-banner, .pc-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f1f5f9;
  box-sizing: border-box;
}
.pc-banner *, .pc-modal * { box-sizing: border-box; }

/* Banner inferior */
.pc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 255, 71, 0.25);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 22px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 1100px;
  margin: 0 auto;
  animation: pc-slide 0.32s cubic-bezier(.16,1,.3,1);
}
@keyframes pc-slide {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pc-banner__text { font-size: 0.92rem; line-height: 1.55; color: #cbd5e1; }
.pc-banner__text strong { color: #f1f5f9; font-weight: 600; }
.pc-banner__text a { color: #e8ff47; text-decoration: none; font-weight: 500; }
.pc-banner__text a:hover { text-decoration: underline; }
.pc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pc-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.pc-btn--primary {
  background: #e8ff47; color: #0a0e1a;
}
.pc-btn--primary:hover { background: #f0ff66; transform: translateY(-1px); }
.pc-btn--ghost {
  background: rgba(255,255,255,0.04);
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.12);
}
.pc-btn--ghost:hover { background: rgba(255,255,255,0.08); }
.pc-btn--text {
  background: transparent;
  color: #94a3b8;
  text-decoration: underline;
  padding: 10px 12px;
}
.pc-btn--text:hover { color: #e8ff47; }

/* Modal de configuración */
.pc-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: pc-fade 0.2s ease;
}
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }

.pc-modal {
  position: fixed; z-index: 99999;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  border: 1px solid rgba(232,255,71,0.2);
  border-radius: 14px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.pc-modal__header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pc-modal__header h2 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 6px;
  color: #f1f5f9;
}
.pc-modal__header p {
  font-size: 0.88rem; color: #94a3b8; margin: 0; line-height: 1.5;
}
.pc-modal__body { padding: 8px 24px; }
.pc-cat {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pc-cat:last-child { border-bottom: 0; }
.pc-cat__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 6px;
}
.pc-cat__head h3 {
  font-size: 0.95rem; font-weight: 600; margin: 0; color: #f1f5f9;
}
.pc-cat__desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }

/* Toggle switch */
.pc-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.pc-toggle input { opacity: 0; width: 0; height: 0; }
.pc-toggle__slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #334155; border-radius: 22px;
  transition: 0.2s;
}
.pc-toggle__slider::before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: #f1f5f9; border-radius: 50%;
  transition: 0.2s;
}
.pc-toggle input:checked + .pc-toggle__slider { background: #e8ff47; }
.pc-toggle input:checked + .pc-toggle__slider::before {
  transform: translateX(18px); background: #0a0e1a;
}
.pc-toggle input:disabled + .pc-toggle__slider {
  background: #475569; cursor: not-allowed; opacity: 0.7;
}

.pc-modal__footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}

@media (max-width: 640px) {
  .pc-banner {
    grid-template-columns: 1fr;
    left: 12px; right: 12px; bottom: 12px;
    padding: 16px 18px;
  }
  .pc-banner__actions { justify-content: stretch; }
  .pc-banner__actions .pc-btn { flex: 1; min-width: 0; text-align: center; }
}
