/* ═══════════════════════════════════════════════════════════════════════
   CELDEXIA LEGAL · Estilos del gestor de cookies y gate de WhatsApp
   Grupo Celdexia SAS · Cárguelo con:
     <link id="cl-styles" rel="stylesheet" href="/css/celdexia-legal.css">
   El id="cl-styles" hace que celdexia-legal.js NO inyecte estilos en línea
   (compatible con CSP estricta sin 'unsafe-inline' en style-src).
   ═══════════════════════════════════════════════════════════════════════ */
#cl-banner,#cl-modal,#cl-reopen{font-family:inherit;box-sizing:border-box}
#cl-banner *,#cl-modal *{box-sizing:border-box}
#cl-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:2147483000;max-width:940px;margin:0 auto;background:#0E2A22;color:#EAF4EF;border:1px solid rgba(39,181,133,.35);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.26);padding:10px 16px;animation:clup .3s ease;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
@keyframes clup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.cl-ban-txt{margin:0;flex:1 1 300px;font-size:.78rem;line-height:1.45;color:#C9E3D8}
#cl-banner a{color:#5FE0AE;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cl-actions{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}
.cl-btn{cursor:pointer;border:0;border-radius:9px;padding:8px 14px;font-size:.78rem;font-weight:700;font-family:inherit;transition:filter .15s ease,background .15s ease}
.cl-btn:focus-visible{outline:2px solid #5FE0AE;outline-offset:2px}
.cl-btn-primary{background:#27B585;color:#06251B}
.cl-btn-primary:hover{filter:brightness(1.08)}
.cl-btn-ghost{background:transparent;color:#EAF4EF;border:1px solid rgba(234,244,239,.35)}
.cl-btn-ghost:hover{background:rgba(234,244,239,.08)}
.cl-btn-link{background:transparent;color:#9FD9C4;text-decoration:underline;padding:11px 8px}
#cl-overlay{position:fixed;inset:0;z-index:2147483100;background:rgba(6,20,15,.6);display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(2px)}
#cl-overlay.cl-open{display:flex}
#cl-modal{background:#fff;color:#16302A;max-width:540px;width:100%;max-height:88vh;overflow:auto;border-radius:18px;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.4)}
#cl-modal h3{margin:0 0 .3rem;font-size:1.15rem;font-weight:800}
#cl-modal .cl-sub{margin:0 0 1.1rem;font-size:.82rem;color:#4A5D56;line-height:1.5}
.cl-cat{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid #E6EDEA}
.cl-cat h4{margin:0 0 .2rem;font-size:.9rem;font-weight:700}
.cl-cat p{margin:0;font-size:.78rem;color:#55685F;line-height:1.5}
.cl-switch{position:relative;flex:0 0 auto;width:44px;height:24px;margin-top:2px}
.cl-switch input{opacity:0;width:0;height:0}
.cl-slider{position:absolute;inset:0;cursor:pointer;background:#C7D2CD;border-radius:24px;transition:.2s}
.cl-slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.cl-switch input:checked+.cl-slider{background:#27B585}
.cl-switch input:checked+.cl-slider:before{transform:translateX(20px)}
.cl-switch input:disabled+.cl-slider{background:#27B585;opacity:.55;cursor:not-allowed}
.cl-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#cl-reopen{position:fixed;left:14px;bottom:14px;z-index:2147482000;width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,.08);background:#fff;color:#16302A;cursor:pointer;font-size:19px;box-shadow:0 6px 18px rgba(0,0,0,.18);display:none;align-items:center;justify-content:center}
#cl-reopen.cl-show{display:flex}
#cl-reopen:hover{filter:brightness(.97)}
#cl-wa-overlay{position:fixed;inset:0;z-index:2147483200;background:rgba(6,20,15,.6);display:none;align-items:center;justify-content:center;padding:16px}
#cl-wa-overlay.cl-open{display:flex}
#cl-wa-box{background:#fff;color:#16302A;max-width:440px;width:100%;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.4)}
#cl-wa-box h3{margin:0 0 .5rem;font-size:1.05rem;font-weight:800}
#cl-wa-box p{margin:0 0 1rem;font-size:.82rem;color:#4A5D56;line-height:1.55}
.cl-wa-check{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1.5px solid #E6EDEA;border-radius:12px;margin-bottom:14px;transition:border-color .15s}
.cl-wa-check.cl-err{border-color:#E4572E;background:rgba(228,87,46,.05)}
.cl-wa-check input{width:20px;height:20px;margin-top:1px;accent-color:#27B585;flex:0 0 auto;cursor:pointer}
.cl-wa-check label{font-size:.8rem;line-height:1.5;color:#3A4B44;cursor:pointer}
.cl-wa-check a{color:#1F8E68;font-weight:700}
@media(max-width:560px){#cl-banner{gap:8px;padding:10px 14px}.cl-actions{width:100%}.cl-btn{flex:1 1 auto}.cl-btn-link{flex:0 0 auto}}
@media(prefers-color-scheme:dark){#cl-modal,#cl-wa-box{background:#13211D;color:#EAF4EF}#cl-modal .cl-sub,.cl-cat p,#cl-wa-box p{color:#A9C4BA}.cl-cat{border-color:rgba(255,255,255,.08)}.cl-wa-check{border-color:rgba(255,255,255,.12)}.cl-wa-check label{color:#C9E3D8}}
