/* bunnex · kit de tienda por WhatsApp
   Todo lo que cambia entre negocios son variables (tema.css). Una escala de radios:
   tarjetas --r, botones y chips en píldora. Movimiento solo en transform y opacity. */
:root {
  --bg: #f4f5f0; --bg2: #e9ece3; --card: #ffffff; --ink: #14201a; --ink2: #4d5a52; --line: rgba(20, 32, 26, .12);
  --acc: #1f5a3a; --acc-ink: #ffffff; --acc-soft: rgba(31, 90, 58, .1);
  --font-d: 'Bricolage Grotesque', system-ui, sans-serif; --font-b: 'Manrope', system-ui, sans-serif;
  --r: 22px; --pill: 999px;
  --sh: 0 1px 2px rgba(20, 32, 26, .06), 0 14px 34px -14px rgba(20, 32, 26, .22);
  --out: cubic-bezier(.23, 1, .32, 1); --inout: cubic-bezier(.77, 0, .175, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── barra superior ── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.marca { min-height: 44px; display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.marca span { white-space: nowrap; font-size: clamp(18px, 5vw, 21px); }
.marca img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.menu { display: none; gap: 26px; font-weight: 600; font-size: 15px; }
.menu a { text-decoration: none; color: var(--ink2); padding: 8px 0; transition: color .18s var(--out); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { color: var(--ink); } }
@media (min-width: 880px) { .menu { display: flex; } }
@media (max-width: 520px) { .top .wrap { gap: 12px; } .top .btn i { display: none; } .top .btn.chico { padding: 0 16px; } }

/* ── botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: var(--pill); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  background: var(--acc); color: var(--acc-ink); transition: transform .16s var(--out), box-shadow .2s var(--out), background-color .2s var(--out); box-shadow: 0 10px 24px -12px var(--acc); }
.btn:active { transform: scale(.97); }
.btn i { font-size: 20px; }
.btn.contorno { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.chico { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.ancho { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(.97); } }

/* ── estado abierto/cerrado (único punto de color con significado) ── */
.estado { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: var(--pill); background: var(--acc-soft); font-weight: 700; font-size: 14px; }
.estado::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #9aa39e; }
.estado.abierto::before { background: #1fa65a; box-shadow: 0 0 0 4px rgba(31, 166, 90, .2); }

/* ── tipografía de secciones ── */
.sec { padding-block: clamp(60px, 9vw, 116px); }
.sec.alt { background: var(--bg2); }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.bajada { color: var(--ink2); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 18px; }
.cab { margin-bottom: clamp(28px, 4vw, 48px); }
.cab .bajada { margin-top: 14px; }

/* ── heroes (el HTML de cada sitio elige uno) ── */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-txt { display: grid; gap: 22px; justify-items: start; }
.hero-txt h1 em { font-style: italic; color: var(--acc); padding-bottom: .08em; display: inline-block; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--split .wrap { grid-template-columns: 1fr; }
.hero--split .foto-grande { position: relative; aspect-ratio: 5 / 4; border-radius: calc(var(--r) + 14px); overflow: hidden; box-shadow: var(--sh); }
.hero--split .foto-grande img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; }
@media (min-width: 900px) { .hero--split .wrap { grid-template-columns: 1.02fr 1fr; } .hero--split .foto-grande { aspect-ratio: 4 / 4.6; } }
@supports (animation-timeline: view()) {
  .hero--split .foto-grande img { animation: desliza linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes desliza { from { transform: translateY(-9%); } to { transform: translateY(9%); } }
}

/* hero con tres fotos superpuestas */
.hero--collage .wrap { grid-template-columns: 1fr; }
.collage { position: relative; aspect-ratio: 1 / .95; width: 100%; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--r); box-shadow: var(--sh); }
.collage .c1 { left: 0; top: 0; width: 66%; height: 66%; }
.collage .c2 { right: 0; top: 14%; width: 40%; height: 46%; }
.collage .c3 { left: 20%; bottom: 0; width: 56%; height: 40%; }
@media (min-width: 900px) { .hero--collage .wrap { grid-template-columns: 1.05fr 1fr; } }
@supports (animation-timeline: view()) {
  .collage .c1 { animation: va linear both; animation-timeline: view(); }
  .collage .c2 { animation: vb linear both; animation-timeline: view(); }
  @keyframes va { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
  @keyframes vb { from { transform: translateY(8%); } to { transform: translateY(-8%); } }
}
/* hero con arcos */
.hero--arcos .wrap { grid-template-columns: 1fr; }
.arcos { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(8px, 1.6vw, 18px); align-items: end; }
.arcos img { width: 100%; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); box-shadow: var(--sh); }
.arcos img { height: auto; object-position: 50% 30%; }
.arcos img:nth-child(1) { aspect-ratio: 1 / 1.35; }
.arcos img:nth-child(2) { aspect-ratio: 1 / 1.7; }
.arcos img:nth-child(3) { aspect-ratio: 1 / 1.15; }
@media (min-width: 900px) { .hero--arcos .wrap { grid-template-columns: 1fr 1.05fr; } }

/* ── catálogo ── */
.filtros { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 -2px 28px; scrollbar-width: none; background: var(--bg2); border-radius: var(--pill); width: max-content; max-width: 100%; }
.sec.alt .filtros { background: var(--bg); }
.filtros::-webkit-scrollbar { display: none; }
.filtros .ind { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); border-radius: var(--pill); background: var(--ink); transition: transform .38s var(--out), width .38s var(--out); pointer-events: none; }
.chip { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border-radius: var(--pill); font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink2); transition: color .22s var(--out), transform .16s var(--out); }
.chip:active { transform: scale(.96); }
.chip[aria-selected="true"] { color: var(--bg); }
.aviso-ref { font-size: 14px; color: var(--ink2); margin: -10px 0 22px; max-width: 70ch; }
.aviso-ref b { color: var(--ink); }

.grilla { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1040px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grilla.sale { opacity: 0; transition: opacity .12s var(--out); }
.tarjeta { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); animation: sube .5s var(--out) both; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .3s var(--out), box-shadow .3s var(--out); }
@keyframes sube { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .tarjeta:hover { transform: translateY(-5px); } .tarjeta:hover .foto img { transform: scale(1.05); } }
.tarjeta .foto { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg2); }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.tarjeta .lupa { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); font-size: 21px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); transition: transform .16s var(--out); }
.tarjeta .foto:active .lupa { transform: scale(.92); }
.tarjeta .cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.tarjeta h3 { font-size: 18px; }
.tarjeta .nota { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.precio b { font-family: var(--font-d); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.precio span { font-size: 14px; color: var(--ink2); }
.precio .ref { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--acc-soft); color: var(--ink); }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.opciones button { min-height: 40px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .18s var(--out), color .18s var(--out), transform .16s var(--out); }
.opciones button:active { transform: scale(.95); }
.opciones button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.agregar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; transition: transform .16s var(--out), background-color .2s var(--out); }
.agregar:active { transform: scale(.97); }
.agregar.ok { background: var(--acc); color: var(--acc-ink); }
.pedir-ya { display: grid; place-items: center; min-height: 40px; font-size: 14px; font-weight: 700; text-align: center; color: var(--ink2); }

