:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#eef4ff;background:#0b1728}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1120px;margin:auto;padding:22px}header{display:flex;justify-content:space-between;align-items:center}.brand{font-weight:900;font-size:23px}.brand span{color:#42e0a0}.tag{font-size:12px;color:#a9b8c9;border:1px solid #314259;padding:9px;border-radius:30px}.hero{padding:48px 0 28px}.eyebrow{font-size:12px;letter-spacing:3px;color:#42e0a0;font-weight:800}h1{font-size:clamp(42px,7vw,80px);line-height:1.04;letter-spacing:-3px;margin:14px 0}h1 em{color:#42e0a0;font-style:normal}.hero p:last-child{color:#a9b8c9;max-width:650px;line-height:1.7}.panel{background:#14243a;border:1px solid #293c55;padding:22px;border-radius:20px}.controls{display:grid;grid-template-columns:1fr 2fr 1fr 1fr;gap:14px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#a9b8c9;font-weight:650}input,select{width:100%;padding:13px;border:1px solid #344963;border-radius:10px;background:#0b1728;color:#fff;font-size:14px;min-width:0}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}button{cursor:pointer;border:0;border-radius:10px;background:#42e0a0;color:#09251c;padding:13px 18px;font-weight:800}.secondary{background:#253953;color:#fff}.radius{margin-left:auto;flex-direction:row;align-items:center}.radius select{width:auto}#status{color:#a9b8c9;font-size:12px;margin-top:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.stats article{background:#14243a;border:1px solid #293c55;padding:22px;border-radius:18px;display:flex;flex-direction:column;gap:8px}.stats small,.stats span{color:#a9b8c9}.stats strong{font-size:32px;color:#42e0a0}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectionhead span{font-size:12px;color:#a9b8c9}.list{display:grid;gap:12px}.station{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid #293c55;background:#14243a;border-radius:16px}.station h3{margin:0 0 7px;font-size:17px}.station p{margin:4px 0;color:#a9b8c9;font-size:13px}.right{text-align:right;flex-shrink:0}.right strong{display:block;color:#42e0a0;font-size:24px}.right small{display:block;color:#a9b8c9;margin:7px 0}.right a{display:inline-block;color:#fff;text-decoration:none;border:1px solid #48617c;padding:8px 12px;border-radius:8px;font-size:12px}footer{font-size:12px;color:#a9b8c9;padding-bottom:35px}@media(max-width:750px){header,main,footer{padding:16px}.hero{padding:28px 0}.controls{grid-template-columns:1fr 1fr}.controls label:nth-child(2){grid-column:1/-1;grid-row:2}.stats{gap:8px}.stats article{padding:13px}.stats strong{font-size:23px}.station{padding:14px}.right strong{font-size:20px}.tag{font-size:10px}}@media(max-width:420px){.controls{grid-template-columns:1fr 1fr}.station h3{font-size:14px}.station p{font-size:11px}}

