*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#142033;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}header{background:#101b2d;color:white;padding:22px max(18px,calc((100% - 1050px)/2));display:flex;align-items:center;justify-content:space-between}h1{margin:0;color:#1684ff;font-size:30px;letter-spacing:1px}header p{margin:2px 0 0;color:#c6d2e2;font-size:13px}.brand{font-size:10px;color:#9fb3cc;letter-spacing:1px}nav{display:flex;gap:6px;overflow:auto;background:#fff;padding:10px max(12px,calc((100% - 1050px)/2));box-shadow:0 2px 10px #172b4410;position:sticky;top:0;z-index:10}.tab{border:0;background:#eef2f7;color:#526176;padding:12px 17px;border-radius:10px;font-weight:650;white-space:nowrap}.tab.active{background:#087cff;color:#fff}main{max-width:1050px;margin:24px auto;padding:0 16px}.panel{display:none}.panel.active{display:block}h2{margin:0 0 8px;font-size:24px}h3{margin:0 0 16px}.muted{color:#65748a;font-size:14px}.small{font-size:12px}.card{background:white;border:1px solid #e3eaf2;border-radius:16px;padding:20px;margin:16px 0;box-shadow:0 5px 18px #10243b08}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card>.two{margin-bottom:16px}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:#35445a}input,select{width:100%;padding:12px;border:1px solid #d6dfeb;border-radius:10px;background:#fff;color:#142033;font:inherit;font-weight:400;min-width:0}input:focus,select:focus{outline:2px solid #9acbff;border-color:#1684ff}.primary,.secondary{border:0;border-radius:10px;padding:13px 18px;font-weight:700;cursor:pointer}.primary{background:#087cff;color:white}.secondary{background:#edf3fa;color:#263b55}.result{margin-top:14px;line-height:1.65}.metric{display:inline-block;background:#edf5ff;padding:12px 15px;border-radius:12px;margin:5px 7px 5px 0}.metric b{display:block;font-size:21px;color:#0873e6}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}#map{height:390px;border-radius:16px;border:1px solid #dce5ef;background:#e7edf4;margin:16px 0;z-index:1}footer{text-align:center;color:#8a98aa;font-size:12px;padding:24px}.error{color:#b42318}.station{padding:12px 0;border-top:1px solid #edf0f4}.station:first-child{border-top:0}@media(max-width:650px){header{padding:18px}.brand{display:none}main{margin:18px auto}.two{grid-template-columns:1fr}.card{padding:16px}#map{height:330px}.tab{padding:11px 13px;font-size:13px}}
/* Interruptor de apariencia */
.header-tools{display:flex;align-items:center;gap:16px}
.theme-toggle{display:inline-flex;align-items:center;gap:9px;min-width:76px;height:34px;padding:4px 10px 4px 5px;border:1px solid #53647a;border-radius:999px;background:#26364c;color:#eaf2fc;font-size:11px;font-weight:800;letter-spacing:.7px;cursor:pointer;transition:background .2s,border-color .2s}
.toggle-knob{width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .2s}
body.dark{background:#0b1220;color:#e7edf6}
body.dark nav{background:#111c2d;box-shadow:0 2px 12px #0004}
body.dark .tab{background:#202d40;color:#c1cee0}
body.dark .tab.active{background:#087cff;color:#fff}
body.dark .card{background:#142033;border-color:#293950;box-shadow:0 5px 18px #0002}
body.dark .muted{color:#a5b4c8}
body.dark label{color:#d1dbea}
body.dark input,body.dark select{background:#0d1727;color:#e7edf6;border-color:#3a4b63}
body.dark input::placeholder{color:#7889a0}
body.dark .secondary{background:#26364c;color:#dce7f5}
body.dark .metric{background:#1b3452}
body.dark .metric b{color:#64adff}
body.dark #map{border-color:#33445c;background:#17243a}
body.dark footer{color:#8495ad}
body.dark .station{border-color:#293950}
body.dark .theme-toggle{background:#087cff;border-color:#087cff;padding-left:10px;padding-right:5px}
body.dark .theme-toggle .toggle-knob{transform:translateX(38px);order:2}
body.dark .theme-toggle #themeLabel{order:1}
@media(max-width:650px){.header-tools{gap:10px}.theme-toggle{min-width:70px}.brand{display:none}}
/* Ajuste del interruptor: la bolita permanece dentro del contorno */
.theme-toggle{width:76px;min-width:76px;justify-content:space-between;padding:4px 7px;gap:5px;overflow:hidden}
.theme-toggle .toggle-knob{flex:0 0 24px;transform:none!important;order:0!important}
.theme-toggle #themeLabel{order:0!important;line-height:1}
body.dark .theme-toggle{padding:4px 7px;justify-content:space-between}
/* Garaje MI EV */
.garage-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:170px;background:linear-gradient(120deg,#101b2d,#1b3556);color:#fff;overflow:hidden}.garage-hero h3{font-size:26px;margin:8px 0}.garage-hero .muted{color:#c5d3e5}.eyebrow{font-size:10px;letter-spacing:2px;color:#69b2ff;font-weight:800}.garage-photo{width:180px;height:120px;border-radius:14px;background:#ffffff18;display:grid;place-items:center;font-size:48px;background-size:cover;background-position:center;flex:0 0 auto}.garage-photo.has-photo{font-size:0}.garage-hero .muted.small{color:inherit}
body.dark .garage-hero{background:linear-gradient(120deg,#101b2d,#1b3556)}
@media(max-width:650px){.garage-hero{align-items:flex-start;flex-direction:column}.garage-photo{width:100%;height:150px}}

/* Catálogo y vista previa de fotografía */
.photo-preview{margin-top:10px;min-height:110px;border:1px dashed var(--border,#9aa);border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--muted,#777);font-size:.9rem;text-align:center;padding:8px}
.photo-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
#catalogSelect{min-height:150px}#catalogSearch{margin-bottom:8px}
