/* Banner y panel de cookies (interruptor de Lex). Autónomo: sirve también en páginas sin web.css. */
.jdc, .jdc-panel { --jdc-tinta: #141414; --jdc-papel: #FAFAF7; --jdc-linea: #D9D6CC; --jdc-oro: #8A6D2F; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--jdc-tinta); }
.jdc[hidden] { display: none; }
.jdc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000; display: flex; justify-content: center; pointer-events: none; }
.jdc__caja { pointer-events: auto; max-width: 980px; width: 100%; background: var(--jdc-papel); border: 1px solid var(--jdc-linea); border-radius: 2px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.jdc__texto { margin: 0; font-size: 14px; line-height: 1.5; }
.jdc__texto a, .jdc-panel a { color: var(--jdc-tinta); text-decoration: underline; text-underline-offset: 2px; }
.jdc__botones { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 8px; }
.jdc-panel .jdc__botones { grid-template-columns: repeat(2, minmax(150px, 1fr)); margin-top: 8px; }
/* Los tres botones iguales: mismo tamaño, color y forma (AEPD). */
.jdc__btn { appearance: none; font: 600 14px/1 Inter, system-ui, sans-serif; letter-spacing: .01em; min-height: 44px; padding: 0 16px; border-radius: 2px; border: 1px solid var(--jdc-tinta); background: var(--jdc-tinta); color: #fff; cursor: pointer; }
.jdc__btn:hover { background: #2b2b2b; }
.jdc__btn:focus-visible, .jdc-switch input:focus-visible + .jdc-switch__pista { outline: 3px solid var(--jdc-oro); outline-offset: 2px; }
.jdc-panel { border: 0; padding: 0; border-radius: 2px; max-width: min(560px, calc(100vw - 32px)); width: 100%; background: var(--jdc-papel); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.jdc-panel::backdrop { background: rgba(10,10,10,.45); }
.jdc-panel__caja { padding: 24px; }
html body dialog.jdc-panel h2.jdc-panel__titulo { margin: 0 0 12px; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--jdc-tinta); max-width: none; }
html body .jdc .jdc__texto, html body .jdc-panel p { color: var(--jdc-tinta); max-width: none; }
.jdc-panel__tipo { border-top: 1px solid var(--jdc-linea); padding: 14px 0; }
.jdc-panel__tipo p { margin: 0; font-size: 14px; line-height: 1.5; }
.jdc-panel__tipo--switch { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.jdc-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.jdc-switch input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; cursor: pointer; }
.jdc-switch__pista { width: 52px; height: 30px; border-radius: 2px; background: #B9B5AA; position: relative; transition: background .2s; }
.jdc-switch__pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 1px; background: #fff; transition: transform .2s; }
.jdc-switch input:checked + .jdc-switch__pista { background: var(--jdc-tinta); }
.jdc-switch input:checked + .jdc-switch__pista::after { transform: translateX(22px); }
.jdc-switch__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .jdc { left: 8px; right: 8px; bottom: 8px; }
  .jdc__caja { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .jdc__texto { font-size: 13px; }
  .jdc__botones { grid-template-columns: repeat(3, 1fr); }
  .jdc__btn { padding: 0 8px; font-size: 13px; }
  .jdc-panel .jdc__botones { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .jdc-switch__pista, .jdc-switch__pista::after { transition: none; } }
