/* ===== La Biscotti — estilos del sitio público =====
   Identidad según el manual de marca: azul #143981, dorado #BC8C2B, beige #D3CCBC, ocre #BA7D16.
   Tipografías: Blinkford (títulos; colocar los archivos en /public/fonts/) y Montserrat (textos). */
:root {
  --blue: #143981;
  --cream: #f5f2ea;
  --paper: #fcfbf7;
  --sand: #d3ccbc;
  --ink: #143981;
  --text: #14234f;
  --ink-soft: #55608a;
  --gold: #bc8c2b;
  --gold-dark: #9a7020;
  --ochre: #ba7d16;
  --accent: #a4381f;
  --line: #ddd7c8;
  --ok: #3f7d4e;
  --shadow: 0 12px 34px rgba(20, 57, 129, .14);
  --radius: 16px;
  --serif: 'Blinkford', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.1; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--ink-soft); }

/* ===== Botones ===== */
.btn-primary, .btn-ghost, .btn-add, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .8rem 1.5rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1.5px solid transparent; transition: .18s ease; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary[aria-disabled="true"], .btn-primary:disabled { opacity: .45; pointer-events: none; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-add { background: var(--paper); border-color: var(--gold); color: var(--gold-dark); padding: .5rem 1.1rem; font-size: .95rem; }
.btn-add:hover { background: var(--gold); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--gold-dark); text-decoration: underline; font-size: .85rem; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn:hover { background: var(--sand); }

/* ===== Cabecera ===== */
#site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: var(--cream); text-align: center; font-size: .82rem; padding: .45rem 1rem; letter-spacing: .04em; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 2.5rem); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover, .nav-links a.on { border-color: var(--gold); }
.burger { display: none; }
.logo { display: block; line-height: 0; }
.logo img { height: 64px; width: auto; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: .8rem; }
.mode-pill {
  border: 1.5px solid var(--line); background: var(--cream); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem;
}
.mode-pill strong { font-weight: 600; }
.mode-pill.need { border-color: var(--gold); background: #f7ecd0; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--cream);
  border: 0; border-radius: 999px; padding: .55rem 1.1rem; font-size: .92rem;
}
.cart-btn .ic { font-size: 1.05rem; line-height: 1; }
.cart-btn .count { background: var(--gold); color: #fff; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 600; padding: 0 .3rem; }

/* ===== Secciones ===== */
.wrap { width: min(1440px, 100% - 2rem); margin-inline: auto; }
.wrap.wide { width: min(1560px, 100% - 2rem); } /* menú: aprovecha pantallas anchas */
section.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; color: var(--gold-dark); font-weight: 500; }
.dots { display: block; letter-spacing: .5em; color: var(--gold); font-size: .6rem; margin: .8rem 0; }
.sec-head { text-align: center; margin-bottom: 2.4rem; }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-top: .4rem; }
.sec-head p { color: var(--ink-soft); max-width: 52ch; margin: .6rem auto 0; }

/* Hero (inspirado en Pastéis de Belém: fotografía grande + tipografía serif) */
.hero {
  position: relative; min-height: min(78vh, 700px); display: grid; place-items: center; text-align: center; color: var(--cream);
  background:
    linear-gradient(180deg, rgba(20,57,129,.62), rgba(14,38,92,.86)),
    url('/img/hero.jpg') center / cover no-repeat,
    url('/img/patron-azul.svg') 0 0 / 84px,
    #143981;
  background-color: #143981; padding: 4rem 1.5rem;
}
.hero h1 { color: var(--cream); font-size: clamp(3rem, 9vw, 6.4rem); letter-spacing: .01em; }
.hero h1 em { font-style: italic; color: #e3b95a; }
.hero .dots { margin: 1.1rem auto; font-size: .7rem; }
.hero p.lead { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; color: #e6e0cf; }
.hero .cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--cream); color: var(--cream); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--ink); }
.hero-logo { width: min(300px, 62vw); margin: 0 auto 1.4rem; }