/* ── pedido flotante y hoja ── */
.barra-pedido { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 12px 0 10px; border-radius: var(--pill); background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); transition: transform .5s var(--out); width: min(440px, calc(100% - 24px)); }
.barra-pedido.ver { transform: translate(-50%, 0); }
.barra-pedido:active { transform: translate(-50%, 0) scale(.98); }
.barra-pedido .cuenta { min-width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-weight: 800; }
.barra-pedido.salta .cuenta { animation: salta .4s var(--out); }
@keyframes salta { 40% { transform: scale(1.3); } }
.barra-pedido .txt { font-weight: 700; margin-right: auto; }
.barra-pedido .tot { font-family: var(--font-d); font-weight: 800; font-size: 18px; padding-right: 8px; }
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 16, 12, .55); backdrop-filter: blur(3px); animation: velo .25s var(--out); }
@keyframes velo { from { opacity: 0; } }
.hoja { width: min(560px, 100%); margin: auto auto 0; border-radius: 28px 28px 0 0; max-height: 90dvh; overflow: auto; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: hoja .42s var(--out); }
@keyframes hoja { from { transform: translateY(40px); opacity: 0; } }
@keyframes hojaesc { from { transform: scale(.96); opacity: 0; } }
@media (min-width: 720px) { .hoja { margin: auto; border-radius: 28px; animation: hojaesc .35s var(--out); } }
.hoja h3 { font-size: 26px; margin-bottom: 14px; }
.cerrar { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--bg2); transition: transform .16s var(--out); z-index: 2; }
.cerrar:active { transform: scale(.92); }
.lineas { list-style: none; padding: 0; display: grid; gap: 4px; margin-bottom: 16px; }
.item-linea { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-linea b { font-weight: 700; }
.item-linea small { color: var(--ink2); font-size: 14px; grid-column: 1; }
.item-linea .paso { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 4px; }
.paso button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 17px; transition: transform .16s var(--out); }
.paso button:active { transform: scale(.9); }
.paso output { min-width: 26px; text-align: center; font-weight: 800; }
.campo { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.campo input, .campo select { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 500; }
.campo input:focus, .campo select:focus { outline: 3px solid var(--acc-soft); border-color: var(--acc); }
.total-linea { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; }
.total-linea b { font-family: var(--font-d); font-size: 28px; font-weight: 800; }
.vaciar { display: block; margin: 12px auto 0; font-size: 14px; font-weight: 700; color: var(--ink2); text-decoration: underline; padding: 8px; }

/* ── mirar de cerca ── */
.cerca { width: min(940px, calc(100% - 24px)); margin: auto; border-radius: 28px; overflow: hidden; animation: hojaesc .35s var(--out); }
.cerca[open] { display: grid; }
@media (min-width: 760px) { .cerca { grid-template-columns: 1.2fr 1fr; } }
.cerca .lienzo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg2); touch-action: none; cursor: zoom-in; }
.cerca .lienzo img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .5s var(--out); user-select: none; -webkit-user-drag: none; }
.cerca .lienzo.zoom img { transform: scale(2.1); transition-duration: .25s; }
.cerca .lienzo .tip { position: absolute; left: 12px; bottom: 12px; padding: 7px 13px; border-radius: var(--pill); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; }
.cerca .datos { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.cerca .datos h3 { font-size: 28px; padding-right: 36px; }

/* ── bloques de contenido ── */
.fila-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 24px; margin-inline: -16px; scrollbar-width: none; }
.fila-scroll::-webkit-scrollbar { display: none; }
.fila-scroll > * { scroll-snap-align: start; flex: 0 0 min(320px, 82%); }
@media (min-width: 1100px) { .fila-scroll { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); } .fila-scroll > * { flex: initial; } }
.receta { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.receta .foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.receta .foto img { width: 100%; height: 100%; object-fit: cover; }
.receta .cuerpo { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.receta ul { padding-left: 18px; color: var(--ink2); font-size: 15px; }
.receta .btn { margin-top: auto; }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); } .bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; } .bento > :nth-child(2) { grid-column: span 2; } .bento > :nth-child(3) { grid-column: span 2; } }
.tile { position: relative; overflow: hidden; border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: var(--card); box-shadow: var(--sh); min-height: 210px; }
.tile.foto-fondo { color: #fff; }
.tile.foto-fondo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile.foto-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 10, .78), rgba(8, 12, 10, .05) 70%); z-index: 1; }
.tile.foto-fondo > *:not(img) { position: relative; z-index: 2; }
.tile.color { background: var(--acc); color: var(--acc-ink); }
.tile h3 { font-size: 25px; }
.tile p { font-size: 16px; opacity: .9; max-width: 44ch; }
.tile ul { padding-left: 18px; font-size: 15px; }

