/* ---------- Tokens (Manual de Marca Fit Fresh Food v1.0) ---------- */
:root{
  --lima: #74C12E;
  --lima-text-on-light: color-mix(in srgb, var(--lima) 65%, #131410 35%); /* eyebrows on paper: brand hue, real contrast */
  --lima-tint: color-mix(in srgb, var(--lima) 16%, white);
  --lima-press: color-mix(in srgb, var(--lima) 88%, black);
  --carbon: #131410;
  --white: #FFFFFF;
  --ink-900: #13140F;
  --ink-800: #1C1D17;
  --ink-600: #32352A;
  --gray-500: #8B9280;
  --gray-300: #C6CACB;
  --mist: #ECEFE4;
  --paper: #F7F8F2;
  --grad: linear-gradient(90deg,#FF8A1E,#F0469A,#7A2FF0);

  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;

  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px -12px rgb(19 20 16 / 0.18);
  --shadow-lift: 0 16px 40px -16px rgb(19 20 16 / 0.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-s: 180ms;
  --dur-m: 240ms;

  --nav-h: 62px;
  --container: 640px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink-900);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
svg{width:20px;height:20px;flex-shrink:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul{list-style:none}
h1,h2,h3{font-family:var(--font-display);text-transform:uppercase;letter-spacing:-0.01em;line-height:0.95}
.skip-link{position:absolute;left:-999px;top:0;background:var(--lima);color:var(--carbon);padding:.75rem 1.25rem;z-index:200;border-radius:0 0 10px 0;font-weight:700}
.skip-link:focus{left:0}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

/* ---------- Shared ---------- */
.section-head{padding:2.75rem 1.25rem 1.25rem;max-width:var(--container);margin:0 auto}
.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--lima-text-on-light)}
.eyebrow--light{color:var(--lima)}
.section-head h2{font-size:clamp(1.9rem,7vw,2.6rem);color:var(--ink-900);margin-top:.25rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border-radius:var(--radius-pill);
  font-weight:700;font-size:.95rem;
  padding:.85rem 1.5rem;
  min-height:48px;
  transition:transform var(--dur-s) var(--ease), background-color var(--dur-s) var(--ease), opacity var(--dur-s);
  white-space:nowrap;
}
.btn svg{width:18px;height:18px}
.btn:active{transform:scale(.96)}
.btn--primary{background:var(--lima);color:var(--carbon)}
.btn--primary:hover{background:var(--lima-press)}
.btn--dark{background:var(--carbon);color:var(--lima)}
.btn--outline{background:transparent;color:var(--ink-900);border:1.5px solid var(--gray-300)}
.btn--outline:hover{border-color:var(--ink-600)}
.btn--lg{width:100%}
.btn--disabled{background:var(--mist);color:var(--gray-500);pointer-events:none}
@media (min-width:600px){ .btn--lg{width:auto} }

.chip{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:.72rem;font-weight:700;letter-spacing:.02em;
  padding:.3rem .65rem;border-radius:var(--radius-pill);
  white-space:nowrap;
}
.chip svg{width:13px;height:13px}
.chip--top{background:var(--grad);color:var(--white)}
.chip--spicy{background:var(--ink-900);color:var(--white)}
.chip--premium{background:var(--lima);color:var(--carbon)}

.reveal{opacity:0;transform:translateY(14px);transition:opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease)}
.reveal.is-visible{opacity:1;transform:none}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;align-items:center;justify-content:center;
  background:var(--carbon);
  color:var(--white);
  padding:calc(env(safe-area-inset-top) + 2rem) 1.5rem 3rem;
  overflow:hidden;
}
.hero-media{
  position:absolute;inset:0;
  background:
    radial-gradient(60% 45% at 82% 12%, color-mix(in srgb, var(--lima) 35%, transparent), transparent 70%),
    radial-gradient(50% 40% at 8% 95%, color-mix(in srgb, var(--lima) 18%, transparent), transparent 70%);
}
.hero-content{position:relative;max-width:480px;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center}
.hero-logo{width:88px;height:88px;border-radius:50%;margin-bottom:1.25rem;box-shadow:var(--shadow-lift)}
.hero-title{font-size:clamp(3rem,15vw,4.75rem);margin-top:.5rem}
.hero-tagline{font-family:var(--font-accent);font-size:clamp(1.4rem,6vw,1.8rem);color:var(--lima);margin-top:.4rem}
.hero-values{display:flex;flex-direction:column;gap:.6rem;margin:1.75rem 0 2rem;width:100%}
.hero-value{
  display:flex;align-items:center;gap:.65rem;
  background:rgb(255 255 255 / 0.06);
  border:1px solid rgb(255 255 255 / 0.1);
  border-radius:14px;padding:.7rem .9rem;
  font-size:.85rem;font-weight:500;text-align:left;
}
.hero-value svg{color:var(--lima)}
@media (min-width:560px){
  .hero-values{flex-direction:row}
  .hero-value{flex:1;flex-direction:column;text-align:center;gap:.4rem}
}

