:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #22211e;
  background: #f7f5f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden], .honeypot { display: none !important; }
body { min-height: 100vh; margin: 0; }
.topbar { background: #211d16; color: #fff; box-shadow: 0 4px 24px #1c140e21; }
.topbar-inner { max-width: 960px; margin: auto; padding: 15px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { color: #fff; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; background: linear-gradient(145deg, #e7bd70, #a97831); border-radius: 13px; color: #291d0c; font-size: 29px; font-weight: 900; }
.brand-name { font-weight: 900; letter-spacing: .06em; font-size: 19px; }
.brand-name strong { color: #ebc885; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .025em; color: #e1d6c4; }
.environment { border: 1px solid #ba9456; color: #f6dba6; background: #6c522c30; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .11em; padding: 7px 12px; }
main { max-width: 960px; margin: 0 auto; padding: 39px 20px 52px; }
.intro { text-align: center; margin-bottom: 27px; }
.eyebrow { display: block; font-size: 11px; font-weight: 900; color: #88632a; letter-spacing: .14em; }
h1 { font-size: clamp(29px, 5vw, 42px); line-height: 1.15; margin: 11px 0 10px; letter-spacing: -.035em; }
.intro p { color: #5c5952; margin: 0; line-height: 1.6; }
.auth-card, .dashboard { max-width: 540px; margin: auto; background: white; border-radius: 21px; padding: 31px; border: 1px solid #e7e1d6; box-shadow: 0 12px 38px #4b351c10; }
.card-heading h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.025em; }
.card-heading p { margin: 0 0 23px; color: #6e685d; font-size: 14px; }
.switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #f4f1ec; padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.switcher button { background: transparent; color: #6c6255; font: inherit; font-weight: 700; border: 0; border-radius: 9px; padding: 12px 7px; cursor: pointer; }
.switcher button.selected { color: #27211b; background: white; box-shadow: 0 2px 8px #00000012; }
form { display: flex; flex-direction: column; }
label { font-size: 13px; font-weight: 750; margin: 14px 0 7px; }
input { width: 100%; padding: 14px; font: inherit; color: #282620; border-radius: 11px; border: 1px solid #cec5b7; background: #fff; outline-offset: 2px; }
input:focus { outline: 2px solid #b48741; border-color: #b48741; }
input::placeholder { color: #8e8880; }
.field-hint { color: #756d61; font-size: 12px; margin-top: 5px; line-height: 1.4; }
.submit { margin-top: 25px; padding: 15px 18px; color: #211a0c; border: 0; background: #ecc27a; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.submit:hover { background: #dfb065; }
button:disabled { opacity: .6; cursor: wait; }
.status { min-height: 21px; margin: 17px 0 0; font-size: 14px; color: #4a473f; line-height: 1.5; }
.status.error { color: #b12b27; }
.support-note { border-top: 1px solid #f0ebe3; padding-top: 17px; margin: 9px 0 0; color: #756f64; font-size: 12px; line-height: 1.65; }
.dashboard { max-width: 890px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dashboard-heading h2 { margin: 8px 0; font-size: 27px; }
.dashboard > p { color: #625d53; }
.outline { background: #fff; padding: 11px 15px; border-radius: 10px; border: 1px solid #b8a688; color: #60461f; font: inherit; font-weight: 750; cursor: pointer; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.module { border: 1px solid #e8dfd2; border-radius: 13px; padding: 20px; background: #fbfaf7; }
.module-icon { font-size: 27px; }
.module h3 { margin: 11px 0 6px; font-size: 16px; }
.module p { color: #6a655b; font-size: 13px; line-height: 1.5; }
.module-state { color: #795e35; font-size: 11px; font-weight: 800; }
.demo-notice { max-width: 890px; margin: 24px auto 0; background: #f0e9dc; padding: 16px 20px; border-left: 3px solid #ab7f3b; border-radius: 8px; color: #514537; font-size: 13px; line-height: 1.65; }
.demo-notice strong { display: block; color: #352819; }
footer { color: #82796b; text-align: center; font-size: 12px; padding: 15px 20px 35px; }
@media(max-width:680px) { .module-grid { grid-template-columns: 1fr; } main { padding: 30px 14px 42px; } .auth-card, .dashboard { border-radius: 16px; padding: 23px 19px; } .topbar-inner { padding: 13px 15px; } .brand-name { font-size: 16px; } .brand-mark { width: 39px; height: 39px; } }

/* Logotipo original de VIP DELIVERY, recuperado del desarrollo aprobado */
.brand-logo { display: block; width: clamp(124px, 34vw, 166px); height: 54px; object-fit: contain; padding: 4px 7px; border-radius: 12px; background: #fff; }
@media(max-width:680px) { .brand-logo { width: 128px; height: 46px; } .brand-name small { font-size: 10px; } }


/* Módulo 2 · mismo portal VIP DELIVERY, perfil y horario responsivos. */
.module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.module-action {
 display:inline-flex;align-items:center;justify-content:center;min-height:44px;
 border:1px solid #af8946;border-radius:11px;color:#39280d;
 background:#f4e4c4;font:inherit;font-weight:800;padding:10px 13px;
 margin-top:12px;cursor:pointer;
}
.profile-panel {
 margin:23px 0 0;padding:23px;border:1px solid #e7ddcf;border-radius:17px;
 background:#fbfaf7;scroll-margin-top:22px;
}
.panel-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.panel-heading h3 {margin:0;font-size:22px}
.profile-panel p.field-hint {font-size:13px;line-height:1.55}
.profile-panel select {
 width:100%;background:#fff;color:#282620;border-radius:11px;
 padding:14px;font:inherit;border:1px solid #cec5b7;min-height:49px;
}
.profile-panel fieldset {min-width:0;border:1px solid #dbcfbc;border-radius:13px;padding:13px;margin-top:20px}
.profile-panel legend {font-size:14px;font-weight:800;padding:0 6px}
.weekday-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.weekday-grid label {display:flex;align-items:center;gap:7px;padding:10px 8px;
 min-height:44px;background:#fff;border:1px solid #ddd2bf;border-radius:10px;
 font-weight:650;margin:0;cursor:pointer;font-size:13px}
.weekday-grid input,.consent input {width:18px;height:18px;flex:0 0 auto;accent-color:#936928}
.shift-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.shift-grid label {display:block}
.consent {display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;
 font-weight:600;margin-top:19px}
.availability-panel {
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 flex-wrap:wrap;border-top:1px solid #e7ddcf;padding-top:19px;margin-top:22px;
}
.availability-panel p {color:#6b5b40;font-size:14px;margin:6px 0}
.availability-panel button:not(:disabled) {border-color:#9a732d;background:#f7e6c7}
@media(max-width:680px){
 .module-grid {grid-template-columns:1fr 1fr;gap:9px}
 .module{padding:14px}
 .module h3{font-size:15px}
 .module p{font-size:12px}
 .module-icon{font-size:24px}
 .module-action {font-size:12px;padding:9px}
 .profile-panel{padding:16px 13px}
 .weekday-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:370px){
 .module-grid{grid-template-columns:1fr}
 .weekday-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Módulo 3: bolsa global sobre el MISMO portal de repartidores. */
.orders-workspace{margin-top:22px;padding:20px;border-radius:17px;border:1px solid #e8dfd1;background:#fff}
.orders-head,.delivery-history-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.orders-head h3,.delivery-history-head h3{margin:8px 0 6px;font-size:21px}
.orders-head p{font-size:13px;line-height:1.5;margin:0;color:#655f55}
.offer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.offer-card{min-width:0;display:flex;flex-direction:column;gap:10px;padding:15px;border-radius:13px;
 border:1px solid #dfcfb4;background:#fcfaf6;overflow-wrap:anywhere}
.offer-card small{font-size:11px;color:#7b5d33;letter-spacing:.015em}
.offer-card h4{margin:0;font-size:17px}
.offer-card p{margin:0;color:#605c55;font-size:13px;line-height:1.5}
.offer-card>strong{color:#366246;font-size:15px}
.take-offer,.delivery-actions button,.route-link{display:inline-flex;align-items:center;justify-content:center;
 min-height:46px;padding:11px 14px;border:0;border-radius:11px;background:#26251d;
 color:#fff;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}
.take-offer{margin-top:auto}
.active-delivery{margin:21px 0;padding:20px;border:2px solid #b39054;background:#fbf5e9;
 border-radius:17px;scroll-margin-top:20px;overflow-wrap:anywhere}
.active-delivery h3{font-size:22px;margin:9px 0 15px}
.active-delivery p{font-size:14px;line-height:1.5;margin:8px 0}
.active-delivery small{font-size:11px;color:#6f5231;font-weight:800}
.delivery-map{width:100%;height:370px;display:block;border:1px solid #d6c49d;border-radius:13px;
 margin:16px 0;background:#ece7dc}
.route-link{background:#175f72;margin-bottom:12px;width:100%}
.delivery-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-top:13px}
.delivery-actions button{flex:1 1 190px}
.delivery-actions button.release-offer{color:#71402f;background:#f2e7d6;border:1px solid #bbaa90}
.delivery-history-head{margin:19px 0 12px;padding-top:13px;border-top:1px solid #e4dbcd}
.delivery-history{display:grid;gap:10px}
.delivery-history .offer-card{padding:12px}
@media(max-width:680px){
 .orders-workspace{padding:14px 11px}
 .offer-list{grid-template-columns:minmax(0,1fr)}
 .active-delivery{padding:15px}
 .delivery-map{height:300px}
}

.private-navigation{background:#fff;border:1px solid #e1d7c7;border-radius:16px;padding:14px;margin:12px 0 18px}.private-navigation h3{margin:0 0 8px}.private-navigation .delivery-map{height:clamp(300px,48vh,560px);margin:12px 0}.navigation-controls{display:flex;gap:9px;flex-wrap:wrap}.navigation-controls button{flex:1;min-height:44px}.private-navigation .map-close{display:none}.private-navigation:fullscreen,.private-navigation.map-expanded{background:#fff;color:#25221b;padding:14px;overflow:auto}.private-navigation.map-expanded{position:fixed;inset:0;z-index:9999;margin:0;border-radius:0}.private-navigation:fullscreen .delivery-map,.private-navigation.map-expanded .delivery-map{height:60vh}.private-navigation:fullscreen .map-close,.private-navigation.map-expanded .map-close{display:inline-flex}.private-navigation .route-link{min-height:49px;text-align:center}.map-idle{padding:17px;background:#fff;border:1px dashed #d6c49d;border-radius:13px}.active-delivery{scroll-margin-top:15px}
