:root{
    /* La Pampa's own palette, pulled straight from the logo mark: warm paper cream
       and a near-black pine green, extended into a few tonal steps. */
    --paper:#fbf3e2;
    --paper-2:#f1e3c6;
    --ink-900:#12281b;
    --forest-700:#1c3f2b;
    --forest-600:#2d5a3c;
    --sage-300:#a9c9ae;
    --sage-200:#d3e6d4;
    --moss-600:#71793f;
    /* warm honey/amber accent — pulls the golden tones of miel, café y quesos
       into an otherwise green+cream palette so the food reads warm, not muted */
    --honey:#c6912f;
    --honey-deep:#a5670f;
    --honey-soft: rgba(198,145,47,0.10);
    --line: rgba(18,40,27,0.16);
    --card-bg: rgba(255,255,255,0.4);

    --bg: var(--paper);
    --bg-soft: var(--paper-2);
    --text: var(--ink-900);
    --text-muted: var(--forest-600);
    --accent: var(--forest-700);
    --accent-strong: var(--ink-900);
    --on-accent: var(--paper);
    --gold-tok: var(--honey);
    --eyebrow: var(--honey-deep);
    --price-accent: var(--honey-deep);
    --structure: var(--forest-700);
    --structure-soft: var(--forest-600);
    --divider: var(--forest-700);

    --fs-hero: clamp(2.6rem, 5vw + 1rem, 4.4rem);
    --fs-h2: clamp(1.7rem, 2.4vw + 1rem, 2.5rem);
    --fs-h3: clamp(1.15rem, 1vw + 0.9rem, 1.4rem);
    --fs-body: 1.05rem;
    --fs-small: 0.86rem;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
    --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  @media (prefers-color-scheme: dark){
    :root{
      --bg: #0f2116;
      --bg-soft: #1a3423;
      --text: var(--paper);
      --text-muted: var(--sage-200);
      --accent: var(--paper);
      --accent-strong: var(--sage-300);
      --on-accent: var(--ink-900);
      --honey:#e6c375;
      --honey-deep:#eccb7d;
      --honey-soft: rgba(230,195,117,0.12);
      --gold-tok: var(--honey);
      --eyebrow: var(--honey-deep);
      --price-accent: var(--honey-deep);
      --structure: var(--sage-300);
      --structure-soft: var(--sage-200);
      --divider: var(--sage-300);
      --line: rgba(211,230,212,0.16);
      --card-bg: rgba(255,255,255,0.05);
    }
  }
  :root[data-theme="dark"]{
    --bg: #0f2116;
    --bg-soft: #1a3423;
    --text: var(--paper);
    --text-muted: var(--sage-200);
    --accent: var(--paper);
    --accent-strong: var(--sage-300);
    --on-accent: var(--ink-900);
    --honey:#e6c375;
    --honey-deep:#eccb7d;
    --honey-soft: rgba(230,195,117,0.12);
    --gold-tok: var(--honey);
    --eyebrow: var(--honey-deep);
    --price-accent: var(--honey-deep);
    --structure: var(--sage-300);
    --structure-soft: var(--sage-200);
    --divider: var(--sage-300);
    --line: rgba(211,230,212,0.16);
    --card-bg: rgba(255,255,255,0.05);
  }
  :root[data-theme="light"]{
    --bg: var(--paper);
    --bg-soft: var(--paper-2);
    --text: var(--ink-900);
    --text-muted: var(--forest-600);
    --accent: var(--forest-700);
    --accent-strong: var(--ink-900);
    --on-accent: var(--paper);
    --honey:#c6912f;
    --honey-deep:#a5670f;
    --honey-soft: rgba(198,145,47,0.10);
    --gold-tok: var(--honey);
    --eyebrow: var(--honey-deep);
    --price-accent: var(--honey-deep);
    --structure: var(--forest-700);
    --structure-soft: var(--forest-600);
    --divider: var(--forest-700);
    --line: rgba(18,40,27,0.16);
    --card-bg: rgba(255,255,255,0.4);
  }

  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  html{ scroll-behavior:smooth; }
  section[id], #inicio{ scroll-margin-top:70px; }
  body{
    background:
      repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 3px),
      var(--bg);
    color:var(--text);
    font-family:var(--sans);
    font-size:var(--fs-body);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    overflow-x:clip;
  }
  a{color:inherit;}
  h1,h2,h3{font-family:var(--serif); text-wrap:balance; margin:0; color:var(--structure);}
  p{margin:0;}
  .wrap{max-width:1080px; margin:0 auto; padding:0 clamp(1.1rem, 4vw, 2.5rem);}

  /* ---------- top bar ---------- */
  .topbar{
    position:sticky; top:0; z-index:20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(6px);
    border-bottom:1px solid var(--line);
  }
  .topbar-inner{
    max-width:1080px; margin:0 auto; padding:0.7rem clamp(1.1rem,4vw,2.5rem);
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
  }
  .badge{
    display:flex; align-items:center;
    text-decoration:none;
  }
  .badge img{ display:block; height:38px; width:auto; }
  .badge .logo-dark{ display:none; }
  @media (prefers-color-scheme: dark){
    .badge .logo-light{ display:none; }
    .badge .logo-dark{ display:block; }
  }
  :root[data-theme="dark"] .badge .logo-light{ display:none; }
  :root[data-theme="dark"] .badge .logo-dark{ display:block; }
  :root[data-theme="light"] .badge .logo-light{ display:block; }
  :root[data-theme="light"] .badge .logo-dark{ display:none; }
  .cta{
    display:inline-flex; align-items:center; gap:0.45rem;
    background:var(--accent); color:var(--on-accent);
    font-family:var(--sans); font-weight:700; font-size:0.85rem;
    padding:0.65rem 1.15rem; text-decoration:none;
    border:1px solid var(--accent-strong);
    box-shadow: 2px 2px 0 var(--accent-strong);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space:nowrap;
  }
  .cta:hover{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--accent-strong); }
  .cta:active{ transform: translate(1px,1px); box-shadow: 0 0 0 var(--accent-strong); }
  .cta.small{ padding:0.5rem 0.9rem; font-size:0.78rem; }
  .cta.ghost{
    background:transparent; color:var(--structure); border:1.5px solid var(--structure);
    box-shadow:none;
  }
  .topbar-nav{ display:flex; align-items:center; gap:0.5rem; }
  .nav-link{
    display:inline-flex; align-items:center; gap:0.35rem;
    font-family:var(--sans); font-weight:600; font-size:0.85rem;
    color:var(--structure); text-decoration:none;
    padding:0.55rem 0.7rem; border:1px solid transparent;
    white-space:nowrap;
  }
  .nav-link:hover{ border-color:var(--line); }
  .nav-link svg{ width:17px; height:17px; }
  .nav-link .nav-label{ display:none; }
  @media (min-width:560px){ .nav-link .nav-label{ display:inline; } }
  .topbar .cta{ display:none; }
  @media (min-width:640px){ .topbar .cta{ display:inline-flex; } }

  /* ---------- ridge divider ---------- */
  .ridge{ display:block; width:100%; height:auto; color:var(--divider); opacity:0.55; }
  .ridge-wrap{ margin: clamp(2.5rem,6vw,4.5rem) 0; }

  /* ---------- hero ---------- */
  .hero{ position:relative; padding: clamp(3rem,7vw,5.5rem) 0 0; }
  .hero-illus{
    display:none;
    position:absolute; right:0.5rem; top:1rem; width:170px;
    pointer-events:none;
    flex-direction:column; align-items:center; gap:1.6rem;
  }
  /* Each illustration sits in an equal-height, centered slot so the column
     reads as a neat, evenly-spaced stack regardless of each image's shape. */
  .hero-illus figure{
    margin:0; width:100%; height:120px; opacity:0.9;
    display:flex; align-items:center; justify-content:center;
  }
  .hero-illus img{ max-width:100%; max-height:100%; width:auto; height:auto; display:block; }
  .hero-illus .illus-beans img{ max-height:88px; }
  .hero-illus .illus-miel img{ max-height:112px; }
  .hero-illus .illus-queso img{ max-height:100px; }
  .hero-illus .illus-embutido img{ max-height:92px; }
  .hero-illus .art-dark{ display:none; }
  @media (prefers-color-scheme: dark){
    .hero-illus .art-light{ display:none; }
    .hero-illus .art-dark{ display:block; }
  }
  :root[data-theme="dark"] .hero-illus .art-light{ display:none; }
  :root[data-theme="dark"] .hero-illus .art-dark{ display:block; }
  :root[data-theme="light"] .hero-illus .art-light{ display:block; }
  :root[data-theme="light"] .hero-illus .art-dark{ display:none; }
  @media (min-width:900px){ .hero-illus{ display:flex; } }
  .eyebrow{
    font-family:var(--sans); font-weight:700; font-size:0.75rem; letter-spacing:0.22em;
    text-transform:uppercase; color:var(--eyebrow);
  }
  .hero h1{ font-size:var(--fs-hero); line-height:1.06; margin-top:0.7rem; max-width:14ch; }
  .hero-sub{
    margin-top:1.3rem; max-width:52ch; font-size:1.12rem; color:var(--text-muted);
  }
  .hero-actions{ margin-top:2rem; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
  .hero-note{ font-size:var(--fs-small); color:var(--text-muted); }
  .hero-note b{ color:var(--structure); }

  /* ---------- section headers ---------- */
  .section-head{ max-width:60ch; }
  .section-head h2{ margin-top:0.4rem; }
  .section-head p{ margin-top:0.8rem; color:var(--text-muted); }

  /* ---------- category grid ---------- */
  .cat-grid{
    margin-top:2.2rem;
    display:grid; grid-template-columns:1fr;
    gap:1px; background:var(--line);
    border:1px solid var(--line);
  }
  @media (min-width:760px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }
  .price-panel{
    background:var(--bg); padding:1.6rem 1.6rem 1.3rem;
    display:flex; flex-direction:column;
  }
  .price-panel .tag{
    font-size:0.68rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
    color:var(--gold-tok);
  }
  .price-panel h3{ font-size:1.2rem; margin-top:0.3rem; margin-bottom:0.3rem; }
  .price-row{
    display:flex; justify-content:space-between; align-items:center; gap:0.9rem;
    padding:0.6rem 0; border-top:1px solid var(--line);
  }
  .price-row:first-of-type{ border-top:none; }
  /* Product shots are square crops on the brand's sage backdrop, so a plain
     rounded square with no heavy border keeps them from fighting the list. */
  .price-thumb{
    flex:none; width:56px; height:56px; border-radius:4px; object-fit:cover;
    background:var(--card-bg); border:1px solid var(--line);
  }
  .price-thumb.empty{ background:var(--bg-soft); }
  .price-row .name{ font-size:0.92rem; flex:1 1 auto; min-width:0; }
  .price-row .name small{ display:block; font-size:0.78rem; color:var(--text-muted); font-weight:400; margin-top:0.1rem; }
  .price-row .price{ font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; color:var(--price-accent); }
  .price-note{ font-size:0.75rem; color:var(--text-muted); margin-top:0.7rem; padding-top:0.7rem; border-top:1px solid var(--line); }
  /* Sin stock: se sigue mostrando (informa) pero atenuado y marcado. */
  .price-row.is-out .price-thumb, .price-row.is-out .name, .price-row.is-out .price{ opacity:0.45; }
  .agotado{
    font-size:0.62rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
    border:1px solid var(--line); border-radius:2px; padding:0.05rem 0.3rem; margin-left:0.35rem;
    white-space:nowrap; vertical-align:0.08em;
  }

  /* ---------- featured products ---------- */
  .prod-grid{
    margin-top:2.2rem;
    display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1.4rem;
  }
  .prod-card{
    background:var(--card-bg);
    border:1px solid var(--line);
    position:relative;
    padding:1.5rem 1.4rem 1.4rem;
    display:flex; flex-direction:column; gap:0.7rem;
  }
  .prod-card::before{
    content:"";
    position:absolute; inset:6px;
    border:1px solid var(--line);
    pointer-events:none;
  }
  .prod-card.has-photo{ padding:0; }
  .prod-photo{
    width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
  }
  .prod-body{
    padding:1.5rem 1.4rem 1.4rem;
    display:flex; flex-direction:column; gap:0.7rem; flex:1;
  }
  .prod-origin{
    font-size:0.68rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--structure-soft);
  }
  .prod-card h3{ font-size:1.2rem; }
  .prod-card p{ color:var(--text-muted); font-size:0.92rem; flex:1; }
  .prod-card .cta{ align-self:flex-start; margin-top:0.3rem; }

  /* ---------- how to order ---------- */
  .steps{
    margin-top:2.2rem; counter-reset:step;
    display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.8rem;
  }
  .step{ position:relative; padding-left:3rem; }
  .step::before{
    counter-increment:step; content: counter(step);
    position:absolute; left:0; top:-0.2rem;
    font-family:var(--serif); font-weight:700; font-size:1.9rem; color:var(--accent);
    line-height:1;
  }
  .step h3{ font-size:1.05rem; }
  .step p{ margin-top:0.4rem; color:var(--text-muted); font-size:0.92rem; }

  /* ---------- closing cta ---------- */
  .closer{
    margin-top:clamp(3rem,7vw,5rem);
    background:var(--structure); color:var(--bg-soft);
    padding:clamp(2.4rem,5vw,3.5rem) clamp(1.5rem,5vw,3rem);
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem;
  }
  .closer h2{ color:inherit; font-size:var(--fs-h2); max-width:16ch; }
  .closer .cta{ background:var(--bg); color:var(--structure); border-color:var(--bg); box-shadow:2px 2px 0 var(--gold-tok); }

  /* ---------- footer ---------- */
  footer{
    margin-top:0; padding:2.4rem clamp(1.1rem,4vw,2.5rem) 3rem;
    border-top:1px solid var(--line);
  }
  .foot-inner{ max-width:1080px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.5rem; }
  .foot-brand{ font-family:var(--serif); font-weight:700; font-size:1.05rem; color:var(--structure); }
  .foot-tag{ font-size:0.85rem; color:var(--text-muted); margin-top:0.3rem; max-width:32ch; }
  .foot-links{ display:flex; flex-direction:column; gap:0.35rem; font-size:0.88rem; }
  .foot-links a{ text-decoration:none; }
  .foot-links a:hover{ color:var(--accent); }

  section{ padding-top: clamp(1rem,2vw,1.5rem); }

  .reveal{ opacity:0; transform:translateY(14px); transition:opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
    .cta{ transition:none; }
  }

  a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

  /* ---------- order widget ---------- */
  .order-widget{
    margin-top:2.2rem; max-width:640px;
    border:1px solid var(--line); background:var(--bg-soft);
    display:flex; flex-direction:column; height:560px; overflow:hidden;
  }
  .ow-head{
    padding:0.9rem 1.1rem; border-bottom:1px solid var(--line);
    display:flex; align-items:center; gap:0.6rem; background:var(--structure); color:var(--bg-soft);
  }
  .ow-head .ow-dot{ width:8px; height:8px; border-radius:50%; background:#7ec98f; flex:none; }
  .ow-head b{ font-family:var(--serif); font-size:1.02rem; }
  .ow-head span{ font-size:0.74rem; opacity:0.85; }
  .ow-thread{ flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:0.6rem; }
  .ow-msg{ max-width:82%; padding:0.55rem 0.8rem; font-size:0.88rem; white-space:pre-wrap; font-family:var(--sans); }
  .ow-msg.bot{ align-self:flex-start; background:var(--bg); border:1px solid var(--line); color:var(--text); }
  .ow-msg.user{ align-self:flex-end; background:var(--accent); color:var(--on-accent); }
  .ow-msg img{ max-width:180px; display:block; margin-top:0.4rem; border:1px solid var(--line); }
  .ow-choices{ display:flex; flex-wrap:wrap; gap:0.4rem; padding:0 1rem 0.9rem; }
  .ow-chip{
    font-family:var(--sans); font-size:0.82rem; font-weight:600;
    background:var(--bg); color:var(--structure); border:1px solid var(--structure);
    padding:0.4rem 0.75rem; cursor:pointer;
  }
  .ow-chip:hover{ background:var(--structure); color:var(--bg-soft); }
  .ow-composer{ display:flex; gap:0.5rem; padding:0.7rem; border-top:1px solid var(--line); }
  .ow-composer input{
    flex:1; font:inherit; font-size:0.88rem; padding:0.55rem 0.7rem;
    border:1px solid var(--line); background:var(--bg); color:var(--text);
  }
  .ow-composer button{
    font-family:var(--sans); font-weight:700; font-size:0.85rem;
    background:var(--accent); color:var(--on-accent); border:1px solid var(--accent);
    padding:0.55rem 1rem; cursor:pointer;
  }
  .ow-upload{ padding:0.7rem 1rem; border-top:1px solid var(--line); }
  .ow-restart{
    align-self:flex-start; margin:0.6rem 1rem 0.9rem; font-size:0.78rem; color:var(--text-muted);
    background:none; border:1px solid var(--line); padding:0.3rem 0.6rem; cursor:pointer; font-family:var(--sans);
  }
  .hidden{ display:none !important; }

/* ==================== tienda: cuadrícula de productos ==================== */
.shop-cat{ margin-top: clamp(2rem,5vw,3.2rem); }
.shop-cat h2{ font-size:var(--fs-h2); }
.shop-grid{
  margin-top:1.4rem;
  display:grid; gap:1.1rem;
  grid-template-columns:repeat(auto-fill, minmax(210px,1fr));
}
@media (max-width:520px){ .shop-grid{ grid-template-columns:repeat(2,1fr); gap:0.8rem; } }

.prod-card{
  display:flex; flex-direction:column;
  background:var(--card-bg); border:1px solid var(--line);
  overflow:hidden;
}
/* height:auto es imprescindible: los atributos width/height del <img> cuentan
   como CSS y, sin esto, le ganan a aspect-ratio y la foto sale recortada. El
   4:5 es el encuadre original de las fotos, así que no se pierde nada. */
.prod-card .shot{
  display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover;
  background:var(--bg-soft);
}
.prod-card .shot.empty{ display:flex; align-items:center; justify-content:center; }
.prod-body{ padding:0.85rem 0.9rem 0.9rem; display:flex; flex-direction:column; flex:1; gap:0.15rem; }
.prod-name{ font-weight:600; font-size:0.95rem; line-height:1.25; }
.prod-size{ font-size:0.78rem; color:var(--text-muted); }
.prod-note{ font-size:0.74rem; color:var(--text-muted); margin-top:0.15rem; }
.prod-foot{ margin-top:auto; padding-top:0.7rem; display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.prod-price{ font-weight:700; color:var(--price-accent); font-variant-numeric:tabular-nums; white-space:nowrap; }

.add-btn{
  font-family:var(--sans); font-weight:700; font-size:0.78rem; cursor:pointer;
  background:var(--accent); color:var(--on-accent);
  border:1px solid var(--accent-strong); box-shadow:2px 2px 0 var(--accent-strong);
  padding:0.45rem 0.75rem; white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease;
}
.add-btn:hover{ transform:translate(-1px,-1px); box-shadow:3px 3px 0 var(--accent-strong); }
.add-btn:active{ transform:translate(1px,1px); box-shadow:0 0 0 var(--accent-strong); }
.add-btn[disabled]{ opacity:0.4; cursor:not-allowed; box-shadow:none; transform:none; }

.prod-card.is-out .shot, .prod-card.is-out .prod-name, .prod-card.is-out .prod-price{ opacity:0.45; }

/* pasos +/- que reemplazan al botón cuando ya está en el carrito */
.qty-ctrl{ display:flex; align-items:center; gap:0.15rem; border:1px solid var(--accent-strong); }
.qty-ctrl button{
  font-family:var(--sans); font-weight:700; font-size:0.9rem; line-height:1; cursor:pointer;
  background:var(--bg); color:var(--structure); border:0; padding:0.35rem 0.55rem;
}
.qty-ctrl button:hover{ background:var(--bg-soft); }
.qty-ctrl .n{ min-width:1.6rem; text-align:center; font-weight:700; font-size:0.85rem; font-variant-numeric:tabular-nums; }

/* ==================== carrito ==================== */
.cart-fab{
  position:fixed; right:1rem; bottom:1rem; z-index:60;
  display:inline-flex; align-items:center; gap:0.5rem; cursor:pointer;
  background:var(--accent); color:var(--on-accent);
  font-family:var(--sans); font-weight:700; font-size:0.9rem;
  padding:0.8rem 1.1rem; border:1px solid var(--accent-strong);
  box-shadow:3px 3px 0 var(--accent-strong);
}
.cart-fab[hidden]{ display:none; }
.cart-fab .count{
  background:var(--on-accent); color:var(--accent);
  border-radius:999px; min-width:1.4rem; padding:0 0.35rem;
  font-size:0.8rem; text-align:center;
}
.cart-backdrop{
  position:fixed; inset:0; z-index:70; background:rgba(18,40,27,0.45);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.cart-backdrop.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; z-index:80; top:0; right:0; height:100dvh; width:min(420px,100%);
  background:var(--bg); border-left:1px solid var(--line);
  display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .22s ease;
}
.cart-drawer.open{ transform:none; }
.cart-head{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1rem 1.1rem; border-bottom:1px solid var(--line);
}
.cart-head h3{ font-size:1.15rem; }
.cart-close{ background:none; border:0; font-size:1.4rem; line-height:1; cursor:pointer; color:var(--structure); padding:0.2rem 0.4rem; }
.cart-body{ flex:1; overflow-y:auto; padding:0.4rem 1.1rem 1rem; }
.cart-empty{ color:var(--text-muted); font-size:0.9rem; padding:2rem 0; text-align:center; }
.cart-item{ display:flex; gap:0.7rem; align-items:center; padding:0.7rem 0; border-bottom:1px solid var(--line); }
.cart-item img{ width:48px; height:48px; object-fit:cover; flex:none; border:1px solid var(--line); }
.cart-item .ci-main{ flex:1; min-width:0; }
.cart-item .ci-name{ font-size:0.88rem; font-weight:600; }
.cart-item .ci-sub{ font-size:0.75rem; color:var(--text-muted); }
.cart-item .ci-price{ font-weight:700; font-size:0.85rem; color:var(--price-accent); white-space:nowrap; }
.cart-foot{ border-top:1px solid var(--line); padding:0.9rem 1.1rem 1.1rem; }
.cart-total{ display:flex; justify-content:space-between; align-items:baseline; font-weight:700; margin-bottom:0.8rem; }
.cart-total .big{ font-size:1.25rem; color:var(--price-accent); }
.cart-foot .cta{ width:100%; justify-content:center; }

/* formulario de datos y pago */
.co-field{ margin-bottom:0.85rem; }
.co-field label{ display:block; font-size:0.78rem; font-weight:700; margin-bottom:0.25rem; }
.co-field input, .co-field textarea{
  width:100%; font:inherit; font-size:0.9rem; color:var(--text);
  background:var(--bg); border:1px solid var(--line); padding:0.55rem 0.65rem;
}
.co-field textarea{ resize:vertical; min-height:64px; }
.co-field .err{ color:#b3261e; font-size:0.75rem; margin-top:0.2rem; display:none; }
.co-field.invalid input, .co-field.invalid textarea{ border-color:#b3261e; }
.co-field.invalid .err{ display:block; }
.pay-box{
  background:var(--bg-soft); border:1px solid var(--line);
  padding:0.9rem; margin-bottom:0.9rem; font-size:0.88rem;
}
.pay-box strong{ font-size:1.05rem; }
.co-msg{ font-size:0.85rem; margin-top:0.6rem; }
.co-msg.error{ color:#b3261e; }
.done-box{ text-align:center; padding:2rem 0.5rem; }
.done-box .tick{ font-size:2.4rem; }
.done-box h3{ margin:0.5rem 0; }
.done-box p{ color:var(--text-muted); font-size:0.9rem; }

/* confirmación al agregar: el botón responde y el carrito "late" */
.add-btn.added{ background:var(--honey-deep); border-color:var(--honey-deep); }
@keyframes lp-pop{ 0%{transform:scale(1);} 40%{transform:scale(1.25);} 100%{transform:scale(1);} }
.cart-fab .count.pop{ animation:lp-pop .35s ease; }
@keyframes lp-in{ from{opacity:0; transform:translateY(6px) scale(.96);} to{opacity:1; transform:none;} }
.cart-fab.appear{ animation:lp-in .25s ease; }
.qty-ctrl{ animation:lp-in .18s ease; }
@media (prefers-reduced-motion: reduce){
  .cart-fab .count.pop, .cart-fab.appear, .qty-ctrl{ animation:none; }
}
.co-field select{
  width:100%; font:inherit; font-size:0.9rem; color:var(--text);
  background:var(--bg); border:1px solid var(--line); padding:0.55rem 0.65rem;
}
.co-field.invalid select{ border-color:#b3261e; }

/* autocompletado de direcciones */
.ac-list{ border:1px solid var(--line); border-top:0; max-height:220px; overflow-y:auto; }
.ac-list:empty{ display:none; }
.ac-item{
  display:block; width:100%; text-align:left; cursor:pointer;
  font:inherit; font-size:0.85rem; color:var(--text);
  background:var(--bg); border:0; border-bottom:1px solid var(--line);
  padding:0.55rem 0.65rem;
}
.ac-item:last-child{ border-bottom:0; }
.ac-item:hover{ background:var(--bg-soft); }
.ac-estado{ font-size:0.8rem; margin-top:0.3rem; min-height:1.1em; color:var(--text-muted); }
.ac-estado.ok{ color:var(--price-accent); font-weight:700; }
.ac-estado.error{ color:#b3261e; }