/* ---------- Category nav ---------- */
.cat-nav{
  position:sticky;top:0;z-index:100;
  background:rgb(247 248 242 / 0.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--gray-300);
}
.cat-nav-track{
  display:flex;gap:.5rem;
  padding:.65rem 1rem;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.cat-nav-track::-webkit-scrollbar{display:none}
.cat-pill{
  scroll-snap-align:start;
  flex-shrink:0;
  padding:.55rem 1rem;
  border-radius:var(--radius-pill);
  font-size:.85rem;font-weight:700;
  background:var(--white);
  border:1px solid var(--gray-300);
  color:var(--ink-800);
  transition:background var(--dur-s), color var(--dur-s), border-color var(--dur-s);
}
.cat-pill[aria-current="true"]{background:var(--carbon);border-color:var(--carbon);color:var(--lima)}

/* ---------- Featured ---------- */
.featured{background:var(--carbon);color:var(--white);padding-bottom:2.5rem;scroll-margin-top:var(--nav-h)}
.featured .eyebrow{color:var(--lima)}
.featured .section-head h2{color:var(--white)}
.featured-track{
  display:flex;gap:1rem;padding:.5rem 1.25rem 1rem;
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
}
.featured-track::-webkit-scrollbar{display:none}
.f-card{
  scroll-snap-align:start;flex-shrink:0;width:78vw;max-width:320px;
  background:var(--ink-800);border-radius:var(--radius-card);overflow:hidden;
  box-shadow:var(--shadow-lift);
}
.f-photo{
  position:relative;aspect-ratio:4/3;
  display:flex;align-items:flex-end;
  padding:.9rem;
}
.f-photo svg{position:absolute;top:50%;left:50%;width:34%;height:34%;transform:translate(-50%,-50%);color:rgb(255 255 255 / 0.22)}
.f-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.f-card .chip--top{position:relative;z-index:1}
.f-body{padding:1.1rem 1.15rem 1.3rem}
.f-name{font-family:var(--font-display);text-transform:uppercase;font-size:1.35rem;letter-spacing:-.01em}
.f-copy{font-size:.85rem;color:var(--gray-300);margin-top:.35rem;line-height:1.4}
.f-foot{display:flex;justify-content:space-between;align-items:center;margin-top:.9rem}
.f-price{font-size:1.15rem;font-weight:800;color:var(--lima)}

/* ---------- Menu categories ---------- */
.category{padding:0 1.25rem 1rem;max-width:var(--container);margin:0 auto;scroll-margin-top:calc(var(--nav-h) + 8px)}
.category-head{display:flex;align-items:baseline;gap:.6rem;padding:2.5rem 0 .3rem;border-top:1px solid var(--gray-300)}
.category:first-of-type .category-head{border-top:0}
.category-index{font-family:var(--font-display);font-size:1.6rem;color:var(--gray-300)}
.category-head h2{font-size:clamp(1.6rem,6vw,2.1rem)}
.category-note{font-size:.82rem;color:var(--gray-500);padding:.4rem 0 1rem;line-height:1.5;font-style:italic}

.item-row{
  display:flex;flex-direction:column;gap:.15rem;
  padding:1rem 0;border-bottom:1px solid var(--mist);
}
.item-top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
summary.item-top{list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent;padding:.7rem 0;margin:-.7rem 0}
summary.item-top::-webkit-details-marker{display:none}
summary.item-top::marker{content:""}
.item-name-wrap{display:flex;align-items:center;gap:.4rem;min-width:0}
.item-name{font-weight:700;font-size:1rem;color:var(--ink-900)}
.item-price{font-weight:800;font-size:1rem;color:var(--ink-900);white-space:nowrap}
.item-price--muted{color:var(--gray-500);font-weight:600;font-size:.85rem}
.item-photo-hint{color:var(--lima-text-on-light);display:inline-flex;flex-shrink:0}
.item-photo-hint svg{width:15px;height:15px}
.item-end{display:flex;align-items:baseline;gap:.5rem;flex-shrink:0}
.item-chevron{color:var(--gray-500);flex-shrink:0;transition:transform var(--dur-s) var(--ease)}
.item-chevron svg{width:16px;height:16px}
details[open]>summary .item-chevron{transform:rotate(180deg)}
.item-photo-reveal{padding-top:.75rem}
.item-photo-reveal img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:var(--radius-card);display:block}
.item-options{font-size:.85rem;color:var(--gray-500)}
.opt-count{color:var(--ink-800);font-weight:700}
.item-desc{font-size:.85rem;color:var(--gray-500);line-height:1.45}
.item-addons{font-size:.82rem;color:var(--ink-600);margin-top:.1rem}
.item-addons span{font-weight:700}

