/* Bysnet - banner de consentimiento de cookies (Ley 21.719). Toma los colores de css/bysnet.css. */
#bys-cc {
  --bys-cc-accent: var(--azul, #2161d8);
  --bys-cc-bg: #ffffff;
  --bys-cc-text: var(--tinta, #1d1d1f);
  --bys-cc-muted: var(--gris, #6e6e73);
  --bys-cc-border: #e5e7eb;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  font-size: 15px;
  line-height: 1.5;
  font-family: var(--fuente, system-ui, sans-serif);
  letter-spacing: -.01em;
  color: var(--bys-cc-text);
}
#bys-cc .bys-cc-box {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bys-cc-bg);
  border: 1px solid var(--bys-cc-border);
  border-radius: var(--radio-m, 18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 20px 22px;
  box-sizing: border-box;
}
#bys-cc h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--bys-cc-text); }
#bys-cc p { margin: 0 0 12px; color: var(--bys-cc-muted); }
#bys-cc a { color: var(--bys-cc-accent); text-decoration: underline; }
#bys-cc [hidden] { display: none !important; }

#bys-cc .bys-cc-settings { border-top: 1px solid var(--bys-cc-border); margin: 4px 0 12px; }
#bys-cc .bys-cc-cat { padding: 12px 0; border-bottom: 1px solid var(--bys-cc-border); }
#bys-cc .bys-cc-cat p { margin: 6px 0 0 52px; font-size: 14px; }
#bys-cc .bys-cc-cat em { font-weight: 400; font-style: normal; color: var(--bys-cc-muted); font-size: 13px; }

#bys-cc .bys-cc-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
#bys-cc .bys-cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#bys-cc .bys-cc-slider {
  position: relative; flex: 0 0 40px; height: 22px; border-radius: 22px;
  background: #cbd5e1; transition: background .15s;
}
#bys-cc .bys-cc-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
#bys-cc .bys-cc-switch input:checked + .bys-cc-slider { background: var(--bys-cc-accent); }
#bys-cc .bys-cc-switch input:checked + .bys-cc-slider::after { transform: translateX(18px); }
#bys-cc .bys-cc-switch input:disabled + .bys-cc-slider { opacity: .6; }
#bys-cc .bys-cc-switch input:focus-visible + .bys-cc-slider { outline: 2px solid var(--bys-cc-accent); outline-offset: 2px; }

/* Los tres botones tienen el mismo tamaño y estilo: rechazar es tan fácil como aceptar. */
#bys-cc .bys-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#bys-cc .bys-cc-btn {
  flex: 1 1 160px; max-width: 220px; min-height: 42px; padding: 10px 16px;
  font: 600 15px/1.2 inherit; font-family: inherit; cursor: pointer;
  color: #fff; background: var(--bys-cc-accent);
  border: 2px solid var(--bys-cc-accent); border-radius: 980px;
}
#bys-cc .bys-cc-btn:hover { filter: brightness(.92); }
#bys-cc .bys-cc-btn:focus-visible { outline: 3px solid #111827; outline-offset: 2px; }

@media (max-width: 560px) {
  #bys-cc { left: 8px; right: 8px; bottom: 8px; }
  #bys-cc .bys-cc-box { padding: 16px; }
  #bys-cc .bys-cc-btn { max-width: none; flex-basis: 100%; }
  #bys-cc .bys-cc-cat p { margin-left: 0; }
}
