@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--green:#fc4c02;--lime:#ffffff;--paper:#f5f5f7;--line:#e4e4e7;--muted:#707076;--ink:#242428}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}.demo{background:var(--green);color:#ffffff;text-align:center;padding:9px 20px;font-size:11px;letter-spacing:.2px}.demo span{font-size:9px;font-weight:700;letter-spacing:1.6px;border:1px solid #616167;border-radius:4px;padding:3px 6px;margin-right:10px}.demo button{font-size:11px;text-decoration:underline;margin-left:16px}header{height:94px;max-width:1440px;padding:0 6%;margin:auto;display:flex;align-items:center;gap:65px;border-bottom:1px solid var(--line)}.brand{font-size:30px;font-weight:800;letter-spacing:-1.7px;display:flex;align-items:center;gap:9px}.brand svg{width:38px;height:31px;fill:none;stroke:currentColor;stroke-width:2}.brand span{font-size:11px;align-self:flex-start;margin-top:5px}nav{display:flex;gap:30px;height:100%;align-items:center}nav button{height:100%;padding:0 2px;color:var(--muted);position:relative}nav button.active{color:var(--green);font-weight:700}nav button.active:after{content:'';position:absolute;height:3px;background:var(--green);bottom:0;left:0;right:0}.header-right{margin-left:auto;display:flex;align-items:center;gap:22px}.primary{background:var(--green);color:#fff;border-radius:8px;padding:13px 20px;font-weight:600}.primary:hover{background:#d94000}.avatar{border-radius:50%;background:#ececef;width:39px;height:39px;font-weight:700;font-size:12px;border:1px solid #dedee2}main{max-width:1440px;margin:auto;padding:42px 6% 70px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:#b93800;margin-bottom:12px}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:46px;line-height:1.13;letter-spacing:-2px;margin:0 0 14px;font-weight:800}h1 em{font-family:Georgia,serif;font-weight:400;color:#fc4c02}p{line-height:1.65}.muted,.sub{color:var(--muted)}.hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:33px;gap:30px}.hero p{margin:0}.hero-note{display:flex;align-items:center;gap:12px;background:#ffffff;border:1px solid #e4e4e7;border-radius:12px;padding:17px 20px;max-width:260px;font-size:12px;line-height:1.5}.hero-note svg{width:37px;flex-shrink:0}.toolbar{display:flex;gap:12px;align-items:center;padding:16px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:25px}.location{display:flex;align-items:center;gap:9px;flex:1}.location select{border:0;background-color:transparent;font-weight:600;max-width:210px}.locate{border:1px solid var(--line);padding:7px 10px;border-radius:6px;font-size:11px}.range{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);padding-right:20px;border-right:1px solid var(--line)}.range input{width:85px;accent-color:var(--green)}.mode{display:flex;background:#f0f0f2;padding:4px;border-radius:7px}.mode button{padding:8px 13px;border-radius:5px;color:var(--muted);font-size:12px}.mode .active{background:white;box-shadow:0 1px 4px #0001;color:var(--green);font-weight:600}.layout{display:grid;grid-template-columns:205px 1fr;gap:30px}.filters{padding-top:4px}.filter-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}.filter-title strong{font-size:14px}.text-link{color:#b93800;font-size:11px;text-decoration:underline}.filter-block{border-bottom:1px solid var(--line);padding:0 0 21px;margin-bottom:21px}.filter-block h3{font-size:11px;letter-spacing:.9px;text-transform:uppercase;margin:0 0 13px}.check{display:flex;align-items:center;gap:8px;color:#55555b;margin:11px 0;font-size:12px;cursor:pointer}.check input{accent-color:var(--green);width:15px;height:15px}.check span{margin-left:auto;font-size:10px;color:#8e8e94}.filters select,.filters input[type=date]{width:100%;padding:9px;border:1px solid var(--line);border-radius:6px;background-color:white;color:#55555b;margin-bottom:8px;font-size:12px}.tip{background:#ffffff;border-radius:10px;padding:18px;font-size:12px;line-height:1.6;color:#626268}.tip strong{display:block;font-size:14px;color:var(--green);margin-bottom:7px}.results-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.results-title h2{font-size:16px;margin:0}.results-title select{border:1px solid var(--line);border-radius:6px;padding:7px 30px 7px 10px;background-color:#fff;font-size:11px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.card{border:1px solid var(--line);background:#fff;border-radius:13px;overflow:hidden;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #fc4c020c}.cover{height:164px;position:relative;overflow:hidden;background:#e5e5e8}.cover>svg{width:100%;height:100%;display:block}.tag{position:absolute;top:14px;left:14px;background:#ffffffed;color:#323238;font-size:10px;padding:6px 9px;border-radius:5px;font-weight:600}.save{position:absolute;right:13px;top:13px;width:31px;height:31px;background:#ffffffed;border-radius:50%;font-size:17px}.save.saved{background:var(--green);color:var(--lime)}.cover-label{position:absolute;bottom:12px;left:14px;font-size:9px;letter-spacing:1.6px;color:#fff;opacity:.9}.card-body{padding:20px}.date{font-size:10px;font-weight:700;letter-spacing:.4px;color:#b93800;margin-bottom:8px}.card h3{font-size:19px;line-height:1.35;margin:0 0 7px;letter-spacing:-.5px}.card h3 button{text-align:left;padding:0;font-weight:700}.place{font-size:11px;color:var(--muted);margin-bottom:17px}.stats{display:flex;gap:19px;font-size:12px;padding:0 0 16px;border-bottom:1px solid #ededf0}.stats span{white-space:nowrap}.stats b{font-weight:600}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:15px}.people{display:flex;align-items:center;font-size:10px;color:var(--muted);gap:8px}.bubbles{display:flex;padding-left:0}.bubble{border:2px solid white;margin-right:-7px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e3e3e7;color:#55555b;font-size:8px}.bubble:nth-child(2){background:#d3d5da}.bubble:nth-child(3){background:#ffd5c2}.people>span{margin-left:5px}.small-button{background:#fff0e8;color:#b93800;border-radius:6px;padding:9px 11px;font-size:10px;font-weight:700;white-space:nowrap}.small-button:hover{background:#ffe0d1}.small-button.joined{background:var(--green);color:#fff}.bottom-note{color:#88888e;font-size:11px;text-align:center;margin:25px 0 0}.empty{padding:70px 25px;border:1px dashed #ccccd2;border-radius:12px;text-align:center;grid-column:1/-1}.empty h3{margin:0 0 10px}.map-wrap{border:1px solid var(--line);border-radius:12px;background:#eeeeef;position:relative;min-height:480px;overflow:hidden}.map-wrap svg{width:100%;height:480px;display:block}.map-marker{cursor:pointer}.map-marker:hover circle{fill:#668a45}.map-disclaimer{position:absolute;bottom:12px;left:12px;background:#ffffffdd;padding:7px 10px;border-radius:5px;font-size:10px}.map-count{position:absolute;top:16px;left:16px;background:white;padding:10px 14px;font-size:12px;border-radius:7px;box-shadow:0 2px 10px #0001}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.tabs{display:flex;gap:8px;margin-bottom:23px}.tabs button{border:1px solid var(--line);padding:10px 15px;border-radius:30px;font-size:12px}.tabs .active{background:var(--green);color:white}.route-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.profile{max-width:760px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:27px;margin-bottom:20px}.panel h2{margin-top:0;font-size:20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label.field{display:block;font-size:12px;font-weight:600;margin:15px 0}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #d8d8dd;border-radius:6px;padding:11px;margin-top:7px;background-color:#fff;color:var(--ink)}.field textarea{min-height:85px;resize:vertical}.switch-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.switch-row input{accent-color:var(--green);width:18px;height:18px}.profile-avatar{display:flex;align-items:center;gap:17px;margin:20px 0}.profile-avatar .avatar{width:65px;height:65px;font-size:21px}.badge{font-size:10px;padding:5px 8px;background:#fff0e8;border-radius:5px}footer{border-top:1px solid var(--line);padding:30px 6%;display:flex;align-items:center;gap:35px;max-width:1440px;margin:auto;color:#77777d;font-size:11px}footer .brand{font-size:24px;color:var(--green)}footer span:last-child{margin-left:auto}dialog{border:1px solid var(--line);border-radius:16px;width:630px;max-width:94vw;max-height:90vh;padding:32px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#15151aaa;backdrop-filter:blur(4px)}.close{position:absolute;right:13px;top:10px;font-size:26px;z-index:3;border-radius:50%;background:var(--paper);width:32px;height:32px}dialog h2{font-size:29px;letter-spacing:-1px;margin:12px 0}dialog .cover{border-radius:10px;height:190px;margin:10px 0 20px}.detail-stats{display:flex;gap:12px;margin:20px 0}.detail-stats>div{flex:1;padding:12px;background:#f2f2f4;border-radius:8px;font-size:11px}.detail-stats b{display:block;font-size:20px;margin-bottom:4px}.detail-actions{display:flex;gap:10px;margin:20px 0}.comment{border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.comment p{margin:5px 0}.comment small{color:var(--muted)}.comment-form{display:flex;gap:8px;margin-top:15px}.comment-form input{min-width:0;flex:1;padding:11px;border:1px solid var(--line);border-radius:7px}.notice{padding:12px;background:#fff1ea;border-radius:8px;font-size:12px;line-height:1.6}.upload-zone{padding:28px;border:1px dashed #9999a0;border-radius:8px;text-align:center;background:#f7f7f8}.upload-zone input{margin-top:13px;max-width:100%;font-size:12px}.report{font-size:11px;color:#737379;text-decoration:underline;margin-top:18px}.full{grid-column:1/-1}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--green);color:#fff;padding:14px 24px;border-radius:9px;z-index:100;box-shadow:0 5px 20px #0002;transition:transform .2s;font-size:13px;max-width:90vw;text-align:center}#toast.show{transform:translateX(-50%) translateY(0)}
@media(min-width:1400px){.cover{height:190px}}@media(max-width:1000px){header{gap:30px;padding:0 4%}main{padding:30px 4% 50px}.hero-note{display:none}.layout{grid-template-columns:175px 1fr;gap:20px}.cards{gap:15px}.card-body{padding:15px}.stats{gap:10px;font-size:11px}.route-grid{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.range{border:0}.location{flex-basis:60%}}@media(max-width:700px){.demo{font-size:9px;padding:8px}.demo span{display:none}.demo button{font-size:9px;margin-left:4px}header{height:116px;padding:13px 5% 0;flex-wrap:wrap;gap:0}.brand{font-size:26px}.brand svg{width:32px}.header-right{gap:10px;align-self:flex-start}.header-right .primary{font-size:11px;padding:10px 12px}.avatar{width:34px;height:34px}nav{order:3;width:100%;height:43px;justify-content:center;gap:40px;font-size:12px}main{padding:28px 5% 40px}h1{font-size:35px;letter-spacing:-1.5px}.hero{margin-bottom:23px}.hero p{font-size:12px}.toolbar{padding:12px;gap:10px}.location{flex-basis:100%;font-size:12px;justify-content:space-between}.location select{max-width:175px;font-size:12px}.range{padding:0;flex:1;gap:6px}.mode button{padding:7px 10px}.layout{display:block}.filters{display:none}.filters.visible{display:block;background:white;padding:20px;border:1px solid var(--line);border-radius:10px;margin-bottom:20px}.cards{grid-template-columns:1fr;gap:20px}.cover{height:185px}.card-body{padding:19px}.card h3{font-size:21px}.stats{font-size:12px;gap:24px}.people{font-size:11px}.small-button{font-size:11px;padding:10px 12px}.route-grid{grid-template-columns:1fr}.route-header{align-items:flex-start;gap:12px}.route-header h1{font-size:31px}.route-header .primary{font-size:11px;padding:10px 12px;white-space:nowrap}.formgrid{grid-template-columns:1fr;gap:0}footer{padding:25px 5%;gap:15px;flex-wrap:wrap}dialog{padding:25px 20px}.detail-stats{gap:8px}.detail-stats b{font-size:17px}.detail-actions{flex-wrap:wrap}.map-wrap svg{height:430px}.map-wrap{min-height:430px}.results-title h2{font-size:14px}.mobile-filter{display:block!important}.profile .panel{padding:20px}}
.mobile-filter{display:none;border:1px solid var(--line);border-radius:5px;padding:6px 9px;font-size:11px}

/* Orange / graphite sports interface */
.demo{background:#242428;color:#f1f1f3}.demo span{border-color:#66666e}
header{background:#fff;max-width:none;padding-left:max(6%,calc((100vw - 1268px)/2));padding-right:max(6%,calc((100vw - 1268px)/2))}
.brand{color:#fc4c02;font-weight:800;letter-spacing:-1.3px}.brand span{display:none}
h1{letter-spacing:-1.8px;line-height:1.12}h1 em{font-family:inherit;font-style:normal;font-weight:800;color:#fc4c02}
.hero-note{border-left:3px solid #fc4c02;border-radius:3px}.hero-note strong{color:#242428}
.primary{border-radius:4px;font-weight:700}.card,.toolbar,.panel{border-radius:6px}.card:hover{box-shadow:0 5px 18px #0000000d}
.card h3{letter-spacing:-.4px}.date{color:#b93800}.tag{border-radius:3px}.save.saved{background:#fc4c02;color:white}
.tip{background:#fff;border-left:3px solid #fc4c02;border-radius:3px}.tip strong{color:#242428}.small-button{border-radius:4px}.small-button.joined{background:#fc4c02;color:white}
.mode{border-radius:4px}.mode button{border-radius:3px}.mode .active{color:#b93800}.tabs button{border-radius:4px}.avatar{color:#505057}
.detail-stats>div{background:#f0f0f2;border-radius:4px}.detail-stats b{color:#242428}.notice{background:#fff1ea;border-radius:4px;color:#6b493c}
footer .brand{color:#fc4c02}#toast{background:#242428}.map-marker:hover circle{fill:#d94000}
@media(max-width:700px){header{padding-left:5%;padding-right:5%}h1{font-size:35px}}

.brand{white-space:nowrap}@media(max-width:700px){.brand{font-size:23px;gap:5px}.brand svg{width:28px}.header-right{gap:7px}.header-right .primary{padding:10px 9px}}
/* Interfaz más ligera: la búsqueda ocupa el centro y los filtros aparecen al pedirlos. */
.hero{margin-bottom:22px}.hero h1{font-size:37px;letter-spacing:-1.3px;margin:0}.hero-note{display:none}
.layout{display:block}.filters{display:none}.filters.visible{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px;background:transparent;border:0;padding:0;margin:0 0 18px}.filters .filter-title{grid-column:1/-1;margin:0}.filters .filter-block{background:#fff;border:1px solid #e4e4e7;border-radius:5px;padding:14px;margin:0}.filters .tip{display:none}.filters .check{margin:7px 0}.filter-toggle{display:inline-block;border:1px solid #dedee2;border-radius:4px;padding:7px 10px;font-size:11px;margin-left:8px;background:#fff;color:#444}
.results-title{justify-content:flex-start;gap:8px}.results-title select{margin-left:auto}.cards{gap:16px}.cover{height:145px}.card-body{padding:15px}.card h3{font-size:17px}.card .place{margin-bottom:10px}.card .stats{padding-bottom:11px}.card-bottom{padding-top:11px}.route-header{margin-bottom:15px}.route-header h1{font-size:37px}.tabs{margin-bottom:16px}
@media(max-width:700px){.hero h1,.route-header h1{font-size:29px}.filters.visible{grid-template-columns:repeat(2,minmax(130px,1fr));gap:8px}.filters .filter-block{padding:11px}.filters .filter-block:nth-of-type(n+4){grid-column:span 2}.cover{height:165px}.card-body{padding:16px}.results-title{flex-wrap:wrap}.results-title select{font-size:10px}}

.floating-create{position:fixed;z-index:20;left:50%;bottom:22px;transform:translateX(-50%);background:#fc4c02;color:#fff;border-radius:5px;padding:15px 28px;font-weight:700;box-shadow:0 4px 16px #0003;white-space:nowrap}.floating-create:hover{background:#d94000}body{padding-bottom:74px}
@media(max-width:700px){.floating-create{bottom:max(14px,env(safe-area-inset-bottom));width:calc(100% - 36px);padding:15px;text-align:center;border-radius:5px}body{padding-bottom:84px}}
.field[hidden]{display:none}.field.route-source{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.route-source strong{width:100%}.route-source select{flex:1;min-width:220px;border:1px solid #d8d8dd;border-radius:4px;padding:11px;background:#fff}.hint{font-size:11px;color:#77777d;line-height:1.5;margin:5px 0 14px}.location-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;align-items:center}.map-search{display:flex;gap:8px;margin:12px 0}.map-search input{flex:1;min-width:0;padding:10px;border:1px solid #d8d8dd;border-radius:4px}#meetMap{height:330px;border-radius:5px;border:1px solid #ddd;z-index:1}@media(max-width:600px){.location-actions{grid-template-columns:1fr}#meetMap{height:280px}}
/* Formulario de creación: limpio, amplio y cómodo, con una jerarquía visual clara. */
dialog{width:min(760px,94vw);padding:36px;background:#fff;border:1px solid #ececf0;border-radius:16px;box-shadow:0 20px 70px #17171a30;max-height:90vh;overflow:auto}dialog::backdrop{background:#20212488;backdrop-filter:blur(3px)}dialog .close{position:sticky;float:right;top:0;right:0;margin:-14px -12px 0 0;width:38px;height:38px;border:1px solid #e7e7eb;background:#fff;border-radius:50%;font-size:22px;color:#555;z-index:5}dialog .eyebrow{color:#fc4c02;font-size:10px;letter-spacing:1.5px;margin:4px 0 9px}dialog h2{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin:0 0 25px;color:#202124}#createForm{display:flex;flex-direction:column;gap:8px}#createForm .field{margin:4px 0 12px;font-size:13px;font-weight:600;color:#34343a}#createForm .field input,#createForm .field select,#createForm .field textarea,#createForm .route-source select{margin-top:8px;padding:13px 14px;border:1px solid #dadce0;border-radius:8px;background:#fff;color:#202124;font-weight:500;min-height:48px;transition:border-color .15s,box-shadow .15s}#createForm .field input:focus,#createForm .field select:focus,#createForm .field textarea:focus,#createForm .route-source select:focus{border-color:#fc4c02;box-shadow:0 0 0 3px #fc4c021c;outline:0}#createForm .field textarea{min-height:94px}#createForm .formgrid{gap:14px 18px}#createForm .route-import{display:flex;align-items:center;gap:12px;margin:2px 0 10px;color:#74747b;font-size:12px}.route-import .small-button{border:1px solid #dadce0;background:#fff;color:#303036;padding:10px 13px;border-radius:7px}.route-import .small-button:hover{background:#f7f7f8;border-color:#b9b9c0}#createForm .hint{background:#f7f7f8;border-radius:8px;padding:11px 13px;color:#686870;margin:0 0 10px}#createForm>button.primary{align-self:flex-start;margin-top:8px;padding:13px 22px;border-radius:7px;background:#fc4c02;font-size:14px}#createForm select{color-scheme:light}.location-actions .small-button{border:1px solid #dadce0;border-radius:7px;background:#fff;padding:11px 14px}#meetMap{border-radius:10px;overflow:hidden}#dialogBody .notice{border-radius:8px}
@media(max-width:600px){dialog{width:100vw;max-width:100vw;max-height:94dvh;margin:auto 0 0;padding:26px 20px 30px;border-radius:18px 18px 0 0}dialog h2{font-size:25px;margin-bottom:19px}#createForm .formgrid{grid-template-columns:1fr;gap:0}#createForm .field{margin:2px 0 9px}#createForm>button.primary{width:100%}.route-source select{width:100%}}
/* Dirección visual global: deportiva y directa, con naranja Strava y superficies Material limpias. */
:root{--green:#fc4c02;--lime:#fff1ea;--paper:#f6f6f8;--line:#e5e5e9;--muted:#717178;--ink:#242428}
body{background:#f6f6f8;color:#242428;font-size:14px;letter-spacing:-.08px}header{height:78px;max-width:none;padding-left:max(5%,calc((100vw - 1320px)/2));padding-right:max(5%,calc((100vw - 1320px)/2));background:#fff;border-bottom:1px solid #e8e8eb}header .brand{font-size:27px;color:#242428;letter-spacing:-1.4px}header .brand svg{color:#fc4c02}nav{gap:34px}nav button{font-size:13px;font-weight:600}nav button.active{color:#242428}nav button.active:after{height:3px;border-radius:4px 4px 0 0;background:#fc4c02}.header-right{gap:10px}
main{max-width:1320px;padding:36px 5% 56px}.hero{margin-bottom:25px}.hero h1{font-size:40px;letter-spacing:-1.8px;font-weight:800}.hero h1 em{color:#fc4c02}.toolbar{padding:12px 16px;border:1px solid #e8e8eb;border-radius:12px;box-shadow:0 2px 8px #20212408;margin-bottom:22px}.location select{font-size:13px}.locate{border-radius:20px;background:#f7f7f8;border:1px solid #e4e4e7;padding:8px 12px}.range{font-size:11px}.mode{background:#f1f1f3;border-radius:7px}.mode .active{color:#fc4c02}.results-title h2{font-family:'DM Sans',sans-serif;font-size:15px;font-weight:700;letter-spacing:-.2px}.filter-toggle{border-color:#e2e2e6;border-radius:6px}.filters.visible{margin-bottom:20px}.filters .filter-block{border-radius:9px;border-color:#e8e8eb;box-shadow:0 1px 3px #20212406}.filter-block h3{color:#77777e}.check{color:#4d4d54}.filters select,.filters input[type=date]{border-radius:7px;border-color:#e0e0e4;padding:11px}.tip{border:0;background:#fff1ea;border-radius:9px;color:#85442e}.tip strong{color:#b93800}
.cards,.route-grid{gap:18px}.card{border:1px solid #e7e7eb;border-radius:12px;box-shadow:0 2px 7px #20212408;overflow:hidden}.card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #20212412}.cover{height:155px;background:#e6e6e9}.cover svg{transition:transform .35s}.card:hover .cover svg{transform:scale(1.025)}.tag{border-radius:5px;font-size:10px;letter-spacing:.15px}.save{box-shadow:0 2px 7px #20212412;font-size:18px}.card-body{padding:17px 18px}.date{font-size:10px;color:#e64600;letter-spacing:.6px}.card h3{font-size:18px;line-height:1.32;font-weight:750;color:#242428}.place{font-size:12px;color:#73737a}.stats{color:#4d4d54;font-size:11px}.stats b{color:#242428}.card-bottom{border-top:0}.small-button{border-radius:6px;font-size:11px;background:#fff1ea;color:#bc3e08}.small-button:hover{background:#ffe4d8}.small-button.joined{background:#242428;color:#fff}.people{color:#707078}.bubble{box-shadow:0 0 0 1px white}.bottom-note{display:none}
.route-header{padding:4px 0 8px}.route-header h1{font-size:40px;font-weight:800}.route-header .sub{font-size:13px}.tabs{border-bottom:1px solid #e5e5e9;gap:18px}.tabs button{border:0;border-radius:0;padding:10px 12px;color:#696970}.tabs button.active{background:transparent;color:#242428;border-bottom:2px solid #fc4c02;font-weight:700}.primary{background:#fc4c02;border-radius:6px;box-shadow:0 2px 4px #fc4c022b}.primary:hover{background:#e64600}.floating-create{background:#fc4c02;border-radius:8px;box-shadow:0 5px 18px #17171730;font-size:14px;letter-spacing:.1px;padding:15px 25px}.floating-create:hover{background:#e64600}.avatar{background:#f0f0f2;border:0;color:#424248}
.map-wrap{border-radius:12px;border-color:#e5e5e9}.map-count{border-radius:8px}.map-disclaimer{border-radius:6px;color:#555}.empty{border-radius:12px;border-color:#d4d4da;background:#fff}.panel{border-radius:12px;border-color:#e8e8eb;box-shadow:0 2px 7px #20212408}.profile-avatar .avatar{background:#fff1ea;color:#bc3e08}footer{max-width:none;padding-left:max(5%,calc((100vw - 1320px)/2));padding-right:max(5%,calc((100vw - 1320px)/2));background:#fff;border-top:1px solid #e8e8eb}
@media(max-width:700px){header{height:108px;padding:12px 5% 0}.brand{font-size:23px}.hero h1{font-size:31px}.route-header h1{font-size:31px}.toolbar{border-radius:10px}.cards{gap:14px}.cover{height:170px}.card{border-radius:10px}.floating-create{border-radius:8px}.header-right .primary{border-radius:6px}}
.history-cover{position:relative;height:200px;background:#e8ebef}.history-cover>img{width:100%;height:100%;object-fit:cover}.history-cover:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#15171d99);pointer-events:none}.history-cover .cover-label{z-index:1;font-size:12px;letter-spacing:.2px}.no-city-photo{height:100%;display:grid;place-items:center;color:#727780;font-size:12px}.bike-badge{position:absolute;right:14px;bottom:14px;z-index:2;width:90px;padding:8px;background:#ffffffed;color:#30343a;border-radius:10px}.bike-badge svg{width:100%;height:43px}.history-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:15px 0;color:#64666e;font-size:12px}.history-meta b{color:#303238}
header .brand{font-size:25px;letter-spacing:-1px}@media(max-width:700px){header .brand{font-size:20px}nav{gap:18px}}

/* Modo oscuro */
html[data-theme=dark]{color-scheme:dark;--paper:#121214;--line:#2e2e34;--muted:#9a9aa3;--ink:#ededf0;--lime:#2a1a12}
html[data-theme=dark] body{background:#121214;color:#ededf0}
html[data-theme=dark] header,html[data-theme=dark] footer{background:#1a1a1d;border-color:#2e2e34}
html[data-theme=dark] .hero-note,html[data-theme=dark] .toolbar,html[data-theme=dark] .tip,html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .filters.visible,html[data-theme=dark] .filters .filter-block,html[data-theme=dark] .empty,html[data-theme=dark] dialog,html[data-theme=dark] .map-count,html[data-theme=dark] .upload-zone{background:#1c1c20;border-color:#2e2e34;color:#ededf0}
html[data-theme=dark] .filter-toggle,html[data-theme=dark] .locate,html[data-theme=dark] #createForm .hint,html[data-theme=dark] .route-import .small-button,html[data-theme=dark] .location-actions .small-button,html[data-theme=dark] dialog .close,html[data-theme=dark] .avatar,html[data-theme=dark] .mode,html[data-theme=dark] .detail-stats>div{background:#26262b;border-color:#3a3a41;color:#d4d4da}
html[data-theme=dark] .mode .active{background:#3a3a41;color:#fc4c02}
html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .filters select,html[data-theme=dark] .filters input[type=date],html[data-theme=dark] #createForm .field input,html[data-theme=dark] #createForm .field select,html[data-theme=dark] #createForm .field textarea,html[data-theme=dark] .route-source select,html[data-theme=dark] .map-search input{background:#26262b;border-color:#3a3a41;color:#ededf0}
html[data-theme=dark] .small-button,html[data-theme=dark] .badge,html[data-theme=dark] .notice,html[data-theme=dark] .tip{background:#33231b;color:#ffb08a}
html[data-theme=dark] .small-button.joined{background:#ededf0;color:#121214}
html[data-theme=dark] .notice,html[data-theme=dark] .tip{color:#e0c4b8}
html[data-theme=dark] .cover,html[data-theme=dark] .history-cover,html[data-theme=dark] .map-wrap,html[data-theme=dark] .bubble{background:#26262b;border-color:#3a3a41}
html[data-theme=dark] .bubble{box-shadow:0 0 0 1px #1c1c20;border-color:#1c1c20;color:#ededf0}
html[data-theme=dark] .stats{border-color:#2e2e34}
html[data-theme=dark] .demo{background:#0b0b0c;color:#d4d4da}
html[data-theme=dark] .tabs button.active{color:#ededf0}
html[data-theme=dark] .hint,html[data-theme=dark] .muted,html[data-theme=dark] .sub{color:#9a9aa3}
html[data-theme=dark] .profile-avatar .avatar{background:#33231b;color:#ffb08a}
html[data-theme=dark] dialog{box-shadow:0 20px 70px #000a;border-color:#2e2e34}
html[data-theme=dark] dialog::backdrop{background:#000a}
html[data-theme=dark] #meetMap{border-color:#3a3a41}
.theme-toggle{width:39px;height:39px;border-radius:50%;border:1px solid var(--line);font-size:17px;line-height:1;display:grid;place-items:center}
html[data-theme=dark] .hero-note strong,html[data-theme=dark] .tip strong,html[data-theme=dark] .detail-stats b,html[data-theme=dark] dialog h2,html[data-theme=dark] #createForm .field,html[data-theme=dark] header .brand,html[data-theme=dark] nav button.active,html[data-theme=dark] .card h3,html[data-theme=dark] .stats b,html[data-theme=dark] .history-meta b,html[data-theme=dark] .tag,html[data-theme=dark] .bike-badge{color:#ededf0}
html[data-theme=dark] .check,html[data-theme=dark] .stats,html[data-theme=dark] .map-disclaimer,html[data-theme=dark] .bubble{color:#b4b4bc}
html[data-theme=dark] .tag,html[data-theme=dark] .bike-badge{background:#26262b}
html[data-theme=dark] .map-wrap svg [fill="#eeeeef"]{fill:#26262b},html[data-theme=dark] .map-wrap svg [fill="#e0e2e4"]{fill:#2e3034},html[data-theme=dark] .map-wrap svg [fill="#b9cfda"]{fill:#2b3a44}
html[data-theme=dark] [style*="background:#eeeeef"]{background:#26262b!important}
html[data-theme=dark] .cover svg{filter:brightness(.62)}
html[data-theme=dark] .save{background:#1c1c20e6;color:#d4d4da}
html[data-theme=dark] .cover-label{text-shadow:0 1px 3px #000a}

#gate{display:none}
html.qsh-locked #gate{display:grid;place-items:center;min-height:100dvh;padding:24px}
#gate .panel{width:min(420px,100%);margin:0}
#gate h2{font-size:28px;color:#fc4c02;margin-top:0}

/* Salidas por día y fotos de ciudad */
.day-group{margin-bottom:8px}
.day-sep{position:sticky;top:0;z-index:5;margin:0 0 14px;padding:12px 0;font-size:1rem;font-weight:700;background:var(--day-bg,#f5f5f7);border-bottom:1px solid rgba(0,0,0,.08)}
.day-empty{padding:12px 0 24px}
.cover-wrap{position:absolute;inset:0}
.cover-wrap>svg,.cover-wrap>.city-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cover-wrap>.city-photo{z-index:1}
.small-button.danger{color:#c0392b;border-color:#c0392b;margin:8px 0}
html[data-theme=dark] .day-sep{background:#121214;border-bottom-color:rgba(255,255,255,.12)}
.cover .tag,.cover .save,.cover .cover-label{z-index:2}
.cover-wrap>.city-photo+svg{display:none}

.floating-create[hidden]{display:none}

/* Formularios de crear salida / subir ruta */
#createForm .sec,#uploadForm .sec{border:1px solid rgba(128,128,128,.28);border-radius:14px;padding:6px 16px 14px;margin:0 0 14px;min-width:0}
#createForm .sec legend{font-weight:800;font-size:14px;padding:0 8px;letter-spacing:.2px}
#createForm .field input,#createForm .field select,#createForm .field textarea,#uploadForm .field input,#uploadForm .field select,#uploadForm .field textarea,#createForm .route-source select{border-radius:12px;padding:12px 14px;transition:border-color .15s,box-shadow .15s}
#createForm .field input:focus,#createForm .field select:focus,#createForm .field textarea:focus,#uploadForm .field input:focus,#uploadForm .field select:focus,#uploadForm .field textarea:focus{outline:none;border-color:#fc4c02;box-shadow:0 0 0 3px #fc4c0233}
#createForm .small-button,#createForm .route-import .small-button{border-radius:999px;padding:9px 16px}
.primary.big{width:100%;border-radius:999px;padding:15px;font-size:15px;font-weight:700;margin-top:4px}
#uploadForm .upload-zone{border:2px dashed rgba(128,128,128,.45);border-radius:14px;padding:22px;text-align:center}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;width:100%}
body>footer{margin-top:auto}
body{padding-bottom:0!important}
body>footer{height:auto!important;min-height:0;padding-bottom:88px!important}
body>header,body>footer,body>.demo{width:100%;align-self:stretch}
body>footer{margin-top:auto;margin-bottom:0}
.floating-create{border-radius:999px!important;padding:15px 30px;box-shadow:0 8px 24px rgba(0,0,0,.28)}
@media(max-width:700px){.floating-create{width:auto!important;min-width:190px;bottom:max(18px,env(safe-area-inset-bottom))!important}}
.day-sep{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:14px 14px!important;margin:0 0 16px!important;border-left:6px solid #fc4c02;border-radius:10px;font-weight:400!important}
.day-big{font-size:1.7rem;font-weight:900;letter-spacing:-.5px;line-height:1.1}
.day-sub{font-size:.95rem;opacity:.7}
.day-count{margin-left:auto;font-size:.8rem;font-weight:700;background:#fc4c02;color:#fff;border-radius:999px;padding:4px 12px}
.day-sep.today{background:#fc4c02!important;color:#fff;border-left-color:#fc4c02}
.day-sep.today .day-sub{opacity:.9}.day-sep.today .day-count{background:#fff;color:#fc4c02}
html[data-theme=dark] .day-sep.today{background:#fc4c02!important}

/* Entrada: la app se ve detrás y un aviso de acceso (no se puede cerrar) */
html.qsh-locked{overflow:hidden}
html.qsh-locked #gate{display:flex;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:20px;background:rgba(20,20,24,.62);backdrop-filter:blur(3px);min-height:0;grid-template-columns:none}
#gate .panel{position:relative;width:min(460px,100%);max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:0;background:#fff;color:#242428;border:0;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.5);text-align:center;display:block}
html[data-theme=dark] #gate .panel{background:#1c1c20;color:#f1f1f3}
#gate .himg{height:190px;background:url(img/login-right.jpg) center 62%/cover}
#gate .pbody{padding:26px 28px 32px}
#gate h2{font-size:30px;font-weight:900;letter-spacing:-1px;line-height:1.05;margin:0 0 10px;color:#fc4c02}
#gate .muted{margin:0 0 22px;font-size:15px;line-height:1.35}
#gate .field{text-align:left}
.gbtn{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:46px;background:#fff;color:#242428;border:1px solid #b5b5bd;border-radius:6px;font-weight:600;font-size:15px;cursor:pointer;transition:background .15s}
.gbtn:hover{background:#f5f5f7}
.gbtn svg{position:absolute;left:16px}
.or{display:flex;align-items:center;gap:12px;margin:18px 0 12px;font-size:12px;opacity:.65}
.or::before,.or::after{content:"";flex:1;height:1px;background:currentColor;opacity:.3}
#gate .mailbtn{width:100%;border-radius:6px;padding:14px}
#gate .credit{display:block;padding:0 0 12px;font-size:10px;opacity:.5}
/* Menús visibles y clicables; el contenido va difuminado hasta iniciar sesión */
html.qsh-locked #gate{top:78px;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);background:rgba(20,20,24,.45);align-items:flex-start;padding-top:28px}
html.qsh-locked body>header{position:relative;z-index:1001}
html.qsh-locked #theme,html.qsh-locked #profileBtn{pointer-events:none}
@media(max-width:700px){html.qsh-locked #gate{top:108px}}
#userMenu{position:fixed;z-index:1100;min-width:190px;background:#fff;color:#242428;border:1px solid #e4e4e7;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:6px;display:flex;flex-direction:column}
html[data-theme=dark] #userMenu{background:#1c1c20;color:#f1f1f3;border-color:#33333a}
#userMenu button{background:none;border:0;color:inherit;text-align:left;padding:11px 12px;border-radius:8px;font:inherit;font-weight:600;cursor:pointer}
#userMenu button:hover{background:rgba(252,76,2,.14)}
/* iOS hace zoom al enfocar campos con letra < 16px: se evita en móvil */
@media(max-width:700px){input,select,textarea,.field input,.field select,.field textarea,#createForm .field input,#createForm .field select,#createForm .field textarea,#uploadForm .field input,#uploadForm .field select,#uploadForm .field textarea,.filters select,.filters input,.route-source select{font-size:16px!important}dialog,#dialog{overflow-x:hidden}html,body{overflow-x:hidden}}
[hidden]{display:none!important}
/* Campos de fecha/hora dentro de su marco en iOS */
#createForm input[type=date],#createForm input[type=time],#uploadForm input[type=date]{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;-webkit-appearance:none;appearance:none;text-align:left}
#createForm input[type=date]::-webkit-date-and-time-value,#createForm input[type=time]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}
#createForm .field{min-width:0}
.quickdates{display:flex;gap:8px;margin-top:8px}
.quickdates .small-button{padding:7px 16px}
#createForm .check{display:flex;align-items:center;gap:10px;margin:6px 0 12px;font-weight:600}
#createForm .check input{width:20px;height:20px;min-height:0;margin:0}
/* Tarjeta clicable entera y hora destacada */
.card.clickable{cursor:pointer}
.card .date{display:flex;align-items:baseline;gap:12px}
.card .date .time{font-size:30px;font-weight:900;letter-spacing:-1px;color:#fc4c02;line-height:1}
.card .date .dlabel{font-size:12px;font-weight:700;letter-spacing:.8px;opacity:.75}
/* Cada día en un bloque con marco: la cabecera y todas sus salidas dentro */
.day-group{border:2px solid rgba(128,128,128,.3);border-radius:16px;padding:0 14px 14px;margin:0 0 28px;overflow:hidden}
.day-group:has(.day-sep.today){border-color:#fc4c02}
.day-group .day-sep{position:static!important;margin:0 -14px 16px!important;border-radius:0!important;border-left:0!important;border-bottom:0!important}
.day-group .day-sep:not(.today){border-left:6px solid #fc4c02!important}
.day-group .day-empty{margin:0}
@media(max-width:700px){.day-group{padding:0 10px 10px}.day-group .day-sep{margin:0 -10px 12px!important}}

/* Nivel 1 UX: jerarquía de acciones y salidas cerradas */
.card-bottom .actions{display:flex;align-items:center;gap:8px}
.icon-button{width:34px;height:34px;border-radius:8px;background:#fff;border:1px solid #e4e4e7;display:grid;place-items:center;font-size:15px;color:#707076}
.icon-button:hover{background:#f5f5f7;border-color:#c9c9cf}
.card.is-closed{opacity:.6}
.card.is-closed .cover svg{filter:grayscale(1)}
.closed-overlay{position:absolute;top:12px;left:12px;background:#242428;color:#fff;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;padding:5px 9px;border-radius:5px}
.card{position:relative}

/* Nivel 2 UX: formulario por pasos y aviso de nueva versión */
.step-bar{list-style:none;display:flex;gap:8px;margin:0 0 6px;padding:0}
.step-bar li{flex:1;font-size:12px;color:#9a9aa2;display:flex;align-items:center;gap:7px;font-weight:600}
.step-bar li b{width:22px;height:22px;border-radius:50%;background:#ececf0;display:grid;place-items:center;font-size:11px;color:#707076}
.step-bar li.current{color:#242428}
.step-bar li.current b{background:#fc4c02;color:#fff}
.step-bar li.done b{background:#242428;color:#fff}
.step{display:flex;flex-direction:column;gap:8px}
.step-nav{display:flex;justify-content:space-between;align-items:center;margin-top:14px}
.step-next{background:#242428;color:#fff;border-radius:7px;padding:12px 18px;font-weight:600}
.update-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#242428;color:#fff;padding:12px 16px;border-radius:10px;display:flex;gap:12px;align-items:center;z-index:60;font-size:13px;box-shadow:0 8px 24px #0005}
.update-bar .small-button{background:#fc4c02;color:#fff}

/* Nivel 3 UX: iconografía SVG unificada y tipografía fluida */
.ico{width:15px;height:15px;vertical-align:-2px;flex:none;display:inline-block}
.save .ico{width:18px;height:18px;vertical-align:middle}
.icon-button .ico{width:17px;height:17px;vertical-align:0}
.step-bar li b,.location .ico{vertical-align:middle}
h1,.hero h1,.route-header h1,.profile h1{font-size:clamp(28px,4.4vw,44px)}

/* Fix iPad: checkboxes de disciplinas deformados por la regla global de input */
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;min-width:18px;padding:0;margin:0;border:1px solid #c7c7cc;border-radius:4px;flex:none;accent-color:var(--green);-webkit-appearance:checkbox;appearance:auto}
input[type=radio]{border-radius:50%;-webkit-appearance:radio;appearance:auto}

/* Botón Guardar perfil dentro de la tarjeta de datos */
.profile-save{display:block;margin-top:18px;width:100%}
@media(min-width:701px){.profile-save{width:auto;min-width:200px}}

/* Foto de perfil: el avatar abre el selector de archivo */
.avatar-edit{position:relative;padding:0;border:0;cursor:pointer;flex:none}
.avatar-edit::after{content:"";position:absolute;right:-3px;bottom:-3px;width:24px;height:24px;border-radius:50%;background:#fc4c02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center/13px no-repeat;border:2px solid #fff}
#avatarMsg:empty{display:none}

/* Aviso de ubicación en la home */
.geo-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e4e4e7;border-left:3px solid #fc4c02;border-radius:8px;padding:12px 16px;margin-bottom:18px;font-size:13px}
.geo-actions{display:flex;align-items:center;gap:14px}

/* Cabecera: título de la app en una sola línea */
.brand{white-space:nowrap;font-size:26px}
@media(max-width:700px){.brand{font-size:21px}}

/* Radio de búsqueda: recomendado y máximo */
.range .reco{display:block;color:var(--muted);font-size:11px;margin-top:2px}

.avatar[hidden]{display:none!important}

.bubbles .bubble{width:30px;height:30px;font-size:11px;font-style:normal;font-weight:700;margin-right:-8px;overflow:hidden}

.comment{display:flex;gap:12px;align-items:flex-start}.comment .cbody{min-width:0;flex:1}.cavatar{flex:none;width:36px;height:36px;border-radius:50%;background:#e3e3e7 center/cover;color:#55555b;display:grid;place-items:center;font-weight:700;font-size:13px}html[data-theme=dark] .cavatar{background-color:#26262b;color:#ededf0}

.history-meta+.actions{justify-content:space-between}

.icon-button{width:36px;height:36px;border-radius:50%;transition:background .15s,color .15s,transform .15s}.icon-button:hover{background:#fff1ea;color:#fc4c02;border-color:#fc4c02;transform:scale(1.06)}.icon-button .ico{width:18px;height:18px}
.more-wrap{position:relative;margin-left:auto}.more-menu{position:absolute;right:0;bottom:calc(100% + 8px);min-width:210px;background:#fff;color:#242428;border:1px solid #e4e4e7;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.25);padding:6px;z-index:5}.more-menu[hidden]{display:none}.more-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px;border-radius:8px;font-size:13px;font-weight:600}.more-menu button:hover{background:#fff1ea;color:#fc4c02}html[data-theme=dark] .more-menu{background:#26262b;color:#f1f1f3;border-color:#3a3a41}html[data-theme=dark] .more-menu button:hover{background:#34343b}
.more-menu{min-width:250px}.more-menu button{white-space:nowrap}

.map-wrap{min-height:0;background:#e8e8ea}#ridesMap{height:520px;width:100%;z-index:0}.map-wrap .map-count{z-index:500;pointer-events:none}.map-note{position:absolute;left:12px;right:12px;bottom:12px;z-index:500;background:#fff;color:#242428;padding:9px 12px;border-radius:8px;font-size:12px;box-shadow:0 2px 10px #0003}.map-note[hidden]{display:none}
.ride-pin span{display:block;white-space:nowrap;background:#fc4c02;color:#fff;font-weight:800;font-size:13px;text-align:center;line-height:28px;height:28px;border-radius:14px;border:2px solid #fff;box-shadow:0 2px 8px #0005;position:relative}.ride-pin span:after{content:'';position:absolute;left:50%;bottom:-7px;margin-left:-5px;border:5px solid transparent;border-top-color:#fc4c02;border-bottom:0}.ride-pin span.stem:after{bottom:calc(0px - var(--stem));margin-left:-1px;width:2px;height:var(--stem);background:#fc4c02;border:0}.leaflet-marker-icon.ride-pin:hover{z-index:1200!important}
.ride-pop{min-width:170px;font-size:13px;line-height:1.5;color:#242428}.ride-pop strong{display:block;font-size:14px}.ride-pop .muted{font-size:11px}.ride-pop button{margin-top:8px}
html[data-theme=dark] .leaflet-tile{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9)}
@media(max-width:700px){#ridesMap{height:440px}}
.map-wrap .map-count svg{width:14px!important;height:14px!important;display:inline-block;vertical-align:-2px}.map-wrap .map-count{display:flex;align-items:center;gap:6px;top:12px;left:12px;position:absolute}
.leaflet-container svg.leaflet-attribution-flag{width:12px!important;height:8px!important;display:inline!important}.leaflet-container .leaflet-control-attribution{font-size:11px}
.filters .filter-block{min-width:0;overflow:hidden}.filters input[type=date]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;-webkit-appearance:none;appearance:none;margin-bottom:0}.filters input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
html[data-theme=dark] .geo-banner{background:#1c1c20;border-color:#2e2e34;border-left-color:#fc4c02;color:#ededf0}html[data-theme=dark] .geo-banner span{color:#ededf0}html[data-theme=dark] .geo-banner .text-link,html[data-theme=dark] .geo-banner a,html[data-theme=dark] .geo-banner button:last-child{color:#ff8a57}

/* Biblioteca de rutas (solo admin) */
.admin-routes{margin-top:40px;border-top:1px solid var(--line);padding-top:20px}
.admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.admin-actions{display:flex;gap:8px}

.city-input{width:150px;padding:8px 10px;border:1px solid var(--line-strong,#d4d4da);border-radius:8px;font-size:13px}

/* Apuntados: avatar + nombre por inscrito */
.attendees{display:flex;flex-wrap:wrap;gap:9px 16px;margin:8px 0 2px}
.attendee{display:inline-flex;align-items:center;gap:8px;font-size:13px;position:relative;cursor:default}
.attendee-bubble{margin-right:0;width:28px;height:28px;font-size:10px;font-style:normal;font-weight:700;background-position:center;background-size:cover;flex-shrink:0}
.attendee-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Toolbar ubicación: evitar desborde en pantallas estrechas */
.location{flex-wrap:wrap;min-width:0}
.location .bb-custom-select-container{flex:0 1 auto;min-width:0;max-width:210px}
.locate{white-space:nowrap;flex-shrink:0}
@media(max-width:700px){.location .bb-custom-select-container{max-width:175px}}
/* CTA "Ver mi quedada" / apuntado: naranja de marca */
.small-button.joined{background:#fc4c02;color:#fff}
.small-button.joined:hover{background:#d94000}
html[data-theme=dark] .small-button.joined{background:#fc4c02;color:#fff}

/* Selector de ciudad en móvil: fila propia a todo lo ancho, sin hueco raro */
@media(max-width:700px){
.location{justify-content:flex-start}
.location select{flex:1 1 160px;min-width:0;max-width:none}
.location .bb-custom-select-container{flex:1 1 160px;min-width:0;max-width:none}
.bb-custom-select-opener{display:flex;align-items:center;min-width:0}
.bb-custom-select-opener>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}
}
.attendee-tip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.18);padding:6px 10px;font-size:12px;font-weight:600;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .15s ease;pointer-events:none;z-index:40}
.attendee:hover .attendee-tip,.attendee:focus .attendee-tip{opacity:1;visibility:visible}
html[data-theme=dark] .attendee-tip{background:#26262b;border-color:#3a3a41;color:#d4d4da}
.check-mail{text-align:center;padding:10px 4px}
.check-mail .check-ico{width:56px;height:56px;margin:2px auto 14px;border-radius:50%;background:#fff0e8;color:#b93800;display:grid;place-items:center}
.check-mail .check-ico svg{width:26px;height:26px}
.check-mail h2{margin:0 0 8px}
.check-mail p{max-width:430px;margin:8px auto}
.check-mail .primary{margin-top:16px}
html[data-theme=dark] .check-mail .check-ico{background:#3a2a20;color:#ff9d6b}
.deck-wrap{max-width:430px;margin:0 auto}
.deck{position:relative;height:540px;margin-bottom:4px}
.deck-card{position:absolute;inset:0;display:flex;flex-direction:column;transform:translateY(calc(var(--i)*10px)) scale(calc(1 - var(--i)*.04));transition:transform .18s ease,box-shadow .18s ease,opacity .25s ease;user-select:none;-webkit-user-select:none;touch-action:pan-y;cursor:grab}
.deck-card.dragging{transition:none;cursor:grabbing}
.deck-card .cover{height:235px;flex-shrink:0}
.deck-card .card-body{flex:1;overflow:hidden}
.deck-desc{font-size:12px;margin:12px 0 8px}
.deck-card.hint-like{box-shadow:0 0 0 3px #fc4c02}
.deck-card.hint-pass{box-shadow:0 0 0 3px #b6b6bd}
.deck-card.fly-right{transform:translate(140%,-18px) rotate(14deg)!important;opacity:0}
.deck-card.fly-left{transform:translate(-140%,-18px) rotate(-14deg)!important;opacity:0}
.deck-actions{display:flex;justify-content:center;gap:30px;margin-top:24px}
.deck-btn{width:62px;height:62px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 4px 14px #0001;transition:transform .12s}
.deck-btn:hover{transform:scale(1.07)}
.deck-btn .ico{width:26px;height:26px}
.deck-btn.pass{color:#8a8a91}
.deck-btn.pass.lit{background:#fc4c02;color:#fff;border-color:#fc4c02;transform:scale(1.07)}
.deck-btn.like{color:#8a8a91}.deck-btn.like.lit{background:#fc4c02;color:#fff;border-color:#fc4c02;transform:scale(1.07)}
.saved-routes{margin-top:46px}
.saved-routes h2{font-size:22px}
@media(max-width:700px){.deck{height:500px}.deck-card .cover{height:200px}}

/* Recorte de foto de perfil */
.crop-wrap{position:relative;width:280px;max-width:100%;margin:4px auto 14px;overflow:hidden;border-radius:14px}
.crop-wrap canvas{display:block;width:100%;height:auto;border-radius:14px;touch-action:none;cursor:grab;background:#e4e6e9}
.crop-wrap canvas:active{cursor:grabbing}
.crop-ring{position:absolute;left:50%;top:50%;width:82%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 999px rgba(15,17,22,.55);pointer-events:none}
.crop-zoom{display:flex;align-items:center;gap:10px;max-width:280px;margin:0 auto 14px;font-size:13px;color:#5b6470}
.nav-beta{font-size:9px;font-weight:600;opacity:.75;letter-spacing:.3px}
/* Selector de día sobre el mapa */
.map-days{position:absolute;top:16px;right:16px;z-index:1000;display:flex;gap:4px;background:#fff;padding:4px;border-radius:8px;box-shadow:0 2px 10px #0002}
.map-days button{padding:7px 10px;border-radius:6px;font-size:11px;font-weight:600;color:#707076;white-space:nowrap}
.map-days button.active{background:#fc4c02;color:#fff}
html[data-theme=dark] .map-days{background:#26262b}
html[data-theme=dark] .map-days button{color:#b4b4bc}
html[data-theme=dark] .map-days button.active{background:#fc4c02;color:#fff}
@media(max-width:700px){.map-days{top:auto;bottom:14px;left:14px;right:auto}}
/* Reciclado del mazo al agotarse */
.deck-recycle{padding:56px 25px}
.recycle-logo{width:62px;height:46px;margin:0 auto 14px;color:#fc4c02;animation:recycleZoom 1.55s ease-in-out}
.recycle-logo svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2}
@keyframes recycleZoom{0%{transform:scale(.55);opacity:0}45%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.recycle-logo{animation:none}}
/* Selects: flecha propia y sin texto duplicado en Chrome móvil */
select{-webkit-appearance:none;appearance:none;-webkit-text-size-adjust:100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23707076' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .7em center;padding-right:2em}
html[data-theme=dark] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b4b4bc' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
/* Recordatorio de perfil incompleto (tras "Más tarde") */
.onb-reminder{display:flex;align-items:center;gap:12px;background:#fff1ea;border:1px solid #ffd9c2;border-radius:10px;padding:10px 14px;font-size:12px;margin-bottom:18px}
.onb-reminder span{flex:1}
.onb-x{font-size:18px;color:#b93800;line-height:1;padding:2px 6px}
.deck-card.dragging{cursor:grabbing}

/* Footer de tarjeta: «Me apunto» como acción principal y separada de compartir. */
.card-bottom .actions .small-button{background:var(--green);color:#fff;padding:10px 14px;border-radius:8px;font-size:11px;font-weight:700}
.card-bottom .actions .small-button:hover{background:#e04300}
.card-bottom .actions .small-button.joined{background:#242428;color:#fff}
html[data-theme=dark] .card-bottom .actions .small-button.joined{background:#ededf0;color:#121214}
.step-next{background:var(--green);color:#fff}
/* Aire bajo el botón flotante «Crear salida»: al hacer scroll, ninguna tarjeta queda tapada. */
main{padding-bottom:100px}

/* Bielko: editor de salida - fecha/hora sin overflow (mismo fix que createForm) */
#repEditForm input[type=date],#repEditForm input[type=time]{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;-webkit-appearance:none;appearance:none;text-align:left}
#repEditForm input[type=date]::-webkit-date-and-time-value,#repEditForm input[type=time]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}
/* Bielko: formularios de salida compactos en movil */
@media (max-width:640px){
  dialog{padding:22px 18px}
  dialog h2{font-size:24px;margin:8px 0}
  #createForm .field,#repEditForm .field{margin:2px 0 10px;font-size:12px}
  #createForm .field input,#createForm .field select,#createForm .field textarea,
  #repEditForm .field input,#repEditForm .field select,#repEditForm .field textarea,
  #repEditForm input[type=date],#repEditForm input[type=time]{min-height:44px;padding:10px 12px}
  #createForm .field textarea,#repEditForm .field textarea{min-height:76px}
}

/* Fila inferior de tarjeta: si no cabe en una linea, las acciones bajan a la siguiente sin salirse de la tarjeta */
.card-bottom{flex-wrap:wrap}
.card-bottom .actions{margin-left:auto}


/* ---- 2026-11-03: header fijo, contraste accesible y mapa en modo oscuro ---- */
body>header{position:sticky;top:0;z-index:95}
html.qsh-locked body>header{position:relative;z-index:1001}
.day-sep{top:78px}
@media(max-width:700px){.day-sep{top:108px}}
.map-wrap{isolation:isolate}
.primary,.floating-create,.step-next,.tabs .active,.save.saved,.ride-pin span,.map-days button.active,.demo,#toast,.card-bottom .actions .small-button,.small-button.joined,.step-bar li.current b{background-color:#d14000}
.ride-pin span:after{border-top-color:#d14000}
.ride-pin span.stem:after{background:#d14000}
.primary:hover,.floating-create:hover,.step-next:hover{background-color:#b93800}
html[data-theme=dark] .small-button.joined,html[data-theme=dark] .card-bottom .actions .small-button.joined{background-color:#d14000;color:#fff}
.mode .active{color:#b93800}
html[data-theme=dark] .mode .active{color:#ff8a57}
html[data-theme=dark] .eyebrow,html[data-theme=dark] .date,html[data-theme=dark] .text-link{color:#ff8a57}
html[data-theme=dark] .dlabel{color:#ff8a57;opacity:1}
.bottom-note,.report,.check span,#createForm .route-import{color:#717178}
html[data-theme=dark] .place,html[data-theme=dark] .people,html[data-theme=dark] .bottom-note,html[data-theme=dark] .report,html[data-theme=dark] .check span,html[data-theme=dark] #createForm .route-import{color:#9a9aa3}
html[data-theme=dark] footer{color:#9a9aa3}
.step-bar li{color:#717178}
.step-bar li b{color:#55555b}
html[data-theme=dark] .step-bar li{color:#9a9aa2}
html[data-theme=dark] .step-bar li.current{color:#ededf0}
html[data-theme=dark] .step-bar li b{background:#3a3a41;color:#d4d4da}
html[data-theme=dark] .step-bar li.current b{background:#d14000;color:#fff}
html[data-theme=dark] .step-bar li.done b{background:#3a3a41;color:#ededf0}
.ride-pop{color:#242428}
.ride-pop .muted{color:#5a5a62}
html[data-theme=dark] .ride-pop .muted{color:#5a5a62}
html[data-theme=dark] .map-disclaimer{background:#1c1c20e0;color:#b4b4bc}

.day-count{background:#fff;color:#b93800}
.mode button{color:#55555b}
html[data-theme=dark] .mode button{color:#d4d4da}
footer{color:#717178}
dialog .eyebrow{color:#b93800}
html[data-theme=dark] dialog .eyebrow{color:#ff8a57}
.dlabel{opacity:1;color:#b93800}
html[data-theme=dark] .dlabel{color:#ff8a57}
.cover-label{background:rgba(18,18,22,.65);padding:3px 7px;border-radius:5px}
.leaflet-popup-close-button{color:#5a5a62!important}
@media(max-width:700px){#toast{bottom:calc(max(14px,env(safe-area-inset-bottom)) + 78px);max-width:calc(100vw - 32px)}}

html,body{overflow-x:clip;overflow-y:visible}

/* Curated photos: truthful label, legible on all photos and both themes. */
.illustrative-photo{position:absolute;z-index:2;right:10px;bottom:10px;left:auto;padding:4px 6px;border-radius:4px;background:#191919df;color:#fff;font-size:10px;line-height:1.3;letter-spacing:0;pointer-events:none}

/* Four-language mobile navigation: keep longer French labels inside the header. */
@media(max-width:700px){html[lang="fr"] header nav{gap:8px;align-items:stretch}html[lang="fr"] header nav button{flex:1;min-width:0;font-size:12px;line-height:1.15;padding:0}html[lang="fr"] header nav button:first-child{flex:1.2}html[lang="fr"] header nav button:last-child{flex:2}}

/* An inactive toast must not leave a painted sliver below the fixed create button. */
#toast:not(.show){visibility:hidden;opacity:0;pointer-events:none}

/* Discover beta is hidden from navigation; keep its implementation and data intact. */
header nav button[data-page="descubrir"]{display:none!important}

/* Language belongs in the profile menu; keep a header control before sign-in. */
html:not(.qsh-locked) #langToggleWrap{display:none!important}
#userMenu{max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow-y:auto}
#userMenu .profile-lang-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);border-radius:0;margin-top:5px;padding-top:15px}
.profile-lang-value{margin-left:auto;color:var(--muted);font-size:12px;font-weight:500}
.profile-lang-chevron{font-size:16px;color:var(--muted)}
#userMenu .profile-lang-options{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px 6px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}
#userMenu .profile-lang-options[hidden]{display:none}
#userMenu .profile-lang-options button{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:10px 9px;border:1px solid var(--line);font-weight:500}
#userMenu .profile-lang-options button[aria-pressed="true"]{border-color:#d14000;background:rgba(252,76,2,.12);color:#b93800;font-weight:700}
html[data-theme=dark] #userMenu .profile-lang-options button[aria-pressed="true"]{color:#ff9a70}
html[data-theme=dark] #langMenu{background:#1c1c20!important;color:#f1f1f3!important;border-color:#33333a!important}
#langMenu .lang-option:hover{background:rgba(252,76,2,.12)!important}

/* Recoverable creation drafts */
.draft-resume{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;margin:0 0 18px;border:1px solid var(--line,#ddd);border-radius:14px;background:var(--surface,#fff);font-size:13px}
.draft-resume>div{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.draft-note{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 0 14px;color:var(--muted,#666);font-size:12px}.draft-note .text-link,.draft-resume .text-link{font-size:12px}.draft-file-note{display:block;overflow-wrap:anywhere;color:var(--muted,#666);font-size:12px}
html[data-theme=dark] .draft-resume{background:#1c1c20;border-color:#34343b}
.draft-resume button{scroll-margin-top:160px}.draft-resume{scroll-margin-top:140px}

/* Hourly ride-start forecast */
.ride-meteo{margin:14px 0;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:12px;background:#f5f6f8;color:#34343c;font-size:12px;line-height:1.5}.meteo-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#60606a}.meteo-top a{color:inherit;text-decoration:underline}.meteo-values{display:flex;gap:18px;align-items:center;margin-top:6px;flex-wrap:wrap}.meteo-values>span{display:flex;gap:6px;align-items:center;white-space:nowrap}.meteo-temp b{font-size:20px;line-height:1.2}.meteo-icon{width:20px;height:20px;flex:none}.meteo-wind{display:flex;gap:4px 14px;flex-wrap:wrap;margin-top:5px}.meteo-values small{font-size:11px}.meteo-empty{color:#74747f;font-size:11px;background:transparent;border-style:dashed}html[data-theme=dark] .ride-meteo{background:#25252a;border-color:#3a3a42;color:#eeeef2}html[data-theme=dark] .meteo-top{color:#afafb9}html[data-theme=dark] .meteo-empty{background:transparent;color:#aaaab4}