.faq { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 16px; } }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--sh); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; min-height: 64px; font-weight: 700; font-size: 18px; font-family: var(--font-d); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 22px; transition: transform .3s var(--out); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .resp { padding: 0 22px 22px; color: var(--ink2); }
.faq .resp .valor { color: var(--ink); font-weight: 700; }
.pend { display: inline-block; padding: 1px 10px; border-radius: var(--pill); background: var(--acc-soft); color: var(--ink); font-weight: 700; font-size: 13px; }

.lugar { display: grid; gap: 28px; }
@media (min-width: 900px) { .lugar { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
.horarios { display: grid; gap: 4px; margin: 20px 0 26px; }
.horarios div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.horarios .hoy { font-weight: 800; }
.mapa { min-height: 320px; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); background: var(--bg2); }
.sin-mapa { display: grid; place-content: center; gap: 10px; min-height: 320px; padding: 32px; text-align: center; color: var(--ink2); }
.sin-mapa i { font-size: 42px; color: var(--acc); justify-self: center; }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.cinco { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .cinco { grid-template-columns: repeat(5, 1fr); } }
.cinco li a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r); background: var(--card); text-decoration: none; box-shadow: var(--sh); transition: transform .3s var(--out); }
@media (hover: hover) and (pointer: fine) { .cinco li a:hover { transform: translateY(-4px); } }
.cinco i { font-size: 30px; color: var(--acc); }
.cinco b { font-family: var(--font-d); font-size: 19px; line-height: 1.15; }
.cinco span { font-size: 14px; color: var(--ink2); line-height: 1.45; }

.pie { padding-block: 48px 120px; background: var(--ink); color: var(--bg); }
.pie .wrap { display: grid; gap: 10px; }
.pie b { font-family: var(--font-d); font-size: 22px; }
.pie small { opacity: .7; font-size: 13px; max-width: 70ch; }
.pie a { color: inherit; }

/* ── aparecer al hacer scroll ── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .7s var(--out); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero--split .foto-grande img { animation: none; height: 100%; }
}

/* aviso de mensaje copiado (cuando el negocio todavía no tiene WhatsApp y se usa Instagram) */
.aviso-copia { position: fixed; z-index: 60; left: 50%; bottom: max(90px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 14px 20px; border-radius: 18px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; width: min(420px, calc(100% - 32px)); text-align: center; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); animation: sube .4s var(--out); }
