:root{
  --yellow:#F4C430;
  --yellow-soft:#FFF6CC;
  --dark:#171717;
  --gray:#727272;
  --bg:#F7F7F7;
  --card:#FFFFFF;
  --border:#ECECEC;
  --green:#198754;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--dark);
}

body{
  min-height:100vh;
  padding-bottom:78px;
}

.app-shell{
  width:100%;
  max-width:520px;
  margin:0 auto;
  background:var(--bg);
  min-height:100vh;
}

.top-area{
  padding:18px 16px 24px;
  background:linear-gradient(180deg,#FFF0A8 0%,#F7F7F7 100%);
}

.brand{
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-0.4px;
}

.brand span{
  color:#A77B00;
}

.icon-btn{
  width:44px;
  height:44px;
  border:none;
  border-radius:14px;
  background:white;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.15rem;
}

.search-card{
  background:white;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  overflow:hidden;
}

.search-card .form-control{
  min-height:56px;
  font-size:1rem;
}

.btn-search{
  background:var(--yellow);
  color:#1d1d1d;
  border-radius:14px !important;
  margin:6px;
  padding:0 18px;
  font-weight:700;
}

.ad-card{
  background:linear-gradient(135deg,#ffffff 0%,#fff9dd 100%);
  border:1px solid #F3E8AD;
  border-radius:20px;
  padding:16px;
  position:relative;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.ad-label{
  display:inline-block;
  font-size:.66rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:#171717;
  color:white;
  padding:4px 8px;
  border-radius:999px;
  margin-bottom:12px;
}

.ad-logo{
  min-width:58px;
  width:58px;
  height:58px;
  border-radius:16px;
  background:var(--yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.section-title h5{
  margin:0;
  font-weight:800;
  font-size:1.05rem;
}

.categories-scroll{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:none;
}

.categories-scroll::-webkit-scrollbar{
  display:none;
}

.category-card{
  min-width:84px;
  border:none;
  background:white;
  border-radius:18px;
  padding:12px 10px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.category-card.active{
  background:var(--yellow-soft);
  outline:2px solid var(--yellow);
}

.category-icon{
  width:44px;
  height:44px;
  margin:0 auto 7px;
  border-radius:14px;
  background:#F2F2F2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.15rem;
}

.category-card span{
  font-size:.78rem;
  font-weight:700;
}

.business-card{
  background:white;
  border-radius:20px;
  padding:14px;
  margin-bottom:12px;
  border:1px solid var(--border);
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.business-photo{
  width:74px;
  height:74px;
  border-radius:18px;
  background:#EFEFEF;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  font-size:1.5rem;
  flex-shrink:0;
}

.business-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.business-title{
  font-weight:800;
  font-size:1rem;
  margin-bottom:2px;
}

.business-meta{
  color:var(--gray);
  font-size:.78rem;
}

.badge-open{
  background:#E9F8EF;
  color:#167546;
  font-weight:700;
}

.badge-premium{
  background:#FFF4B6;
  color:#846000;
  font-weight:700;
}

.rating{
  font-size:.8rem;
  font-weight:700;
}

.actions-row{
  display:flex;
  gap:8px;
  margin-top:12px;
}

.actions-row .btn{
  border-radius:12px;
  font-size:.8rem;
  font-weight:700;
  flex:1;
}

.promo-subscribe{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:white;
  border-radius:20px;
  padding:16px;
  border:1px solid var(--border);
}

.icon-circle{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:50%;
  background:#E7F7ED;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.3rem;
}

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:520px;
  height:72px;
  padding-bottom:env(safe-area-inset-bottom);
  background:rgba(255,255,255,.96);
  border-top:1px solid #EAEAEA;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  z-index:1000;
  backdrop-filter:blur(12px);
}

.nav-item{
  border:none;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  font-size:.7rem;
  color:#888;
}

.nav-item i{
  font-size:1.2rem;
}

.nav-item.active{
  color:#111;
  font-weight:700;
}

.nav-item.active i{
  color:#B78A00;
}

@media (min-width: 700px){
  body{
    background:#EDEDED;
  }

  .app-shell{
    box-shadow:0 0 40px rgba(0,0,0,.08);
  }
}


.business-card-click{
  cursor:pointer;
}

.business-detail{
  min-height:100vh;
  background:var(--bg);
  padding-bottom:24px;
}

.detail-cover{
  position:relative;
  height:220px;
  background:linear-gradient(135deg,#FFF0A8,#F4C430);
  overflow:hidden;
}

.detail-cover-placeholder{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:5rem;
}

.detail-cover-placeholder img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.detail-back,
.detail-favorite{
  position:absolute;
  top:16px;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.15rem;
}

.detail-back{
  left:16px;
}

.detail-favorite{
  right:16px;
}

.detail-content{
  padding:20px 16px;
  margin-top:-18px;
  position:relative;
  z-index:1;
  background:var(--bg);
  border-radius:24px 24px 0 0;
}

.detail-title{
  font-size:1.55rem;
  font-weight:900;
  margin:0 0 4px;
  letter-spacing:-.4px;
}

.detail-subtitle,
.detail-meta{
  color:var(--gray);
  font-size:.85rem;
}

.detail-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:20px 0;
}

.detail-action{
  border:0;
  background:white;
  border-radius:16px;
  padding:12px 8px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  font-size:.78rem;
  font-weight:700;
}

.detail-action i{
  font-size:1.25rem;
}

.detail-section{
  background:white;
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
  margin-bottom:14px;
}

.detail-section h5{
  font-weight:800;
  margin-bottom:10px;
}

.detail-section p{
  color:var(--gray);
  font-size:.9rem;
}

.detail-info-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:10px;
  font-size:.88rem;
}

.promo-detail-card{
  background:linear-gradient(135deg,#171717,#343434);
  color:white;
  border-radius:18px;
  padding:16px;
}

.promo-detail-card p{
  color:#D6D6D6;
}

.promo-tag{
  display:inline-block;
  background:var(--yellow);
  color:#171717;
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:999px;
  margin-bottom:10px;
}

.promo-price{
  font-size:1.35rem;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}

.menu-item:last-child{
  border-bottom:0;
}

.menu-photo{
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:14px;
  background:#F5F5F5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  overflow:hidden;
}

.menu-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.menu-item h6{
  margin:0 0 3px;
  font-weight:800;
}

.menu-item p{
  margin:0 0 4px;
  font-size:.78rem;
}

.menu-add{
  border:0;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:var(--yellow);
  font-weight:900;
}

.fake-map{
  position:relative;
  height:180px;
  border-radius:18px;
  overflow:hidden;
  background:#EAF0E5;
  border:1px solid #DDE4D8;
}

.mapa-embed{
  width:100%;
  height:100%;
  border:0;
}

.map-road{
  position:absolute;
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.04);
}

.road-one{
  width:120%;
  height:28px;
  left:-10%;
  top:72px;
  transform:rotate(-8deg);
}

.road-two{
  width:30px;
  height:130%;
  left:42%;
  top:-15%;
  transform:rotate(18deg);
}

.road-three{
  width:80%;
  height:18px;
  left:15%;
  top:30px;
  transform:rotate(4deg);
}

.map-pin{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.detail-rating-card{
  text-align:center;
}

.stars-row{
  display:flex;
  justify-content:center;
  gap:10px;
  font-size:1.7rem;
  color:#C7C7C7;
}

.stars-row i{
  cursor:pointer;
}

.stars-row i.active{
  color:#E8B400;
}


/* ========================= Área privada / Mi negocio ========================= */
.app-private-view{min-height:100vh;background:var(--bg);padding-bottom:88px}
.private-top-area{padding:18px 16px 20px;background:linear-gradient(180deg,#FFF0A8 0%,#F7F7F7 100%);display:flex;align-items:center;gap:12px}
.private-top-area.admin-top{justify-content:space-between}
.private-back,.private-avatar{width:44px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex:0 0 44px}
.private-content{padding:0 16px 24px}
.auth-card,.register-card,.admin-business-card,.admin-menu-card{background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.auth-card{padding:24px 18px;text-align:left}
.auth-card h2,.register-card h2,.admin-business-card h2{font-size:1.25rem;font-weight:900;margin:0 0 5px}
.auth-card>p,.register-card>p{color:var(--gray);font-size:.88rem;margin-bottom:20px}
.auth-icon{width:64px;height:64px;border-radius:20px;background:var(--yellow-soft);display:flex;align-items:center;justify-content:center;font-size:1.7rem;margin:0 auto 16px;color:#8a6800}
.auth-card>.auth-icon~h2,.auth-card>.auth-icon~p{text-align:center}
.app-input{min-height:50px;border-radius:14px;border:1px solid #DDD}
textarea.app-input{min-height:110px}
.app-input:focus{border-color:var(--yellow);box-shadow:0 0 0 .2rem rgba(244,196,48,.18)}
.form-label{font-size:.8rem;font-weight:800}
.btn-app-primary{min-height:48px;border:0;border-radius:14px;background:var(--yellow);font-weight:800;color:#171717}
.btn-app-primary:hover{background:#e9b91e;color:#171717}
.btn-app-outline{min-height:46px;border:1px solid var(--yellow);border-radius:14px;background:#fff;color:#171717;font-weight:800}
.btn-app-outline:hover{background:var(--yellow-soft);border-color:var(--yellow);color:#171717}
.password-wrap{position:relative}.password-wrap .app-input{padding-right:48px}.password-toggle{position:absolute;right:7px;top:7px;width:36px;height:36px;border:0;background:transparent;border-radius:10px}
.auth-divider{display:flex;align-items:center;gap:10px;color:#aaa;margin:22px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e5e5e5;flex:1}.auth-divider span{font-size:.75rem}
.register-progress{display:flex;align-items:center;gap:8px}.step-dot{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e7e7e7;color:#777;font-size:.75rem;font-weight:900;flex:0 0 30px}.step-dot.active{background:var(--yellow);color:#171717}.step-line{height:3px;background:#e2e2e2;flex:1;border-radius:99px}.step-line.active{background:var(--yellow)}
.register-card{padding:20px 16px}.provider-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.provider-type{border:1px solid var(--border);background:#fff;border-radius:16px;padding:14px 10px;text-align:left;display:flex;flex-direction:column;min-height:126px}.provider-type i{font-size:1.55rem;margin-bottom:8px}.provider-type strong{font-size:.86rem}.provider-type small{font-size:.72rem;color:var(--gray);margin-top:2px}.provider-type.active{background:#fff9dc;outline:2px solid var(--yellow);border-color:transparent}
.gps-register-box{border:1px dashed #d7aa13;background:#fff9dd;border-radius:16px;padding:14px}.gps-register-box p{font-size:.78rem;color:var(--gray);margin-bottom:12px}
.register-product-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 40px;gap:7px;margin-bottom:8px}.register-product-row .app-input{min-width:0}.remove-register-product{border:0;border-radius:12px;background:#f1f1f1;color:#555}
.admin-business-card{padding:16px;background:linear-gradient(135deg,#fff8d8,#fff)}.admin-business-logo{width:68px;height:68px;border-radius:18px;background:#fff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:2rem;flex:0 0 68px;overflow:hidden}.admin-business-logo img{width:100%;height:100%;object-fit:cover}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.admin-stats>div{background:#fff;border:1px solid var(--border);border-radius:14px;text-align:center;padding:10px 5px}.admin-stats strong{display:block;font-size:1.15rem}.admin-stats small{display:block;color:var(--gray);font-size:.68rem}.admin-section-heading{font-weight:900;font-size:1rem;margin:20px 0 10px}.admin-menu-card{overflow:hidden}.admin-menu-item{width:100%;border:0;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;gap:11px;text-align:left;padding:13px}.admin-menu-item:last-child{border-bottom:0}.admin-menu-item>span:nth-child(2){min-width:0}.admin-menu-item strong{display:block;font-size:.82rem}.admin-menu-item small{display:block;color:var(--gray);font-size:.7rem}.admin-menu-icon{width:42px;height:42px;border-radius:13px;background:#f3f3f3;display:flex;align-items:center;justify-content:center;font-size:1.05rem;flex:0 0 42px}.admin-premium-card{margin:16px 0;background:linear-gradient(135deg,#fff2a8,#fff9df);border:1px solid #f1d36a;border-radius:20px;padding:16px}.admin-premium-card i{color:#c28e00}.admin-premium-card strong{font-size:.9rem}.admin-premium-card p{font-size:.76rem;color:#685f42;margin:4px 0 12px}
@media(max-width:380px){.provider-type-grid{grid-template-columns:1fr}.register-product-row{grid-template-columns:minmax(0,1fr) 92px 38px}}