/* ---------- Plans ---------- */
.plans{background:var(--carbon);color:var(--white);padding:3rem 1.25rem}
.plans-inner{max-width:420px;margin:0 auto;text-align:center}
.plans .eyebrow--light{color:var(--lima)}
.plans-inner h2{color:var(--white);font-size:clamp(1.9rem,7vw,2.4rem);margin-top:.25rem}
.plans-copy{color:var(--gray-300);font-size:.9rem;margin-top:.6rem}
.plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1.75rem 0 1.5rem}
.plan-tile{background:rgb(255 255 255 / 0.06);border:1px solid rgb(255 255 255 / 0.12);border-radius:14px;padding:1rem .75rem}
.plan-label{font-size:.78rem;font-weight:700;color:var(--gray-300)}
.plan-price{font-size:1.05rem;font-weight:800;color:var(--lima);margin-top:.3rem}
.plans-fine{font-size:.75rem;color:var(--gray-300);margin-top:1rem}

/* ---------- Info ---------- */
.info{background:var(--white);padding-bottom:1rem}
.info-actions{display:flex;flex-direction:column;gap:.75rem;padding:0 1.25rem;max-width:var(--container);margin:0 auto}
@media (min-width:600px){ .info-actions{flex-direction:row} }
.info-grid{padding:1.75rem 1.25rem 2.5rem;max-width:var(--container);margin:0 auto}
.info-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--mist)}
.info-row dt{display:flex;align-items:center;gap:.55rem;font-size:.88rem;font-weight:700;color:var(--ink-800)}
.info-row dt svg{color:var(--lima-text-on-light)}
.info-row dd{font-size:.88rem;color:var(--gray-500);text-align:right}
.info-row a{text-decoration:underline;text-underline-offset:2px}

/* ---------- Location ---------- */
.location{background:var(--paper);padding-bottom:3rem}
.location-grid{padding:0 1.25rem;max-width:var(--container);margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.loc-card{background:var(--white);border:1px solid var(--gray-300);border-radius:var(--radius-card);padding:1.25rem}
.loc-card h3{font-family:var(--font-body);text-transform:none;font-weight:800;font-size:1rem;margin-bottom:.3rem}
.loc-address{font-size:.88rem;color:var(--gray-500);margin-bottom:1rem;min-height:1.3em}
.loc-address--empty{font-style:italic}
.loc-phone{font-size:.85rem;font-weight:700;margin-bottom:1rem}
.loc-phone a{text-decoration:underline;text-underline-offset:2px}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--carbon);color:var(--white);
  text-align:center;padding:3rem 1.5rem calc(3rem + env(safe-area-inset-bottom));
}
.footer-logo{border-radius:50%;margin:0 auto 1rem}
.footer-name{font-family:var(--font-display);text-transform:uppercase;font-size:1.3rem}
.footer-meta{font-size:.82rem;color:var(--gray-300);margin-top:.3rem}
.footer-social a{display:inline-block;margin-top:1rem;font-weight:700;color:var(--lima);font-size:.9rem}
.footer-tagline{font-family:var(--font-accent);font-size:1.4rem;color:var(--lima);margin-top:1.5rem}