.strip { background: var(--sand); border-block: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; padding: 1.6rem 0; }
.strip div { text-align: center; }
.strip strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.strip span { font-size: .88rem; color: var(--ink-soft); }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
.cat-card {
  text-decoration: none; background: var(--c, var(--sand)); border-radius: var(--radius); padding: 2rem 1.2rem;
  text-align: center; transition: .2s ease; border: 1px solid rgba(47,29,18,.06);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .em { font-size: 2.8rem; display: block; margin-bottom: .6rem; }
.cat-card h3 { font-size: 1.5rem; }
.cat-card p { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }

/* Tarjetas de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.2rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.card.sold { opacity: .72; }
.thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--c, var(--sand)), #fff8ea); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .emoji { font-size: 3.6rem; filter: saturate(.9); }
.card-body { padding: 1rem 1.1rem .3rem; flex: 1; }
.card h3 { font-size: 1.3rem; }
.card .desc { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .unit { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); margin-top: .5rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.1rem 1.1rem; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price .usd { font-weight: 600; font-size: 1.1rem; }
.price .bs { font-size: .78rem; color: var(--ink-soft); }
.badge-sold { font-size: .8rem; color: var(--accent); font-weight: 500; background: #f6e2dc; padding: .35rem .7rem; border-radius: 999px; }
.stepper { display: inline-flex; align-items: center; background: var(--ink); color: var(--cream); border-radius: 999px; }
.stepper button { background: none; border: 0; color: inherit; width: 36px; height: 36px; font-size: 1.2rem; border-radius: 50%; }
.stepper button:hover { background: rgba(255,255,255,.14); }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 600; }

/* Servicios */
.services { background: var(--paper); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.svc { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; }
.svc h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.svc p { color: var(--ink-soft); font-size: .95rem; }
.svc .btn-ghost { margin-top: 1rem; padding: .5rem 1.1rem; font-size: .9rem; }
.svc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.svc-actions .btn-ghost, .svc-actions .btn-light, .svc-actions .btn-primary { margin-top: 0; padding: .5rem 1.1rem; font-size: .9rem; }

/* Historia */
.story { background: var(--ink); color: var(--cream); }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.story h2, .story h3 { color: var(--cream); }
.story h2 em { color: #e3b95a; display: block; margin-top: .1em; }
.story p { color: #e6e0cf; margin-top: 1rem; max-width: 52ch; }
.story-art { aspect-ratio: 1; border-radius: var(--radius); background: url('/img/historia.jpg') center / cover, url('/img/patron.svg') 0 0 / 72px, var(--sand); display: grid; place-items: center; font-size: 7rem; }

/* Contacto */
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; text-align: center; }
.visit h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.visit p { color: var(--ink-soft); }
.visit .all-days { margin-bottom: .2rem; font-weight: 600; color: var(--ink); }
/* Grid compartido de 2 columnas (ícono | texto) para las 3 filas: así la columna del ícono siempre mide
   lo mismo (quedan alineados entre sí) y, a la vez, todo el bloque (ambas columnas juntas) se centra como
   una sola unidad bajo el título — en vez de centrar cada fila por separado, que es lo que la dejaba
   despegada del centro cuando el texto de abajo tiene distinto largo en cada red. */
.social-links { display: grid; grid-template-columns: 20px auto; column-gap: .5rem; row-gap: .6rem; justify-content: center; align-items: center; }
.social-link { display: contents; color: var(--ink-soft); text-decoration: none; }
.social-link:hover { color: var(--gold); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.social-link .sl-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.social-link .sl-text small { font-weight: 400; font-size: .78rem; opacity: .8; }
.visit-map { position: relative; width: 100%; max-width: 420px; height: 200px; border-radius: var(--radius); overflow: hidden; margin: .8rem auto; box-shadow: var(--shadow); background: var(--sand); }
.visit-map-world { position: absolute; left: 0; top: 0; width: 256px; height: 256px; }
.visit-map-world img { position: absolute; display: block; }
.visit-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 1.7rem; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); pointer-events: none; }
.visit-map-attr { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.75); color: #333; font-size: .68rem; padding: 1px 5px; text-decoration: none; }
.visit-map-attr:hover { text-decoration: underline; }

.tag-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-chip { position: relative; cursor: pointer; }
.tag-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.tag-chip span {
  display: inline-block; font-size: .85rem; font-weight: 500; padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft); transition: background .15s, border-color .15s, color .15s;
}
.tag-chip input:checked ~ span { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag-chip input:focus-visible ~ span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tag-chip:hover span { border-color: var(--gold); }

.pill.tag-peticion { background: #e4ecfb; color: var(--blue); }
.pill.tag-queja { background: #f6e2dc; color: var(--accent); }
.pill.tag-reclamo { background: #fbdede; color: #a11e1e; }
.pill.tag-sugerencia { background: #f7ecd0; color: var(--gold-dark); }
.pill.tag-felicitacion { background: #e6f1e8; color: #2a5a37; }

/* Pie */
#site-footer { background: linear-gradient(rgba(252,251,247,.94), rgba(252,251,247,.94)), url('/img/patron.svg') 0 0 / 72px; border-top: 1px solid var(--line); padding: 2.4rem 0 5.5rem; text-align: center; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
#site-footer .logo { display: inline-block; }
#site-footer .logo img { height: 84px; }
#site-footer nav { display: flex; gap: 1.4rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
#site-footer nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* ===== Menú ===== */
.menu-head { padding: 2.2rem 0 1rem; }
.menu-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.search { margin-top: 1rem; position: relative; max-width: 460px; }
.search input { width: 100%; padding: .8rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; }
.search input:focus { outline: none; border-color: var(--gold); }
.menu-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; padding-bottom: 4rem; align-items: start; }
/* Las columnas laterales son las que se quedan fijas (sticky sobre el grid). Antes el sticky estaba en un hijo
   del <aside>, que mide lo mismo que su contenido por el align-items: start, así que no tenía recorrido. */
.cats, .cart-side { position: sticky; top: calc(var(--header-h) + 12px); }
.cats .sticky { max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; scrollbar-width: thin; }
.cats h4 { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; font-family: var(--sans); color: var(--gold-dark); margin-bottom: .8rem; font-weight: 500; }
.cats ul { list-style: none; padding: 0; margin: 0; }
.cats a { display: block; padding: .55rem .8rem; border-radius: 10px; text-decoration: none; border-left: 3px solid transparent; }
.cats a:hover { background: var(--sand); }
.cats a.on { background: var(--sand); border-color: var(--gold); font-weight: 500; }
.cart-side { display: none; }
.cat-section { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.cat-section header { margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.cat-section h2 { font-size: 2rem; }
.cat-section header p { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-soft); }
@media (min-width: 1100px) {
  .menu-layout { grid-template-columns: 200px minmax(0, 1fr) 340px; }
  .cart-side { display: block; }
}

/* ===== Panel del pedido (carrito) ===== */
.cp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; }
.cp-head { display: flex; justify-content: space-between; align-items: center; }
.cp-head h2 { font-size: 1.7rem; }
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 4px; }
.mode-toggle button { border: 0; background: none; padding: .55rem; border-radius: 999px; font-weight: 500; }
.mode-toggle button.on { background: var(--ink); color: var(--cream); }
.mode-hint { font-size: .82rem; color: var(--ink-soft); margin-top: -.4rem; }
.cp-empty { text-align: center; padding: 1.4rem .5rem; display: grid; gap: .8rem; justify-items: center; color: var(--ink-soft); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.line-main { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; }
.line strong { font-weight: 500; display: block; line-height: 1.25; }
.line-price { font-weight: 600; min-width: 3.6rem; text-align: right; }
.line .stepper button { width: 30px; height: 30px; font-size: 1.05rem; }
.line input.note { width: 100%; margin-top: .4rem; padding: .45rem .7rem; border: 1px dashed var(--line); border-radius: 10px; background: var(--cream); font: inherit; font-size: .88rem; }
.suggest { background: var(--cream); border-radius: 12px; padding: .8rem; }
.suggest h5 { font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .5rem; }
.suggest-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9rem; padding: .25rem 0; }
.suggest-row button { border: 1.5px solid var(--gold); background: var(--paper); border-radius: 999px; width: 30px; height: 30px; color: var(--gold-dark); }
.totals { margin: 0; display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; }
.totals .total { font-weight: 600; font-size: 1.1rem; }
.totals .bs { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 400; }
.avail-note { font-size: .8rem; color: var(--ink-soft); background: #f7ecd0; border-radius: 10px; padding: .6rem .8rem; }

/* Cajón del carrito + barra inferior móvil */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 30, 70, .55); z-index: 60; opacity: 0; pointer-events: none; transition: .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 61; transform: translateX(100%); transition: transform .25s ease; padding: 1rem; overflow: auto; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer .cp { max-height: none; border: 0; background: transparent; padding: .4rem; }
.cart-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 45; display: none; }
.cart-bar button { width: 100%; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: .95rem 1.4rem; display: flex; justify-content: space-between; box-shadow: var(--shadow); font-weight: 500; }
.cart-bar.show { display: block; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(14,30,70,.55); z-index: 80; display: grid; place-items: center; padding: 1rem; }
.modal { background: var(--cream); border-radius: 20px; padding: 2rem; width: min(520px, 100%); text-align: center; box-shadow: var(--shadow); }
.modal h2 { font-size: 2rem; }
.modal p { color: var(--ink-soft); margin: .5rem 0 1.4rem; }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mode-choice button { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem .8rem; }
.mode-choice button:hover { border-color: var(--gold); background: #f7ecd0; }
.mode-choice strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.variants-modal .variant-rows { display: flex; flex-direction: column; gap: .7rem; margin-top: .6rem; }
.variant-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); text-align: left; }
.variant-row div:first-child { display: flex; flex-direction: column; gap: .15rem; }
.variant-row.sold { opacity: .6; }
.variant-row .muted { font-size: .9rem; }
.v-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.mode-choice span { font-size: .85rem; color: var(--ink-soft); }

/* ===== Checkout ===== */
.page { padding: 2.2rem 0 4rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.4rem; }
.co-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .co-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.form h2 { font-size: 1.6rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .85rem; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field small { color: var(--ink-soft); font-size: .78rem; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-error { background: #f6e2dc; color: var(--accent); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.steps-note { display: grid; gap: .35rem; font-size: .88rem; color: var(--ink-soft); background: var(--sand); border-radius: 12px; padding: .9rem 1rem; }
.co-summary .cp { max-height: none; }

/* ===== Seguimiento ===== */
.track { max-width: 760px; }
.status-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.code { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .14em; color: var(--gold-dark); }
.timeline { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .9rem; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; color: var(--ink-soft); }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; background: var(--cream); }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 500; }
.timeline li.now .dot { border-color: var(--gold); background: #f7ecd0; box-shadow: 0 0 0 4px rgba(188,140,43,.25); }
.track-items { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.track-items li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .6rem; }
.track-items .gone { text-decoration: line-through; color: var(--ink-soft); }
.track-items .warn { display: block; color: var(--accent); font-size: .85rem; text-decoration: none; }
.banner { border-radius: 12px; padding: .9rem 1.1rem; margin-top: 1rem; }
.banner.ok { background: #e6f1e8; color: #2a5a37; }
.banner.warn { background: #f6e2dc; color: var(--accent); }
.banner.info { background: #f7ecd0; }

/* ===== Cuenta, reseñas ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.narrow { max-width: 820px; }
.form.auth { max-width: 460px; }
.stars { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); letter-spacing: .08em; white-space: nowrap; }
.stars small { color: var(--ink-soft); letter-spacing: 0; font-size: .78rem; }
.card-rating { margin-top: .25rem; font-size: .9rem; }
.reviews-home { background: var(--paper); border-block: 1px solid var(--line); }
.avg-line { font-size: 1.2rem; }
.review-grid, .review-list { display: grid; gap: 1.1rem; }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: .45rem; }
.review-top { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.review-on { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.review-reply { background: #fff; border-left: 3px solid var(--gold); padding: .5rem .8rem; border-radius: 0 10px 10px 0; font-size: .92rem; }
.rev-head { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.big-avg { display: flex; align-items: center; gap: 1rem; }
.big-avg strong { font: 400 4rem/1 var(--serif); color: var(--ink); }
.google-reviews-sep { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.ig-strip { background: var(--paper); border-block: 1px solid var(--line); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ig-post { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ig-post:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; } }
.star-input { border: 0; padding: 0; margin: 1rem 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.6rem; line-height: 1; color: #cfc8b6; cursor: pointer; padding: 0 .1rem; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 6px; }
/* ===== Acompaña tu pedido + WhatsApp ===== */
.pairing:empty { display: none; }
.pairing { margin-top: 1.4rem; }
.pairing-in { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.4rem; background: linear-gradient(180deg, #fbf5e4, var(--paper)); }
.pairing.pop .pairing-in { animation: pairPop .9s ease; }
@keyframes pairPop { 0% { transform: translateY(14px); opacity: 0; box-shadow: 0 0 0 0 rgba(188,140,43,.5); } 60% { opacity: 1; box-shadow: 0 0 0 10px rgba(188,140,43,0); } 100% { transform: none; } }
.pairing-in h3 { font-size: 1.7rem; }
.pairing-in > .muted { font-size: .9rem; margin: .2rem 0 1rem; }
.pair-cats { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .7rem; }
.pair-cats .cat-card { padding: 1rem .8rem; }
.pair-cats .cat-card .em { font-size: 2rem; margin-bottom: .3rem; }
.pair-cats .cat-card h3 { font-size: 1.05rem; }
.card.compact .thumb { aspect-ratio: 16 / 9; }
.card.compact .thumb .emoji { font-size: 2.4rem; }
.card.compact .card-body { padding: .7rem .8rem 0; }
.card.compact h3 { font-size: 1.1rem; }
.card.compact .desc, .card.compact .unit { display: none; }
.card.compact .card-foot { padding: .5rem .8rem .8rem; flex-wrap: wrap; }
.card.compact .btn-add { padding: .4rem .8rem; font-size: .88rem; }
.btn-wa::before { content: ''; width: 1.15em; height: 1.15em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 14c-.2.6-1.2 1.2-1.7 1.2-.5.1-1 .2-3.3-.7-2.8-1.2-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.4.6c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.2.1.8-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.banner.wa { background: #e5f4ea; border: 1px solid #b6ddc2; color: #1d4a2c; }
.banner.wa .btn-primary { background: #1fa855; }
.banner.wa .btn-primary:hover { background: #178544; }
#submit-order.btn-wa { background: #1fa855; }
#submit-order.btn-wa:hover { background: #178544; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 5rem; transform: translate(-50%, 20px); background: var(--ink); color: var(--cream); padding: .7rem 1.2rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; font-size: .92rem; max-width: 92vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Aviso «Acompaña tu pedido»: aparece cuando ese bloque aparece debajo de una categoría, para que no haya
   que adivinar que hay que bajar a buscarlo. Se oculta solo a los 5s si no se toca. */
#pair-nudge { position: fixed; left: 50%; bottom: 5rem; transform: translate(-50%, 16px); background: var(--gold); color: var(--ink); border: none; padding: .7rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 91; cursor: pointer; }
#pair-nudge.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; animation: pair-nudge-bob 1.1s ease-in-out infinite; }
@keyframes pair-nudge-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root { --header-h: 100px; }
  .nav { grid-template-columns: auto 1fr auto; }
  .burger { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: .5rem 1.2rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .mode-pill { display: none; }
  .logo img { height: 52px; }
  .story .wrap { grid-template-columns: 1fr; }
  .story-art { max-height: 280px; font-size: 5rem; }
  .menu-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .menu-layout > * { min-width: 0; }
  .cats { top: var(--header-h); z-index: 20; }
  .cats .sticky { max-height: none; overflow: visible; background: var(--cream); margin-inline: -1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
  .cats h4 { display: none; }
  .cats ul { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
  .cats a { white-space: nowrap; border: 1.5px solid var(--line); border-left-width: 1.5px; border-radius: 999px; padding: .4rem .9rem; }
  .cats a.on { border-color: var(--gold); }
  .cat-section { scroll-margin-top: calc(var(--header-h) + 60px); }
  .cart-btn .label { display: none; }
  .topbar { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* La barra inferior es solo para móvil/tablet; en escritorio está el botón del encabezado y el panel lateral. */
@media (min-width: 900px) { .cart-bar.show { display: none; } }

/* ===== Cuenta de cliente ===== */
.acc-btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .9rem .3rem .35rem; background: var(--paper); font-size: .88rem; font-weight: 500; }
.acc-btn:hover { border-color: var(--gold); }
.acc-btn .ic { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: .85rem; }
@media (max-width: 760px) { .acc-btn .label { display: none; } .acc-btn { padding: .3rem; } }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.6rem; box-shadow: var(--shadow); text-align: center; }
.auth-card h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: .6rem 0 .6rem; }
.auth-logo { display: block; margin: 0 auto; }
.auth-card .stack, .stack { display: grid; gap: .9rem; text-align: left; margin-top: 1.2rem; }
.auth-card .fine { font-size: .78rem; color: var(--ink-soft); margin-top: 1.2rem; }
.two { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.doc { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; }
.field select { padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; width: 100%; }
.field input:disabled { background: var(--sand); color: var(--ink-soft); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-size: 1.6rem; font-family: var(--serif); border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0; }
.otp input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #f2e3b8; }
.resend { text-align: center; font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.dev-code { text-align: left; }
.btn-primary.sm, .btn-ghost.sm { padding: .5rem 1rem; font-size: .88rem; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.acc-head h1 { margin-bottom: .2rem; }
.acc-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 1.4rem; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.account h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.panel .stack { margin-top: .4rem; }
.repeat-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(135deg, #f7ecd0, #f3dfae); border: 1px solid #e6cf92; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.repeat-card > div { display: grid; gap: .1rem; min-width: 0; }
.repeat-card span { font-size: .9rem; color: var(--text); }
.repeat-card small { color: var(--ink-soft); }
.hist-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .9rem; }
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hist-items { margin: .4rem 0 .8rem; font-size: .92rem; }
.hist-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hist-card .muted { margin: .2rem 0; font-size: .88rem; }
.pill { font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--sand); }
.pill.st-completed, .pill.st-paid, .pill.st-ready { background: #e6f1e8; color: #2a5a37; }
.pill.st-rejected, .pill.st-cancelled { background: #f6e2dc; color: var(--accent); }
.pill.st-pending, .pill.st-approved { background: #f7ecd0; }
.addr-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .6rem; }
.addr-list li { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fff; }
.addr-list li div { display: grid; font-size: .9rem; min-width: 0; }
.addr-form .row { display: flex; gap: 1rem; align-items: center; }
/* checkout */
.co-form { gap: 1.4rem; }
.co-block h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.co-block .who { display: grid; gap: .15rem; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.opts { display: grid; gap: .5rem; }
.opts.inline { grid-template-columns: 1fr 1fr; }
.opt { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; background: #fff; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--gold); background: #fbf4e0; }
.opt input { margin-top: .25rem; accent-color: var(--blue); }
.opt span { display: grid; font-size: .92rem; min-width: 0; }
.opt small { color: var(--ink-soft); font-size: .8rem; }
.pickup-card { display: grid; gap: .1rem; border: 1.5px solid var(--gold); background: #fbf4e0; border-radius: 12px; padding: .8rem 1rem; margin-top: .7rem; font-size: .92rem; }
.pay-detail { border: 1px dashed var(--gold); border-radius: 12px; padding: .9rem 1rem; margin-top: .7rem; display: grid; gap: .6rem; background: #fffdf6; }
.pay-detail p { margin: 0; }
.pd-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; }
.pd-row span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.pd-row small { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.chk { display: flex; gap: .6rem; align-items: center; font-weight: 500; font-size: .95rem; cursor: pointer; }
.chk input { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; }
#inv-box { margin-top: .8rem; }
.support { text-align: center; font-size: .9rem; color: var(--ink); }

/* mapa de dirección (checkout cliente) */
.map-modal { width: min(640px, 100%); text-align: left; }
.map-modal h2 { font-size: 1.5rem; text-align: left; }
.map-search { display: flex; gap: .5rem; margin-bottom: .5rem; }
.map-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.map-results { display: grid; gap: .3rem; max-height: 160px; overflow-y: auto; margin-bottom: .5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.map-result { text-align: left; border: none; background: none; padding: .5rem .7rem; font-size: .85rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.map-result:last-child { border-bottom: none; }
.map-result:hover { background: #fbf4e0; }
.map-box { height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map-status { margin-top: .8rem; padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; background: #f3f3f3; }
.map-status.ok { background: #e6f4ea; color: #1c6b36; }
.map-status.warn { background: #fdf3df; color: #8a6400; }
#sch-later { margin-top: .8rem; }