/* ============================================================
   Chucho (asistente)
   styles/chucho.css
   Antes vivía dentro de index.html. Mismo contenido, sin cambios.
   ============================================================ */
#chucho-root{display:none;position:fixed;bottom:28px;right:28px;z-index:99999;flex-direction:column;align-items:flex-end;gap:12px;font-family:'Nunito',sans-serif;pointer-events:none}
#chucho-window,#chucho-bubble{pointer-events:auto}
#chucho-root *{box-sizing:border-box;font-family:'Nunito',sans-serif}
#chucho-bubble{width:68px;height:68px;border-radius:50%;background:#fff;border:3px solid #1a9e75;box-shadow:0 4px 20px rgba(0,0,0,0.2);cursor:pointer;overflow:hidden;transition:transform .2s;flex-shrink:0;display:flex;align-items:center;justify-content:center}
#chucho-bubble:hover{transform:scale(1.07)}
#chucho-bubble img{width:100%;height:100%;object-fit:cover;object-position:center top}
#chucho-notif{position:absolute;top:-4px;right:-4px;width:18px;height:18px;background:#e53e3e;border-radius:50%;border:2px solid #fff;font-size:10px;font-weight:800;color:#fff;display:flex;align-items:center;justify-content:center}
#chucho-window{width:380px;background:#fff;border-radius:20px;box-shadow:0 8px 40px rgba(0,0,0,0.18);display:flex;flex-direction:column;overflow:hidden;max-height:560px;transition:opacity .25s,transform .25s}
#chucho-window.hidden{opacity:0;pointer-events:none;transform:translateY(16px) scale(0.97)}
#chucho-header{background:linear-gradient(135deg,#1a9e75,#0f6e56);padding:14px 18px;display:flex;align-items:center;gap:12px}
#chucho-header-av{width:48px;height:48px;border-radius:50%;background:#fff;overflow:hidden;flex-shrink:0;border:2.5px solid rgba(255,255,255,0.6)}
#chucho-header-av img{width:100%;height:100%;object-fit:cover;object-position:center top}
#chucho-hinfo{flex:1}
#chucho-hinfo h3{margin:0;font-size:15px;font-weight:800;color:#fff}
#chucho-hinfo p{margin:0;font-size:12px;color:rgba(255,255,255,0.82)}
#ch-dot{width:8px;height:8px;border-radius:50%;background:#86efac;display:inline-block;margin-right:5px;animation:ch-pulse 2s infinite}
@keyframes ch-pulse{0%,100%{opacity:1}50%{opacity:0.5}}
#chucho-admin-btn{background:rgba(255,255,255,0.2);border:none;border-radius:8px;width:30px;height:30px;color:#fff;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;margin-right:4px}
#chucho-admin-btn:hover{background:rgba(255,255,255,0.35)}
#chucho-x{background:rgba(255,255,255,0.2);border:none;border-radius:50%;width:30px;height:30px;color:#fff;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
#chucho-x:hover{background:rgba(255,255,255,0.35)}
#chucho-chips{padding:10px 14px 0;display:flex;gap:6px;flex-wrap:wrap;background:#f7faf9}
.ch-chip{border:1.5px solid #cfe8dd;background:#fff;color:#0f6e56;border-radius:999px;padding:5px 12px;font-size:11.5px;font-weight:800;cursor:pointer;transition:all .15s}
.ch-chip:hover{background:#e1f5ee}
#chucho-msgs{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:12px;background:#f7faf9;max-height:340px}
.ch-row{display:flex;align-items:flex-end;gap:8px}
.ch-row.user{flex-direction:row-reverse}
.ch-av{width:30px;height:30px;border-radius:50%;background:#1a9e75;overflow:hidden;flex-shrink:0;border:1.5px solid #9fe1cb}
.ch-av img{width:100%;height:100%;object-fit:cover;object-position:center top}
.ch-bub{max-width:82%;padding:10px 14px;border-radius:16px;font-size:13.5px;line-height:1.55;color:#1a2e26}
.ch-bub.bot{background:#fff;border-radius:4px 16px 16px 16px;box-shadow:0 1px 4px rgba(0,0,0,0.07)}
.ch-bub.user{background:#1a9e75;color:#fff;border-radius:16px 16px 4px 16px}
.ch-bub.bot strong{color:#0f6e56}
.ch-bub-titulo{font-weight:800;color:#0f6e56;margin-bottom:4px;font-size:13px}
.ch-bub-tip{margin-top:8px;padding-top:8px;border-top:1px dashed #dbe8e3;font-size:12px;color:#5f5e5a}
.ch-guia-btn{display:flex;align-items:center;gap:8px;background:#e1f5ee;border:1.5px solid #9fe1cb;border-radius:10px;padding:9px 12px;cursor:pointer;font-size:12.5px;font-weight:700;color:#0f6e56;transition:background .15s;margin-top:2px}
.ch-guia-btn:hover{background:#c9ecdd}
.ch-opciones{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.ch-opcion-btn{text-align:left;background:#fff;border:1.5px solid #dbe8e3;border-radius:10px;padding:8px 12px;cursor:pointer;font-size:12.5px;font-weight:700;color:#1a2e26;transition:all .15s}
.ch-opcion-fragmento{font-weight:500;font-style:italic;color:#5f5e5a;font-size:11.5px;margin-top:3px;line-height:1.4}
.ch-bub-fragmento{font-style:italic;color:#5a7a70;font-size:12px;background:#f0f7f4;border-left:2.5px solid #9fe1cb;padding:6px 10px;border-radius:0 8px 8px 0;margin:6px 0}
.ch-feedback-wrap{margin-top:8px}
.ch-feedback-btn{background:none;border:1.5px solid #eadbe0;color:#9b7b85;border-radius:8px;padding:4px 10px;font-size:11px;font-weight:700;cursor:pointer}
.ch-feedback-btn:hover{background:#fdeef4;border-color:#f3c9d6}
.ch-feedback-gracias{font-size:11px;color:#5a7a70;font-weight:700}
.ch-opcion-btn:hover{border-color:#1a9e75;background:#f7faf9}
#chucho-footer{padding:12px 14px;background:#fff;border-top:1px solid #e8f5ef;display:flex;gap:8px;align-items:flex-end}
#chucho-inp{flex:1;border:1.5px solid #d1e8de;border-radius:12px;padding:9px 14px;font-size:13.5px;font-family:'Nunito',sans-serif;color:#1a2e26;outline:none;resize:none;min-height:38px;max-height:90px;background:#f7faf9;transition:border .15s;line-height:1.4}
#chucho-inp:focus{border-color:#1a9e75;background:#fff}
#chucho-inp::placeholder{color:#9eb8ad}
#chucho-send{width:38px;height:38px;background:#1a9e75;border:none;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s;flex-shrink:0}
#chucho-send:hover{background:#0f6e56}
#chucho-send:active{transform:scale(0.94)}

/* Modal admin de Chucho */
#chucho-admin-modal{z-index:100000;background:#0f111e99;justify-content:center;align-items:center;padding:18px;display:none;position:fixed;inset:0}
#chucho-admin-card{background:#fff;border-radius:16px;width:100%;max-width:560px;max-height:88vh;padding:26px;overflow-y:auto;box-shadow:0 16px 60px rgba(0,0,0,.3)}
#chucho-admin-card h3{margin:0 0 4px;font-size:1.05rem;font-weight:900;color:#0f111e}
#chucho-admin-card p{margin:0 0 16px;font-size:.8rem;color:#5a7a70;font-weight:600}
.ch-adm-item{border:1.5px solid #e2e8f0;border-radius:10px;padding:10px 12px;margin-bottom:8px;display:flex;align-items:center;gap:10px}
.ch-adm-item-info{flex:1}
.ch-adm-item-cat{font-size:.68rem;font-weight:800;color:#38cea6;text-transform:uppercase}
.ch-adm-item-tit{font-size:.88rem;font-weight:800;color:#0f111e}
.ch-adm-item-btns{display:flex;gap:6px}
.ch-adm-btn{border:none;border-radius:7px;padding:5px 10px;font-size:.72rem;font-weight:800;cursor:pointer}
.ch-adm-btn.edit{background:#eef4ff;color:#272883}
.ch-adm-btn.del{background:#fdeef4;color:#d71d5c}
#chucho-admin-form{border-top:1.5px solid #eef2f0;margin-top:14px;padding-top:14px}
#chucho-admin-form label{display:block;font-size:.72rem;font-weight:800;color:#5a7a70;text-transform:uppercase;letter-spacing:.04em;margin:10px 0 4px}
#chucho-admin-form input,#chucho-admin-form textarea{width:100%;border:1.5px solid #e2e8f0;border-radius:9px;padding:9px 12px;font-family:inherit;font-size:.88rem;outline:none;box-sizing:border-box}
#chucho-admin-form textarea{resize:vertical}
.ch-adm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.ch-adm-actions button{border:none;border-radius:9px;padding:9px 18px;font-size:.85rem;font-weight:800;cursor:pointer}
.ch-adm-cancel{background:#f1f2f4;color:#0f111e}
.ch-adm-save{background:#0f111e;color:#fff}