.savings{margin:18px 0;padding:22px;border-radius:18px;background:#143a30;border:1px solid #326c54}.savings small{display:block;color:#c0d8cc}.savings strong{display:block;font-size:38px;color:#4ee3a0;margin:8px 0}.savings p{font-size:13px;color:#d2e8dc}.legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:13px;color:#e3f4eb}.station.cheap{border-left:6px solid #26b970}.station.mid{border-left:6px solid #f0b83e}.station.expensive{border-left:6px solid #e34f58}.station.cheap .right strong{color:#4ee3a0}.station.mid .right strong{color:#f0c65e}.station.expensive .right strong{color:#ff797e}

.map-section{margin:20px 0}.map-section h2{margin:8px 0 14px}.map-section #map{height:440px;min-height:300px;border:1px solid #314259;border-radius:18px;background:#20334a;z-index:0}.map-notice{color:#a9b8c9;font-size:12px;line-height:1.5}.map-price-marker{background:transparent;border:0}.map-price-marker span{display:inline-block;white-space:nowrap;font-size:12px;font-weight:900;border:2px solid white;border-radius:25px;padding:6px 9px;box-shadow:0 2px 10px #0005;color:#10261d;background:#26b970}.map-price-marker.mid span{background:#f0c65e}.map-price-marker.expensive span{background:#ff797e}.leaflet-popup-content{color:#162b21;line-height:1.6}.leaflet-popup-content a{color:#126d43;font-weight:700}.leaflet-container{font:inherit}@media(max-width:750px){.map-section #map{height:350px}}

.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;color:#a9b8c9;font-size:13px}.map-toolbar button{padding:9px 12px;font-size:12px}.map-toolbar button[hidden]{display:none!important}.map-section #map{overflow:hidden;isolation:isolate}.leaflet-container img{max-width:none!important}

.best-station{display:flex;flex-direction:column;gap:4px;margin-top:7px;font-size:13px;line-height:1.4;color:#b8c9d9;overflow-wrap:anywhere}.best-station strong{font-size:15px;color:#fff}.best-station span{font-size:12px}.best-map{font-size:12px;margin-top:9px;padding:9px 12px;width:fit-content}.best-map[hidden]{display:none!important}

/* Identidad GasolinaRadar y selector de vehículo */
.brand{display:flex;align-items:center;gap:9px}.brand-logo{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.vehicle-choice{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;color:#c7d7e9;font-weight:600}
.vehicle-buttons{display:flex;gap:8px;flex-wrap:wrap}.vehicle-buttons button{background:#172a41;border:1px solid #37506b;color:#d8e6f5;padding:10px 16px;border-radius:10px;cursor:pointer}
.vehicle-buttons button.vehicle-selected{background:#34d399;color:#092035;border-color:#34d399}
#share-app{white-space:normal}
@media(max-width:640px){.brand-logo{width:30px;height:30px}.vehicle-choice{align-items:flex-start;flex-direction:column;gap:8px}}

/* v0.11.0: rutas inteligentes */
.route-panel{margin:24px 0}.route-panel h2{margin:0 0 18px}.route-beta{font-size:11px;color:#42e0a0;border:1px solid #42e0a0;border-radius:5px;padding:2px 5px;vertical-align:middle}.route-fields{display:grid;grid-template-columns:1fr 1fr 170px auto auto;align-items:end;gap:10px}.route-fields label{display:flex;flex-direction:column;gap:8px;color:#c0d1e2;font-size:13px}.route-fields input,.route-fields select{width:100%;box-sizing:border-box}.route-fields button{min-height:42px}.route-panel #route-status{margin:16px 0;color:#d5e3f1;font-size:13px}.route-panel #route-summary{padding:13px 16px;background:#103b31;border:1px solid #2e8d6b;border-radius:10px;font-weight:700;font-size:14px}.route-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.route-station{display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid #304860;background:#0c1b30;border-radius:10px}.route-station>div{display:flex;flex-direction:column;gap:5px}.route-station small{color:#b6c7d8;font-size:12px}.route-station b{color:#42e0a0;white-space:nowrap}.route-station a{color:#a7e9ff;font-size:12px}.route-disclaimer{color:#9fb3c6;font-size:11px;line-height:1.6;margin:18px 0 0}@media(max-width:1000px){.route-fields{grid-template-columns:1fr 1fr}.route-results{grid-template-columns:1fr}}@media(max-width:500px){.route-fields{grid-template-columns:1fr}.route-station{flex-wrap:wrap}}

/* v0.11.1 — pestañas reales, iPhone compacto */
[hidden]{display:none!important}html,body{max-width:100%;overflow-x:hidden}main{min-width:0}button,input,select{max-width:100%}
.app-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px;padding:5px;background:#14243a;border:1px solid #293c55;border-radius:13px}.app-tabs button{background:transparent;color:#b9cadb;padding:12px 8px;font-size:14px}.app-tabs button.active{background:#34d399;color:#07281e}.tab-view{min-width:0}.route-panel{margin:0 0 14px}
@media(max-width:650px){header,main,footer{padding:10px 12px}.hero{display:none}.tag{display:none}.brand{font-size:19px}.brand-logo{width:27px;height:27px}.panel{padding:12px;border-radius:14px}.vehicle-choice{flex-direction:row;align-items:center;gap:8px;margin-bottom:9px;font-size:12px}.vehicle-buttons{gap:5px}.vehicle-buttons button{padding:8px 10px;font-size:12px}.controls{grid-template-columns:minmax(0,1.15fr) minmax(0,1.2fr) minmax(0,.7fr);gap:7px}.controls label:nth-child(2){grid-column:auto;grid-row:auto}.controls label:nth-child(4){grid-column:1/-1}.controls label{font-size:10px;gap:4px}.controls input,.controls select{padding:9px 6px;font-size:13px;height:38px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}.actions button{padding:9px 5px;font-size:11px;min-width:0}.actions #share-app{grid-column:1/-1}.actions .radius{grid-column:1/-1;justify-content:space-between;margin:0;font-size:11px}.actions .radius select{height:34px;padding:5px 10px}#status{font-size:10px;margin-top:8px}.stats{grid-template-columns:minmax(0,1fr);gap:5px;margin:9px 0}.stats article{padding:9px 7px;border-radius:11px;gap:3px;min-width:0}.stats small{font-size:10px;line-height:1.25}.stats strong{font-size:clamp(17px,4.6vw,25px);overflow-wrap:anywhere}.stats article>span{font-size:10px}.best-station{font-size:10px;margin-top:2px;line-height:1.2;overflow-wrap:anywhere}.best-station strong{font-size:10px}.best-station span{font-size:9px}.best-map{font-size:10px;padding:6px;margin-top:4px}.savings{margin:8px 0;padding:10px 12px;border-radius:12px}.savings small{font-size:10px}.savings strong{font-size:24px;margin:3px 0}.savings p{font-size:10px;margin:4px 0}.legend{font-size:10px;gap:9px;margin-top:5px}.map-section{margin:12px 0}.map-section h2{font-size:17px;margin:3px 0}.map-section #map{height:clamp(175px,28vh,260px);min-height:175px;border-radius:12px}.map-toolbar{font-size:10px;margin:0 0 5px}.map-notice{font-size:10px;margin:5px 0}.sectionhead span{font-size:10px}.results h2{font-size:17px}.station{padding:9px;gap:7px}.station h3{font-size:12px}.station p{font-size:10px}.right strong{font-size:15px}.right small{font-size:10px}.right a{font-size:10px;padding:6px}.route-panel h2{font-size:18px;margin-bottom:10px}.route-panel .sectionhead>span{display:none}.route-fields{grid-template-columns:1fr 1fr;gap:7px}.route-fields label:nth-child(3){grid-column:1/-1}.route-fields button{padding:10px 7px;font-size:12px}.route-panel #route-status{margin:8px 0;font-size:11px}.route-disclaimer{font-size:10px;margin:10px 0 0}.route-results{margin-top:8px}.route-station{padding:9px}.route-station small{font-size:10px}footer{font-size:10px;padding:12px}}

/* v0.11.2: diseño móvil compacto, sin tarjetas estiradas ni espacio sobrante */
.header-share{font-size:12px;padding:8px 11px;white-space:nowrap}
@media(min-width:651px){.header-share{margin-left:auto;margin-right:12px}}
@media(max-width:650px){
 html,body{width:100%;overflow-x:clip}body{font-size:13px}
 header{padding:8px 10px 5px;gap:6px}main{padding:5px 9px 12px}footer{padding:8px 10px}
 .brand{font-size:18px;gap:5px;letter-spacing:-.4px}.brand-logo{width:27px;height:27px}
 .header-share{padding:7px 9px;font-size:11px;margin-left:auto}
 .app-tabs{margin:4px 0 7px;padding:3px;gap:3px;border-radius:11px}
 .app-tabs button{font-size:12px;padding:9px 4px;border-radius:8px;white-space:nowrap}
 .panel{padding:9px;border-radius:12px}
 .vehicle-choice{margin-bottom:7px;gap:7px}.vehicle-buttons button{padding:6px 9px;font-size:11px}
 .controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,.58fr);gap:5px}
 .controls label:nth-child(2){grid-column:auto;grid-row:auto}
 .controls label:nth-child(4){grid-column:1/-1}
 .controls label{font-size:10px;gap:3px;min-width:0}
 .controls input,.controls select{height:35px;padding:5px 6px;font-size:12px}
 .actions{display:grid;grid-template-columns:1fr 1fr auto;gap:5px;margin-top:7px;align-items:center}
 .actions button{padding:8px 4px;font-size:10px;min-height:35px}
 .actions .radius{grid-column:auto;gap:4px;white-space:nowrap;font-size:10px}
 .actions .radius select{width:65px;height:35px;padding:4px 2px;font-size:11px}
 #status{font-size:10px;line-height:1.25;margin-top:6px}
 .stats{grid-template-columns:minmax(0,1fr);gap:5px;margin:7px 0;align-items:start}
 .stats article{padding:8px 6px;border-radius:10px;gap:2px;min-height:0;align-self:start}
 .stats small{font-size:9px;line-height:1.15;min-height:22px}
 .stats strong{font-size:clamp(17px,5vw,23px);line-height:1.1;overflow-wrap:normal;word-break:normal}
 .stats article>span{font-size:9px}
 .stats .best-card .best-station{display:none}
 .stats .best-card .best-map{font-size:9px;padding:5px 6px;line-height:1.2;margin-top:3px}
 .savings{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 9px;margin:6px 0;border-radius:10px}
 .savings small{font-size:9px}.savings strong{font-size:21px;margin:1px 0}
 .savings p{display:none}.legend{font-size:9px;gap:4px;margin:0;justify-content:flex-end;max-width:135px}
 .map-section{margin:7px 0}.map-section h2{font-size:15px;margin:2px 0}
 .map-toolbar{font-size:10px;margin-bottom:4px}
 .map-section #map{height:clamp(195px,34dvh,320px);min-height:195px;border-radius:11px}
 .map-notice{font-size:9px;margin:4px 0;line-height:1.3}
 .results{margin-top:8px}.results h2{font-size:15px}
 .route-panel h2{font-size:16px}.route-fields input,.route-fields select{font-size:13px;padding:8px}
}
@media(max-width:365px){.actions{grid-template-columns:1fr 1fr}.actions .radius{grid-column:1/-1;justify-content:flex-end}.brand{font-size:16px}.app-tabs button{font-size:11px}}

.route-winner{border:1px solid #38dca1;background:#14392f}.route-fields input[type=number]{width:100%;min-width:0}

/* Version visible en esquina superior derecha, incluso en Safari iOS */
header{position:relative;padding-right:104px}.version-label{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;font-weight:800;letter-spacing:.02em;color:#42e0a0;border:1px solid #347b6b;background:#102d2b;border-radius:8px;padding:6px 9px;line-height:1.2}@media(max-width:650px){header{padding-right:83px}.version-label{top:10px;right:9px;font-size:10px;padding:5px 6px}.header-share{font-size:10px;padding:6px 7px}}

/* Monetización discreta: nunca superponer el mapa ni los resultados */
.monetization{max-width:1100px;margin:18px auto 8px;display:grid;gap:12px}.monetization [hidden]{display:none!important}.partner-card,.affiliate-offers,.adsense-container{border:1px solid #294357;background:#11243a;border-radius:12px;padding:14px}.partner-kicker{display:block;font-size:10px;letter-spacing:.07em;color:#91acbd;margin-bottom:8px}.partner-body{display:flex;justify-content:space-between;align-items:center;gap:16px}.partner-body strong{font-size:17px;color:#48e4ac}.partner-body p,.affiliate-card p{font-size:12px;color:#c2d2df;margin:5px 0 0}.partner-link,.affiliate-card a{color:#51e8b3;text-decoration:underline;text-underline-offset:3px;font-size:12px;white-space:nowrap}.affiliate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px}.affiliate-card{padding:10px;background:#182e45;border-radius:9px}.affiliate-card strong{font-size:13px}.affiliate-card a{display:inline-block;margin-top:8px}.affiliate-disclosure{font-size:10px;line-height:1.5;color:#a8bdcb;margin:12px 0 0}.adsense-container{min-height:90px}@media(max-width:650px){.monetization{margin:12px 0 8px}.partner-body{align-items:flex-start;flex-direction:column;gap:8px}.partner-card,.affiliate-offers,.adsense-container{padding:11px}}

/* v0.12.7: tarjetas de afiliación adaptables */
.affiliate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
.affiliate-card{display:flex;flex-direction:column;gap:9px;min-width:0}
.affiliate-media{height:120px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:10px;font-size:36px;overflow:hidden}
.affiliate-media img{height:100%;width:100%;object-fit:contain;background:white}
.affiliate-card a{margin-top:auto}

/* v0.12.8: botón Ayúdanos en cabecera, compatible con móviles */
.header-help{font-size:12px;padding:8px 11px;white-space:nowrap;background:#163e37;color:#73edc0;border:1px solid #327d67}
@media(min-width:651px){.header-share{margin-left:auto;margin-right:0}.header-help{margin-right:12px}}
@media(max-width:650px){header{flex-wrap:wrap}.header-share{margin-left:auto}.header-help{font-size:10px;padding:6px 7px}.brand{flex-shrink:0}}
@media(max-width:420px){header{padding-right:80px}.header-share{margin-left:0}.header-help{margin-right:0}}

/* v0.12.10: botón flotante de retorno al inicio, visible solo al llegar abajo */
.back-to-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:1000;width:46px;height:46px;border-radius:50%;border:1px solid #4de3ac;background:#153f39;color:#6af2c0;font-size:27px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px #0007;cursor:pointer;transition:transform .18s ease,opacity .18s ease}
.back-to-top:hover{transform:translateY(-3px)}.back-to-top:focus-visible{outline:3px solid #fff;outline-offset:3px}.back-to-top[hidden]{display:none!important}
@media(max-width:650px){.back-to-top{width:42px;height:42px;right:14px;bottom:max(16px,env(safe-area-inset-bottom));font-size:25px}}

/* v0.13.0: cargadores con la identidad visual original */
.ev-panel{margin-top:12px}.ev-panel p{font-size:13px;color:#b7c9d7}.ev-disclaimer{line-height:1.6}.ev-map-section{margin-top:16px}#ev-map{height:430px;min-height:300px;border-radius:12px;overflow:hidden}.ev-marker span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#123c34;border:2px solid #47e4a8;box-shadow:0 2px 8px #0009;font-size:18px}.ev-panel .controls{margin-top:14px}.ev-panel .actions{margin-top:12px}@media(max-width:650px){#ev-map{height:350px}.app-tabs{flex-wrap:wrap}}

/* v0.13.0: comunidad, sin cifras simuladas */
.social-links{display:flex;gap:8px;align-items:center}.social-links a{display:grid;place-items:center;width:36px;height:36px;color:#62e7b6;background:#193047;border:1px solid #36516a;border-radius:10px;transition:background .15s}.social-links a:hover,.social-links a:focus-visible{background:#245541;outline:2px solid #62e7b6;outline-offset:2px}.social-links svg{width:21px;height:21px}footer{display:block}.community-stats{max-width:1100px;margin:0 auto 18px;text-align:center}.community-stats h2{font-size:18px;margin:0 0 15px}.community-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:12px}.community-grid>div{background:#152a40;border:1px solid #2b4861;border-radius:12px;padding:14px 8px;display:flex;flex-direction:column;gap:8px}.community-grid span{font-size:12px;color:#b4c9da}.community-grid strong{font-size:clamp(14px,2vw,24px);color:#60e6b2;overflow-wrap:anywhere}.community-stats small{font-size:11px;color:#a5bbcc}.footer-source{font-size:12px}@media(max-width:650px){.social-links{order:2}.social-links a{width:33px;height:33px}.community-grid{gap:6px}.community-grid>div{padding:12px 5px}.community-grid span{font-size:10px}.community-grid strong{font-size:13px}}
