/* ==================== MENÚS DESPLEGABLES PROPIOS (js/selects.js) ====================
   El botón hereda las clases del <select> (pu-input, input-select...), así conserva
   su borde, alto y fondo; aquí solo se define el diseño interno y la lista. */
.csel{position:relative;display:block;min-width:0}
.csel-native{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important;z-index:-1}
.csel-btn{
    display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
    text-align:left;cursor:pointer;font-family:inherit;
}
.csel-btn:where(:not(.pu-input):not(.input-select)){
    height:44px;padding:0 14px;border:1px solid #e2e2e2;border-radius:12px;background:#fff;color:#1a1a1a;font-size:.92rem;
}
select.pu-input + .csel-btn, .csel-btn.pu-input{background-image:none!important;padding-right:14px}
.csel-btn:hover{border-color:#c9c9c9}
.csel.open .csel-btn,.csel-btn:focus-visible{outline:none;border-color:var(--red,#E30613)}
.csel-btn:disabled{opacity:.5;cursor:not-allowed}
.csel-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csel-arrow{flex-shrink:0;color:#9ca3af;transition:transform .2s}
.csel.open .csel-arrow{transform:rotate(180deg);color:var(--red,#E30613)}
.csel.invalid .csel-btn{border-color:#ef4444!important}
.csel.is-placeholder .csel-label{color:#9ca3af}

.csel-list{
    position:fixed;z-index:9999;list-style:none;margin:0;padding:6px;
    max-height:320px;overflow-y:auto;background:#fff;border:1px solid #ececec;border-radius:14px;
    box-shadow:0 18px 40px rgba(0,0,0,.16);animation:cselIn .14s ease-out;
    font-family:'Inter',sans-serif;scrollbar-width:thin;scrollbar-color:#d1d5db transparent;
}
@keyframes cselIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.csel-group{padding:8px 12px 4px;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#9ca3af;cursor:default}
.csel-opt{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 12px;border-radius:10px;color:#1a1a1a;font-size:.88rem;font-weight:500;cursor:pointer;white-space:nowrap;
    transition:background .12s,color .12s;
}
.csel-opt:hover,.csel-opt.active{background:#fef2f2;color:var(--red,#E30613)}
.csel-opt.selected{font-weight:700;color:var(--red,#E30613)}
.csel-opt.selected svg{color:var(--red,#E30613);flex-shrink:0}
.csel-opt.disabled{opacity:.4;cursor:not-allowed}

/* Modo oscuro */
html[data-theme="dark"] .csel-btn:where(:not(.pu-input):not(.input-select)){background:#111;border-color:#2a2a2a;color:#ececec}
html[data-theme="dark"] .csel-btn:hover{border-color:#3f3f46}
html[data-theme="dark"] .csel.open .csel-btn{border-color:var(--red,#E30613)}
html[data-theme="dark"] .csel.is-placeholder .csel-label{color:#6b7280}
html[data-theme="dark"] .csel-list{background:#141414;border-color:#2a2a2a;box-shadow:0 18px 40px rgba(0,0,0,.55);scrollbar-color:#333 transparent}
html[data-theme="dark"] .csel-group{color:#6b7280}
html[data-theme="dark"] .csel-opt{color:#d1d5db}
html[data-theme="dark"] .csel-opt:hover,html[data-theme="dark"] .csel-opt.active{background:#232323;color:#fff}
html[data-theme="dark"] .csel-opt.selected{color:#fff}
