/* assets/css/consent.css — Estilos mínimos, accesibles y responsive para consentimiento */
.dlb-consent * { box-sizing: border-box; }
.dlb-consent[hidden] { display: none !important; }

/* Banner */
.dlb-consent__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; background: var(--dl-cream-soft, #FCF7F0); color: var(--dl-ink, #2A1D16); padding: 12px; border-top: 1px solid var(--border-soft, #e8e1d8); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.dlb-consent__content { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; max-width: 1100px; margin: 0 auto; }
.dlb-consent__text { margin: 0; font-size: 14px; line-height: 1.5; }
.dlb-consent__text a { color: var(--link, #6B3924); text-decoration: underline; }
.dlb-consent__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Botones */
.dlb-btn { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.dlb-btn:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; }
.dlb-btn--primary { background: var(--dl-brown-700, #6B3924); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.dlb-btn--primary:hover { filter: brightness(1.05); }
.dlb-btn--secondary { background: #fff; color: var(--dl-ink, #2A1D16); border-color: var(--border-soft, #e8e1d8); }
.dlb-btn--secondary:hover { filter: brightness(1.03); }
.dlb-btn--ghost { background: var(--dl-cream, #F6EFE8); color: var(--dl-ink, #2A1D16); border-color: var(--border-soft, #e8e1d8); }
.dlb-btn--ghost:hover { filter: brightness(1.03); }

/* Modal */
.dlb-consent__overlay { position: fixed; inset: 0; background: rgba(42,29,22,.35); backdrop-filter: blur(2px); z-index: 10001; }
.dlb-consent__modal { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(680px, calc(100% - 24px)); background: var(--dl-surface, #FFFDF9); color: var(--dl-ink, #2A1D16); border-radius: var(--radius, 14px); box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.12)); border:1px solid var(--border-soft, #e8e1d8); z-index: 10002; display: flex; flex-direction: column; max-height: 86vh; }
.dlb-consent__modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-soft, #e8e1d8); }
.dlb-consent__close { font: inherit; border: 1px solid var(--border-soft, #e8e1d8); background: #fff; color: var(--dl-ink, #2A1D16); cursor: pointer; padding: 6px 10px; border-radius: 8px; line-height: 1; }
.dlb-consent__close:hover { filter: brightness(1.03); }
.dlb-consent__modal-body { padding: 12px 16px; overflow: auto; }
.dlb-consent__modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--border-soft, #e8e1d8); }

.dlb-consent__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dlb-consent__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; border: 1px solid var(--border-soft, #e8e1d8); border-radius: 10px; background: #fff; }
.dlb-consent__item-text { display: grid; gap: 4px; }
.dlb-consent__item-text strong { font-weight: 700; }
.dlb-consent__item-text span { color: var(--dl-ink-2, #5B4B40); font-size: 14px; }

/* Switch accesible */
.dlb-switch { position: relative; display: inline-flex; align-items: center; width: 46px; height: 28px; }
.dlb-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; }
.dlb-switch__slider { position: relative; width: 100%; height: 100%; background: #d8d2c7; border-radius: 999px; transition: background .2s; }
.dlb-switch__slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.dlb-switch input:checked + .dlb-switch__slider { background: var(--dl-mustard, #DFAE5A); }
.dlb-switch input:checked + .dlb-switch__slider::after { transform: translateX(18px); }
.dlb-switch input:disabled + .dlb-switch__slider { background: #cfc8bd; opacity: .9; cursor: not-allowed; }

/* Responsivo */
@media (max-width: 720px) {
  .dlb-consent__content { grid-template-columns: 1fr; }
  .dlb-consent__actions { justify-content: stretch; }
  .dlb-btn { flex: 1 1 auto; }
}