/* ---------- Scroll top ---------- */
.scroll-top{
  position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));
  width:44px;height:44px;border-radius:50%;
  background:var(--lima);color:var(--carbon);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-lift);
  opacity:0;transform:translateY(8px);pointer-events:none;
  transition:opacity var(--dur-s), transform var(--dur-s);
  z-index:90;
}
.scroll-top.is-visible{opacity:1;transform:none;pointer-events:auto}
body.has-cart .scroll-top{bottom:calc(4.5rem + env(safe-area-inset-bottom))}

/* ---------- Qty stepper ---------- */
.item-cart-row{display:flex;justify-content:flex-end;margin-top:.5rem}
.qty-stepper{display:inline-flex;align-items:center;background:var(--mist);border-radius:var(--radius-pill)}
.qty-btn{width:40px;height:40px;display:none;align-items:center;justify-content:center;font-size:1.15rem;font-weight:700;border-radius:50%;line-height:1}
.qty-num{display:none;min-width:1.6em;align-items:center;justify-content:center;font-weight:800;font-variant-numeric:tabular-nums;font-size:.9rem}
.qty-plus{display:flex;color:var(--carbon);background:var(--lima)}
.qty-stepper.has-items .qty-minus,.qty-stepper.has-items .qty-num{display:flex}
.f-foot .qty-stepper{background:rgb(255 255 255 / .14)}
.f-foot .qty-btn{color:var(--white)}
.f-foot .qty-plus{color:var(--carbon);background:var(--lima)}

/* ---------- Variant picker (multi-option dishes) ---------- */
.variant-picker{position:relative;width:100%}
.variant-select{
  width:100%;appearance:none;-webkit-appearance:none;
  font:inherit;font-weight:700;font-size:.88rem;color:var(--ink-800);
  background:var(--mist);border:none;border-radius:var(--radius-pill);
  padding:.8rem 2.6rem .8rem 1.1rem;min-height:44px;
}
.variant-select:invalid{color:var(--gray-500);font-weight:600}
.variant-chevron{position:absolute;right:1rem;top:50%;transform:translateY(-50%);color:var(--gray-500);pointer-events:none}
.variant-chevron svg{width:16px;height:16px}
.f-variant-row{margin-top:.75rem}
.f-foot .variant-select,.f-variant-row .variant-select{background:rgb(255 255 255 / .14);color:var(--white)}
.f-variant-row .variant-chevron{color:var(--gray-300)}
.cart-line-variant{display:block;font-size:.78rem;font-weight:600;color:var(--gray-500)}

/* ---------- Cart bar ---------- */
.cart-bar{
  position:fixed;left:1rem;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));
  max-width:480px;margin:0 auto;z-index:95;
  background:var(--carbon);color:var(--white);
  border-radius:var(--radius-pill);
  padding:.9rem 1.3rem;
  display:flex;align-items:center;gap:.75rem;
  box-shadow:var(--shadow-lift);
  opacity:0;transform:translateY(120%);pointer-events:none;
  transition:opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.cart-bar.is-visible{opacity:1;transform:none;pointer-events:auto}
.cart-bar-count{
  background:var(--lima);color:var(--carbon);
  width:26px;height:26px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;font-weight:800;font-variant-numeric:tabular-nums;
}
.cart-bar-label{font-weight:700;font-size:.92rem;flex:1;text-align:left}
.cart-bar-total{font-weight:800;font-size:.98rem;color:var(--lima);font-variant-numeric:tabular-nums}

