:root{--yellow:#FFD600;--black:#111111;--gray:#F5F5F5;--gray2:#E8E8E8;--text:#111111;--subtext:#888888;}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{width:100%;height:100%;min-height:100dvh;font-family:'Plus Jakarta Sans',sans-serif;overflow:hidden;background:#111;}
#map{position:absolute;inset:0;width:100%;height:100%;}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
#app{height:100dvh;padding-bottom:calc(68px + env(safe-area-inset-bottom));}
.auth-card{max-height:min(92vh,760px);overflow-y:auto;overscroll-behavior:contain;}

#navbar{position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fff;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-around;padding:8px 0 max(8px,env(safe-area-inset-bottom));box-shadow:0 -4px 24px rgba(0,0,0,.08);}
.nav-item{display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;padding:4px 16px;min-height:44px;border:none;background:none;font-family:inherit;flex:1;}
.nav-item .nav-icon{width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;transition:all .2s;}
.nav-item .nav-label{font-size:.6rem;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#5f6368;transition:color .2s;}
.nav-item.active .nav-icon{background:var(--yellow);}
.nav-item.active .nav-label{color:var(--black);}

.sheet{transition:height .35s cubic-bezier(.4,0,.2,1);}
.sheet-peek{height:90px;}
.sheet-mid{height:55vh;}
.sheet-full{height:92vh;}
.topbar{padding-top:max(16px,env(safe-area-inset-top));}
.topbar-search{min-width:0;}
#searchDrop{overscroll-behavior:contain;}
#betaScreen,#loginScreen,#syncScreen{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom));}
#feedView,#yoView,#exclusivasView{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;}
#feedView,#yoView,#exclusivasView{scroll-padding-top:120px;}
#mapSearch::placeholder{font-size:.94rem;}
.modal-wrap{padding-bottom:env(safe-area-inset-bottom);}
.modal-box{padding-bottom:calc(36px + env(safe-area-inset-bottom));}
@media(min-width:768px){
  .sheet{position:fixed!important;right:20px!important;bottom:72px!important;left:auto!important;width:390px!important;border-radius:20px!important;height:calc(100vh - 160px)!important;box-shadow:0 20px 60px rgba(0,0,0,.3);}
  .sheet-peek,.sheet-mid,.sheet-full{height:calc(100vh - 160px)!important;}
  .drag-handle{display:none!important;}
  .topbar{max-width:calc(100% - 430px);}
  .filterbar{max-width:calc(100% - 430px);}
  #feedView,#yoView,#socialFeedView{max-width:520px;left:auto!important;right:20px!important;border-radius:28px 28px 0 0;box-shadow:0 20px 60px rgba(0,0,0,.18);}
  #exclusivasView{max-width:520px;left:auto!important;right:20px!important;border-radius:28px 28px 0 0;box-shadow:0 20px 60px rgba(0,0,0,.18);}
}
@media(max-width:767px){
  .topbar{padding:18px 10px 0!important;}
  .topbar-search{padding:10px 12px!important;gap:8px!important;}
  .topbar-badge{display:inline-block;font-size:.65rem!important;padding:2px 6px!important;}
  #userBtn{width:44px!important;height:44px!important;}
  #mapSearch{font-size:16px!important;min-width:0;}
  #searchDrop{left:10px!important;right:10px!important;top:82px!important;max-height:44vh!important;}
  .filterbar{top:84px!important;padding-left:10px!important;padding-right:10px!important;padding-bottom:6px!important;}
  .chip-cat,.chip-banco{font-size:.74rem;}
  #fabsWrap{left:10px!important;right:10px!important;transform:none!important;justify-content:center;flex-wrap:wrap;white-space:normal!important;bottom:98px!important;}
  .fab-action{flex:1 1 auto;justify-content:center;}
  #feedView,#yoView{padding:130px 12px 120px!important;}
  #exclusivasView{padding:116px 20px 112px!important;}
  .modal-box{padding:20px 16px 30px!important;max-height:88vh!important;border-radius:22px 22px 0 0!important;}
  .toast{max-width:calc(100vw - 28px);white-space:normal;text-align:center;line-height:1.4;}
  .auth-card{padding:28px 20px!important;border-radius:24px!important;}
}
@media(max-width:420px){
  .topbar{gap:8px!important;}
  .topbar-search{padding:9px 11px!important;border-radius:18px!important;}
  #userBtn{width:42px!important;height:42px!important;font-size:18px!important;}
  .chip-cat{padding:7px 12px;}
  #fabsWrap{gap:8px!important;}
  .fab-action{font-size:.82rem!important;padding:10px 14px!important;}
  .feed-card{padding:14px!important;gap:12px!important;border-radius:18px!important;}
  .feed-badge{width:60px;height:60px;min-width:60px;font-size:1.05rem;border-radius:16px;}
  .modal-box{padding:18px 14px 26px!important;}
  #feedView,#yoView{padding:126px 10px 112px!important;}
  #exclusivasView{padding:112px 16px 106px!important;}
  .topbar-search span,.topbar-search button{flex-shrink:0;}
  #searchDrop{top:80px!important;max-height:42vh!important;}
  .filterbar{top:82px!important;}
  #filterBancos{top:124px!important;}
  .auth-card{padding:24px 16px!important;}
}
@media(max-width:360px){
  .topbar{padding:16px 8px 0!important;}
  .topbar-search{padding:8px 10px!important;gap:6px!important;}
  #searchDrop{left:8px!important;right:8px!important;top:76px!important;}
  .filterbar{padding-left:8px!important;padding-right:8px!important;}
  .chip-cat,.chip-banco{font-size:.7rem!important;}
  .nav-item{padding:4px 8px;}
  .nav-item .nav-label{font-size:.55rem;}
  #fabsWrap{width:calc(100vw - 12px)!important;left:6px!important;right:6px!important;bottom:96px!important;}
  .fab-action{font-size:.78rem!important;padding:9px 10px!important;border-radius:22px!important;}
  #feedView,#yoView{padding:120px 8px 108px!important;}
  #exclusivasView{padding:108px 12px 104px!important;}
  .auth-card{padding:22px 14px!important;border-radius:22px!important;}
  .auth-card h2{font-size:1.65rem!important;}
}

.feed-card{background:#fff;border-radius:20px;padding:16px;display:flex;align-items:center;gap:14px;box-shadow:0 2px 12px rgba(0,0,0,.06);margin-bottom:10px;cursor:pointer;border:1.5px solid transparent;transition:all .2s;}
.feed-card:active{transform:scale(.98);border-color:var(--yellow);}
.feed-badge{width:72px;height:72px;min-width:72px;background:var(--yellow);border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:900;color:var(--black);line-height:1;}

.filterbar{position:fixed;}
.filterbar::after{content:'';position:sticky;right:0;display:block;width:28px;min-width:28px;height:44px;flex-shrink:0;pointer-events:none;background:linear-gradient(90deg,rgba(245,245,245,0),rgba(245,245,245,.94) 60%,#f5f5f5 100%);border-radius:0 16px 16px 0;}
.chip-cat{flex-shrink:0;border:none;border-radius:50px;padding:10px 14px;font-size:.72rem;font-weight:800;cursor:pointer;white-space:nowrap;transition:all .2s;font-family:inherit;min-height:44px;}
.chip-cat.active{background:var(--black);color:#fff;}
.chip-cat:not(.active){background:#fff;color:#555;box-shadow:0 2px 8px rgba(0,0,0,.1);}
.chip-filtros{background:#111!important;color:#fff!important;display:flex;align-items:center;gap:4px;}
.chip-filtros #filtrosBadge{color:var(--yellow);}
.chip-opcion{flex-shrink:0;border:1.5px solid #e8e8e8;border-radius:50px;padding:9px 14px;font-size:.8rem;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .2s;font-family:inherit;background:#fff;color:#555;}
.chip-opcion.active{background:var(--yellow);border-color:var(--yellow);color:var(--black);}

.skeleton{background:linear-gradient(90deg,#e8e8e8 25%,#f5f5f5 50%,#e8e8e8 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:8px;}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.noscroll::-webkit-scrollbar{display:none;}
.noscroll{scrollbar-width:none;}
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%) translateY(20px);z-index:200;padding:10px 20px;border-radius:14px;font-size:.85rem;font-weight:700;opacity:0;transition:all .3s;pointer-events:none;white-space:nowrap;color:#fff;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.modal-wrap{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s;}
.modal-wrap.open{opacity:1;pointer-events:all;}
.modal-box{background:#fff;border-radius:24px 24px 0 0;width:100%;max-width:540px;max-height:92vh;overflow-y:auto;padding:24px 20px 36px;transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);}
.modal-wrap.open .modal-box{transform:translateY(0);}
.map-pin{font-family:'Plus Jakarta Sans',sans-serif;font-weight:900;font-size:10px;padding:4px 7px;border-radius:8px;text-align:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.3);transition:transform .15s;white-space:nowrap;border:2px solid rgba(255,255,255,.5);color:#fff;min-width:36px;}
.map-pin:hover{transform:scale(1.18);}
.map-pin.verif{border-color:#ffd60a;}
.pac-container{z-index:9999!important;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.15);font-family:'Plus Jakarta Sans',sans-serif;}
.pac-item{padding:10px 14px;font-size:.88rem;cursor:pointer;}
.pac-item:hover{background:#f4f4f4;}
.inp{width:100%;border-radius:12px;padding:11px 14px;font-size:.9rem;outline:none;border:2px solid #e8e8e8;background:#f4f4f4;color:#111;font-family:inherit;transition:border-color .2s;}
.inp:focus{border-color:var(--yellow);}
.sel{width:100%;border-radius:12px;padding:11px 14px;font-size:.9rem;outline:none;border:2px solid #e8e8e8;background:#f4f4f4;color:#111;font-family:inherit;}
.btn-primary{width:100%;padding:14px;border-radius:16px;background:var(--black);color:#fff;font-family:inherit;font-weight:900;font-size:.95rem;border:none;cursor:pointer;transition:all .2s;min-height:44px;}
.btn-primary:hover{background:#333;}
.btn-red{width:100%;padding:14px;border-radius:16px;background:#e63946;color:#fff;font-family:inherit;font-weight:900;font-size:.95rem;border:none;cursor:pointer;transition:all .2s;min-height:44px;}

#fabsWrap{
  max-width:calc(100vw - 20px);
  flex-wrap:wrap;
  justify-content:center;
}

@media(max-width:640px){
  #fabsWrap{
    gap:8px;
    bottom:98px!important;
    width:calc(100vw - 16px);
    white-space:normal!important;
  }
  #fabsWrap > button,
  #fabsWrap > div{
    min-height:44px;
  }
  #fabsWrap > div{
    width:100%;
    justify-content:center;
  }
  #fabsWrap > button{
    flex:1 1 calc(50% - 8px);
    padding:10px 14px!important;
    font-size:.85rem!important;
  }
  #fabsWrap > button span:last-child{
    white-space:nowrap;
  }
}

#userBtn,#clearSearch,.fab-action{
  min-height:44px;
}
#clearSearch{min-width:28px;}
#feedView,#yoView,#exclusivasView{overscroll-behavior:contain;}
