  :root{
    --bg: #FFFFFF;
    --panel: #FFFFFF;
    --ink: #1F1F29;
    --ink-soft: #6B6B76;
    --line: #E8E8EE;
    --rojo: #C1122F;
    --rojo-deep: #9B0E26;
    --acento: var(--rojo);
    --acento-deep: var(--rojo-deep);
    --mango: #E8873A;
    --mango-deep: #C96A1F;
    --teal: #1B7A72;
    --teal-deep: #145A54;
    --red: #A5432F;
    --radius: 12px;
  }
  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  body{
    background:var(--bg);
    color:var(--ink);
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 84px;
  }
    header{
    padding: 22px 18px 18px;
    background: var(--rojo); /* respaldo si el navegador no soporta degradados */
    background: linear-gradient(110deg, #C1122F 0%, #9B0E26 30%, #7D0016 50%, #9B0E26 70%, #C1122F 100%);
    background-size: 300% 100%;
    animation: domiDegradado 10s ease-in-out infinite alternate;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 20px 20px;
  }
  @keyframes domiDegradado{
    0%{ background-position: 0% 50%; }
    100%{ background-position: 100% 50%; }
  }
  @media (prefers-reduced-motion: reduce){
    header{ animation: none; background: var(--rojo); }
  }
  header h1{
    margin:0;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
  }
  header p{
    margin: 4px 0 0;
    font-size: 12.5px;
    color: rgba(255,255,255,0.88);
  }
  header .logout-btn{
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    text-decoration: underline;
    padding: 6px 4px;
    border: none;
    cursor: pointer;
  }
  main{ padding: 16px; max-width: 480px; margin: 0 auto; }
  .view{ display:none; }
  .view.active{ display:block; }

  .card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(36,28,61,0.06);
}

select{
  width:100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--ink);
}

