/* =============================================================
   COLORES Y LETRAS DE LA APP (todo en un solo lugar)
   --verde es el color principal; los temas de temporada lo cambian abajo.
   ============================================================= */
:root {
  --verde: #1f6b45;        /* color principal */
  --verde-osc: #124a2f;
  --verde-claro: #e3f3e8;
  --naranja: #f59e0b;
  --wa: #25d366;
  --fondo: #fff8ef;        /* crema */
  --card: #ffffff;
  --texto: #2b1d14;        /* café oscuro */
  --muted: #7a6350;
  --borde: #ecdfcf;
  --tinta: #2b1d14;        /* bordes marcados */
  --acento: #e9445a;       /* rosa mexicano */
  --acento2: #16a39a;      /* turquesa */
  --dorado: #ffd166;
  --papel1: #e9445a;       /* papel picado */
  --papel2: #16a39a;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(43,29,20,.06), 0 4px 14px rgba(43,29,20,.06);
  --tabbar-h: 64px;
  --letra: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --letra-titulo: 'Baloo 2', 'Poppins', system-ui, sans-serif;
}
/* Temas de temporada (se activan con data-tema en <html>) */
:root[data-tema="navidad"] { --verde: #b3122e; --verde-osc: #7d0a1f; --verde-claro: #fde8eb; --acento: #1f7a3a; --acento2: #d4a017; --dorado: #ffe08a; --papel1: #b3122e; --papel2: #1f7a3a; }
:root[data-tema="patrio"]  { --verde: #006847; --verde-osc: #004a32; --verde-claro: #e0f2ea; --acento: #ce1126; --acento2: #006847; --dorado: #ffffff; --papel1: #ce1126; --papel2: #006847; }
:root[data-tema="muertos"] { --verde: #6a1b9a; --verde-osc: #4a1270; --verde-claro: #f1e6f8; --acento: #f57c00; --acento2: #d81b60; --dorado: #ffb300; --papel1: #f57c00; --papel2: #d81b60; }
:root[data-tema="madres"]  { --verde: #c2185b; --verde-osc: #8c1142; --verde-claro: #fce4ec; --acento: #8e24aa; --acento2: #f06292; --dorado: #ffe0ec; --papel1: #f06292; --papel2: #ba68c8; }
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #17110c; --card: #221a14; --texto: #f3e9de; --muted: #b9a796;
    --borde: #3a2e25; --verde-claro: #1d3326; --tinta: #5a4a3c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 15px/1.5 var(--letra);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 22px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 2px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--verde); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  font-size: 1.3rem; cursor: pointer;
}
.icon-btn:hover { background: rgba(127,127,127,.15); }

main { max-width: 720px; margin: 0 auto; padding: 16px; outline: none; }

/* Barra de pestañas inferior */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--borde);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: .72rem; color: var(--muted);
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.tabbar .dot { fill: currentColor; stroke: none; }
.tabbar a.active { color: var(--verde); font-weight: 600; }
@media (prefers-color-scheme: dark) { .tabbar a.active { color: #6fcf97; } }

/* Hero y búsqueda */
.hero {
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  color: #fff; border-radius: var(--radio); padding: 20px; margin-bottom: 14px;
}
.hero p { opacity: .9; }
.search { display: flex; gap: 8px; margin-top: 12px; }
.search input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--borde); border-radius: 12px; background: var(--card); color: var(--texto);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid var(--borde);
  background: var(--card); color: var(--texto); font: inherit; font-weight: 600; cursor: pointer;
}
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn-primary { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-accent { background: var(--naranja); border-color: var(--naranja); color: #1c1c1c; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #08371b; }
.btn-ghost { background: transparent; border-style: dashed; color: var(--muted); }
.btn.full { width: 100%; margin-top: 16px; }

/* Secciones */
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-head a { color: var(--verde); font-weight: 600; font-size: .9rem; }
.page-head { margin-bottom: 12px; }
.back { display: inline-block; color: var(--verde); font-weight: 600; margin-bottom: 10px; }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 12px 4px; background: var(--card); border-radius: var(--radio); box-shadow: var(--sombra);
}
.cat span { font-size: 1.6rem; }
.cat small { font-size: .7rem; line-height: 1.2; color: var(--muted); }

/* Tarjetas */
.list { display: grid; gap: 10px; }
@media (min-width: 640px) { .list { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; display: flex; gap: 12px; padding: 14px;
  background: var(--card); border-radius: var(--radio); box-shadow: var(--sombra);
}
.card-body { flex: 1; min-width: 0; }
.card .desc { font-size: .92rem; margin: 4px 0; }
.card .muted { font-size: .85rem; margin: 0; }
.avatar {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--verde-claro); border-radius: 12px;
}
.avatar.xl { width: 72px; height: 72px; font-size: 2.3rem; }
.fav-mark { position: absolute; top: 10px; right: 12px; color: var(--naranja); }
.promo { border-left: 4px solid var(--naranja); }
.promo-tag {
  flex: none; align-self: flex-start; padding: 4px 8px; border-radius: 6px;
  background: #fff4dc; color: #9a5b00; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
}
.aviso-top, .aviso-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aviso-top { margin-bottom: 6px; }
.precio { font-size: 1.1rem; color: var(--verde); }

/* Etiquetas */
.badge { display: inline-block; font-size: .72rem; padding: 2px 7px; border-radius: 99px; vertical-align: middle; font-weight: 600; }
.badge.ok { background: var(--verde-claro); color: var(--verde); }
.badge.warn { background: #fff4dc; color: #9a5b00; }
.chip {
  display: inline-block; white-space: nowrap; padding: 6px 12px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--borde); font-size: .85rem;
}
.chip.active { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip-venta { background: #e3f2fd; color: #0d47a1; border: 0; }
.chip-compra { background: #ede7f6; color: #4527a0; border: 0; }
.chip-renta { background: #fff3e0; color: #e65100; border: 0; }
.chip-servicio { background: var(--verde-claro); color: var(--verde); border: 0; }
.chip-empleo { background: #fce4ec; color: #ad1457; border: 0; }
.chip-perdido { background: #ffebee; color: #c62828; border: 0; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Detalle de negocio */
.detalle-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.detalle-head > div:nth-child(2) { flex: 1; }
.fav { font-size: 1.6rem; color: var(--naranja); }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.acciones .btn { flex: 1 1 30%; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--card); padding: 14px; border-radius: var(--radio); box-shadow: var(--sombra); }
.info dt { color: var(--muted); font-size: .88rem; }
.info dd { margin: 0; }

/* Formularios */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px; font: inherit; font-weight: 400;
  border: 1px solid var(--borde); border-radius: 12px; background: var(--card); color: var(--texto);
}
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus { outline: 2px solid var(--verde); outline-offset: 1px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 22px; height: 22px; }

/* Llamado a la acción e instalar */
.cta { margin-top: 24px; text-align: center; padding: 22px; background: var(--verde-claro); border-radius: var(--radio); }
.cta h2 { margin-top: 0; }
.install {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; margin-bottom: 6px; border-radius: var(--radio);
  background: #fff4dc; color: #4a3200;
}
.install p { margin: 2px 0 0; }
.install-actions { display: flex; align-items: center; gap: 4px; flex: none; }

/* Vacío, botón flotante y aviso */
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 18px);
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--naranja); color: #1c1c1c; font-size: 1.8rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 9;
}
/* Barra superior: cuenta */
.top-actions { display: flex; align-items: center; gap: 6px; }
.cuenta-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: rgba(255,255,255,.16); font-size: .85rem; font-weight: 600;
}
.cuenta-btn.on { background: #fff; color: var(--verde); }

/* Tarjetas de negocio: enlace completo + WhatsApp rápido */
.card-link { position: absolute; inset: 0; border-radius: var(--radio); }
.card.negocio .card-body { padding-right: 40px; }
.card.is-destacado { box-shadow: 0 0 0 2px var(--naranja), var(--sombra); }
.wa-mini {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff;
}
.ico-wa { width: 20px; height: 20px; flex: none; }
.btn-wa { color: #fff; background: #1faa53; border-color: #1faa53; }
.acciones .btn.wide { flex-basis: 100%; font-size: 1.05rem; padding: 14px; }
.badge.star { background: #fff4dc; color: #9a5b00; margin-top: 4px; }
.chip-ask { border-color: #1faa53; color: inherit; }
.chip-ask span { font-size: .8rem; }
.aviso-dueno { background: var(--verde-claro); padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-size: .9rem; }
.aviso-dueno a, .link { color: var(--verde); font-weight: 700; text-decoration: underline; }

/* Carrusel de destacados */
.carrusel { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.destacado {
  flex: 0 0 72%; scroll-snap-align: start; display: grid; gap: 6px; padding: 14px;
  background: var(--card); border-radius: var(--radio); box-shadow: 0 0 0 2px var(--naranja), var(--sombra);
}
.destacado small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Anúnciate y planes */
.trial { background: rgba(255,255,255,.15); padding: 8px 12px; border-radius: 10px; margin-top: 10px; }
.pasos { padding-left: 20px; display: grid; gap: 8px; }
.planes { display: grid; gap: 12px; }
@media (min-width: 640px) { .planes { grid-template-columns: repeat(2, 1fr); } }
.plan { position: relative; background: var(--card); border-radius: var(--radio); padding: 18px; box-shadow: var(--sombra); border: 2px solid transparent; }
.plan.popular { border-color: var(--verde); }
.plan-pop { position: absolute; top: -11px; right: 14px; background: var(--verde); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan-precio { font-size: 1.8rem; font-weight: 800; margin: 4px 0 8px; }
.plan-precio small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan ul, .beneficios { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.plan li::before, .beneficios li::before { content: '✓ '; color: var(--verde); font-weight: 700; }
.center { text-align: center; margin-top: 12px; }

/* Cuenta */
.seg { display: flex; background: var(--card); border: 1px solid var(--borde); border-radius: 12px; padding: 4px; margin-bottom: 16px; gap: 4px; }
.seg a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg a.active { background: var(--verde); color: #fff; }
.form-error { color: #c62828; background: #ffebee; padding: 10px; border-radius: 10px; margin: 0; }

/* Panel Mi negocio */
.estado { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; font-size: .93rem; }
.estado.ok { background: var(--verde-claro); }
.estado.prueba { background: #fff4dc; color: #4a3200; }
.estado.vencido { background: #ffebee; color: #8e1c1c; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--card); border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); display: grid; }
.stats b { font-size: 1.6rem; color: var(--verde); }
.stats small { color: var(--muted); }
.card-form { background: var(--card); padding: 14px; border-radius: var(--radio); box-shadow: var(--sombra); margin-top: 10px; }
.card.promo .icon-btn { align-self: center; }

/* Pago */
.planes.compact { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.plan-opt { display: grid; gap: 2px; text-align: center; padding: 12px 6px; background: var(--card); border: 2px solid var(--borde); border-radius: 12px; font-size: .88rem; }
.plan-opt.active { border-color: var(--verde); background: var(--verde-claro); }
.resumen { background: var(--card); border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); display: grid; gap: 8px; margin-bottom: 12px; }
.resumen div, .historial div { display: flex; justify-content: space-between; gap: 10px; }
.resumen .desc-row { color: var(--verde); }
.resumen .total { border-top: 1px solid var(--borde); padding-top: 8px; font-weight: 800; font-size: 1.1rem; }
.historial { display: grid; gap: 8px; font-size: .92rem; }

/* ===== Anuncio GRATIS vs DE PAGO ===== */
.avatar.sm { width: 42px; height: 42px; font-size: 1.3rem; }
.card.negocio.basico { box-shadow: none; border: 1px solid var(--borde); padding: 10px 12px; align-items: center; }
.card.negocio.basico h3 { font-weight: 500; }
.card.negocio.basico .wa-mini { top: 50%; bottom: auto; transform: translateY(-50%); width: 36px; height: 36px; }

:root { --tier: var(--verde); --tier-bg: var(--verde-claro); }
.tier-basico    { --tier: #2e7d4f; --tier-bg: #e8f5e9; }
.tier-destacado { --tier: #e08700; --tier-bg: #fff4dc; }
.tier-premium   { --tier: #7b3fc4; --tier-bg: #f3ebff; }

.card.negocio.pago { flex-direction: column; gap: 0; padding: 0; overflow: hidden; box-shadow: 0 0 0 2px var(--tier), 0 6px 18px rgba(0,0,0,.08); }
.card.negocio.pago .card-body { padding: 12px 14px 14px; padding-right: 60px; }
.card.negocio.pago .wa-mini { width: 46px; height: 46px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.nombre-pago { color: var(--tier); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
h1.nombre-pago { font-size: 1.6rem; }
.tier-ribbon {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px;
  background: var(--tier); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.badge.tier-basico, .badge.tier-destacado, .badge.tier-premium { background: var(--tier-bg); color: var(--tier); margin-top: 4px; }
.card.negocio.pago .fav-mark { top: auto; bottom: 66px; right: 20px; text-shadow: 0 1px 3px #0006; }

.portada { aspect-ratio: 16 / 7; background: var(--tier-bg); overflow: hidden; }
.portada.xl { aspect-ratio: 16 / 9; border-radius: var(--radio); margin-bottom: 14px; box-shadow: 0 0 0 3px var(--tier); }
.portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portada-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(135deg, var(--tier-bg), color-mix(in srgb, var(--tier) 30%, var(--tier-bg))); }
.portada.xl .portada-ph { font-size: 4.5rem; }

.destacado { padding: 0; overflow: hidden; gap: 0; --tier: #7b3fc4; --tier-bg: #f3ebff; box-shadow: 0 0 0 2px var(--tier), var(--sombra); }
.destacado-body { padding: 10px 12px; display: grid; gap: 2px; }
.destacado strong { color: var(--tier); }

.galeria { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; }
.galeria img { flex: 0 0 70%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }

/* Fotos en el panel */
.fotos-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.foto-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-tag { position: absolute; left: 6px; bottom: 6px; background: var(--verde); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 99px; }
.foto-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #000a; color: #fff; cursor: pointer; }
.foto-btn.izq { right: auto; left: 6px; color: #ffd54f; }
.foto-add { aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 2px dashed var(--borde); border-radius: 12px; font-size: 1.8rem; color: var(--muted); cursor: pointer; }
.foto-add small { font-size: .75rem; }
.foto-add.cargando { opacity: .5; pointer-events: none; }

/* Fotos en avisos de ocasión */
.fotos-aviso { display: grid; gap: 6px; }
.card.aviso { flex-direction: column; min-width: 0; }
.fotos-aviso .label-txt { font-weight: 600; font-size: .95rem; }
.aviso-fotos { position: relative; width: 100%; min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; background: var(--fondo); }
/* contain: se ve el artículo completo, sin recortar (sobra espacio a los lados si la foto es vertical) */
.aviso-fotos img { flex: 0 0 100%; width: 100%; height: 220px; object-fit: contain; scroll-snap-align: start; cursor: zoom-in; }
.aviso-fotos-n { position: absolute; right: 8px; bottom: 8px; background: #000a; color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.card.aviso.cerrado { position: relative; opacity: .7; filter: grayscale(.6); }
.sello-cerrado { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--verde); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 99px; }
.card.aviso.cerrado:not(:has(.aviso-fotos)) .card-body { padding-top: 44px; }
.verde { color: var(--verde); }
.visor-foto { position: fixed; inset: 0; z-index: 9999; background: #000e; display: grid; place-items: center; padding: 16px; }
.visor-foto img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.visor-foto .foto-btn { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.1rem; }

/* ===== Cuenta con WhatsApp ===== */
.tel-input { display: flex; align-items: stretch; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; background: var(--card); }
.tel-input span { display: grid; place-items: center; padding: 0 12px; background: var(--verde-claro); font-weight: 600; white-space: nowrap; }
.form .tel-input input { border: 0; border-radius: 0; }
.input-codigo { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; }
.codigo-demo { font-size: 1.2rem; letter-spacing: .15em; }

/* ===== Línea de tiempo (solicitud y pedidos) ===== */
.timeline { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 32px; display: grid; gap: 2px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--borde); background: var(--card); }
.timeline li::after { content: ''; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--borde); }
.timeline li:last-child::after { display: none; }
.timeline li.hecho { color: var(--texto); }
.timeline li.hecho::before { background: var(--verde); border-color: var(--verde); }
.timeline li.actual { color: var(--texto); }
.timeline li.actual::before { border-color: var(--naranja); background: #fff4dc; box-shadow: 0 0 0 4px #f59e0b33; }
.timeline small { font-size: .85rem; color: var(--muted); }

/* ===== Administración ===== */
.list.una { grid-template-columns: 1fr; }
.tabs-admin { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.card.solicitud { border-left: 4px solid var(--naranja); }
.info.mini { box-shadow: none; padding: 8px 0; background: none; font-size: .9rem; }
.form-inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.form-inline label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; flex: 1; }
.form-inline input, .form-inline select { padding: 9px 10px; font: inherit; border: 1px solid var(--borde); border-radius: 10px; background: var(--card); color: var(--texto); min-width: 0; }
.verificar { background: var(--fondo); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.verificar summary { font-weight: 700; cursor: pointer; }
.verificar .form { margin-top: 10px; }

/* ===== Pedidos ===== */
.menu { display: grid; gap: 8px; padding-bottom: 80px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); padding: 12px 14px; border-radius: var(--radio); box-shadow: var(--sombra); }
.menu-item > div:first-child { display: grid; }
.qty { display: flex; align-items: center; gap: 10px; flex: none; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde); background: var(--card); color: var(--texto); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty button[data-mas] { background: var(--verde); border-color: var(--verde); color: #fff; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.carrito-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 10px 16px; background: linear-gradient(transparent, var(--fondo) 30%); z-index: 9; }
.carrito-bar .btn { max-width: 688px; margin: 0 auto; display: flex; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.opciones { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opciones legend { font-weight: 600; margin-bottom: 6px; }
.form .opcion { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 12px; border: 1px solid var(--borde); border-radius: 12px; background: var(--card); }
.form .opcion input { width: 20px; height: 20px; }
.form .opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); }
.form label small { font-weight: 400; }
.catalogo-panel { display: grid; gap: 6px; }
.catalogo-panel div { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 6px 6px 6px 12px; border-radius: 10px; }
.catalogo-panel span { flex: 1; }
.catalogo-form input[name=nombre] { flex: 2; }
.catalogo-form input[name=precio] { width: 80px; }
.card.pedido { border-left: 4px solid var(--verde); }

/* ===== Repartidores ===== */
.card.repartidor .btn { margin-top: 6px; }
.dot-on, .dot-off { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.dot-on { background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; }
.dot-off { background: #9ca3af; }
.switch { display: flex; align-items: center; gap: 12px; background: var(--card); padding: 14px; border-radius: var(--radio); box-shadow: var(--sombra); cursor: pointer; }
.switch input { width: 24px; height: 24px; }
.tabbar a span { font-size: .68rem; }

/* ===== Enchúlame el negocio ===== */
.hero-enchu { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.banner-enchu {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: var(--radio);
  background: linear-gradient(135deg, #7b2ff7, #f107a3); color: #fff; box-shadow: 0 6px 18px #7b2ff733;
}
.banner-enchu > span { font-size: 2rem; }
.banner-enchu div { flex: 1; display: grid; gap: 2px; }
.banner-enchu small { opacity: .9; }
.banner-enchu em { font-style: normal; font-size: 1.4rem; font-weight: 700; }
.foto-grande {
  display: grid; justify-items: center; gap: 4px; padding: 34px 16px; text-align: center; cursor: pointer;
  border: 2px dashed #b46ee6; border-radius: var(--radio); background: #faf3ff; color: #5a2390;
}
.foto-grande span { font-size: 2.6rem; }
.foto-grande small { color: var(--muted); }
.mockup-wrap { border-radius: var(--radio); overflow: hidden; box-shadow: 0 0 0 3px #b46ee6, var(--sombra); background: #000; }
.mockup-wrap canvas { width: 100%; height: auto; display: block; }
.mockup-ctrl { margin-top: 12px; background: var(--card); padding: 14px; border-radius: var(--radio); box-shadow: var(--sombra); }
.mockup-ctrl .fila { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.mockup-ctrl input[type=color] { height: 46px; padding: 4px; }
.mockup-ctrl input[type=range] { padding: 0; accent-color: #b146e0; }
.mockup-ctrl label.btn { display: flex; justify-content: center; }
.servicios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.servicio {
  display: grid; gap: 3px; text-align: left; padding: 12px; border-radius: var(--radio); cursor: pointer;
  border: 1px solid var(--borde); background: var(--card); color: var(--texto); font: inherit; box-shadow: var(--sombra);
}
.servicio span { font-size: 1.5rem; }
.servicio small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.servicio em { font-style: normal; color: #9c27b0; font-weight: 700; font-size: .85rem; }
.fotos-enchu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.fotos-enchu a { display: grid; gap: 2px; }
.fotos-enchu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.card.solicitud.enchu { border-left-color: #b146e0; }

/* ===== Búscamelo ===== */
.hero-bm { background: linear-gradient(135deg, #1565c0, #00acc1); }
.bm-cta { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.15); font-size: .92rem; }
.bm-form { background: var(--card); padding: 18px 14px; border-radius: var(--radio); box-shadow: var(--sombra); justify-items: center; }
.bm-form textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--borde); border-radius: 12px; background: var(--fondo); color: var(--texto); }
.mic {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #1565c0, #00acc1); box-shadow: 0 8px 22px #1565c055; display: grid; place-items: center;
}
.mic.grabando { background: #e53935; animation: latido 1.1s infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 #e5393566; } 50% { box-shadow: 0 0 0 18px #e5393500; } }
.mic-label { margin: 0; }
.peticion { background: linear-gradient(135deg, #e3f2fd, #e0f7fa); color: #0d3c61; padding: 14px; border-radius: var(--radio); }
.peticion p { font-size: 1.1rem; font-weight: 600; margin: 4px 0 8px; }
.card.opcion-bm { position: relative; }
.card.opcion-bm.mejor { box-shadow: 0 0 0 2px #1e88e5, var(--sombra); padding-top: 38px; }
.mejor-tag { background: #1e88e5; }
.razones { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 3px; font-size: .88rem; }
.razones li::before { content: '✓ '; color: var(--verde); font-weight: 700; }
.opcion-bm h3 a { color: inherit; }
.paywall { text-align: center; background: var(--card); padding: 20px; border-radius: var(--radio); box-shadow: 0 0 0 2px #1e88e5, var(--sombra); }
.paywall h2 { margin-top: 0; }
.card.sin-res { border-left: 4px solid #e53935; }
.rojo { color: #e53935; }

/* ===== Estrellas y reseñas ===== */
.stars {
  --oro: #f5a623; --gris: #d5dbd7;
  display: inline-block; letter-spacing: 1px; line-height: 1; font-size: .95rem;
  background: linear-gradient(90deg, var(--oro) calc(var(--v) / 5 * 100%), var(--gris) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars.lg { font-size: 1.5rem; }
.calif { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; margin: 2px 0; }
.calif b { color: var(--texto); }
.calif small { color: var(--muted); }
.calif-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.resumen-calif { display: flex; gap: 18px; align-items: center; background: var(--card); padding: 16px; border-radius: var(--radio); box-shadow: var(--sombra); }
.calif-grande { display: grid; justify-items: center; gap: 4px; flex: none; }
.calif-grande b { font-size: 2.6rem; line-height: 1; }
.calif-grande small { color: var(--muted); }
.barras { flex: 1; display: grid; gap: 4px; font-size: .8rem; }
.barras div { display: grid; grid-template-columns: 26px 1fr 18px; align-items: center; gap: 6px; }
.barras i { height: 8px; background: var(--borde); border-radius: 99px; overflow: hidden; }
.barras em { display: block; height: 100%; background: #f5a623; border-radius: 99px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.2rem; color: #d5dbd7; cursor: pointer; line-height: 1; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--verde); border-radius: 4px; }
.card-form textarea { width: 100%; padding: 10px; font: inherit; border: 1px solid var(--borde); border-radius: 10px; background: var(--fondo); color: var(--texto); }
.resenas { display: grid; gap: 10px; margin-top: 12px; }
.resena { background: var(--card); padding: 12px 14px; border-radius: var(--radio); box-shadow: var(--sombra); }
.resena p { margin: 8px 0 0; }
.resena-top { display: flex; gap: 10px; align-items: flex-start; }
.resena-top > div { flex: 1; }
.avatar-letra { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-claro); color: var(--verde); font-weight: 800; flex: none; }
.respuesta { margin-top: 8px; padding: 8px 10px; background: var(--fondo); border-left: 3px solid var(--verde); border-radius: 6px; font-size: .9rem; }

/* ===== Accesos rápidos y pie ===== */
.accesos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.accesos a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; text-align: center; font-size: .74rem; font-weight: 600;
  background: var(--card); border-radius: var(--radio); box-shadow: var(--sombra); line-height: 1.2; }
.accesos span { font-size: 1.6rem; }
.pie { text-align: center; margin: 24px 0 8px; font-size: .85rem; color: var(--muted); }
.pie a { color: var(--verde); font-weight: 600; }
@media (max-width: 400px) { .cuenta-btn span { display: none; } .cuenta-btn { padding: 8px; } }

/* ===== Mapa ===== */
.mapa { height: 380px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); background: #e8eee9; z-index: 0; }
.mapa-wrap { position: relative; margin: 6px 0 10px; }
.mapa-yo { position: absolute; right: 10px; bottom: 10px; z-index: 500; box-shadow: var(--sombra); }
.mapa-pick { height: 240px; margin-bottom: 8px; }
.mapa-chips { margin-top: 10px; }
.lbl { font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.pin { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center;
  background: #fff; border: 3px solid var(--tier, #2e7d4f); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.pin.tier-gratis { --tier: #78909c; }
.pin span { transform: rotate(45deg); font-size: 1.1rem; }
.popup { font: 14px/1.4 system-ui, sans-serif; min-width: 170px; }
.popup .stars { font-size: .85rem; }
.popup-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.popup-btns a { padding: 4px 8px; border-radius: 8px; background: #e8f5e9; color: #1f5c39 !important; font-weight: 600; text-decoration: none; }
.leaflet-container a.leaflet-popup-close-button { color: #555; }

/* ===== Términos, reportes ===== */
.terminos h3 { margin: 18px 0 6px; font-size: 1rem; }
.terminos p, .terminos li { font-size: .92rem; }
.aviso-legal { background: #fff8e6; color: #4a3200; border: 1px solid #f3d48a; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.aviso-legal ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; }
.terminos-mini { margin-top: 6px; }
.terminos-mini summary { cursor: pointer; font-weight: 700; color: var(--verde); }
.terminos-mini .terminos { max-height: 260px; overflow-y: auto; padding: 8px; background: var(--card); color: var(--texto); border-radius: 8px; margin-top: 6px; }
.reportar { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--borde); text-align: center; }

/* ===== Avisos: ocasión, comunidad y donaciones ===== */
.seg-avisos { margin-bottom: 14px; }
.seg-avisos a { font-size: .78rem; padding: 9px 2px; }
.card.noticia { border-left: 4px solid #455a64; }
.mis-avisos { background: var(--card); border-radius: var(--radio); padding: 10px 14px; box-shadow: var(--sombra); margin-bottom: 12px; }
.mis-avisos summary { font-weight: 700; cursor: pointer; }
.mi-aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--borde); }
.mi-aviso > div { flex: 1 0 100%; min-width: 0; }
.mi-aviso > .icon-btn { margin-left: auto; }
.mi-aviso.cerrado > div { flex: 1 1 0; }
.card.comunicado { border-left: 4px solid #90a4ae; }
.card.comunicado.oficial { border-left-color: var(--verde); background: linear-gradient(90deg, var(--verde-claro), var(--card) 60%); }
.card.com-seguridad { border-left-color: #e53935; }
.card.com-servicios { border-left-color: #1e88e5; }
.card.com-eventos { border-left-color: #8e24aa; }
.don-tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.don-tipo { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; background: var(--card);
  border-radius: var(--radio); box-shadow: var(--sombra); border: 2px solid transparent; }
.don-tipo.active { border-color: #e91e63; }
.don-tipo span { font-size: 1.6rem; }
.don-tipo b { font-size: .82rem; }
.don-tipo small { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.card.donacion { border-left: 4px solid #e91e63; }
.card.don-necesito { border-left-color: #fb8c00; }
.card.don-colecta { border-left-color: #8e24aa; }

/* ===== Promociones, cortesías y entregas ===== */
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge.info { background: #e3f2fd; color: #1565c0; }
.badge.gris { background: #eceff1; color: #607d8b; }
.card.promo-admin { border-left: 4px solid #f59e0b; }
.card.promo-admin.est-pausada, .card.promo-admin.est-vencida { border-left-color: #b0bec5; opacity: .85; }
.card.promo-admin.est-programada { border-left-color: #1e88e5; }
.acciones-promo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.cupon { display: inline-block; margin: 4px 0; padding: 3px 10px; border: 2px dashed #f59e0b; border-radius: 8px; font-size: .88rem; }
.link-btn { border: 0; background: none; padding: 0; margin-top: 4px; color: var(--verde); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.menu-item small { display: block; }

/* ===== Citas ===== */
.btn-cita { background: #7c4dff; border-color: #7c4dff; color: #fff; }
.badge.cita-badge { background: #ede7ff; color: #5e35b1; margin-top: 4px; }
.paso-titulo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paso-titulo span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #7c4dff; color: #fff; font-size: .85rem; }
.servicios-cita { display: grid; gap: 8px; }
.servicio-cita { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border-radius: var(--radio); box-shadow: var(--sombra); border: 2px solid transparent; }
.servicio-cita.active { border-color: #7c4dff; background: #f5f1ff; }
.servicio-cita small { color: var(--muted); }
.fecha-chip { padding: 10px 14px; font-weight: 600; }
.chip.fecha-chip.active { background: #7c4dff; border-color: #7c4dff; }
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hora { text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--borde); font-weight: 600; font-size: .9rem; }
.hora.active { background: #7c4dff; border-color: #7c4dff; color: #fff; }
.resumen-cita { display: grid; gap: 4px; margin: 18px 0 12px; padding: 14px; border-radius: var(--radio); background: #f5f1ff; border: 2px solid #7c4dff; color: #2d1b69; }
.card.cita { border-left: 4px solid #7c4dff; }
.card.cita.est-solicitada { border-left-color: #f59e0b; }
.card.cita.est-cancelada, .card.cita.est-rechazada, .card.cita.est-falto { border-left-color: #b0bec5; opacity: .8; }
.dia-agenda { margin: 14px 0 6px; font-size: .95rem; color: #5e35b1; }
.dias-semana { display: flex; flex-wrap: wrap; gap: 6px; }
.dias-semana label { display: block; }
.dias-semana input { position: absolute; opacity: 0; }
.dias-semana span { display: inline-block; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--borde); background: var(--card); font-weight: 600; font-size: .85rem; cursor: pointer; }
.dias-semana input:checked + span { background: #7c4dff; border-color: #7c4dff; color: #fff; }
.dias-semana input:focus-visible + span { outline: 2px solid var(--verde); }

/* ===== Clase muestra ===== */
.btn-muestra { background: #e91e63; border-color: #e91e63; color: #fff; }
.badge.muestra-badge { background: #fce4ec; color: #ad1457; margin-top: 4px; }
.hero-muestra { background: linear-gradient(135deg, #e91e63, #ff7043); }
.card.muestra { border-left: 4px solid #e91e63; }
.card.muestra.est-inscrito { border-left-color: var(--verde); }
.card.muestra.est-cancelada, .card.muestra.est-no_asistio { opacity: .75; border-left-color: #b0bec5; }

/* ===== Anuncio de bienvenida ===== */
.bienvenida { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 20, 14, .55); opacity: 0; transition: opacity .25s; }
.bienvenida.visible { opacity: 1; }
.bv-caja { position: relative; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; background: var(--card);
  border-radius: 20px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: translateY(20px) scale(.97); transition: transform .25s; }
.bienvenida.visible .bv-caja { transform: none; }
.bv-caja h2 { margin: 6px 0 4px; font-size: 1.35rem; }
.bv-caja .portada { margin-bottom: 8px; }
.bv-titulo { margin: 0 36px 10px 0; font-weight: 800; color: var(--verde); }
.bv-cerrar { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #0001; color: var(--texto); font-size: 1rem; cursor: pointer; }
.bv-etiqueta { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--tier, #2e7d4f); }
.bv-etiqueta.promo { background: #f59e0b; color: #3b2500; }
.bv-pie { margin: 10px 0 0; text-align: center; font-size: .72rem; color: var(--muted); }

/* Giros */
.giros-lista { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.form .giro-op { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .88rem; padding: 6px 10px;
  border: 1px solid var(--borde); border-radius: 99px; background: var(--card); cursor: pointer; }
.form .giro-op input { width: 16px; height: 16px; }
.form .giro-op:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); font-weight: 700; }
.giros-cat { margin: 10px 0 2px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.mas-giros summary { cursor: pointer; font-weight: 700; color: var(--verde); margin: 6px 0; }
.chips-scroll.subgiros { margin-top: -4px; }
.chip.chip-sub { font-size: .8rem; padding: 4px 10px; }
.chip.chip-sub.active { background: var(--verde-claro); color: var(--verde); border-color: var(--verde); }

.banner-demo { background: #fff4dc; color: #4a3200; text-align: center; font-size: .82rem; padding: 6px 12px; border-bottom: 1px solid #f3d48a; }

/* ===== Pregúntale a todos ===== */
.hero-pregunta { background: linear-gradient(135deg, #00897b, #43a047); }
.caja-pregunta { display: grid; gap: 8px; margin: 18px 0 10px; padding: 14px; border-radius: var(--radio); background: #e0f2f1; color: #004d40; }
.caja-pregunta.enlace { display: block; font-size: .92rem; }
.card.pregunta-negocio { border-left: 4px solid #00897b; }
.card.pregunta-negocio .form-inline input { flex: 1 1 140px; }
.card.respuesta-pq.est-si { border-left: 4px solid var(--verde); }
.card.respuesta-pq.est-parecido { border-left: 4px solid #1e88e5; }
.card.respuesta-pq.est-no { opacity: .7; }
.verde { color: var(--verde); }
.cuenta-btn { position: relative; }
.cuenta-btn[data-aviso]::after {
  content: attr(data-aviso); position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: #e53935; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}

/* ===== Horario por día ===== */
.horario-form { border: 1px solid var(--borde); border-radius: var(--radio); padding: 10px 12px; margin: 0; display: grid; gap: 4px; background: var(--card); }
.horario-form legend { font-weight: 700; padding: 0 4px; }
.dia-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--borde); }
.dia-fila:first-of-type { border-top: 0; }
.form .dia-nombre { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 112px; }
.form .dia-nombre input { width: 20px; height: 20px; }
.dia-cerrado { color: var(--muted); font-size: .9rem; }
.dia-horas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; }
.form .dia-horas input[type=time] { width: auto; padding: 6px 8px; font-size: .9rem; }
.form .mini24 { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: .85rem; }
.form .mini24 input { width: 16px; height: 16px; }
.turnos, .turno2 { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .9rem; }
.abierto-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin: 2px 0; }
.abierto-chip.si { background: #e8f5e9; color: #1b7a3d; }
.abierto-chip.no { background: #fdecea; color: #b3261e; }
.tabla-horario { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--card); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); font-size: .93rem; }
.tabla-horario th, .tabla-horario td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--borde); }
.tabla-horario tr:first-child th, .tabla-horario tr:first-child td { border-top: 0; }
.tabla-horario th { font-weight: 600; width: 40%; }
.tabla-horario tr.hoy { background: var(--verde-claro); font-weight: 700; }
.filtro-abierto { margin-bottom: 8px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translate(-50%, 20px);
  background: #1c2620; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 20; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ayuda y contacto ---------- */
.faq { background: var(--card); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--borde); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; padding: 14px 40px 14px 14px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--verde); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--muted); line-height: 1.5; }
.ayuda h2 { margin-top: 18px; }

/* ---------- Mis códigos (privados del administrador) ---------- */
.codigos-privados { background: linear-gradient(135deg, #1f2a44, #3b2f63); color: #fff; border-radius: var(--radio); padding: 12px 14px; margin-bottom: 12px; }
.codigos-privados a { color: #cfd8ff; }
.codigo-item { display: flex; flex-direction: column; padding-top: 8px; }
.codigo-item small { color: #cfd8ff; }
.codigos-privados .codigo-num { color: #fff; }
.codigo-num { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; color: var(--verde-osc); word-break: break-word; }

/* =============================================================
   REDISEÑO 2026: mezcla "Colorido de barrio" + "App de entregas"
   (estas reglas van al final y mandan sobre las de arriba)
   ============================================================= */
h1, h2, .titulo, .page-head h1 { font-family: var(--letra-titulo); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; line-height: 1.1; }
h2 { font-size: 1.3rem; line-height: 1.15; }
h3 { font-weight: 600; }
.section-head h2 { margin: 22px 0 8px; }
.section-head a, .back, .pie a { color: var(--verde); }

/* Encabezado: color principal + papel picado */
.topbar { flex-wrap: wrap; padding: calc(16px + env(safe-area-inset-top)) 16px 10px; background: var(--verde); overflow: hidden; }
.papel-picado { position: absolute; top: env(safe-area-inset-top); left: 0; right: 0; height: 14px; pointer-events: none; }
.papel-picado i { position: absolute; inset: 0; height: 14px; display: block;
  background: linear-gradient(135deg, var(--papel1) 25%, transparent 25%) 0 0/22px 14px,
              linear-gradient(225deg, var(--papel1) 25%, transparent 25%) 0 0/22px 14px; filter: brightness(1.15); }
.papel-picado i + i { top: 0; opacity: .9;
  background: linear-gradient(135deg, var(--papel2) 25%, transparent 25%) 11px 0/22px 14px,
              linear-gradient(225deg, var(--papel2) 25%, transparent 25%) 11px 0/22px 14px; height: 8px; }
.brand { gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--dorado); display: grid; place-items: center;
  font-size: 1.25rem; transform: rotate(-6deg); box-shadow: 0 2px 0 rgba(0,0,0,.15); flex: none; }
.brand-txt { display: grid; line-height: 1.05; }
.brand-txt b { font-family: var(--letra-titulo); font-size: 1.25rem; font-weight: 800; }
.brand-txt small { font-size: .7rem; opacity: .85; }
.cuenta-btn { border-radius: 999px; }

/* Barra inferior oscura */
.tabbar { background: var(--tinta); border-top: 0; }
.tabbar a { color: #e8d6c4; }
.tabbar a.active { color: var(--dorado); }
@media (prefers-color-scheme: dark) { .tabbar { background: #0d0906; } .tabbar a.active { color: var(--dorado); } }

/* Botones */
.btn { border-radius: 14px; border: 2px solid var(--borde); }
.btn-primary { background: var(--verde); border-color: var(--tinta); color: #fff; box-shadow: 3px 3px 0 var(--tinta); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.btn-accent { background: var(--dorado); border-color: var(--tinta); color: #2b1d14; }
.btn-wa { border-color: #1a8f45; }

/* Tarjetas con borde marcado */
.card, .card-form, .resumen, .stats div, .resumen-calif { border: 1.5px solid var(--tinta); box-shadow: none; }
.chip { border-radius: 999px; }
.chip.active, .seg a.active { background: var(--verde); }
.seg { border: 1.5px solid var(--tinta); }

/* ---------- Inicio ---------- */
.inicio-cabeza { margin: -16px -16px 0; padding: 4px 16px 46px; background: var(--verde); color: #fff;
  border-radius: 0 0 28px 28px; position: relative; }
.inicio-cabeza .hola { font-family: var(--letra-titulo); font-weight: 800; font-size: 1.75rem; line-height: 1.05; margin: 0; }
.inicio-cabeza .hola span { color: var(--dorado); }
.inicio-cabeza .sub { opacity: .9; font-size: .9rem; margin: 4px 0 0; }
.inicio-cabeza .adorno { position: absolute; right: 14px; top: -2px; font-size: 2rem; }
.buscar-grande { position: relative; margin: -28px 0 16px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid var(--tinta); border-radius: 16px; padding: 6px 6px 6px 12px; box-shadow: 4px 4px 0 var(--tinta); }
.buscar-grande input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 8px 0; color: var(--texto); outline: none; }
.buscar-grande .mic { width: 40px; height: 40px; border-radius: 12px; background: var(--acento); color: #fff; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.buscar-grande .lupa { font-size: 1.1rem; }
.bm-linea { display: block; margin: -6px 0 14px; font-size: .88rem; color: var(--muted); }
.bm-linea b { color: var(--verde); }

/* Promociones que se deslizan */
.promos-banner { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px 4px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promos-banner::-webkit-scrollbar { display: none; }
.banner-promo { flex: 0 0 82%; max-width: 320px; min-height: 128px; border-radius: 18px; padding: 14px; color: #fff; display: flex; flex-direction: column;
  justify-content: flex-end; position: relative; overflow: hidden; border: 2px solid var(--tinta); scroll-snap-align: start; }
.banner-promo small { font-size: .74rem; opacity: .95; }
.banner-promo b { font-family: var(--letra-titulo); font-size: 1.2rem; line-height: 1.1; padding-right: 60px; }
.banner-promo .em { position: absolute; right: 10px; top: 4px; font-size: 3.1rem; }
.bp0 { background: linear-gradient(135deg, #ff6b35, #f7a325); } .bp1 { background: linear-gradient(135deg, #7b2ff7, #c13cff); }
.bp2 { background: linear-gradient(135deg, #0f9b8e, #21c7a8); } .bp3 { background: linear-gradient(135deg, #e9445a, #ff7a8a); }

/* Categorías de colores */
.cats-color { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.cats-color a { border-radius: 14px; padding: 8px 3px 6px; text-align: center; font-weight: 600; font-size: .7rem; line-height: 1.15;
  border: 2px solid var(--tinta); color: #2b1d14; display: grid; gap: 2px; justify-items: center; }
.cats-color a span { font-size: 1.5rem; line-height: 1.3; }
.cc0 { background: #ffd8de; } .cc1 { background: #c9f2ee; } .cc2 { background: #ffe7b3; } .cc3 { background: #e3dcff; }
.cc4 { background: #d7f5c8; } .cc5 { background: #ffd9c2; } .cc6 { background: #cfe8ff; } .cc7 { background: #f1e4d3; }

/* Accesos rápidos en píldoras */
.accesos-pildoras { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.accesos-pildoras::-webkit-scrollbar { display: none; }
.accesos-pildoras a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--tinta); font-size: .82rem; font-weight: 600; }

/* Tarjeta grande de negocio (foto arriba) */
.grandes { display: grid; gap: 14px; }
@media (min-width: 640px) { .grandes { grid-template-columns: 1fr 1fr; } }
.tarjeta-grande { display: block; background: var(--card); border: 2px solid var(--tinta); border-radius: 18px; overflow: hidden; position: relative; }
.tarjeta-grande .foto { height: 128px; display: grid; place-items: center; font-size: 3.2rem; position: relative; }
.tarjeta-grande .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tarjeta-grande .etq { position: absolute; background: #fff; color: #2b1d14; font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; border: 1.5px solid #2b1d14; }
.tarjeta-grande .etq.izq { left: 10px; top: 10px; } .tarjeta-grande .etq.der { right: 10px; bottom: 10px; }
.tarjeta-grande .etq.si { color: #1f9254; } .tarjeta-grande .etq.no { color: #c62828; }
.tarjeta-grande .tg-info { padding: 9px 12px 11px; display: grid; gap: 2px; }
.tarjeta-grande .tg-linea { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.tarjeta-grande .tg-linea span { white-space: nowrap; font-size: .85rem; }
.tarjeta-grande small { color: var(--muted); font-size: .78rem; }
.sello-v { display: inline-block; background: var(--acento2); color: #fff; font-size: .66rem; border-radius: 999px; padding: 0 8px; margin-left: 4px; vertical-align: middle; }

/* Fondos de color por categoría (negocios sin foto) */
.fondo-0 { background: #ffe7b3; } .fondo-1 { background: #c9f2ee; } .fondo-2 { background: #ffd8de; } .fondo-3 { background: #e3dcff; }
.fondo-4 { background: #d7f5c8; } .fondo-5 { background: #ffd9c2; } .fondo-6 { background: #cfe8ff; } .fondo-7 { background: #f1e4d3; }

/* Pregúntale a todos */
.caja-pregunta { display: block; margin: 18px 0 0; border-radius: 18px; background: var(--tinta); color: #fff8ef; padding: 14px 16px; }
.caja-pregunta b { font-family: var(--letra-titulo); font-size: 1.2rem; color: var(--dorado); }
.caja-pregunta p { margin: 2px 0 0; font-size: .9rem; opacity: .95; }
@media (prefers-color-scheme: dark) { .caja-pregunta { background: #0d0906; border: 1.5px solid var(--tinta); } }

/* Avisos de vecinos que se deslizan */
.mini-avisos { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.mini-avisos::-webkit-scrollbar { display: none; }
.mini-aviso { flex: 0 0 172px; background: var(--card); border: 2px solid var(--tinta); border-radius: 16px; overflow: hidden; }
.mini-aviso .foto { height: 92px; display: grid; place-items: center; font-size: 2.4rem; position: relative; }
/* contain: se ve el artículo completo (igual que en la página de Avisos) */
.mini-aviso .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--fondo); }
.mini-aviso .info { padding: 7px 10px 9px; line-height: 1.25; }
.mini-aviso b { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-aviso small { color: var(--muted); font-size: .76rem; }

/* Directorio: tarjetas de pago con portada */
.card.negocio.pago { border-width: 2px; }
.banner-enchu { border: 2px solid var(--tinta); }
.cta { background: var(--verde-claro); border: 2px dashed var(--verde); }
.promos-banner { scroll-padding-left: 16px; }
.inicio-cabeza.con-adorno .hola { padding-right: 78px; }
.inicio-cabeza .adorno { top: 4px; font-size: 1.9rem; letter-spacing: -2px; }
/* Pie de página y entrar con Google */
.pie nav { line-height: 1.9; }
.pie .derechos { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.btn-google { background: #fff; color: #3c4043; border: 2px solid var(--tinta); gap: 10px; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 18px 0 4px; }
.separador::before, .separador::after { content: ''; flex: 1; border-top: 1.5px solid var(--borde); }
/* Compra y vende seguro */
.caja-seguridad { background: #fff4dc; color: #3d2600; border: 2px solid #b26a00; border-radius: 16px; padding: 12px 14px; margin: 6px 0 14px; }
.caja-seguridad .titulo { font-family: var(--letra-titulo); font-size: 1.2rem; display: block; margin-bottom: 4px; color: #8a4b00; }
.caja-seguridad ul { margin: 0 0 6px; padding-left: 20px; }
.caja-seguridad li { margin: 3px 0; font-weight: 600; font-size: .92rem; }
.caja-seguridad .link { color: #8a4b00; }
.consejo { background: var(--card); border: 1.5px solid var(--tinta); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.consejo p { margin: 2px 0 0; font-size: .92rem; }
.aviso-seguro { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.aviso-seguro a { color: var(--verde); font-weight: 600; }
.acepto-seguridad { align-items: flex-start !important; background: #fff4dc; border: 2px solid #b26a00; border-radius: 12px; padding: 10px; color: #3d2600; }
.bv-caja .caja-seguridad { margin-top: 26px; }
@media (prefers-color-scheme: dark) {
  .caja-seguridad, .acepto-seguridad { background: #3a2a10; color: #ffe8bf; border-color: #c98a2b; }
  .caja-seguridad .titulo, .caja-seguridad .link { color: #ffc46b; }
}
/* Repartidores: bandera de disponible y tarifas */
.card.repartidor { flex-wrap: wrap; position: relative; padding-top: 44px; }
.card.repartidor.disponible { border-color: #1f9254; border-width: 2.5px; }
.bandera { position: absolute; left: 12px; top: 10px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--tinta); }
.bandera.si { background: #d7f5c8; color: #14532d; }
.bandera.no { background: var(--card); color: var(--muted); }
.tarifas { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.tarifas span { background: var(--fondo); border: 1.5px solid var(--borde); border-radius: 10px; padding: 3px 10px; font-size: .88rem; }
.bandera-switch { padding: 12px; border-radius: 14px; border: 2px solid var(--tinta); background: var(--card); }
.bandera-switch.si { background: #d7f5c8; color: #14532d; }
.brand-logo.con-img { background: transparent; box-shadow: none; transform: none; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; display: block; border-radius: 10px; }
.brand-logo.con-img { border: 2px solid #fff8ef; }
/* Foto del repartidor */
.avatar.foto-rep { padding: 0; overflow: hidden; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--tinta); }
.avatar.foto-rep img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-rep-prev { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tinta); }
/* Fotos de promociones */
.promo-foto-campo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-foto-prev { width: 140px; height: 105px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--tinta); }
.card.promo.con-foto { flex-wrap: wrap; }
.card.promo .promo-img { flex: 0 0 100%; width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.banner-promo.con-foto { justify-content: flex-end; }
.banner-promo .bp-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-promo.con-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 70%); }
.banner-promo.con-foto small, .banner-promo.con-foto b { position: relative; z-index: 1; padding-right: 0; }
.foto-add.cargando { opacity: .5; pointer-events: none; }
/* Promo relámpago */
.franja-rayo { margin: 0 0 16px; background: linear-gradient(135deg, #2b1d14, #4a2a12); color: #fff8ef; border-radius: 18px; padding: 12px; border: 2px solid var(--tinta); }
.rayo-titulo { font-family: var(--letra-titulo); font-weight: 800; font-size: 1.15rem; margin: 0 0 8px; color: var(--dorado); }
.rayo-lista { display: grid; gap: 10px; }
.rayo { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px; }
.rayo img, .rayo-em { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.12); }
.rayo-info { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.rayo-info b { font-size: .95rem; }
.rayo-info small { opacity: .8; font-size: .75rem; }
.rayo-tiempo { font-size: .78rem; color: #ffe8a3; }
.rayo-tiempo b { font-variant-numeric: tabular-nums; }
.rayo .btn { flex: none; }
.rayo .btn-primary { background: var(--dorado); color: #2b1d14; border-color: #fff8ef; box-shadow: none; }
.rayo.agotada { opacity: .55; }

/* ===== Panel del negocio: menú (Promociones / Datos y fotos) ===== */
.menu-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.menu-op { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px; border-radius: var(--radio);
  background: #fff; box-shadow: var(--sombra); border: 2px solid transparent; color: inherit; text-decoration: none; }
.menu-op span { font-size: 2rem; line-height: 1.1; }
.menu-op b { font-size: 1.05rem; }
.menu-op small { opacity: .75; font-size: .8rem; }
.menu-op.promos { border-color: #ffb74d; background: #fff8ec; }
.menu-op.ficha { border-color: #81c784; background: #f1f9f2; }

/* ===== Banderas de "Pregúntale a todos" ===== */
.pin-bandera { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 50%;
  background: #fff; border: 3px solid #e53935; box-shadow: 0 3px 8px rgba(0,0,0,.35); animation: ondea 1.6s ease-in-out infinite; }
.pin-bandera.parecido { border-color: #1e88e5; font-size: 1.2rem; animation: none; }
@keyframes ondea { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.btn-bandera { flex: 1 1 100%; font-size: 1.05rem; padding: 12px; }
.card.bandera-puesta { border-left: 4px solid #e53935; }

/* ===== Inicio: carrusel de promociones con título y pista de "desliza" ===== */
.promos-sec { margin-top: 6px; }
.promos-sec .section-head { margin-bottom: 4px; }
.desliza { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .8rem; white-space: nowrap; font-weight: 600; color: var(--verde, #1f6b45); }
.desliza .mano { display: inline-block; font-size: 1.15rem; animation: desliza-mano 1.4s ease-in-out infinite; }
@keyframes desliza-mano { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.puntos { display: flex; justify-content: center; gap: 6px; margin: 6px 0 2px; }
.puntos span { width: 8px; height: 8px; border-radius: 999px; background: #d6c9bb; cursor: pointer; transition: width .2s, background .2s; }
.puntos span.on { width: 22px; background: var(--verde, #1f6b45); }
.puntos { margin-bottom: 10px; }

/* ===== Pestañas de Avisos como recuadros (cada opción se ve como botón) ===== */
.seg.seg-avisos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: none; border: 0; padding: 0; }
.seg.seg-avisos a { display: grid; justify-items: center; gap: 3px; padding: 10px 2px 9px; font-size: .78rem; font-weight: 700;
  color: var(--tinta); background: #fff; border: 2px solid #d5dcd6; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.seg.seg-avisos a span { font-size: 1.45rem; line-height: 1; }
.seg.seg-avisos a.active { background: var(--verde); color: #fff; border-color: var(--verde); box-shadow: 0 3px 8px rgba(0,0,0,.2); }

/* ===== Marca ZONI en el encabezado ===== */
.brand-txt b { letter-spacing: .02em; }
.brand-txt b em { font-style: normal; font-weight: 700; font-size: .78em; opacity: .9; letter-spacing: 0; }
