/* Banner de cookies propio (08/11/2026). Rechazar y Configurar: fondo negro con borde blanco; Aceptar: dorado (petición del cliente 08/11). */
.pbc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; justify-content: center; font-family: Poppins, Arial, sans-serif; }
.pbc *, .pbc *::before, .pbc *::after { box-sizing: border-box; }
.pbc-dentro { width: 100%; max-width: 1100px; background: #111; color: #EDEDED; border: 1px solid #3A3A3A; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 14px 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: center; }
.pbc-titulo { margin: 0 0 3px; color: #FFF; font-size: 14px; font-weight: 700; line-height: 1.3; }
.pbc-texto { margin: 0; font-size: 12.5px; line-height: 1.5; color: #D5D5D5; }
.pbc-texto a { color: #F1BE40; text-decoration: underline; text-underline-offset: 2px; }
.pbc-botones { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pbc-btn { appearance: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font: 700 13px/1 Poppins, Arial, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.pbc-principal { background: #F1BE40; color: #000; border: 2px solid #F1BE40; }
.pbc-principal:hover { background: #FFF; border-color: #FFF; }
.pbc-config { background: transparent; color: #FFF; border: 2px solid #FFF; }
.pbc-config:hover { background: #FFF; color: #000; }
.pbc-btn:focus-visible, .pbc-switch:focus-visible, .pbc-texto a:focus-visible { outline: 2px solid #F1BE40; outline-offset: 3px; }
.pbc-panel { grid-column: 1 / -1; display: grid; gap: 8px; }
.pbc-panel[hidden] { display: none; }
.pbc-opcion { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border: 1px solid #333; border-radius: 10px; }
.pbc-opcion-txt { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.45; color: #CFCFCF; }
.pbc-opcion-txt strong { color: #FFF; font-size: 13.5px; }
.pbc-fijo { color: #F1BE40; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pbc-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px; background: #555; position: relative; cursor: pointer; margin: 0; transition: background-color .15s; }
.pbc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFF; transition: transform .15s; }
.pbc-switch:checked { background: #F1BE40; }
.pbc-switch:checked::after { transform: translateX(20px); }
.pbc-abierto .pbc-botones { grid-column: 1 / -1; }
/* Enlace del pie para volver a abrir el banner */
.pie-legal button.pbc-pie { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.pie-legal button.pbc-pie:hover { color: #F1BE40; }
@media (max-width: 860px) {
  .pbc-dentro { grid-template-columns: 1fr; padding: 12px 14px; }
  .pbc-botones { justify-content: stretch; }
  .pbc-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .pbc { left: 8px; right: 8px; bottom: 8px; }
  .pbc-dentro { max-height: calc(100vh - 16px); overflow-y: auto; }
  .pbc-texto { font-size: 12px; }
  .pbc-botones { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .pbc-btn { flex: 1 1 40%; min-height: 36px; padding: 0 10px; }
  .pbc-botones [data-pbc="aceptar"] { order: 1; }
  .pbc-botones [data-pbc="rechazar"] { order: 2; }
  .pbc-botones [data-pbc="config"], .pbc-botones [data-pbc="guardar"] { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pbc * { transition: none !important; } }
