:root{font-family:system-ui,sans-serif;color:#292e25;background:#faf8ef;--ink:#292e25;--green:#354d38;--paper:#fffdf6;--line:#deded1}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}[hidden]{display:none!important}.shell{max-width:1120px;margin:auto;padding:0 24px}header,footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-block:24px!important}nav{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}.brand{font-weight:850;font-size:27px;letter-spacing:-1px;text-decoration:none}.brand span{color:#78824b}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:30px;padding:45px 0 55px}.hero h1{font-family:Georgia,serif;font-size:clamp(52px,8vw,100px);letter-spacing:-.075em;line-height:.98;margin:14px 0}.hero p{max-width:410px}.hero-art{border-radius:28px;background:#76844e}.hero-art svg{display:block;width:100%}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#58683f}h2{font-family:Georgia,serif;font-size:34px;letter-spacing:-.04em;margin:12px 0 20px}p{line-height:1.65;color:#586154}.button,button{display:inline-flex;align-items:center;justify-content:center;background:var(--green);border:0;border-radius:10px;color:#fff;padding:12px 17px;font-weight:650;text-decoration:none;cursor:pointer}.secondary{color:var(--green);background:#edf0e5}button:disabled{opacity:.55;cursor:default}input,select,textarea{width:100%;border:1px solid #c9cfc0;border-radius:8px;padding:10px;background:#fff;color:var(--ink)}label{display:block;font-size:13px;font-weight:650}label input,label select,label textarea{display:block;margin-top:6px}.check{display:flex;align-items:center;gap:10px;margin:14px 0}.check input{width:auto;margin:0}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px;margin-bottom:16px}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}.product,.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px}.product img{width:100%;height:155px;object-fit:cover;border-radius:12px}.product h3{margin-bottom:6px}.product input{max-width:110px}.panel{margin:25px 0}.notice{padding:15px 18px;border-radius:12px;background:#f8e9c6;margin:15px 0;line-height:1.5}.error{color:#8d3429;font-weight:650}.success{color:#354d38;font-weight:650}.delivery{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;margin:35px 0}.total{font-size:22px;font-weight:750}.lines{padding-left:20px;line-height:1.8}footer{border-top:1px solid var(--line);font-size:13px;color:#586154}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-grid .panel{margin:0}.row{border-top:1px solid var(--line);padding:12px 0}.row p{margin:4px 0}.row .actions{margin-top:8px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.admin-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.entry{max-width:420px;margin:40px auto}.entry button{margin-top:15px}@media(max-width:730px){.hero,.delivery,.admin-grid{grid-template-columns:1fr}.hero{padding-top:22px;gap:22px}.hero-art{max-width:500px}nav{gap:12px}.shell{padding-inline:17px}h2{font-size:28px}}

/* Catálogo y consulta pública */
.products{grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:20px}
.product{padding:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 24px #303c2610}
.product-photo{width:100%;aspect-ratio:4/3;display:grid;place-items:center;background:#f0eee4;color:var(--green);padding:12px;border-radius:0}
.product-photo img,.product img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:0}
.product-info{padding:18px;display:flex;flex-direction:column;flex:1}
.product-min{align-self:flex-start;background:#edf0e5;border-radius:30px;padding:3px 10px;font-size:12px;margin:0}
.product h3{margin:9px 0 2px;font-size:20px}.product-price{margin:3px 0 15px}.product-price strong{font-size:23px;color:var(--green)}
.product-actions{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:auto}.product-actions input{width:86px}
#productDetails{border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);width:min(92vw,560px);padding:22px}
#productDetails::backdrop{background:#20291db0}#productDetails form{text-align:right;margin-bottom:12px}
#productDetails .product-photo{max-height:45vh;border-radius:12px;overflow:hidden;grid-template-rows:minmax(0,1fr)}
#transportResult:not(:empty){margin-top:16px;padding:14px;background:#edf0e5;border-radius:10px}

#deliveryMap{width:min(94vw,720px);max-height:92vh;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);padding:20px}
#deliveryMap::backdrop{background:#20291db0}
#mapCanvas{height:min(48vh,430px);margin-bottom:16px;border-radius:12px}

#messagePreview{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#edf0e5;padding:16px;border-radius:12px}