/* ---------- Checkout dialog ---------- */
dialog.checkout-dialog{
  border:none;padding:0;width:100%;max-width:560px;
  margin:auto auto 0;max-height:92svh;
  border-radius:20px 20px 0 0;
  background:var(--paper);color:var(--ink-900);
}
dialog.checkout-dialog::backdrop{background:rgb(19 20 16 / .6)}
@media (min-width:640px){
  dialog.checkout-dialog{margin:auto;border-radius:var(--radius-card);max-height:88svh}
}
.checkout-form{display:flex;flex-direction:column;max-height:92svh}
@media (min-width:640px){ .checkout-form{max-height:88svh} }
.checkout-head{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.25rem .5rem;flex-shrink:0}
.checkout-head h2{font-size:1.4rem}
.checkout-close{width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:var(--ink-600);border-radius:50%;flex-shrink:0}
.checkout-close:hover{background:var(--mist)}
.checkout-body{overflow-y:auto;padding:0 1.25rem 1rem;flex:1}

.cart-lines{display:flex;flex-direction:column;gap:.75rem;padding:.5rem 0 1rem}
.cart-lines:not(:empty)~.cart-empty{display:none}
.cart-line{display:flex;align-items:center;gap:.75rem}
.cart-line-name{flex:1;font-weight:700;font-size:.9rem;min-width:0}
.cart-line-price{font-weight:800;font-size:.88rem;min-width:4.4em;text-align:right;font-variant-numeric:tabular-nums}

.extras-list{display:flex;flex-direction:column;gap:.7rem}
.extras-row{display:flex;align-items:center;gap:.6rem}
.extras-name{flex:1;font-weight:700;font-size:.88rem;min-width:0}
.extras-price{font-weight:800;font-size:.85rem;color:var(--ink-600);font-variant-numeric:tabular-nums}
.cart-empty{color:var(--gray-500);font-size:.88rem;padding:1.5rem 0;text-align:center;line-height:1.5}

.checkout-section{padding:1rem 0;border-top:1px solid var(--mist)}
.checkout-section h3{font-family:var(--font-body);text-transform:none;font-size:.8rem;font-weight:800;color:var(--ink-600);margin-bottom:.6rem;letter-spacing:.01em}
.segmented{display:flex;gap:.5rem}
.seg-btn{flex:1;padding:.65rem 1rem;border-radius:var(--radius-pill);border:1.5px solid var(--gray-300);font-weight:700;font-size:.88rem;text-align:center;background:var(--white);transition:background var(--dur-s),border-color var(--dur-s),color var(--dur-s)}
.seg-btn.is-active{background:var(--carbon);border-color:var(--carbon);color:var(--lima)}
.radio-group{display:flex;flex-direction:column;gap:.5rem}
.radio-group .seg-btn{flex:none;text-align:left}

.field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.75rem;font-size:.85rem;font-weight:700;color:var(--ink-800)}
.field input,.field textarea{
  font:inherit;font-size:1rem;padding:.7rem .85rem;border-radius:12px;
  border:1.5px solid var(--gray-300);background:var(--white);color:var(--ink-900);font-weight:500;
}
.field input:focus,.field textarea:focus{outline:2px solid var(--lima);outline-offset:1px;border-color:var(--lima)}
.field textarea{resize:vertical;min-height:2.5em;font-family:inherit}

.checkout-summary{padding:1rem 0 .25rem}
.sum-row{display:flex;justify-content:space-between;font-size:.9rem;padding:.3rem 0;color:var(--ink-600)}
.sum-row.sum-total{font-size:1.15rem;font-weight:800;color:var(--ink-900)}
.sum-row span:last-child{font-variant-numeric:tabular-nums}
.sum-note{font-size:.75rem;color:var(--gray-500);margin-top:.4rem;line-height:1.4}

.checkout-foot{padding:1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));border-top:1px solid var(--mist);flex-shrink:0;background:var(--paper)}
.checkout-foot .btn:disabled{background:var(--mist);color:var(--gray-500);pointer-events:none}

/* ---------- Desktop ---------- */
@media (min-width:900px){
  :root{--container:900px}
  .featured-track{padding-inline:calc((100vw - 900px)/2)}
  .f-card{width:300px}
  .category{padding-inline:0}
}
