.ie-back{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:16px;font-family:inherit}
.ie-box{background:#fff;color:#0f172a;border-radius:22px;width:min(640px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.ie-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}.ie-head h3{margin:0;font-size:1.1rem}
.ie-x{border:0;background:#f1f5f9;color:#0f172a;width:34px;height:34px;border-radius:50%;font-size:16px;cursor:pointer}
.ie-search{display:flex;gap:8px;padding:6px 16px;flex-wrap:wrap}.ie-search input{flex:1 1 180px;min-width:0;border:1px solid #cbd5e1;border-radius:999px;padding:10px 14px;font:inherit;color:#0f172a;background:#fff}
.ie-btn{border:0;border-radius:999px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer;background:#1d4ed8;color:#fff}.ie-ghost{background:#eef2ff;color:#1d4ed8}.ie-main{background:linear-gradient(135deg,#f97316,#ea580c);width:100%;padding:13px}.ie-btn:disabled{opacity:.5;cursor:not-allowed}
.ie-hint{margin:2px 16px 6px;font-size:.85rem;color:#475569}.ie-map{height:min(52dvh,420px);min-height:240px;margin:0 16px;border-radius:16px;overflow:hidden;background:#e2e8f0;position:relative;z-index:0}
.ie-msg{margin:6px 16px 0;min-height:1.2em;font-size:.85rem;color:#475569}.ie-msg.is-err{color:#b91c1c}.ie-foot{padding:8px 16px 16px}
.ie-box .leaflet-container{font:inherit}
/* envío en el catálogo y en la configuración */
.ie-sec{margin:14px 0;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;color:#0f172a}
.ie-sec h4{margin:0 0 8px;font-size:1rem}.ie-opts{display:flex;gap:8px;flex-wrap:wrap}.ie-opts button{flex:1 1 140px}
.ie-sum{margin:10px 0 0;font-size:.9rem;color:#334155;line-height:1.45}.ie-sum b{color:#0f172a}.ie-warn{color:#b45309}
.ie-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:520px){.ie-grid{grid-template-columns:1fr}}
/* Los botones del mapa no deben heredar los estilos del panel ni del catálogo */
html body .ie-back .ie-btn{background:#1d4ed8!important;color:#fff!important;border:0!important;box-shadow:none!important;text-shadow:none!important;-webkit-text-fill-color:#fff!important;opacity:1!important;backdrop-filter:none!important}
html body .ie-back .ie-btn.ie-ghost{background:#eef2ff!important;color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8!important}
html body .ie-back .ie-btn.ie-main{background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .ie-back .ie-btn:disabled{opacity:.5!important}
html body .ie-back .ie-x{background:#f1f5f9!important;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;border:0!important;box-shadow:none!important;opacity:1!important}
html body .ie-back .ie-search input{background:#fff!important;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;border:1px solid #cbd5e1!important;box-shadow:none!important}
html body .ie-back .ie-head h3,html body .ie-back .ie-hint,html body .ie-back .ie-msg{color:#0f172a!important;text-shadow:none!important}
html body .ie-back .ie-hint{color:#475569!important}
html body .im-app .ie-sec .ie-pick,html body .ie-sec .ie-pick{display:inline-flex!important;align-items:center;gap:6px;background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:999px!important;padding:12px 20px!important;font-weight:700!important;box-shadow:0 6px 16px rgba(234,88,12,.3)!important;opacity:1!important;cursor:pointer;margin-bottom:6px}
html body .im-app .ie-sec{background:#f8fafc!important;border:1px solid #e2e8f0!important}
html body .im-app .ie-sec .ie-sum,html body .im-app .ie-sec .im-help{color:#334155!important}
html body .im-app .ie-sec .ie-sum.ie-warn{color:#b45309!important}
/* Configuración organizada: secciones plegables y campos de dos en dos */
.ie-settings{display:flex;flex-direction:column;gap:12px}
.ie-acc{border:1px solid rgba(128,128,128,.3);border-radius:18px;background:transparent;overflow:hidden;color:var(--glass-ink,#14181f)}
html body.dashboard-open:not(.tema-mercado):not(.tema-cristal) .ie-acc{background:#fff;border-color:#e6e8ec}
.ie-acc>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:14px 48px 14px 18px;position:relative;color:inherit}
.ie-acc>summary::-webkit-details-marker{display:none}
.ie-acc>summary::after{content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.6;transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.ie-acc[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.ie-acc>summary b{font-size:1rem}.ie-acc>summary small{font-size:.82rem;opacity:.7}
.ie-acc-b{padding:4px 18px 18px;display:flex;flex-direction:column;gap:10px;border-top:1px solid rgba(128,128,128,.2)}
.ie-acc-b>.ie-grid{margin-top:8px}.ie-acc-b h3{margin:10px 0 0;font-size:.95rem}
.ie-themes3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:8px}@media(max-width:640px){.ie-themes3{grid-template-columns:1fr}}
html body .ie-acc .ie-theme3{display:flex!important;flex-direction:column!important;align-items:flex-start;gap:6px;text-align:left;padding:12px!important;border-radius:16px!important;background:#fff!important;border:2px solid #e6e8ec!important;color:#14181f!important;-webkit-text-fill-color:#14181f!important;box-shadow:none!important;cursor:pointer;min-height:0!important}
html body .ie-acc .ie-theme3[aria-pressed=true]{border-color:#f97316!important;background:#fff7ed!important}
html body .ie-acc .ie-theme3 small{color:#5b6372!important;-webkit-text-fill-color:#5b6372!important;font-size:.8rem;font-weight:400}
.ie-sw{display:block;width:100%;height:46px;border-radius:10px;border:1px solid #e6e8ec}