.saludo{ margin: 4px 2px 16px; }
.saludo-fecha{ font-size: 13px; color: var(--ink-soft); }
.saludo-fecha::first-letter{ text-transform: uppercase; }
.saludo-titulo{
  margin: 2px 0 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.tiles{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.tile{
  position: relative;
  overflow: hidden;
  text-align: left;
  color: #fff;
  border-radius: 22px;
  padding: 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 6px 14px rgba(36,28,61,0.18);
}
.tile:active{ transform: scale(0.98); }
.tile-grande{ grid-column: span 2; min-height: 150px; }
.tile-ic{
  position: absolute;
  top: 12px; right: 14px;
  font-size: 54px;
  opacity: 0.28;
  line-height: 1;
}
.tile-titulo{
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.tile-sub{ font-size: 12.5px; opacity: 0.9; margin-top: 2px; }
.tile-mango{ background: linear-gradient(135deg, #D91E3A, #9B0E26); }
.tile-teal{ background: linear-gradient(135deg, #22968C, #145A54); }
.tile-violeta{ background: linear-gradient(135deg, #7A5CE0, #2e284d); }
  .card h2{
    margin: 0 0 4px;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
  }
  .card .subtitle{
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--ink-soft);
  }
  label{
    display:block;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: 10px 0 4px;
  }
  input{
    width:100%;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #FFFFFF;
    color: var(--ink);
  }
  input:focus{ outline: 2px solid var(--acento); border-color: var(--acento); }

  button{ font-family: inherit; border: none; cursor: pointer; }
  .btn-primary{
    width:100%;
    background: var(--acento);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 14px;
  }
  .btn-primary:active{ background: var(--acento-deep); }
  .btn-primary:disabled{ background: #D5D5DB; }

  .switch-mode{
    text-align: center;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--ink-soft);
  }
  .switch-mode button{
    background: transparent;
    color: var(--acento-deep);
    font-weight: 600;
    padding: 0 4px;
  }

  .status-msg{
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 10px;
  }
  .status-msg.error{ background: #F6E4DF; color: var(--red); }
  .status-msg.ok{ background: #DEEEEC; color: var(--teal-deep); }

  .profile-row{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .avatar{
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #F0F0F4 center/cover no-repeat;
    flex-shrink: 0;
  }
  .avatar-lg{
    width: 84px; height: 84px;
  }
  .empty-state{
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 10px 2px;
  }
  .btn-link{
    background: transparent;
    color: var(--acento-deep);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
  }
  .avatar-upload-label{
    display:inline-block;
    font-size: 12.5px;
    color: var(--acento-deep);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 6px;
  }
  .avatar-upload-label input{ display:none; }
  .list-row{
    display:flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .list-row:last-child{ border-bottom: none; }
  .list-thumb{
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #F0F0F4 center/cover no-repeat;
    flex-shrink: 0;
  }
  .list-info{ flex: 1; min-width: 0; }
  .list-name{ font-size: 14.5px; font-weight: 500; }
  .list-meta{ font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

  nav.tabbar{
    position: fixed; bottom:0; left:0; right:0;
    /* mismo fondo animado rojo / vino tinto de la cabecera */
    background: var(--rojo);
    background: linear-gradient(110deg, #C1122F 0%, #9B0E26 30%, #7D0016 50%, #9B0E26 70%, #C1122F 100%);
    background-size: 300% 100%;
    animation: domiDegradado 10s ease-in-out infinite alternate;
    border-radius: 20px 20px 0 0;
    display:flex; gap: 6px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    z-index: 50;
  }
  nav.tabbar button{
    flex:1;
    background: transparent;
    border: none;
    padding: 7px 0 5px;
    font-family: inherit;
    font-size: 11.5px;
    color: rgba(255,255,255,0.82);
    border-radius: 16px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    display:flex; flex-direction:column; align-items:center; gap:2px;
  }
  /* pestaña elegida: pastilla más oscura */
  nav.tabbar button.active{ background: rgba(0,0,0,0.30); color: #fff; font-weight: 700; }
  nav.tabbar .ic{ display: flex; line-height: 1; }
  nav.tabbar .ic svg{ width: 21px; height: 21px; }
  @media (prefers-reduced-motion: reduce){
    nav.tabbar{ animation: none; background: var(--rojo); }
  }
  .section-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ink-soft);
    margin: 0 0 8px;
    font-weight: 600;
  }
  .chip-row{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
  }
  .chip{
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 999px;
  }
  .chip:active{ background: var(--line); }
  .chip.active{ background: var(--acento); color:#fff; border-color: var(--acento); }
  .back-btn{
    background: transparent;
    color: var(--ink-soft);
    font-size: 13.5px;
    padding: 4px 0;
    margin-bottom: 10px;
  }  .toast{
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    max-width: 85vw;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 60;
  }
  .toast.show{ opacity: 1; }
  .toast.error{ background: var(--red); }

  .modal-bg{
    position: fixed; inset: 0;
    background: rgba(43,38,32,0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 70;
  }
  .modal-bg.active{ display: flex; }
  .modal{
    background: var(--panel);
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .badge{
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: capitalize;
  }
  .badge-pendiente{ background: #FBE7C6; color: #8A5A00; }
  .badge-aprobado, .badge-confirmado{ background: #DCEEE9; color: var(--teal-deep); }
  .badge-entregado{ background: #E4E0F6; color: #5A4FB0; }
  .badge-rechazado, .badge-cancelado{ background: #F6E4DF; color: var(--red); }

  .qty-controls{ display: flex; align-items: center; gap: 8px; }
  .qty-btn{
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink);
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .qty-btn:active{ background: var(--acento); color: #fff; }
  .qty-val{ min-width: 18px; text-align: center; font-size: 14px; }

  .producto-imagen-grande{
    width: 100%;
    height: 180px;
    border-radius: 10px;
    background: var(--placeholder, #F0F0F4) center/cover no-repeat;
    margin-bottom: 12px;
  }
  .carrusel{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .carrusel-item{ flex: 0 0 auto; width: 118px; cursor: pointer; }
  .carrusel-item .list-thumb{ width: 118px; height: 88px; border-radius: 8px; }
  .carrusel-item .list-name{ font-size: 12.5px; margin-top: 5px; line-height: 1.25; }
  .carrusel-item .list-meta{ font-size: 11.5px; }
  .modal h2{
    margin: 0 0 8px;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
  }
  .modal p{
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0 0 4px;
  }
#explorar-catneg-list,
#explorar-catprod-list{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch;
}
#explorar-catneg-list .empty-state,
#explorar-catprod-list .empty-state{ grid-column: span 2; }

#explorar-catneg-list .chip,
#explorar-catprod-list .chip{
  color: #fff;
  border: none;
  border-radius: 18px;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: flex-end;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15);
  flex: 0 0 140px;
  scroll-snap-align: start;
}
#explorar-catneg-list .chip:active,
#explorar-catprod-list .chip:active{ transform: scale(0.97); }

#explorar-catneg-list .chip:nth-child(4n+1),
#explorar-catprod-list .chip:nth-child(4n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
#explorar-catneg-list .chip:nth-child(4n+2),
#explorar-catprod-list .chip:nth-child(4n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
#explorar-catneg-list .chip:nth-child(4n+3),
#explorar-catprod-list .chip:nth-child(4n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
#explorar-catneg-list .chip:nth-child(4n+4),
#explorar-catprod-list .chip:nth-child(4n+4){ background: linear-gradient(135deg, #D9567E, #A5432F); }

#explorar-catneg-list,
#explorar-catprod-list,
#explorar-negocios-list,
#explorar-eventos-list{
  scrollbar-width: none;
}
#explorar-catneg-list::-webkit-scrollbar,
#explorar-catprod-list::-webkit-scrollbar,
#explorar-negocios-list::-webkit-scrollbar,
#explorar-eventos-list::-webkit-scrollbar{
  display: none;
}
#explorar-negocios-list,
#explorar-eventos-list{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch;
}
#explorar-negocios-list .list-row,
#explorar-eventos-list .list-row{
  flex: 0 0 150px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  scroll-snap-align: start;
}
#explorar-negocios-list .list-row:last-child,
#explorar-eventos-list .list-row:last-child{
  border-bottom: 1px solid var(--line);
}
#explorar-negocios-list .list-thumb,
#explorar-eventos-list .list-thumb{
  width: 100%;
  height: 96px;
  border-radius: 10px;
}
#explorar-negocios-list .btn-link{ align-self: flex-start; }

/* ---------- Detalle de negocio ---------- */
.card.neg-hero{
  position: relative;
  overflow: hidden;
  border: none;
  min-height: 150px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--acento), var(--acento-deep));
  box-shadow: 0 6px 14px rgba(36,28,61,0.18);
}
.card.neg-hero::after{
  content: '🏪';
  position: absolute;
  top: 10px; right: 14px;
  font-size: 64px;
  opacity: 0.25;
  pointer-events: none;
}
.card.neg-hero > *{ position: relative; z-index: 1; }
.card.neg-hero .back-btn{ color: rgba(255,255,255,0.85); }
.card.neg-hero h2{ color: #fff; font-size: 26px; font-weight: 600; }
.card.neg-hero .subtitle{ color: rgba(255,255,255,0.9); margin-bottom: 6px; }
.card.neg-hero .btn-link{
  background: rgba(255,255,255,0.22);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

#negdet-productos-list .list-thumb{ width: 56px; height: 56px; border-radius: 12px; }
#negdet-productos-list .list-name{ font-size: 15px; }
#negdet-productos-list .list-meta{ color: var(--acento-deep); font-weight: 600; font-size: 13.5px; }
#negdet-productos-list .qty-btn{ width: 32px; height: 32px; }

.carrito-barra{
  position: sticky;
  bottom: 78px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(36,28,61,0.18);
}
.carrito-total{ font-weight: 600; font-size: 17px; white-space: nowrap; }
.carrito-barra .btn-primary{ width: auto; flex: 1; margin-top: 0; }

/* Barras de perfil de negocio y producto: el total largo baja de línea y el botón nunca se sale de la tarjeta */
.carrito-barra{ overflow: hidden; box-sizing: border-box; max-width: 100%; }
.carrito-info{ flex: 1 1 0; min-width: 0; }
.carrito-info .carrito-total{ white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.carrito-barra > .btn-primary{ flex: 0 0 auto; min-width: 0; max-width: 45%; padding-left: 14px; padding-right: 14px; }

/* Barra inferior del carrito: total grande + cantidad a la izquierda, dos botones a la derecha */
.carrito-barra-info{ display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.carrito-total-et{ font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.carrito-barra-info .carrito-total{ font-size: 26px; font-weight: 800; color: #14060A; line-height: 1.1; }
.carrito-cant{ font-size: 13px; color: var(--ink-soft); }
.carrito-btns{ flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.carrito-barra .carrito-btns .btn-primary{ width: 100%; flex: none; margin: 0; padding: 10px 12px; font-size: 15px; }
.carrito-barra .carrito-btns .btn-vaciar{ background: #C2570C; color: #fff; }
.carrito-barra .carrito-btns .btn-vaciar:active{ background: #A24509; }
.carrito-barra .carrito-btns .btn-vaciar:disabled{ background: #C2570C; opacity: 0.45; }

/* ---------- Detalle de producto ---------- */
.prod-card .producto-imagen-grande{ height: 220px; border-radius: 16px; }
.prod-card h2{ font-size: 24px; font-weight: 600; margin-top: 4px; }
.prod-desc{ font-size: 14px; color: var(--ink); line-height: 1.45; margin: 10px 0 0; }
.prod-fila{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.prod-precio{
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--acento-deep);
}
.prod-fila .qty-btn{ width: 36px; height: 36px; font-size: 18px; }
.prod-fila .qty-val{ min-width: 24px; font-size: 16px; font-weight: 600; }

#proddet-similares,
#perfil-recomendaciones-list{
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}
#proddet-similares::-webkit-scrollbar,
#perfil-recomendaciones-list::-webkit-scrollbar{ display: none; }
#proddet-similares .carrusel-item,
#perfil-recomendaciones-list .carrusel-item{
  width: 130px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  scroll-snap-align: start;
}
#proddet-similares .carrusel-item .list-thumb,
#perfil-recomendaciones-list .carrusel-item .list-thumb{ width: 100%; height: 92px; border-radius: 10px; }
#proddet-similares .carrusel-item .list-meta,
#perfil-recomendaciones-list .carrusel-item .list-meta{ color: var(--acento-deep); font-weight: 600; }
/* ---------- Mi carrito ---------- */
.carrito-info{ display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.carrito-info .btn-link{ padding: 0; }
/* Encabezado: reutiliza .ped-hero (imagen del negocio + capa oscura) */
.carrito-hero-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.card.ped-hero .carrito-hero-top .back-btn{ margin: 0; }
.btn-ver-negocio{
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.btn-ver-negocio svg{ width: 18px; height: 18px; }
.btn-ver-negocio:active{ background: rgba(255,255,255,0.3); }
#carrito-items .list-thumb{ width: 56px; height: 56px; border-radius: 12px; }
.carrito-der{ display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.carrito-sub{ font-weight: 600; font-size: 15px; color: var(--acento-deep); }
.carrito-pie{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Detalle de evento ---------- */
.producto-imagen-grande.sin-imagen{
  background: linear-gradient(135deg, var(--acento), var(--acento-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-imagen-grande.sin-imagen::after{ content: '🎉'; font-size: 64px; opacity: 0.6; }

.ev-datos{ display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.ev-dato{ display: flex; gap: 12px; align-items: flex-start; }
.ev-ic{
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ev-et{ font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.ev-val{ font-size: 15px; font-weight: 500; margin-top: 2px; }
.ev-val::first-letter{ text-transform: uppercase; }

.btn-secundario{
  background: var(--panel);
  color: var(--acento-deep);
  border: 1.5px solid var(--acento);
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
}
.btn-secundario:active{ background: color-mix(in srgb, var(--acento) 12%, #fff); }
.carrito-barra .btn-secundario{ flex: 1; }

#card-ser-parte .btn-primary{ margin-top: 0; }

/* ---------- Detalle de negocio: logo, redes, pestañas, categorías ---------- */
.card.neg-hero > .neg-logo{
  position: absolute;
  top: 14px; right: 14px;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: #fff center/cover no-repeat;
  border: 3px solid rgba(255,255,255,0.7);
  display: none;
}
.card.neg-hero.con-logo > .neg-logo{ display: block; }
.card.neg-hero.con-logo::after{ display: none; }

.neg-redes{ display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.card.neg-hero .red-btn{
  width: 42px; height: 42px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 50%; text-decoration: none;
}

#negdet-categorias{
  flex-wrap: nowrap; overflow-x: auto;
  padding: 2px 2px 12px; scrollbar-width: none;
}
#negdet-categorias::-webkit-scrollbar{ display: none; }
#negdet-categorias .chip{
  flex: 0 0 auto; min-width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 16px; font-size: 12.5px;
}
.cat-ic{ font-size: 24px; line-height: 1.1; }

.btn-reservar{
  background: var(--acento); color: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; flex-shrink: 0;
}
.btn-reservar:active{ background: var(--teal-deep); }
.btn-reservar:disabled{ background: #D5D5DB; }
#negdet-eventos-list .list-thumb{ width: 56px; height: 56px; border-radius: 12px; }

.pedido-cod{ font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: var(--acento-deep); margin-right: 4px; }

/* ---------- Admin: carruseles de tarjetas de color ---------- */
.admin-carrusel{
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.admin-carrusel::-webkit-scrollbar{ display: none; }
.admin-carrusel .chip{
  color: #fff; border: none; border-radius: 18px; min-height: 72px;
  padding: 12px 14px; text-align: left; display: flex; align-items: flex-end;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15);
  flex: 0 0 140px; scroll-snap-align: start;
}
.admin-carrusel .chip:active{ transform: scale(0.97); }
.admin-carrusel .chip:nth-child(4n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
.admin-carrusel .chip:nth-child(4n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
.admin-carrusel .chip:nth-child(4n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
.admin-carrusel .chip:nth-child(4n+4){ background: linear-gradient(135deg, #D9567E, #A5432F); }
.admin-carrusel .chip.active{ box-shadow: 0 0 0 3px var(--ink); }

/* Categorías de eventos en Explorar: mismo estilo que categorías de negocios y productos */
#explorar-cateven-list{
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
#explorar-cateven-list::-webkit-scrollbar{ display: none; }
#explorar-cateven-list .chip{
  color: #fff; border: none; border-radius: 18px; min-height: 72px;
  padding: 12px 14px; text-align: left; display: flex; align-items: flex-end;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15); flex: 0 0 140px; scroll-snap-align: start;
}
#explorar-cateven-list .chip:active{ transform: scale(0.97); }
#explorar-cateven-list .chip:nth-child(4n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
#explorar-cateven-list .chip:nth-child(4n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
#explorar-cateven-list .chip:nth-child(4n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
#explorar-cateven-list .chip:nth-child(4n+4){ background: linear-gradient(135deg, #D9567E, #A5432F); }

/* Banners de publicidad */
.banner-wrap{ position: relative; margin-bottom: 14px; }
.banner-track{
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 20px; box-shadow: 0 2px 10px rgba(36,28,61,0.06);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.banner-track::-webkit-scrollbar{ display: none; }
.banner-slide{
  position: relative; flex: 0 0 100%; aspect-ratio: 2 / 1; scroll-snap-align: start;
  background-size: cover; background-position: center; background-color: var(--line);
}
.banner-slide.clicable{ cursor: pointer; }
.banner-etiqueta{
  position: absolute; top: 10px; left: 10px; background: rgba(36,28,61,0.55);
  color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px;
}
.banner-texto{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff;
  background: linear-gradient(to top, rgba(36,28,61,0.75), rgba(36,28,61,0));
}
.banner-titulo{ font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 17px; font-weight: 600; }
.banner-sub{ font-size: 13px; opacity: 0.9; margin-top: 2px; }
.banner-dots{ display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banner-dots span{ width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.banner-dots span.on{ background: var(--acento); }

/* ---------- Íconos de marca en categorías (SVG por máscara: toman el color del texto) ---------- */
.cat-svg{
  display: inline-block; width: 28px; height: 28px; flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
#explorar-catneg-list .chip,
#explorar-catprod-list .chip,
#explorar-cateven-list .chip{
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; min-height: 96px;
}
#explorar-catneg-list .cat-svg,
#explorar-catprod-list .cat-svg,
#explorar-cateven-list .cat-svg{ width: 34px; height: 34px; }
#explorar-catneg-list .cat-ic,
#explorar-catprod-list .cat-ic,
#explorar-cateven-list .cat-ic{ font-size: 28px; line-height: 1; }
#explorar-catneg-list .cat-nombre,
#explorar-catprod-list .cat-nombre,
#explorar-cateven-list .cat-nombre{ line-height: 1.15; }
#negdet-categorias .cat-svg{ width: 26px; height: 26px; }

/* Colores de las tarjetas de categoría en Explorar: un color por sección (como la vista previa) */
#explorar-catneg-list .chip:nth-child(n){ background: linear-gradient(145deg, #C1122F, #7D0016); }
#explorar-catprod-list .chip:nth-child(n){ background: linear-gradient(145deg, #F0742E, #C0431A); }
#explorar-cateven-list .chip:nth-child(n){ background: linear-gradient(145deg, #8E1B4A, #521030); }


/* ---------- Color de acento por pantalla (la cabecera y lo global usan el rojo Domi) ---------- */
#view-negocio-detalle{ --acento: #C1122F; --acento-deep: #9B0E26; }
#view-producto-detalle{ --acento: #F0742E; --acento-deep: #C0431A; }
#view-evento-detalle{ --acento: #8E1B4A; --acento-deep: #701339; }

/* ---------- Tarjetas de categoría CON imagen (Explorar) ----------
   Imagen a toda la tarjeta. Mitad de arriba: se aclara hacia blanco con un toque del color (el ícono se ve).
   Mitad de abajo: color de la tarjeta en semitransparencia sobre la imagen. */
#explorar-catneg-list .chip{ --cat-rgb: 193,18,47;  --cat-dark: #7D0016; }
#explorar-catprod-list .chip{ --cat-rgb: 240,116,46; --cat-dark: #A8380F; }
#explorar-cateven-list .chip{ --cat-rgb: 142,27,74;  --cat-dark: #521030; }

.chip.con-img{ position: relative; overflow: hidden; isolation: isolate; }
.chip.con-img::before,
.chip.con-img::after{ content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chip.con-img::before{ background: var(--cat-img) center / cover no-repeat; }
.chip.con-img::after{
  background:
    linear-gradient(to bottom, rgba(var(--cat-rgb),0.55) 0%, rgba(var(--cat-rgb),0.7) 50%, rgba(var(--cat-rgb),0.92) 100%);
}
/* Ícono centrado en la mitad de arriba; nombre en la mitad de abajo */
#explorar-catneg-list .chip.con-img,
#explorar-catprod-list .chip.con-img,
#explorar-cateven-list .chip.con-img{
  display: grid; grid-template-rows: 1fr 1fr; justify-items: center; align-items: center;
  gap: 0; min-height: 120px; padding: 8px 10px;
}
.chip.con-img .cat-svg,
.chip.con-img .cat-ic{ color: #fff; }
.chip.con-img .cat-nombre{ color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }

/* ---------- Perfil del negocio CON imagen de fondo ----------
   Imagen a toda la tarjeta + capa roja semitransparente que se oscurece hacia abajo (sin blanco). */
.card.neg-hero.con-portada::before{
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(193,18,47,0.50) 0%,
      rgba(193,18,47,0.68) 40%,
      rgba(110,8,28,0.85) 75%,
      rgba(50,4,14,0.95) 100%),
    var(--neg-img) center / cover no-repeat;
}
.card.neg-hero.con-portada::after{ display: none; }  /* se oculta el emoji 🏪 decorativo */
.card.neg-hero.con-portada h2,
.card.neg-hero.con-portada .subtitle{ text-shadow: 0 1px 3px rgba(0,0,0,0.45); }

/* ---------- Perfil del negocio: botones de redes con íconos SVG de Domi ---------- */
.card.neg-hero .red-btn{ background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
.card.neg-hero .red-btn img{ width: 26px; height: 26px; display: block; }
.card.neg-hero .btn-qr{ display: inline-flex; align-items: center; gap: 8px; }
.card.neg-hero .btn-qr img{ width: 22px; height: 22px; display: block; }

/* ---------- Detalle de categoría: encabezado con imagen + cuadrícula ---------- */
.cat-hero{
  position: relative; overflow: hidden; isolation: isolate;
  height: 178px; border-radius: 22px; margin-bottom: 14px;
  background: linear-gradient(145deg, #C1122F, #7D0016);
  color: #fff; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(36,28,61,0.12);
}
.cat-hero.con-img::before{
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
}
.cat-hero::after{
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,10,0.45) 0%, rgba(20,6,10,0.55) 45%, rgba(20,6,10,0.88) 100%);
}
.cat-hero .back-btn{ color: rgba(255,255,255,0.92); padding: 0; margin: 0; }
.cat-hero-ic{ position: absolute; top: 10px; right: 14px; color: #fff; line-height: 1; }
.cat-hero-ic .cat-svg{ width: 40px; height: 40px; }
.cat-hero-ic .cat-ic{ font-size: 34px; }
.cat-hero-txt{ position: absolute; left: 16px; right: 16px; bottom: 14px; }
.cat-hero-tipo{ font-size: 12px; font-weight: 600; letter-spacing: 0.3px; opacity: 0.85; }
.cat-hero h2{
  margin: 0; color: #fff; font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.1;
}
.cat-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-grid .empty-state{ grid-column: 1 / -1; }
.grid-card{
  background: var(--panel); border-radius: 16px; padding: 8px;
  box-shadow: 0 2px 10px rgba(36,28,61,0.08); min-width: 0;
}
.grid-img{
  aspect-ratio: 4 / 3; border-radius: 12px; background: #ECE9F2 center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: #B9B3CC;
}
.grid-img .cat-svg{ width: 34px; height: 34px; }
.grid-img .cat-ic{ font-size: 30px; opacity: 0.55; }
.grid-name{ font-size: 14.5px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-meta{
  font-size: 12px; color: var(--ink-soft); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.grid-meta.precio{ color: var(--acento-deep); font-weight: 700; font-size: 13px; }

#evdet-hero h2{
  font-size: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Categorías del evento: tarjetas redondeadas con degradado + icono SVG */
.ev-dato > div{ min-width: 0; }
.ev-cats{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ev-cat{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 16px; color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.15;
  box-shadow: 0 3px 8px rgba(36,28,61,0.15);
}
.ev-cat .cat-svg{ width: 20px; height: 20px; }
.ev-cat .cat-ic{ font-size: 18px; line-height: 1; }
.ev-cat:nth-child(4n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
.ev-cat:nth-child(4n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
.ev-cat:nth-child(4n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
.ev-cat:nth-child(4n+4){ background: linear-gradient(135deg, #D9567E, #A5432F); }
.ev-cats.mini{ gap: 5px; margin-top: 6px; }
.ev-cats.mini .ev-cat{ padding: 4px 9px; border-radius: 12px; font-size: 11.5px; gap: 5px; box-shadow: none; }
.ev-cats.mini .ev-cat .cat-svg{ width: 13px; height: 13px; }
.ev-cats.mini .ev-cat .cat-ic{ font-size: 12px; }
/* ---------- Mi perfil: tarjeta superior con foto de fondo ---------- */
.perfil-hero{ margin-bottom: 14px; }
.perfil-hero-fecha{ position: absolute; top: 16px; left: 16px; right: 64px; font-size: 13px; font-weight: 600; opacity: 0.92; }
.perfil-hero-fecha::first-letter{ text-transform: uppercase; }
.perfil-hero-edit{
  position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.perfil-hero-edit svg{ width: 20px; height: 20px; }
.perfil-hero .cat-hero-txt h2{ font-size: 24px; }

/* ---------- Pedidos del cliente: lista clicable ---------- */
.pedido-row{ cursor: pointer; align-items: center; }
.pedido-row .list-thumb{ width: 52px; height: 52px; border-radius: 12px; }
.pedido-neg{ font-weight: 700; }

/* ---------- Detalle del pedido ---------- */
.card.ped-hero{
  position: relative; overflow: hidden; isolation: isolate; border: none;
  min-height: 150px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, var(--acento), var(--acento-deep));
  box-shadow: 0 6px 14px rgba(36,28,61,0.18);
}
.card.ped-hero.con-img::before{
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--ped-img) center / cover no-repeat;
}
.card.ped-hero::after{
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,10,0.5) 0%, rgba(20,6,10,0.78) 100%);
}
.card.ped-hero .back-btn{ color: rgba(255,255,255,0.9); padding: 0; margin: 0 0 26px; }
.ped-hero-row{ display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ped-hero-izq{ min-width: 0; }
.card.ped-hero h2{ color: #fff; font-size: 26px; font-weight: 700; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.ped-hero-fecha{ font-size: 13px; opacity: 0.9; margin-top: 4px; }
.ped-hero-total{ font-size: 30px; font-weight: 800; white-space: nowrap; line-height: 1; }
.card.ped-meta{ display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.ped-et{ font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.ped-id{ font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: var(--acento-deep); font-size: 15px; }
#peddet-items .list-thumb{ width: 56px; height: 56px; border-radius: 12px; }
.ped-sub{ font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* ================= MI NEGOCIO ================= */
.mn-hero h2{ padding-right: 48px; }
.mn-cab{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-cab h2{ margin: 0; }
.btn-primary.mn-add{ width: auto; margin: 0; padding: 8px 16px; font-size: 14px; }
.mn-metricas{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mn-met{ background: #F5F3F7; border-radius: 14px; padding: 12px; }
.mn-met-num{ font-size: 24px; font-weight: 800; color: var(--acento-deep); line-height: 1.1; }
.mn-met-et{ font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* Botones icono editar / eliminar */
.mn-acciones{ display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn{ width: 38px; height: 38px; padding: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon-btn svg{ width: 19px; height: 19px; }
.icon-edit{ background: #E4E0F6; color: #5A4FB0; }
.icon-del{ background: #F6E4DF; color: #C0153A; }

/* Carrusel de categorías (mismo estilo que Explorar → Productos, con capa semitransparente sobre la imagen) */
.mn-cats{
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 8px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mn-cats::-webkit-scrollbar{ display: none; }
.mn-cats .chip{
  --cat-rgb: 240,116,46;
  flex: 0 0 140px; min-height: 110px; padding: 10px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  color: #fff; border: none; border-radius: 18px;
  background: linear-gradient(145deg, #F0742E, #C0431A);
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15);
}
.mn-cats .chip:active{ transform: scale(0.97); }
.mn-cats .chip.con-img{ display: grid; grid-template-rows: 1fr 1fr; justify-items: center; align-items: center; gap: 0; min-height: 120px; padding: 8px 10px; }
.mn-cats .cat-svg{ width: 34px; height: 34px; color: #fff; }
.mn-cats .cat-ic{ font-size: 28px; line-height: 1; color: #fff; }
.mn-cats .cat-txt{ display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mn-cats .cat-nombre{ line-height: 1.15; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }
.mn-cats .cat-cuenta{ font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }
.mn-cats .chip.activa{ box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--acento-deep); }

/* Lista de productos */
.mn-grupo{ font-size: 15px; font-weight: 700; color: var(--acento-deep); margin: 14px 0 2px; display: flex; align-items: center; gap: 8px; }
.mn-cuenta{ font-size: 11.5px; font-weight: 700; background: #F5F3F7; color: var(--ink-soft); border-radius: 999px; padding: 2px 9px; }
.mn-prod-row .list-thumb{ width: 56px; height: 56px; border-radius: 12px; background-size: cover; background-position: center; }
.mnp-nombre{ font-weight: 700; color: var(--ink); }
.mnp-linea{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.mnp-cat{ font-size: 11.5px; font-weight: 600; background: #E4E0F6; color: #5A4FB0; border-radius: 999px; padding: 3px 10px; }
.mnp-precio{ font-size: 15px; font-weight: 800; color: var(--teal-deep); }

/* Lista de eventos */
.mn-ev-row{ align-items: flex-start; }
.mn-ev-titulo{ font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.mn-ev-fecha{ font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.mn-ev-iconos{ display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.mn-ev-ic{ width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mn-ev-ic:nth-child(3n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
.mn-ev-ic:nth-child(3n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
.mn-ev-ic:nth-child(3n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
.mn-ev-ic .cat-svg{ width: 20px; height: 20px; }
.mn-ev-ic .cat-ic{ font-size: 18px; }
.mn-ev-row.finalizado .mn-ev-titulo{ color: var(--ink-soft); }

/* Pedidos del negocio */
.mn-ped-row{
  flex-direction: column; align-items: stretch; gap: 8px; padding: 14px;
  border: 1px solid var(--line); border-radius: 16px; margin-top: 10px; background: #fff;
}
.mn-ped-row:last-child{ border-bottom: 1px solid var(--line); }
.mn-ped-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mn-ped-cliente{ font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.mn-ped-total{ font-size: 22px; font-weight: 800; color: var(--acento-deep); white-space: nowrap; }
.mn-ped-wa{ color: var(--teal-deep); font-weight: 600; }
.mn-ped-mid{ display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-ped-acc{ display: flex; gap: 8px; align-items: center; }
.mn-ped-acc select{ flex: 1; width: auto; }
.mn-ped-acc .btn-secundario{ padding: 9px 14px; font-size: 14px; white-space: nowrap; }
.mn-urg{ display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.mn-urg b{ font-weight: 700; }
.mn-urg svg{ width: 20px; height: 20px; }
.mn-urg-et{ font-weight: 700; color: var(--ink-soft); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.4px; }

/* Hoja inferior: detalle del pedido */
.sheet-pedido{ max-height: 88vh; overflow-y: auto; animation: sheetUp 0.25s ease-out; }
@keyframes sheetUp{ from{ transform: translateY(100%); } to{ transform: translateY(0); } }
.sheet-handle{ width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: -8px auto 12px; }
.sheet-cab{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-cab h2{ font-size: 24px; font-weight: 800; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.sheet-total{ font-size: 26px; font-weight: 800; color: var(--acento-deep); white-space: nowrap; }
.sheet-datos{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet-estado{ grid-column: span 2; }
.sheet-estado .badge{ margin-right: 8px; }
.sheet-estado select{ width: auto; margin-top: 6px; }
.sheet-total-fin{ display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: #F5F3F7; }
.sheet-total-fin span{ font-weight: 600; color: var(--ink-soft); }
.sheet-total-fin strong{ font-size: 28px; font-weight: 800; color: var(--acento-deep); }
#pn-items .list-thumb{ width: 52px; height: 52px; border-radius: 12px; background-size: cover; background-position: center; }

/* ---------- Admin: Avanzado ---------- */
.av-menu{ display: grid; gap: 10px; margin-top: 10px; }
.av-opcion{ display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.av-opcion span{ font-size: 22px; }
.av-opcion:active{ background: #F5F3F7; }
.av-item{ border-bottom: 1px solid var(--line); }
.av-item:last-child{ border-bottom: none; }
.av-cab{ display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: none; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.av-card-titulo{ flex: 1; min-width: 0; font-size: 15px; font-weight: 700; word-break: break-word; }
.av-flecha{ flex-shrink: 0; color: var(--ink-soft); transition: transform .2s; }
.av-item.abierto .av-flecha{ transform: rotate(180deg); }
.av-cuerpo{ display: none; margin: 0 0 12px; padding: 4px 12px; background: #F5F3F7; border-radius: var(--radius); }
.av-item.abierto .av-cuerpo{ display: block; }
.av-fila{ display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.av-fila:first-child{ border-top: none; }
.av-fila span{ color: var(--ink-soft); }
.av-fila b{ text-align: right; word-break: break-word; }

/* ================= ADMIN: panel de tarjetas y formato de categorías ================= */
.admin-tiles{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.admin-tile{
  position: relative; overflow: hidden; text-align: left; color: #fff; border: none;
  border-radius: 20px; padding: 14px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15);
}
.admin-tile:active{ transform: scale(0.98); }
.admin-tile-ic{ position: absolute; top: 10px; right: 12px; font-size: 38px; opacity: 0.35; line-height: 1; }
.admin-tile-t{ font-size: 16px; font-weight: 600; line-height: 1.15; }
.admin-tile:nth-child(4n+1){ background: linear-gradient(135deg, #F0993F, #C96A1F); }
.admin-tile:nth-child(4n+2){ background: linear-gradient(135deg, #22968C, #145A54); }
.admin-tile:nth-child(4n+3){ background: linear-gradient(135deg, #7A5CE0, #4B3A9E); }
.admin-tile:nth-child(4n+4){ background: linear-gradient(135deg, #D9567E, #A5432F); }

/* Carrusel de tarjetas de color con ícono y título (mismo formato que las categorías de Explorar) */
.cat-carrusel{
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-carrusel::-webkit-scrollbar{ display: none; }
.cat-carrusel .empty-state{ flex: 1 0 100%; }
.cat-carrusel .chip{
  color: #fff; border: none; border-radius: 18px; min-height: 96px; padding: 12px 14px;
  flex: 0 0 140px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(36,28,61,0.15);
}
.cat-carrusel .chip:active{ transform: scale(0.97); }
.cat-carrusel.t-neg .chip{ background: linear-gradient(145deg, #C1122F, #7D0016); --cat-rgb: 193,18,47; --cat-dark: #7D0016; }
.cat-carrusel.t-prod .chip{ background: linear-gradient(145deg, #F0742E, #C0431A); --cat-rgb: 240,116,46; --cat-dark: #A8380F; }
.cat-carrusel.t-ev .chip{ background: linear-gradient(145deg, #8E1B4A, #521030); --cat-rgb: 142,27,74; --cat-dark: #521030; }
.cat-carrusel .cat-svg{ width: 34px; height: 34px; }
.cat-carrusel .cat-ic{ font-size: 28px; line-height: 1; }
.cat-carrusel .chip:not(.con-img) .cat-ic:empty{ display: none; }
.cat-carrusel .cat-nombre{ line-height: 1.15; overflow-wrap: anywhere; }
.cat-carrusel .chip.con-img{
  display: grid; grid-template-rows: 1fr 1fr; justify-items: center; align-items: center;
  gap: 0; min-height: 120px; padding: 8px 10px;
}
.cat-carrusel .chip.active{ color: #fff; box-shadow: 0 0 0 3px var(--ink); }

/* Admin > categorías de eventos: fila que despliega sus eventos */
.cat-fila{ cursor: pointer; }
.cat-fila.abierta{ background: var(--bg); border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.cat-eventos{ margin: 0 0 8px 14px; padding-left: 10px; border-left: 3px solid #8E1B4A; }

/* ---------- Botón ojo + visor de imagen reutilizable ---------- */
.btn-ojo{
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-ojo[hidden]{ display: none; }
.btn-ojo svg{ width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#evdet-hero .cat-hero-txt{ right: 64px; }  /* deja libre el ojo */
.visor-bg{
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(10,4,6,0.78);
}
.visor-bg.active{ display: flex; }
.visor-card{
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 6; width: min(94vw, calc(90vh * 5 / 6), 500px);
  border-radius: 22px; background: #2A1018 center / cover no-repeat; color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.visor-card::after{
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,10,0.45) 0%, rgba(20,6,10,0) 22%, rgba(20,6,10,0) 50%, rgba(20,6,10,0.92) 100%);
}
.visor-card > *{ position: relative; z-index: 1; }
.visor-card .visor-volver{ position: absolute; top: 14px; left: 16px; color: #fff; padding: 0; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.visor-txt{ position: absolute; left: 18px; right: 18px; bottom: 18px; }
.visor-titulo{ margin: 0; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,0.5); overflow-wrap: anywhere; }
.visor-sub{ font-size: 15px; font-weight: 600; margin-top: 6px; opacity: 0.95; }
.visor-fecha{ font-size: 12.5px; margin-top: 4px; opacity: 0.8; }

/* ---------- Detalle de producto: galería 1:1 con imagen a sangre ---------- */
.card.prod-card{ padding: 0; overflow: hidden; }
.prod-galeria{ position: relative; aspect-ratio: 1 / 1; isolation: isolate; background: #2A1018; color: #fff; }
.prod-slides{
  position: absolute; inset: 0; display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.prod-slides::-webkit-scrollbar{ display: none; }
.prod-slide{ flex: 0 0 100%; scroll-snap-align: center; background: #2A1018 center / cover no-repeat; }
.prod-slide.sin-imagen{ background: linear-gradient(145deg, #C1122F, #7D0016); }
.prod-galeria::after{
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,10,0.5) 0%, rgba(20,6,10,0) 25%, rgba(20,6,10,0) 50%, rgba(20,6,10,0.88) 100%);
}
.prod-galeria > :not(.prod-slides){ position: absolute; z-index: 2; pointer-events: none; }
.prod-galeria .back-btn{ pointer-events: auto; color: #fff; padding: 0; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.prod-galeria .pg-volver{ top: 14px; left: 16px; }
.prod-galeria .cat-hero-ic{ filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.pg-txt{ left: 18px; right: 18px; bottom: 34px; }
.prod-card h2.pg-nombre{ margin: 0; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,0.5); overflow-wrap: anywhere; }
.pg-neg{ font-size: 15px; font-weight: 600; margin-top: 5px; opacity: 0.95; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.pg-dots{ left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.pg-dots i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.2s; }
.pg-dots i.on{ background: #fff; width: 18px; border-radius: 4px; }
.prod-cuerpo{ padding: 16px 18px 18px; }
.prod-card .btn-qr{ display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.prod-card .btn-qr img{ width: 22px; height: 22px; display: block; }


/* ---------- Subcategorías de producto (encabezados de grupo; íconos blanco y negro por máscara) ---------- */
.sub-grupo{ display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sub-grupo:first-child{ margin-top: 4px; }
.sub-grupo .cat-svg{ width: 22px; height: 22px; }
.cat-grid .sub-grupo{ grid-column: 1 / -1; margin: 8px 0 0; }


/* ---------- Carrusel horizontal de productos por subcategoría (sin barra visible) ---------- */
.sub-carrusel{
  grid-column: 1 / -1; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
}
.sub-carrusel::-webkit-scrollbar{ display: none; }
.sub-carrusel .grid-card{ flex: 0 0 44%; min-width: 140px; max-width: 200px; scroll-snap-align: start; }

/* ---------- Botón "añadir al carrito" con el logo del negocio (tarjeta de producto) ---------- */
.grid-pie{ display: flex; align-items: flex-end; gap: 8px; }
.grid-txt{ flex: 1; min-width: 0; }
.add-cart-btn{
  position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--acento); background: #ECE9F2 center / cover no-repeat; padding: 0; margin-bottom: 2px;
}
.add-cart-btn::after{
  content: '+'; position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--acento); color: #fff; font-size: 14px; font-weight: 700; line-height: 17px; text-align: center;
}
.add-cart-btn:active{ transform: scale(0.92); }
.add-badge{
  position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}

/* ---------- Mi carrito: menú inferior y botón de Mi perfil ---------- */
nav.tabbar .ic{ position: relative; }
.tab-badge{
  position: absolute; top: -6px; right: -12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #fff; color: var(--rojo-deep); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}
.tile-carrito{ grid-column: span 2; min-height: 84px; background: linear-gradient(135deg, #F0993F, #C96A1F); }
.tile-carrito .tile-ic{ font-size: 40px; top: 10px; }


/* ---------- Ícono de subcategoría (imagen del admin: SVG subido o enlace externo) ---------- */
.sub-grupo .sub-ico{ width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }


/* Pestañas de pedidos por estado (carrusel deslizante) */
.ped-tabs{
  position: relative;
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 12px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ped-tabs::-webkit-scrollbar{ display: none; }
.ped-tab{
  flex: 0 0 96px; scroll-snap-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 78px; padding: 10px 6px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(36,28,61,0.06); cursor: pointer;
}
.ped-tab svg{ width: 24px; height: 24px; }
.ped-tab:active{ transform: scale(0.97); }
.ped-tab.activa{ border-color: var(--acento); color: var(--acento-deep); box-shadow: 0 0 0 1px var(--acento); font-weight: 700; }
.ped-tab-n{
  position: absolute; top: 6px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F5F3F7; color: var(--ink-soft); border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1;
}
.ped-tab.activa .ped-tab-n{ background: var(--acento); color: #fff; }


/* ---------- Revelado al hacer scroll (fade-in up) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.visto{ opacity: 1; transform: none; }
.reveal.listo{ will-change: auto; transition: transform .2s ease; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- Tarjetas héroe de eventos (imagen completa + panel de cristal) ---------- */
#explorar-eventos-list .ev-hero, #explorar-busqueda .ev-hero{
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #7A5CE0, #4B3A9E) center / cover no-repeat;  /* respaldo sin imagen */
  box-shadow: 0 10px 24px rgba(31,31,41,.18), 0 2px 6px rgba(31,31,41,.10);
  scroll-snap-align: start;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
#explorar-eventos-list .ev-hero::before, #explorar-busqueda .ev-hero::before{   /* degradado oscuro: asegura que el texto se lea con cualquier imagen */
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(10,10,20,.80) 0%, rgba(10,10,20,.20) 55%, rgba(10,10,20,0) 100%);
}
#explorar-eventos-list .ev-hero:active, #explorar-busqueda .ev-hero:active{ transform: scale(.97); }
#explorar-eventos-list .ev-hero:focus-visible, #explorar-busqueda .ev-hero:focus-visible{ outline: 3px solid var(--acento); outline-offset: 2px; }
.ev-hero-glass{
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  padding: 12px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .ev-hero-glass{ background: rgba(20,20,35,.66); }   /* sin blur: fondo oscuro para no perder legibilidad */
}
.ev-hero-titulo{
  font-size: 15px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-hero-meta{
  margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-hero .ev-cats.mini{ flex-wrap: nowrap; overflow: hidden; }
.ev-hero .ev-cat:nth-child(n+3){ display: none; }   /* máx. 2 chips para que el panel no crezca */


/* ---------- Carrusel de categorías (Explorar): chips B/N arriba + tarjetas a todo el ancho ---------- */
:is(#explorar-catneg-list, #explorar-catprod-list, #explorar-cateven-list).ecat-host{
  display: block; overflow: visible; padding: 0; scroll-snap-type: none;
}
#explorar-catneg-list.ecat-host{  --cat-rgb: 193,18,47;  --cat-dark: #7D0016; }
#explorar-catprod-list.ecat-host{ --cat-rgb: 240,116,46; --cat-dark: #A8380F; }
#explorar-cateven-list.ecat-host{ --cat-rgb: 142,27,74;  --cat-dark: #521030; }

.ecat-bw{
  position: relative;
  display: flex; gap: 8px;
  overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ecat-bw::-webkit-scrollbar{ display: none; }
.ecat-bw-chip{
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 72px; padding: 10px 14px;
  background: #fff; color: #000;
  border: 1px solid var(--line); border-radius: 14px;
  font-size: 12px; line-height: 1.15; white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ecat-bw-chip:active{ background: #F3F3F6; }
.ecat-bw-chip.on{ border-color: #000; box-shadow: inset 0 0 0 1px #000; }
:is(#explorar-catneg-list, #explorar-catprod-list, #explorar-cateven-list) .ecat-bw-chip .cat-svg{ width: 22px; height: 22px; }
:is(#explorar-catneg-list, #explorar-catprod-list, #explorar-cateven-list) .ecat-bw-chip .cat-ic{ font-size: 20px; filter: grayscale(1); }

.ecat-vp{
  display: grid;                 /* todas las tarjetas ocupan el mismo lugar; se ve una por vez con fundido */
  border-radius: 18px; overflow: hidden;
  touch-action: pan-y;           /* el deslizamiento horizontal lo maneja el JS, el vertical sigue siendo scroll */
}
.ecat-slide{
  grid-area: 1 / 1;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 114px; padding: 14px 16px;     /* alto +50 % (antes 76 px) */
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  color: #fff; text-align: left;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 16px; font-weight: 600;
  background: linear-gradient(145deg, rgb(var(--cat-rgb)), var(--cat-dark));   /* respaldo sin imagen */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.ecat-slide.on{
  opacity: 1; visibility: visible; pointer-events: auto; z-index: 1;
  transition: opacity .9s ease, visibility 0s;
}
.ecat-slide.ecat-img::before{
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--cat-img) center / cover no-repeat;
}
.ecat-slide::after{   /* capa oscura: resalta el título con cualquier imagen */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.40) 60%, rgba(0,0,0,.24) 100%);
}
.ecat-slide:active{ filter: brightness(.92); }
.ecat-nombre{
  flex: 1 1 auto; min-width: 0; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.ecat-flecha{ flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce){
  .ecat-slide, .ecat-slide.on{ transition: none; }
}


/* ---------- Menú hamburguesa ---------- */
.menu-btn{ background: transparent; border: none; color: #fff; padding: 8px; margin-right: -6px; cursor: pointer; display: flex; border-radius: 12px; }
.menu-btn svg{ width: 26px; height: 26px; }
.menu-bg{ position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 80; }
.menu-bg.active{ opacity: 1; pointer-events: auto; }
.menu-panel{
  position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 320px);
  background: var(--bg); box-shadow: -8px 0 28px rgba(0,0,0,0.18);
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
  z-index: 81; display: flex; flex-direction: column; padding: 18px 16px; overflow-y: auto;
}
.menu-panel.active{ transform: none; visibility: visible; transition: transform .28s ease; }
.menu-cab{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 18px; font-weight: 800; }
.menu-cerrar{ background: transparent; border: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; padding: 6px 8px; }
.menu-item{
  display: block; width: 100%; padding: 14px 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700;
  text-align: left; text-decoration: none; cursor: pointer;
}
.menu-item:active{ background: var(--line); }
.menu-spacer{ flex: 1; min-height: 20px; }
.menu-logout{ color: var(--red); margin-bottom: 0; }
@media (prefers-reduced-motion: reduce){
  .menu-bg, .menu-panel, .menu-panel.active{ transition: none; }
}


/* ---------- Pantalla de datos para pedir (estilo Rappi) ---------- */
.datos-wrap{ padding: 22px 18px 18px; }
.datos-titulo{ margin: 0 0 6px; font-size: 30px; line-height: 1.15; font-weight: 800; color: #000; }
.datos-sub{ margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.datos-label{ display: block; margin: 24px 0 8px; font-size: 20px; font-weight: 800; color: #000; }
.datos-input{
  width: 100%; height: 54px; padding: 0 14px;
  font-family: inherit; font-size: 17px; color: #000;
  background: #F6F6F8; border: 2px solid var(--line); border-radius: 14px;
}
.datos-input:focus{ outline: none; border-color: #000; background: #fff; }
.datos-tel{ display: flex; align-items: stretch; gap: 8px; }
.datos-tel .datos-input{ flex: 1; }
.datos-prefijo{
  display: flex; align-items: center; padding: 0 14px; height: 54px;
  font-size: 17px; font-weight: 700; color: #000;
  background: #F6F6F8; border: 2px solid var(--line); border-radius: 14px;
}
.datos-guardar{
  position: sticky; bottom: 14px; display: block; width: 100%; height: 58px; margin-top: 34px;
  background: var(--rojo); color: #fff; font-size: 18px; font-weight: 800;
  border-radius: 16px; box-shadow: 0 6px 18px rgba(155,14,38,0.35);
}
.datos-guardar:active{ background: var(--rojo-deep); }
.datos-guardar:disabled{ background: #D5D5DB; box-shadow: none; }
/* Mientras se piden los datos no se muestra el menú inferior; en el registro tampoco "Ser Domi" */
body.datos-activo nav.tabbar{ display: none !important; }
body.datos-registro #btn-ser-domi{ display: none !important; }


/* ---------- Mi negocio: botones en 2 columnas ---------- */
.mn-tiles .tile{ min-height: 118px; }
.mn-tiles .tile-titulo{ font-size: 19px; line-height: 1.15; }
.mn-tiles .tile-ancho{ grid-column: span 2; }
.tile-dorado{ background: linear-gradient(135deg, #E0A526, #9A6A08); }
.tile-azul{ background: linear-gradient(135deg, #3B82C4, #1D4E80); }

/* ---------- Interruptor ---------- */
.switch-fila{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.switch-fila label{ margin: 0; flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.switch{ position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch input{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-pista{ position: absolute; inset: 0; background: #CFCFD6; border-radius: 30px; transition: background .2s ease; }
.switch-pista::after{ content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform .2s ease; }
.switch input:checked + .switch-pista{ background: var(--rojo); }
.switch input:checked + .switch-pista::after{ transform: translateX(22px); }
.switch input:focus-visible + .switch-pista{ outline: 2px solid #000; outline-offset: 2px; }

/* ---------- Mis anuncios ---------- */
.anu-card{ border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; margin-top: 14px; }
.anu-img{ position: relative; aspect-ratio: 16 / 9; background: #EEEDF2 center / cover no-repeat; }
.anu-badge{ position: absolute; top: 10px; left: 10px; }
.anu-mas{ position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.anu-thumbs{ display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.anu-thumb{ width: 54px; height: 36px; border-radius: 8px; background: #EEEDF2 center / cover no-repeat; flex: none; }
.anu-cuerpo{ padding: 12px 14px 14px; }
.anu-titulo{ font-size: 17px; font-weight: 800; color: var(--ink); }
.anu-texto{ font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.anu-datos{ margin-top: 10px; display: grid; gap: 6px; }
.anu-dato{ display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.anu-dato span:first-child{ color: var(--ink-soft); }
.anu-dato span:last-child{ font-weight: 700; text-align: right; }
.anu-met{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.anu-met div{ background: #F5F3F7; border-radius: 12px; padding: 10px 6px; text-align: center; }
.anu-met b{ display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.anu-met small{ font-size: 11px; color: var(--ink-soft); }
.anu-met .anu-clics b{ color: var(--rojo-deep); }

/* ---------- Métricas avanzadas (gráficos) ---------- */
.mn-rango{ display: flex; gap: 8px; margin: 12px 0; }
.rango-btn{ flex: 1; padding: 9px 0; border-radius: 12px; background: #F0EEF3; color: var(--ink); font-weight: 700; font-size: 13px; }
.rango-btn.active{ background: var(--rojo); color: #fff; }
.graf-titulo{ margin: 22px 0 2px; font-size: 16px; font-weight: 800; color: #000; }
.graf-total{ font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.graf-svg{ width: 100%; height: auto; display: block; }
.graf-eje{ fill: var(--ink-soft); font-size: 10px; }
.graf-grid{ stroke: var(--line); stroke-width: 1; }
.graf-leyenda{ display: flex; gap: 14px; font-size: 12px; margin-bottom: 4px; }
.graf-leyenda i{ display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.graf-fila{ display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.graf-fila-et{ width: 92px; flex: none; }
.graf-fila-pista{ flex: 1; height: 14px; background: #F0EEF3; border-radius: 8px; overflow: hidden; }
.graf-fila-relleno{ height: 100%; border-radius: 8px; }
.graf-fila-num{ width: 34px; text-align: right; font-weight: 800; }
.graf-tabla-fila{ display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.graf-tabla-fila span:first-child{ flex: 1; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }


/* =====================================================================
   PASO 1 · Reglas globales (más limpio, estilo app moderna)
   Solo valores nuevos: sombras suaves, tarjetas sin borde, transición entre
   pantallas, esqueletos de carga y respuesta al tocar. Todo respeta
   prefers-reduced-motion.
   ===================================================================== */
:root{
  --sombra-sm: 0 1px 2px rgba(20,20,35,.05), 0 2px 8px rgba(20,20,35,.05);
  --sombra-md: 0 1px 3px rgba(20,20,35,.05), 0 10px 28px rgba(20,20,35,.09);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Tarjetas: sin borde, la separación la da una sombra suave */
.card{ border: none; box-shadow: var(--sombra-md); }

/* Entrada suave al cambiar de pantalla (solo opacidad y solo mientras dura: no deja capas ni rompe elementos fijos) */
@keyframes vistaEntra{ from{ opacity: 0; } to{ opacity: 1; } }
.view.active{ animation: vistaEntra .22s var(--ease) backwards; }

/* Esqueletos de carga (reemplazan el texto "Cargando…") */
@keyframes skBrillo{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }
.sk{
  border-radius: 20px;
  background: linear-gradient(100deg, #EEEEF2 30%, #F8F8FA 50%, #EEEEF2 70%);
  background-size: 200% 100%;
  animation: skBrillo 1.4s linear infinite;
}
.sk-ev{ flex: 0 0 min(68vw, 250px); aspect-ratio: 4 / 5; }
.sk-neg{ width: 100%; height: 236px; }
.sk-cat{ width: 100%; height: 114px; }

/* Respuesta al tocar botones */
.btn-primary, .btn-secundario{ transition: transform .12s var(--ease), background-color .15s; }
.btn-primary:active:not(:disabled), .btn-secundario:active{ transform: scale(.98); }

/* Foco visible solo con teclado */
:where(button, a, [role="button"]):focus-visible{ outline: 3px solid rgba(193,18,47,.45); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .view.active{ animation: none; }
  .sk{ animation: none; }
  .btn-primary, .btn-secundario{ transition: none; }
}


/* =====================================================================
   PASO 2 · Explorar como feed: buscador, pestañas, eventos y negocios
   ===================================================================== */
#view-explorar .saludo{ margin: 4px 2px 10px; }

/* Buscador + pestañas, fijos arriba al hacer scroll */
.exp-sticky{
  position: sticky; top: 0; z-index: 15;
  margin: 0 -16px 18px; padding: 8px 16px 0;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
.exp-buscar{
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 12px 0 14px;
  border-radius: 16px; background: #F1F1F4; color: var(--ink-soft);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.exp-buscar:focus-within{ background: #fff; color: var(--acento); box-shadow: 0 0 0 2px var(--acento), var(--sombra-sm); }
.exp-buscar svg{ width: 20px; height: 20px; flex: 0 0 auto; }
.exp-buscar input{
  flex: 1; min-width: 0; width: auto; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; outline: none;
  font-size: 16px;   /* 16 px evita que el iPhone haga zoom al tocar el campo */
  color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.exp-buscar input:focus{ outline: none; border: 0; }
.exp-buscar input::placeholder{ color: var(--ink-soft); opacity: .85; }
.exp-buscar input::-webkit-search-cancel-button,
.exp-buscar input::-webkit-search-decoration{ -webkit-appearance: none; appearance: none; display: none; }
.exp-buscar-x{
  flex: 0 0 auto; width: 26px; height: 26px; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: #CFCFD8; color: #fff; font-size: 12px; line-height: 1;
}
.exp-buscar-x[hidden]{ display: none; }

.exp-tabs{ display: flex; gap: 22px; margin-top: 6px; border-bottom: 1px solid var(--line); }
.exp-tabs button{
  position: relative; padding: 12px 2px 11px;
  background: transparent; color: var(--ink-soft);
  font-size: 15px; font-weight: 700;
  transition: color .2s;
}
.exp-tabs button.on{ color: var(--ink); }
.exp-tabs button::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--acento);
  transform: scaleX(0); transition: transform .28s var(--ease);
}
.exp-tabs button.on::after{ transform: scaleX(1); }

/* Secciones sin caja: título grande y el contenido directo sobre el fondo */
.exp-sec{ margin: 0 0 28px; }
.exp-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.exp-tit{ margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.exp-sub{ font-size: 12.5px; color: var(--ink-soft); text-align: right; }

/* Pestañas: "Comer" oculta los planes y "Planes" oculta lo de comer */
#view-explorar[data-filtro="comer"] .exp-sec[data-grupo="planes"],
#view-explorar[data-filtro="planes"] .exp-sec[data-grupo="comer"]{ display: none; }
/* Buscando: se ocultan categorías y banners; las secciones sin coincidencias también */
#view-explorar .exp-sec.sin-coincidencias{ display: none; }
#view-explorar.buscando .exp-sec,
#view-explorar.buscando .banner-wrap{ display: none !important; }   /* al buscar solo se ven los resultados */
.ev-hero[hidden], .neg-card[hidden]{ display: none !important; }

.exp-vacio{ display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 42px 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.exp-vacio[hidden]{ display: none; }
.exp-vacio strong{ font-size: 16px; color: var(--ink); }
.exp-vacio-ic{ font-size: 34px; }

/* Eventos: carrusel que llega hasta el borde de la pantalla */
#explorar-eventos-list{ gap: 14px; margin: 0 -16px; padding: 4px 16px 18px; scroll-padding-left: 16px; }
#explorar-eventos-list .ev-hero, #explorar-busqueda .ev-hero{ flex: 0 0 min(68vw, 250px); }
#explorar-eventos-list .empty-state{ flex: 1; }
.ev-hero-fecha{
  position: absolute; top: 10px; left: 10px; z-index: 1;
  min-width: 46px; padding: 7px 9px 6px; border-radius: 14px;
  background: #fff; color: var(--ink); text-align: center; line-height: 1;
  box-shadow: var(--sombra-sm);
}
.ev-hero-fecha b{ display: block; font-size: 19px; font-weight: 800; }
.ev-hero-fecha span{ display: block; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--rojo); }

/* Negocios: tarjetas grandes con foto (portada), logo y datos */
/* Carrusel de negocios (Todo): la tarjeta siguiente asoma por el borde derecho */
#explorar-negocios-list{
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 18px; scroll-padding-left: 16px;
}
#explorar-negocios-list::-webkit-scrollbar{ display: none; }
#explorar-negocios-list > .neg-card,
#explorar-negocios-list > .sk{ flex: 0 0 min(80vw, 320px); scroll-snap-align: start; }
#explorar-negocios-list .empty-state{ flex: 1; }
.neg-card{
  position: relative; overflow: hidden;
  background: #fff; border-radius: 22px; box-shadow: var(--sombra-md);
  cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.neg-card:active{ transform: scale(.985); }
.neg-card:focus-visible{ outline: 3px solid var(--acento); outline-offset: 2px; }
.neg-card-img{
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #C1122F, #7D0016) center / cover no-repeat;   /* respaldo sin portada */
}
.neg-card-img.con-img::after{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,20,.30), rgba(10,10,20,0) 45%);
}
.neg-card-ev{
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 700;
  box-shadow: var(--sombra-sm);
}
.neg-card-ev[hidden]{ display: none; }
.neg-card-wa{
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: var(--sombra-sm);
  transition: transform .15s var(--ease);
}
.neg-card-wa:active{ transform: scale(.92); }
.neg-card-wa img{ width: 22px; height: 22px; display: block; }
.neg-card-body{ display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 14px; }
.neg-card-logo{
  position: relative; z-index: 2; flex: 0 0 auto;
  width: 54px; height: 54px; margin-top: -34px;
  border-radius: 50%; border: 2px solid #fff;
  background: #F1F1F4 center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line), var(--sombra-sm);
}
.neg-card-txt{ flex: 1; min-width: 0; }
.neg-card-nombre{ font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neg-card-meta{ margin-top: 3px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (prefers-reduced-motion: reduce){
  .neg-card, .neg-card-wa, .exp-tabs button::after, .exp-buscar{ transition: none; }
}


/* =====================================================================
   PASO 3 · Detalle de negocio: cabecera a todo el ancho, pestañas y
   categorías fijas, filas con foto a la derecha y barra de carrito flotante
   ===================================================================== */

/* Cabecera: la foto se ve más (capa oscura neutra en vez de roja) y el título destaca */
.card.neg-hero{
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 250px; padding: 14px 18px 18px;
  margin: -16px -16px 14px;
  border-radius: 0 0 28px 28px;
  box-shadow: none;
}
.card.neg-hero .back-btn{
  margin: 0 0 auto; padding: 8px 14px;
  border-radius: 999px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card.neg-hero h2{ margin-top: 14px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.card.neg-hero.con-portada::before{
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.38) 0%,
      rgba(0,0,0,.06) 32%,
      rgba(0,0,0,.30) 58%,
      rgba(12,4,7,.88) 100%),
    var(--neg-img) center / cover no-repeat;
}

/* Pestañas fijas arriba, con el mismo subrayado animado de Explorar */
.neg-sticky{
  position: sticky; top: 0; z-index: 15;
  margin: 0 -16px 4px; padding: 0 16px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
#negdet-tabs{ display: flex; flex-wrap: nowrap; gap: 22px; border-bottom: 1px solid var(--line); }
#negdet-tabs .chip{
  position: relative; display: flex; align-items: center;
  height: 48px; padding: 0 2px;
  background: transparent; border: 0; border-radius: 0;
  font-size: 15px; font-weight: 700; color: var(--ink-soft);
  transition: color .2s;
}
#negdet-tabs .chip:active{ background: transparent; }
#negdet-tabs .chip.active{ background: transparent; color: var(--ink); }
#negdet-tabs .chip::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--acento);
  transform: scaleX(0); transition: transform .28s var(--ease);
}
#negdet-tabs .chip.active::after{ transform: scaleX(1); }

/* Paneles sin caja */
.neg-panel{ margin: 0 0 14px; }

/* Categorías de productos: franja fija debajo de las pestañas, en píldoras compactas */
#negdet-categorias{
  position: sticky; top: 49px; z-index: 14;
  margin: 0 -16px; padding: 10px 16px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
#negdet-categorias:empty{ display: none; }
#negdet-categorias .chip{
  flex-direction: row; min-width: 0; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
}
#negdet-categorias .cat-svg{ width: 18px; height: 18px; }
#negdet-categorias .cat-ic{ font-size: 16px; }

/* Productos: texto a la izquierda, foto a la derecha y el "+" sobre la foto */
#negdet-productos-list .list-row{ align-items: flex-start; gap: 14px; padding: 16px 0; }
#negdet-productos-list .list-info{ padding-top: 2px; padding-right: 8px; }
#negdet-productos-list .list-name{ font-size: 16px; font-weight: 700; line-height: 1.25; }
#negdet-productos-list .list-meta{ margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.list-media{ position: relative; flex: 0 0 92px; width: 92px; height: 92px; }
#negdet-productos-list .list-media .list-thumb{ width: 100%; height: 100%; border-radius: 16px; }
#negdet-productos-list .qty-controls{
  position: absolute; right: 6px; bottom: 6px;
  gap: 0; padding: 3px; border-radius: 999px;
  background: #fff; box-shadow: var(--sombra-sm), 0 0 0 1px var(--line);
}
#negdet-productos-list .qty-btn{ width: 32px; height: 32px; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; transition: transform .12s var(--ease), background-color .15s; }
#negdet-productos-list .qty-btn:active{ transform: scale(.9); background: var(--line); color: var(--ink); }
/* Sin cantidad: solo el "+". Con cantidad: − 1 + */
#negdet-productos-list .list-row:not(.con-qty) .qty-btn[data-accion="menos"],
#negdet-productos-list .list-row:not(.con-qty) .qty-val{ display: none; }
#negdet-productos-list .list-row.con-qty .qty-val{ min-width: 24px; font-size: 15px; font-weight: 800; }
#negdet-productos-list .list-row.con-qty .qty-btn[data-accion="mas"]{ background: var(--acento); color: #fff; }
.sk-row{ width: 100%; height: 92px; margin: 14px 0; border-radius: 16px; }

/* Eventos del negocio: mismo ritmo que los productos */
#negdet-eventos-list .list-row{ padding: 14px 0; }

/* Barra del carrito: píldora oscura flotante sobre el menú inferior; solo aparece con productos */
#view-negocio-detalle .carrito-barra,
#view-producto-detalle .carrito-barra{
  position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 40; width: calc(100% - 24px); max-width: 456px; margin: 0;
  padding: 12px 12px 12px 18px;
  border: none; border-radius: 22px;
  background: #1A0A0E; color: #fff;
  box-shadow: 0 12px 30px rgba(20,6,10,.35);
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
#view-negocio-detalle.con-carrito .carrito-barra,
#view-producto-detalle.con-carrito .carrito-barra{ transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#view-negocio-detalle.con-carrito,
#view-producto-detalle.con-carrito{ padding-bottom: 96px; }   /* que la barra no tape el último producto */
#view-negocio-detalle .carrito-total,
#view-producto-detalle .carrito-total{ color: #fff; font-size: 17px; font-weight: 800; }
#view-negocio-detalle .carrito-info .btn-link,
#view-producto-detalle .carrito-info .btn-link{ color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px; }
#view-negocio-detalle .carrito-barra > .btn-primary,
#view-producto-detalle .carrito-barra > .btn-primary{ border-radius: 16px; padding: 12px 16px; }

@media (prefers-reduced-motion: reduce){
  #negdet-tabs .chip::after,
  #negdet-productos-list .qty-btn,
  #view-negocio-detalle .carrito-barra,
  #view-producto-detalle .carrito-barra{ transition: none; }
}


/* =====================================================================
   PASO 4 · Detalle de evento: cabecera a todo el ancho, datos sin caja,
   enlace al negocio (para pedir) y barra de acciones flotante
   ===================================================================== */

/* Cabecera a todo el ancho (solo el evento; la categoría y otras pantallas no cambian) */
#evdet-hero{
  height: 280px; margin: -16px -16px 18px;
  border-radius: 0 0 28px 28px; box-shadow: none;
}
#evdet-hero .back-btn{
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; color: #fff;
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#evdet-hero h2{ font-size: 28px; letter-spacing: -.01em; }

/* Datos: filas limpias con icono tintado */
.ev-info{ margin: 0 0 20px; }
#view-evento-detalle .ev-datos{ gap: 16px; margin-top: 0; }
#view-evento-detalle .ev-ic{
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(142,27,74,.10);
  background: color-mix(in srgb, var(--acento) 11%, #fff);
}
#view-evento-detalle .ev-val{ font-size: 16px; font-weight: 600; }

/* Negocio que organiza: tarjeta con acceso directo a pedir */
.ev-negocio{
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin: 0 0 22px;
  border-radius: 20px; background: #fff; box-shadow: var(--sombra-md);
}
.ev-negocio[hidden]{ display: none; }
.ev-negocio-logo{
  position: relative; flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 16px; background: #F1F1F4 center / cover no-repeat;
}
.ev-negocio-logo:not([style*="url"])::after{
  content: '🏪'; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 24px; opacity: .55;
}
.ev-negocio-txt{ flex: 1; min-width: 0; }
.ev-negocio-et{ font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-soft); }
.ev-negocio-nombre{ font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-negocio-meta{ margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-negocio-btn{
  flex: 0 0 auto; padding: 10px 14px; border-radius: 999px;
  background: var(--acento); color: #fff; font-size: 13.5px; font-weight: 700;
  transition: transform .12s var(--ease);
}
.ev-negocio-btn:active{ transform: scale(.96); }

.ev-sec{ margin: 0 0 22px; }
.ev-sec-tit{ margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }

/* Barra de acciones: píldora oscura flotante sobre el menú inferior */
#view-evento-detalle{ padding-bottom: 96px; }
#view-evento-detalle .carrito-barra{
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 40; width: calc(100% - 24px); max-width: 456px; margin: 0;
  padding: 10px; gap: 8px;
  border: none; border-radius: 22px;
  background: #1A0A0E; box-shadow: 0 12px 30px rgba(20,6,10,.35);
}
#view-evento-detalle .carrito-barra .btn-primary{
  flex: 1; width: auto; max-width: none; margin: 0;
  padding: 13px 16px; border-radius: 16px;
}
#view-evento-detalle .carrito-barra .btn-secundario{
  flex: 0 0 auto; width: auto; margin: 0;
  padding: 13px 14px; border: 0; border-radius: 16px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 14px;
}
#view-evento-detalle .carrito-barra .btn-secundario:active{ background: rgba(255,255,255,.24); }

@media (prefers-reduced-motion: reduce){
  .ev-negocio-btn{ transition: none; }
}


/* =====================================================================
   PASO 5 · Ficha de producto: foto a todo el ancho y una "hoja" que sube
   sobre ella con nombre, negocio, precio y botón Agregar. Sigue siendo
   una pantalla normal (no una capa encima), así el botón Volver, los
   enlaces directos y el QR funcionan igual que antes.
   ===================================================================== */
#view-producto-detalle .card.prod-card{
  margin: -16px -16px 0; border: none; border-radius: 0;
  background: transparent; box-shadow: none; overflow: visible;
}
#view-producto-detalle .prod-galeria{ aspect-ratio: 5 / 4; }
/* Degradado solo arriba (para el botón Volver) y un toque abajo: el título ya no va sobre la foto */
#view-producto-detalle .prod-galeria::after{
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, rgba(0,0,0,.22) 100%);
}
#view-producto-detalle .prod-galeria .pg-volver{
  top: 14px; left: 14px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; text-shadow: none;
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#view-producto-detalle .pg-dots{ bottom: 40px; }

/* La hoja */
#view-producto-detalle .prod-cuerpo{
  position: relative; z-index: 3; margin-top: -26px;
  padding: 26px 18px 6px;
  border-radius: 28px 28px 0 0; background: #fff;
}
#view-producto-detalle .prod-cuerpo::before{   /* asa de la hoja */
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 4px; background: #DDDDE3;
}
@keyframes sheetSube{ from{ opacity: 0; transform: translateY(46px); } to{ opacity: 1; transform: none; } }
#view-producto-detalle.active .prod-cuerpo{ animation: sheetSube .4s var(--ease) backwards; }

#view-producto-detalle .prod-card h2.pg-nombre{
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15;
  color: var(--ink); text-shadow: none;
}
#view-producto-detalle .pg-neg{
  display: inline-block; margin: 6px 0 0; padding: 0;
  background: none; text-align: left;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--acento);
  text-shadow: none; opacity: 1;
}
#view-producto-detalle .pg-neg:empty{ display: none; }
#view-producto-detalle .pg-neg::after{ content: ' ›'; }
#view-producto-detalle .prod-desc{ margin-top: 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* Precio y cantidad */
#view-producto-detalle .prod-fila{ margin-top: 20px; }
#view-producto-detalle .prod-precio{ font-size: 28px; font-weight: 800; color: var(--ink); }
#view-producto-detalle .qty-controls{ gap: 0; padding: 3px; border-radius: 999px; background: #fff; box-shadow: var(--sombra-sm), 0 0 0 1px var(--line); }
#view-producto-detalle .prod-fila .qty-btn{
  width: 42px; height: 42px; background: transparent; color: var(--ink);
  font-size: 22px; line-height: 1; transition: transform .12s var(--ease), background-color .15s;
}
#view-producto-detalle .prod-fila .qty-btn:active{ transform: scale(.92); background: var(--line); color: var(--ink); }
#view-producto-detalle .prod-fila .qty-val{ min-width: 30px; font-size: 17px; font-weight: 800; }
#view-producto-detalle .prod-fila.con-qty .qty-mas{ background: var(--acento); color: #fff; }
/* Sin cantidad: un solo botón grande "+ Agregar" */
#view-producto-detalle .prod-fila:not(.con-qty) .qty-controls{ padding: 0; box-shadow: none; background: transparent; }
#view-producto-detalle .prod-fila:not(.con-qty) .qty-menos,
#view-producto-detalle .prod-fila:not(.con-qty) .qty-val{ display: none; }
#view-producto-detalle .prod-fila:not(.con-qty) .qty-mas{
  width: auto; height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--acento); color: #fff; font-size: 17px; font-weight: 700;
}
#view-producto-detalle .prod-fila:not(.con-qty) .qty-mas::after{ content: 'Agregar'; margin-left: 8px; font-size: 16px; }
#view-producto-detalle .prod-fila:not(.con-qty) .qty-mas:active{ background: var(--acento-deep); color: #fff; }

#view-producto-detalle .prod-card .btn-qr{ margin: 14px 0 0; }

/* También te puede interesar: sin caja, carrusel hasta el borde */
.prod-sim{ margin: 22px 0 8px; }
.prod-sim .exp-tit{ margin: 0 2px 8px; }
#proddet-similares{ gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px; }
#proddet-similares .carrusel-item{ width: 132px; padding: 0; border: 0; border-radius: 0; background: transparent; }
#proddet-similares .carrusel-item .list-thumb{ height: 110px; border-radius: 16px; }
#proddet-similares .carrusel-item .list-name{ margin-top: 8px; font-size: 13.5px; font-weight: 700; }
#proddet-similares .carrusel-item .list-meta{ margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
.sk-sim{ flex: 0 0 132px; height: 150px; border-radius: 16px; }
#proddet-similares .empty-state{ flex: 1; }

@media (prefers-reduced-motion: reduce){
  #view-producto-detalle.active .prod-cuerpo{ animation: none; }
  #view-producto-detalle .prod-fila .qty-btn{ transition: none; }
}


/* =====================================================================
   PASO 6 · Carrito: solo aspecto (cabecera a todo el ancho, filas limpias,
   barra flotante con el total y ventana "Revisa tu pedido" como hoja)
   ===================================================================== */

/* Cabecera */
#carrito-hero{
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; padding: 14px 18px 20px;
  margin: -16px -16px 18px;
  border-radius: 0 0 28px 28px; box-shadow: none;
}
#carrito-hero .carrito-hero-top{ margin-bottom: 22px; }
#carrito-hero .back-btn{
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; color: #fff;
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#carrito-hero .btn-ver-negocio{ padding: 8px 14px; font-weight: 600; border: 0; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#carrito-hero h2{ font-size: 28px; font-weight: 800; letter-spacing: -.01em; }

/* Lista de productos sin caja */
.carrito-lista{ margin: 0 0 18px; }
.carrito-lista .exp-head{ align-items: center; }
.carrito-vaciar-link{
  padding: 6px 2px; background: none;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: underline;
}
.carrito-vaciar-link:active:not(:disabled){ color: var(--acento); }
.carrito-vaciar-link:disabled{ opacity: .35; text-decoration: none; cursor: default; }

#carrito-items .list-row{ align-items: center; gap: 14px; padding: 14px 0; }
#carrito-items .list-thumb{ width: 64px; height: 64px; border-radius: 16px; }
#carrito-items .list-name{ font-size: 15.5px; font-weight: 700; line-height: 1.25; }
#carrito-items .list-meta{ font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.carrito-sub{ font-size: 15.5px; font-weight: 800; color: var(--ink); }
#carrito-items .qty-controls{
  gap: 0; padding: 3px; border-radius: 999px;
  background: #fff; box-shadow: var(--sombra-sm), 0 0 0 1px var(--line);
}
#carrito-items .qty-btn{ width: 32px; height: 32px; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; transition: transform .12s var(--ease), background-color .15s; }
#carrito-items .qty-btn:active{ transform: scale(.9); background: var(--line); color: var(--ink); }
#carrito-items .qty-btn[data-accion="mas"]{ background: var(--acento); color: #fff; }
#carrito-items .qty-val{ min-width: 26px; font-size: 15px; font-weight: 800; }

/* Carrito vacío */
.carrito-vacio{ display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px 20px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.carrito-vacio strong{ font-size: 18px; color: var(--ink); }
.carrito-vacio-ic{ font-size: 44px; line-height: 1; }
.carrito-vacio .carrito-vacio-btn{ width: auto; margin-top: 16px; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; }

/* Barra inferior: píldora oscura flotante; aparece solo con productos */
#view-carrito .carrito-barra{
  position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 40; width: calc(100% - 24px); max-width: 456px; margin: 0;
  padding: 12px 12px 12px 18px;
  border: none; border-radius: 22px;
  background: #1A0A0E; box-shadow: 0 12px 30px rgba(20,6,10,.35);
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
#view-carrito.con-carrito .carrito-barra{ transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#view-carrito.con-carrito{ padding-bottom: 96px; }
#view-carrito .carrito-total-et,
#view-carrito .carrito-cant{ color: rgba(255,255,255,.65); }
#view-carrito .carrito-barra-info .carrito-total{ color: #fff; font-size: 24px; }
#view-carrito .carrito-btns{ flex: 0 0 auto; }
#view-carrito .carrito-barra .carrito-btns .btn-primary{ width: auto; padding: 14px 18px; border-radius: 16px; font-size: 15px; font-weight: 700; }

/* Ventana "Revisa tu pedido": hoja que sube desde abajo */
#modal-wa .modal{
  position: relative; border-radius: 28px 28px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  animation: sheetUp .3s var(--ease);
}
#modal-wa .modal::before{
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 4px; background: #DDDDE3;
}
#modal-wa h2{ margin: 0 0 6px; font-size: 22px; font-weight: 800; }
#modal-wa #wa-resumen .list-meta{ margin: 0; padding: 10px 0; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); }
#modal-wa #wa-resumen .list-meta:last-child{ border-bottom: 0; }
#modal-wa #wa-total{ font-size: 22px; font-weight: 800; color: var(--ink); }
#modal-wa #wa-nota{ font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
#modal-wa .btn-primary{ padding: 15px; border-radius: 16px; font-size: 16px; font-weight: 700; }

@media (prefers-reduced-motion: reduce){
  #view-carrito .carrito-barra, #carrito-items .qty-btn{ transition: none; }
  #modal-wa .modal{ animation: none; }
}


/* =====================================================================
   PASO 7 · Mi perfil: cabecera a todo el ancho, accesos en tarjetas
   blancas con icono tintado y secciones sin caja
   ===================================================================== */

/* Cabecera */
#perfil-hero{
  height: 220px; margin: -16px -16px 18px;
  border-radius: 0 0 28px 28px; box-shadow: none;
}
#perfil-hero .perfil-hero-fecha{ top: 20px; left: 18px; }
#perfil-hero .perfil-hero-edit{
  top: 12px; right: 14px; width: 42px; height: 42px;
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#perfil-hero .cat-hero-txt{ left: 18px; right: 18px; bottom: 20px; }
#perfil-hero .cat-hero-txt h2{ font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }

/* Accesos rápidos: tarjetas blancas (solo en Mi perfil; Mi negocio y admin conservan sus colores) */
#view-perfil .tiles{ gap: 12px; margin-bottom: 28px; }
#view-perfil .tile{
  display: grid; grid-template-columns: 44px 1fr auto;
  grid-template-areas: "ic titulo flecha" "ic sub flecha";
  column-gap: 12px; align-items: center; align-content: center;
  min-height: 76px; padding: 14px 16px;
  border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: var(--sombra-md);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
#view-perfil .tile.tile-grande,
#view-perfil .tile.tile-carrito{ min-height: 76px; }
#view-perfil .tile .tile-ic{
  grid-area: ic; position: static;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: var(--tint, rgba(193,18,47,.10));
  font-size: 22px; opacity: 1; line-height: 1;
}
#view-perfil .tile .tile-titulo{ grid-area: titulo; align-self: end; font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--ink); }
#view-perfil .tile .tile-sub{ grid-area: sub; align-self: start; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); opacity: 1; }
#view-perfil .tile::after{ content: '›'; grid-area: flecha; align-self: center; font-size: 24px; line-height: 1; color: #B8B8C2; }
#view-perfil .tile-mango{ --tint: rgba(217,30,58,.10); }
#view-perfil .tile-teal{ --tint: rgba(34,150,140,.13); }
#view-perfil .tile-violeta{ --tint: rgba(122,92,224,.13); }
#view-perfil .tile-carrito{ --tint: rgba(240,153,63,.18); }

/* Secciones sin caja */
.perfil-sec{ margin: 0 0 28px; }
#perfil-pedidos-list .pedido-row{ padding: 12px 0; }
#perfil-pedidos-list .pedido-row .list-thumb{ width: 48px; height: 48px; border-radius: 14px; }
#perfil-pedidos-mas{
  margin-top: 4px !important; padding: 10px 0; background: none; border: 0;
  text-align: left; font-size: 14.5px; font-weight: 700; color: var(--acento);
}
#perfil-pedidos-mas::after{ content: ' ›'; }

/* Recomendado para ti: carrusel hasta el borde, tarjetas sin caja (igual que "También te puede interesar") */
#perfil-recomendaciones-list{ gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px; }
#perfil-recomendaciones-list .carrusel-item{ width: 132px; padding: 0; border: 0; border-radius: 0; background: transparent; }
#perfil-recomendaciones-list .carrusel-item .list-thumb{ width: 100%; height: 110px; border-radius: 16px; }
#perfil-recomendaciones-list .carrusel-item .list-name{ margin-top: 8px; font-size: 13.5px; font-weight: 700; }
#perfil-recomendaciones-list .carrusel-item .list-meta{ margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
#perfil-recomendaciones-list .empty-state{ flex: 1; }

@media (prefers-reduced-motion: reduce){
  #view-perfil .tile{ transition: none; }
}


/* =====================================================================
   Explorar v2: carrusel de negocios, Comer con pestañas y Categorías con pestañas
   ===================================================================== */
/* Visibilidad por pestaña principal: data-solo="todo" | "comer" */
#view-explorar[data-filtro="comer"] .exp-sec[data-solo="todo"],
#view-explorar[data-filtro="todo"] .exp-sec[data-solo="comer"],
#view-explorar[data-filtro="planes"] .exp-sec[data-solo]{ display: none; }
/* "Eventos" no existe en las categorías de Comer */
#view-explorar[data-filtro="comer"] .exp-tabs button[data-grupo="planes"]{ display: none; }

.exp-subtabs{ margin: 0 0 14px; }
#exp-cats .exp-subtabs{ margin-top: 0; }

/* Indicador de que se puede deslizar: degradado en el borde derecho + puntos o contador */
.car-wrap{ position: relative; }
.car-wrap::after{
  content: ''; position: absolute; top: 0; bottom: 18px; right: -16px; width: 38px; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--bg, #fff));
  transition: opacity .2s;
}
.car-wrap.fin::after{ opacity: 0; }
.car-dots{ display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 8px; margin-top: -6px; }
.car-dots span{ width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .25s var(--ease), background-color .25s; }
.car-dots span.on{ width: 18px; border-radius: 4px; background: var(--acento); }
.car-dots b{ font-size: 12px; font-weight: 700; color: var(--ink-soft); }

/* Comer: un bloque por categoría / subcategoría, con carrusel */
.comer-bloque{ margin: 0 0 18px; }
.comer-bloque .exp-head{ margin-bottom: 6px; }
.comer-bloque .exp-tit{ font-size: 18px; }
.comer-bloque .sub-grupo{ margin: 0 2px 6px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.comer-ver{ padding: 2px 0; background: transparent; color: var(--acento); font-size: 13px; font-weight: 700; white-space: nowrap; }
.comer-car{
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px;
}
.comer-car::-webkit-scrollbar{ display: none; }
.comer-car > .neg-card{ flex: 0 0 min(44vw, 190px); scroll-snap-align: start; }
.comer-car > .grid-card{ flex: 0 0 min(40vw, 160px); scroll-snap-align: start; }
.comer-car > .sk{ flex: 0 0 min(44vw, 190px); height: 150px; }

/* Mini tarjeta de negocio: mismo estilo que la grande, a menor escala */
.neg-card.mini{ border-radius: 18px; }
.neg-card.mini .neg-card-img{ aspect-ratio: 16 / 10; }
.neg-card.mini .neg-card-body{ padding: 8px 10px 12px; gap: 8px; }
.neg-card.mini .neg-card-logo{ width: 40px; height: 40px; margin-top: -26px; }
.neg-card.mini .neg-card-nombre{ font-size: 14px; }
.neg-card.mini .neg-card-meta{ font-size: 12px; }
.neg-card.mini .neg-card-wa{ width: 30px; height: 30px; right: 8px; top: 8px; }
.neg-card.mini .neg-card-wa img{ width: 18px; height: 18px; }
.neg-card.mini .neg-card-ev{ left: 8px; top: 8px; padding: 4px 8px; font-size: 11px; }


/* =====================================================================
   Admin · Destacados de Explorar
   ===================================================================== */
.dest-pl{ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 8px; }
.dest-pl::-webkit-scrollbar{ display: none; }
.dest-pl:empty{ display: none; }
.dest-pl button{
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600;
}
.dest-pl button.on{ background: #C1122F; border-color: #C1122F; color: #fff; }
.dest-nota{ margin: 2px 0 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.dest-ct{ display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.dest-tag{ font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #F1F1F4; color: var(--ink-soft); white-space: nowrap; font-weight: 600; }
.dest-fila{ display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.dest-fila.vacia{ border-style: dashed; color: var(--ink-soft); }
.dest-fila.falta{ border-color: var(--red); }
.dest-num{ width: 24px; height: 24px; border-radius: 50%; background: #F1F1F4; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dest-th{ width: 38px; height: 38px; border-radius: 8px; background: #ECE9F2 center / cover no-repeat; flex: 0 0 auto; }
.dest-info{ flex: 1; min-width: 0; }
.dest-nom{ font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-sub{ font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-ib{ width: 32px; height: 32px; padding: 0; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.dest-ib:disabled{ opacity: .35; }
.dest-mini{ height: 32px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.dest-picker{ border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fff; }
.dest-picker-cab{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }
.dest-cand{ display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; margin-bottom: 4px; background: #fff; text-align: left; border-radius: 10px; }
.dest-cand:active{ background: #F3F3F6; }
.dest-prev{ margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #F1F1F4; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.dest-prev[hidden]{ display: none; }
.dest-bar{ margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dest-bar-aviso{ margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #B45309; }
.dest-bar-fila{ display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.dest-bar-fila .btn-primary{ flex: 1; margin: 0; }

/* Planes: Categorías muestra solo las de eventos, sin pestañas */
#view-explorar[data-filtro="planes"] #cats-tabs,
#view-explorar[data-filtro="planes"] #cats-panel-negocios,
#view-explorar[data-filtro="planes"] #cats-panel-productos{ display: none; }
#view-explorar[data-filtro="planes"] #cats-panel-eventos{ display: block; }

/* Resultados de búsqueda: cada sección es un carrusel */
.bus-sec{ margin: 0 0 22px; }
.bus-sec[hidden]{ display: none; }
.bus-car{
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px;
}
.bus-car::-webkit-scrollbar{ display: none; }
.bus-car > .neg-card{ flex: 0 0 min(72vw, 260px); scroll-snap-align: start; }
.bus-car > .grid-card{ flex: 0 0 min(40vw, 160px); scroll-snap-align: start; }
.bus-car > .empty-state{ flex: 1; }
