
/* =========================================================
   PIDE Y LLEGA · UI PROFESIONAL PENDIENTE 2026-08-14
   Directorio de locales + horarios + métricas
   ========================================================= */

/* ---------- Directorio Restaurantes / Tiendas ---------- */
.pyl-directory-head{
  padding:4px 2px 14px;
}
.pyl-directory-head h3{
  margin:0 0 5px;
  font-size:22px;
  font-weight:950;
}
.pyl-directory-head p{
  margin:0;
  color:#666;
  font-size:14px;
  line-height:1.45;
}
.pyl-directory-search{
  position:relative;
  margin:4px 0 14px;
}
.pyl-directory-search input{
  width:100%;
  border:1px solid #dedede;
  background:#f7f7f7;
  border-radius:15px;
  padding:13px 15px 13px 42px;
  font-size:15px;
  outline:none;
}
.pyl-directory-search input:focus{
  border-color:#ffd400;
  background:#fff;
  box-shadow:0 0 0 3px rgba(255,212,0,.14);
}
.pyl-directory-search span{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
}
.pyl-business-list{
  display:grid;
  gap:11px;
}
.pyl-business-list-card{
  width:100%;
  display:grid;
  grid-template-columns:76px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  border:1px solid #e7e7e7;
  border-radius:19px;
  padding:13px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(0,0,0,.045);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.pyl-business-list-card:active{
  transform:scale(.992);
}
.pyl-business-list-card:hover{
  border-color:#d6d6d6;
  box-shadow:0 8px 22px rgba(0,0,0,.07);
}
.pyl-business-list-card.is-closed{
  background:#fbfbfb;
}
.pyl-business-list-logo{
  width:76px;
  height:76px;
  border-radius:17px;
  object-fit:cover;
  background:#111;
  border:1px solid #ededed;
}
.pyl-business-list-logo-placeholder{
  width:76px;
  height:76px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#ffd400;
  font-size:31px;
}
.pyl-business-list-info{
  min-width:0;
}
.pyl-business-list-name{
  font-size:17px;
  font-weight:950;
  line-height:1.2;
  color:#111;
  margin-bottom:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pyl-business-list-type{
  color:#777;
  font-size:12px;
  margin-bottom:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pyl-business-list-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.pyl-mini-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 8px;
  border-radius:999px;
  background:#f3f3f3;
  color:#555;
  font-size:11px;
  font-weight:850;
}
.pyl-mini-chip.open{
  background:#e9f8ed;
  color:#176b2c;
}
.pyl-mini-chip.closed{
  background:#f4f4f4;
  color:#777;
}
.pyl-business-list-arrow{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffd400;
  color:#111;
  font-size:18px;
  font-weight:950;
}
.pyl-directory-count{
  margin:12px 2px 0;
  color:#777;
  font-size:12px;
}

/* ---------- Menú de un solo local ---------- */
.pyl-menu-topline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:13px;
}
.pyl-menu-back{
  border:1px solid #dedede;
  background:#fff;
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
}
.pyl-menu-hero{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:14px;
  align-items:center;
  border:1px solid #e5e5e5;
  border-radius:20px;
  background:#fff;
  padding:14px;
  margin-bottom:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.045);
}
.pyl-menu-hero h3{
  margin:0 0 5px;
  font-size:20px;
  font-weight:950;
}
.pyl-menu-section{
  margin:20px 0 4px;
}
.pyl-menu-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 1px 10px;
}
.pyl-menu-section-title h4{
  margin:0;
  font-size:17px;
  font-weight:950;
}
.pyl-menu-section-title span{
  color:#888;
  font-size:11px;
}
.pyl-menu-products{
  display:grid;
  gap:10px;
}
.pyl-menu-product{
  display:grid;
  grid-template-columns:106px minmax(0,1fr);
  gap:12px;
  border:1px solid #e8e8e8;
  border-radius:17px;
  padding:10px;
  background:#fff;
  overflow:hidden;
}
.pyl-menu-product-image,
.pyl-menu-product-placeholder{
  width:106px;
  height:96px;
  border-radius:13px;
}
.pyl-menu-product-image{
  object-fit:cover;
  background:#f2f2f2;
}
.pyl-menu-product-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#f5f5f5;
  border:1px solid #ededed;
  color:#888;
  font-size:11px;
  gap:3px;
}
.pyl-menu-product-placeholder b{
  font-size:25px;
  line-height:1;
}
.pyl-menu-product-body{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.pyl-menu-product-name{
  font-weight:950;
  font-size:14px;
  line-height:1.3;
  color:#111;
}
.pyl-menu-product-description{
  margin-top:4px;
  color:#666;
  font-size:11px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pyl-menu-product-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:8px;
}
.pyl-menu-product-price{
  font-weight:950;
  font-size:14px;
}
.pyl-menu-add{
  border:0;
  background:#ffd400;
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.pyl-menu-add:disabled{
  background:#e5e5e5;
  color:#777;
  cursor:not-allowed;
}

/* ---------- Paneles pro ---------- */
.pyl-panel-overview{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:0 0 20px;
}
.pyl-overview-card{
  border:1px solid #e8e8e8;
  border-radius:16px;
  padding:13px;
  background:#fff;
  min-width:0;
}
.pyl-overview-card.highlight{
  background:#fff8d8;
  border-color:#f2d45b;
}
.pyl-overview-card span{
  display:block;
  color:#777;
  font-size:10px;
  font-weight:850;
  line-height:1.35;
  margin-bottom:5px;
}
.pyl-overview-card strong{
  display:block;
  color:#111;
  font-size:18px;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pyl-pro-card{
  border:1px solid #e6e6e6;
  border-radius:18px;
  background:#fff;
  padding:16px;
}
.pyl-schedule-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.pyl-schedule-status{
  color:#666;
  font-size:12px;
  line-height:1.4;
}
.pyl-schedule-grid{
  display:grid;
  gap:8px;
}
.pyl-schedule-row{
  display:grid;
  grid-template-columns:120px 88px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid #ececec;
  border-radius:14px;
  padding:10px;
  background:#fafafa;
}
.pyl-schedule-day{
  font-weight:950;
  font-size:13px;
}
.pyl-switch-label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}
.pyl-switch-label input{
  width:17px;
  height:17px;
  accent-color:#111;
}
.pyl-time-pair{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:6px;
}
.pyl-time-pair input{
  width:100%;
  min-width:0;
  padding:8px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
}
.pyl-time-pair input:disabled{
  opacity:.45;
}
.pyl-save-button{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  background:#111;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.pyl-save-button.primary{
  background:#ffd400;
  color:#111;
}
.pyl-metrics-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:4px;
  margin-bottom:12px;
  scrollbar-width:none;
}
.pyl-metrics-tabs::-webkit-scrollbar{display:none;}
.pyl-metric-tab{
  flex:0 0 auto;
  border:1px solid #dedede;
  background:#fff;
  color:#444;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.pyl-metric-tab.active{
  background:#111;
  border-color:#111;
  color:#fff;
}
.pyl-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.pyl-metric-box{
  border:1px solid #e9e9e9;
  background:#fafafa;
  border-radius:15px;
  padding:12px;
}
.pyl-metric-box.net{
  background:#fff8d8;
  border-color:#f2d45b;
}
.pyl-metric-box span{
  display:block;
  color:#777;
  font-size:10px;
  line-height:1.35;
  font-weight:850;
  margin-bottom:5px;
}
.pyl-metric-box strong{
  display:block;
  font-size:18px;
  font-weight:950;
}
.pyl-metric-foot{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.pyl-soft-box{
  border-radius:14px;
  background:#f5f5f5;
  padding:11px;
  color:#555;
  font-size:11px;
  line-height:1.45;
}
.pyl-soft-box strong{
  display:block;
  color:#111;
  font-size:13px;
  margin-bottom:2px;
}

.business-panel-content,
.worker-panel-content{
  max-width:900px;
}
.business-panel-body,
.worker-panel-body{
  background:#f7f7f7;
}
.business-section,
.worker-section{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:19px;
  padding:16px;
}
.business-section + .business-section,
.worker-section + .worker-section{
  margin-top:12px;
}
.business-section-heading,
.worker-section-heading{
  margin-bottom:12px !important;
}

@media (max-width:760px){
  .pyl-panel-overview{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .pyl-panel-overview .pyl-overview-card:last-child{
    grid-column:1/-1;
  }
  .pyl-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .pyl-metric-foot{
    grid-template-columns:1fr;
  }
  .pyl-schedule-row{
    grid-template-columns:1fr auto;
  }
  .pyl-time-pair{
    grid-column:1/-1;
  }
  .pyl-schedule-row .pyl-24{
    justify-self:end;
  }
}
@media (max-width:520px){
  .pyl-business-list-card{
    grid-template-columns:66px minmax(0,1fr) 32px;
    gap:10px;
    padding:11px;
  }
  .pyl-business-list-logo,
  .pyl-business-list-logo-placeholder{
    width:66px;
    height:66px;
    border-radius:15px;
  }
  .pyl-business-list-name{font-size:16px;}
  .pyl-business-list-arrow{
    width:32px;
    height:32px;
  }
  .pyl-menu-hero{
    grid-template-columns:64px minmax(0,1fr);
  }
  .pyl-menu-hero .pyl-business-list-logo,
  .pyl-menu-hero .pyl-business-list-logo-placeholder{
    width:64px;
    height:64px;
  }
  .pyl-menu-product{
    grid-template-columns:88px minmax(0,1fr);
  }
  .pyl-menu-product-image,
  .pyl-menu-product-placeholder{
    width:88px;
    height:88px;
  }
  .pyl-menu-add{
    padding:7px 10px;
  }
}

/* === PIDE Y LLEGA VISUAL MASTER PATCH 2026-08-20 === */
:root{--pyl-yellow:#ffc400;--pyl-yellow2:#ffd529;--pyl-black:#080808;}
.pyl-back-top{background:#090909!important;color:#ffd21a!important;border:0;border-radius:15px;padding:12px 17px;font-weight:900;font-size:15px;cursor:pointer;align-self:flex-start;}
.pyl-brand-lockup img,.pyl-promo-logo img,.pyl-choice-brand img{display:block;object-fit:contain;mix-blend-mode:multiply;}
/* Account */
#accountModal .account-modal-content{background:#fff!important;color:#070707!important;border:1px solid rgba(0,0,0,.12);}
#accountModal .pyl-yellow-hero{background:transparent!important;color:#070707!important;display:grid!important;grid-template-columns:minmax(155px,1fr) 1px 1fr;gap:24px;align-items:center;padding:25px 14px 18px!important;position:relative;}
#accountModal .pyl-yellow-hero:after{content:"";background:rgba(0,0,0,.65);width:1px;height:78%;grid-column:2;grid-row:1;}
#accountModal .pyl-yellow-hero .pyl-back-top{position:absolute;top:-1px;left:-1px;}
#accountModal .pyl-brand-lockup{grid-column:1;display:flex;justify-content:center;padding-top:34px;}
#accountModal .pyl-brand-lockup img{width:min(270px,100%);border-radius:14px;}
#accountModal .account-hero-copy{grid-column:3;}
#accountModal .account-hero-copy h2,#accountModal .account-hero-copy p{color:#080808!important;}
#accountModal .account-content{background:transparent!important;padding:10px 22px 24px!important;}
#accountModal .account-section-title{color:#080808!important;font-weight:950;text-transform:uppercase;letter-spacing:.04em;}
#accountModal .account-box,#accountModal .account-action-button,#accountModal .account-logout-button{background:rgba(255,255,255,.08)!important;border:1px solid rgba(0,0,0,.28)!important;color:#080808!important;box-shadow:none!important;}
#accountModal .account-data-row{border-color:rgba(0,0,0,.17)!important;}
#accountModal .account-data-label{color:#3b3200!important;}
#accountModal .account-data-value{color:#080808!important;}
#accountModal .account-role-badge{background:#080808!important;color:#ffd21a!important;border:0!important;}
#accountModal .account-action-button{min-height:72px;padding-left:78px!important;position:relative;font-weight:900;}
#accountModal .account-action-button:before{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:43px;height:43px;border-radius:11px;background:#080808;color:#ffd21a;display:grid;place-items:center;font-size:22px;content:'›';}
#accountModal .account-action-button::after{color:#080808!important;font-size:28px!important;}
#accountModal .account-logout-button{font-size:18px;font-weight:950;}
#accountModal .close,#adminModal .close,#coverageModal .close,#businessIntroModal .close,#workerIntroModal .close{background:#080808!important;color:#ffd21a!important;}
/* Admin */
#adminModal .admin-modal-content{background:#fff!important;color:#080808!important;}
.pyl-admin-head,.pyl-coverage-head{display:grid;grid-template-columns:minmax(210px,.9fr) 1px 1.15fr;gap:26px;align-items:center;padding:34px 4px 18px;position:relative;}
.pyl-admin-head .pyl-back-top,.pyl-coverage-head .pyl-back-top{position:absolute;top:0;left:0;}
.pyl-admin-head:after,.pyl-coverage-head:after{content:"";background:rgba(0,0,0,.55);width:1px;height:68%;grid-column:2;grid-row:1;}
.pyl-admin-head .pyl-brand-lockup,.pyl-coverage-head .pyl-brand-lockup{grid-column:1;padding-top:26px;}
.pyl-admin-head .pyl-brand-lockup img,.pyl-coverage-head .pyl-brand-lockup img{width:100%;max-width:290px;border-radius:14px;}
.pyl-admin-head-copy,.pyl-coverage-head-copy{grid-column:3;}
.pyl-admin-head-copy h2,.pyl-coverage-head-copy h2{margin:0 0 10px;font-size:clamp(26px,4vw,38px);}
.pyl-admin-head-copy p,.pyl-coverage-head-copy p{margin:0;font-size:18px;line-height:1.45;}
#adminModal .admin-tabs{gap:12px!important;}
#adminModal .admin-tab-button,#adminModal .black-button{border:1px solid #080808!important;border-radius:18px!important;font-weight:950!important;min-height:62px!important;}
#adminModal .admin-tab-button.active,#adminModal .black-button{background:#080808!important;color:#ffd21a!important;}
#adminModal .admin-tab-button:not(.active){background:transparent!important;color:#080808!important;}
#adminModal .admin-toolbar,#adminModal .admin-list>*,#adminModal .admin-card{background:rgba(255,255,255,.06)!important;border-color:rgba(0,0,0,.2)!important;color:#080808!important;box-shadow:none!important;}
#adminModal .admin-chip{background:rgba(255,255,255,.12)!important;border:1px solid rgba(0,0,0,.18)!important;color:#080808!important;}
/* Coverage */
#coverageModal .coverage-modal-content{background:#fff!important;color:#080808!important;}
#coverageModal .coverage-note{background:#fffaf0!important;border:1px solid rgba(0,0,0,.18)!important;color:#080808!important;border-radius:19px!important;}
#coverageModal table,#coverageModal .coverage-table{color:#080808!important;}
#coverageModal th{background:#080808!important;color:#ffd21a!important;}
#coverageModal td{border-color:rgba(0,0,0,.18)!important;}
#coverageModal .yellow-button{background:#080808!important;color:#ffd21a!important;}
/* Commercial intro */
.pyl-promo-modal{background:linear-gradient(145deg,#ffd528,#ffc400)!important;max-width:920px!important;color:#080808!important;padding:18px!important;}
.pyl-promo-logo{display:flex;justify-content:center;margin:6px auto 14px;}
.pyl-promo-logo img{width:min(440px,78%);border-radius:0;mix-blend-mode:normal;background:transparent;box-shadow:none;}
.pyl-promo-black{background:#0a0a0a;color:white;border-radius:34px;padding:28px clamp(18px,5vw,56px);}
.pyl-promo-black h2{text-align:center;color:white;font-size:clamp(34px,7vw,72px);line-height:1.05;margin:0 0 20px;}
.pyl-promo-black h2 span{color:#ffd21a;}.pyl-promo-ribbon{background:#ffd21a;color:#080808;text-align:center;font-size:clamp(18px,3vw,30px);font-weight:950;border-radius:999px;padding:10px 18px;margin-bottom:8px;}
.pyl-benefit{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:18px 0;border-bottom:1px solid #575757;align-items:center;}.pyl-benefit b{color:#ffd21a;font-size:clamp(20px,3.2vw,35px);line-height:1.05}.pyl-benefit b small{color:#fff;font-size:.72em}.pyl-benefit p{margin:0;font-size:clamp(16px,2.4vw,24px);line-height:1.35}.pyl-primary-cta{width:100%;background:#ffd21a;color:#080808;border:0;border-radius:16px;padding:16px;font-size:clamp(16px,3vw,26px);font-weight:950;margin-top:18px;cursor:pointer}.pyl-promo-foot{text-align:center;margin-top:10px;font-size:18px;}
/* Worker selector */
#workerIntroModal .pyl-worker-intro{max-width:1180px!important;background:#080808!important;color:#fff!important;padding:28px!important;border:1px solid #333;}
.pyl-worker-title{text-align:center;font-size:clamp(30px,5vw,54px);font-weight:950;margin-top:14px}.pyl-worker-title span{color:#ffd21a}.pyl-worker-sub{text-align:center;color:#ddd;font-size:20px}.pyl-worker-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.pyl-worker-choice{border:1px solid #4c4c4c;border-radius:22px;padding:18px;background:linear-gradient(#111,#080808);display:flex;flex-direction:column}.pyl-choice-brand{height:92px;border-bottom:1px solid #555;margin-bottom:14px;display:flex;align-items:center}.pyl-choice-brand img{height:84px;width:auto;max-width:100%;border-radius:12px}.pyl-worker-choice h3{color:#ffd21a;font-size:28px;margin:6px 0 0}.pyl-role-sub{font-size:18px}.pyl-role-img{width:100%;height:240px;object-fit:contain;margin:8px 0}.pyl-worker-choice>p{font-size:17px;line-height:1.55;min-height:118px}.pyl-rate-box{border:1px solid #3c3c3c;border-radius:15px;padding:14px;margin-top:10px}.pyl-rate-box strong{display:block;color:#ffd21a;font-size:18px;margin-bottom:5px}.pyl-rate-box span{font-size:15px;line-height:1.45;color:#eee}.pyl-worker-choice .pyl-primary-cta{margin-top:auto}.pyl-worker-intro>.pyl-back-top{margin-bottom:6px;}
@media(max-width:760px){#accountModal .pyl-yellow-hero,.pyl-admin-head,.pyl-coverage-head{grid-template-columns:1fr;gap:10px;padding-top:58px!important}#accountModal .pyl-yellow-hero:after,.pyl-admin-head:after,.pyl-coverage-head:after{display:none}#accountModal .pyl-brand-lockup,#accountModal .account-hero-copy,.pyl-admin-head .pyl-brand-lockup,.pyl-admin-head-copy,.pyl-coverage-head .pyl-brand-lockup,.pyl-coverage-head-copy{grid-column:1}.pyl-admin-head-copy,.pyl-coverage-head-copy{text-align:center}.pyl-worker-choice-grid{grid-template-columns:1fr}.pyl-worker-choice>p{min-height:0}.pyl-role-img{height:210px}.pyl-benefit{grid-template-columns:1fr;gap:7px}.pyl-promo-black{border-radius:24px}.pyl-promo-modal{padding:12px!important}}
