/**
 * styles.css — Mobile-first.
 *
 * Convención: las reglas SIN media query son la base para celular (la
 * prioridad del cliente). Las mejoras para pantallas más grandes van en
 * `@media (min-width: ...)`, inmediatamente después de cada componente.
 * Breakpoints usados: 768px (tablet), 1024px (escritorio), 1280px (grillas
 * anchas).
 */

:root {
  --forest: #103f32;
  --forest-2: #1e624a;
  --lime: #d8ea9c;
  --cream: #fff9e9;
  --paper: #f4ecd7;
  --orange: #ed6f32;
  --gold: #f0bc4d;
  --ink: #17362d;
  --muted: #647269;
  --white: #fffdf7;
  --radius: 28px;
  --display: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background-color: var(--cream); background-image: radial-gradient(rgba(16,63,50,.05) 1px, transparent 1px); background-size: 22px 22px; font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

/* ---- Header (mobile base) ---- */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 8px clamp(14px, 4vw, 76px); background: rgba(255,249,233,.95); border-bottom: 1px solid rgba(16,63,50,.1); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 46% 54%; background: var(--forest); color: var(--cream); font: 700 25px var(--display); transform: rotate(-4deg); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font: 700 17px var(--display); }
.brand small { margin-top: 4px; color: var(--forest-2); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.brand-logo { width: 128px; height: 48px; overflow: hidden; margin-right: auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); }
.main-nav { position: absolute; top: 59px; left: 0; right: 0; z-index: 29; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 24px; background: var(--cream); border-bottom: 1px solid rgba(16,63,50,.1); font-size: 14px; font-weight: 700; }
.main-nav.open { display: flex; }
.main-nav a { padding: 15px 4px; }
.main-nav a:not(.nav-cta):hover { color: var(--forest-2); }
.nav-cta { padding: 13px 18px; border-radius: 99px; background: var(--forest); color: white; text-align: center; }
.menu-toggle { display: block; border: 0; background: none; color: var(--forest); font-weight: 800; }
.cart-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 99px; background: var(--forest); color: white; cursor: pointer; font-size: 12px; font-weight: 900; transition: background .2s; }
.cart-trigger:hover { background: var(--forest-2); }
.cart-trigger span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 50%; background: var(--lime); color: var(--forest); }

@media (min-width: 1024px) {
  .site-header { gap: 0; min-height: 80px; padding: 12px clamp(20px, 5vw, 76px); }
  .brand-mark { width: 46px; height: 46px; }
  .brand strong { font-size: 19px; }
  .brand-logo { width: 190px; height: 58px; margin-right: 0; }
  .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: transparent; border-bottom: 0; }
  .nav-cta { text-align: left; }
  .menu-toggle { display: none; }
  .cart-trigger { min-height: 44px; padding: 0 15px; font-size: 13px; }
  .cart-trigger span { min-width: 24px; height: 24px; }
}

/* ---- Shared type and buttons (mobile base) ---- */
.eyebrow { margin: 0 0 8px; color: var(--forest-2); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
h1 { max-width: 760px; font-size: clamp(30px, 8.5vw, 42px); }
h2 { font-size: clamp(28px, 7vw, 44px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 99px; font-size: 14px; font-weight: 900; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,63,50,.15); }
/* The only accent: orange marks the actions that place or start an order. Dark text keeps AA contrast. */
.button-primary { background: var(--orange); color: #22100a; box-shadow: 0 12px 26px rgba(237,111,50,.28); }
.button-primary:hover { filter: brightness(1.05); }
.button-secondary { border-color: rgba(16,63,50,.25); color: var(--forest); }
.button-light { background: var(--cream); color: var(--forest); }

@media (min-width: 1024px) {
  .eyebrow { margin-bottom: 20px; font-size: 12px; letter-spacing: .18em; }
  h1 { font-size: clamp(58px, 7.1vw, 108px); letter-spacing: -.045em; line-height: .98; }
  h2 { font-size: clamp(43px, 5vw, 72px); }
  .button { min-height: 54px; padding: 0 24px; }
}

/* ---- Hero día/noche (mobile base) ----
 * Day ("cálido editorial") is the base. Night ("plato protagonista") overrides it under
 * html[data-tema="noche"], set by the <head> script from Lima time (18:00-06:00).
 */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: grid; grid-template-columns: 1fr; grid-template-areas: "copy" "art" "actions" "reco"; gap: 22px; padding: 26px clamp(16px, 6vw, 110px) 36px; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--forest-2); }
.eyebrow-leaf { width: 12px; height: 20px; color: currentColor; }
.hero h1 { max-width: none; color: var(--forest); font-size: clamp(42px, 11.5vw, 56px); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.hero h1 span { display: block; }
.hero h1 em { color: var(--forest-2); }
.hero-text { max-width: 30em; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.hero-art { grid-area: art; position: relative; z-index: 2; justify-self: center; width: min(78vw, 340px); margin: 10px 0 20px; }
.hero-float { position: relative; }
.hero-frame { position: relative; }
.hero-frame::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translate(14px, 14px); border-radius: 999px 999px 26px 26px; background: var(--lime); }
.hero-frame::after { content: ''; position: absolute; inset: -10px; border: 1.5px solid rgba(30,98,74,.45); border-radius: 999px 999px 34px 34px; pointer-events: none; }
.hero-food-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 62%; border-radius: 999px 999px 26px 26px; box-shadow: 0 30px 60px rgba(16,63,50,.22); }
.hero-peek { position: absolute; z-index: -1; width: var(--w); top: var(--t); left: var(--l); color: var(--c); transform-origin: 50% 100%; transform: rotate(var(--r)); animation: hero-sway var(--d) ease-in-out infinite alternate; }
.hero-tag { display: none; }

.tv-sticker { position: absolute; left: -12px; bottom: -26px; z-index: 3; display: grid; place-items: center; width: 118px; height: 118px; padding: 0; border: 0; border-radius: 50%; background: var(--forest); color: var(--cream); cursor: pointer; box-shadow: 0 16px 34px rgba(16,63,50,.35); }
.tv-sticker:hover { background: var(--forest-2); }
.tv-sticker svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: hero-spin 22s linear infinite; }
.tv-sticker text { fill: var(--lime); font: 800 9.6px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.tv-sticker span { position: relative; display: grid; gap: 1px; text-align: center; }
.tv-sticker strong { font: 500 19px/1 var(--display); }
.tv-sticker small { font-size: 11px; font-weight: 800; }
.tv-sticker:focus-visible, .tv-pill:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.hero .hero-actions { grid-area: actions; position: relative; z-index: 3; display: grid; gap: 10px; margin: 0; }
.hero .button { min-height: 52px; font-size: 15px; }
.tv-pill { display: none; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border: 1px solid rgba(255,249,233,.18); border-radius: 18px; background: rgba(255,249,233,.07); color: var(--cream); cursor: pointer; text-align: left; backdrop-filter: blur(8px); }
.tv-pill:hover { background: rgba(255,249,233,.12); }
.tv-pill img { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.tv-pill span { display: grid; gap: 1px; }
.tv-pill small { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tv-pill strong { font-size: 14px; }
.tv-pill em { color: rgba(255,249,233,.75); font-size: 12px; font-style: normal; font-weight: 700; }

.hero-reco { grid-area: reco; position: relative; z-index: 2; }
.hero-reco h2 { margin: 0 0 6px; color: var(--forest-2); font: 800 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.hero-reco ul { margin: 0; padding: 0; list-style: none; }
.hero-reco li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 15px; font-weight: 700; }
.hero-reco li::after { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted rgba(16,63,50,.3); }
.hero-reco b { order: 2; color: var(--forest); font: 500 18px var(--display); }
.hero-reco p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.hero-leaves { display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-leaves .leaf { position: absolute; width: var(--w); top: var(--t); left: var(--l); opacity: var(--o); transform: rotate(var(--r)); animation: hero-drift var(--d) ease-in-out infinite alternate; }

/* Entrance + ambient motion */
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hero-sway { from { transform: rotate(var(--r)); } to { transform: rotate(calc(var(--r) + 7deg)); } }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-drift { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) + 9deg)); } }
.hero .eyebrow, .hero h1 span, .hero-text, .hero-art, .hero .hero-actions, .hero-reco { animation: hero-rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span:nth-child(1) { animation-delay: .1s; }
.hero h1 span:nth-child(2) { animation-delay: .22s; }
.hero h1 span:nth-child(3) { animation-delay: .34s; }
.hero-text { animation-delay: .46s; }
.hero-art { animation-duration: 1.4s; animation-delay: .3s; }
.hero .hero-actions { animation-delay: .6s; }
.hero-reco { animation-delay: .75s; }

/* ---- Night: "plato protagonista" ---- */
html[data-tema="noche"] .site-header { background: rgba(7,31,24,.94); border-bottom-color: rgba(255,249,233,.1); }
html[data-tema="noche"] .main-nav { background: #0b2a21; border-bottom-color: rgba(255,249,233,.1); color: var(--cream); }
html[data-tema="noche"] .menu-toggle { color: var(--cream); }
html[data-tema="noche"] .brand-logo { border-radius: 10px; }
html[data-tema="noche"] .nav-cta { background: var(--lime); color: var(--forest); }
html[data-tema="noche"] .cart-trigger { border: 1px solid rgba(255,249,233,.28); background: rgba(255,249,233,.06); }
html[data-tema="noche"] .hero { color: var(--cream); background: radial-gradient(110% 80% at 50% 48%, var(--forest-2) 0%, var(--forest) 46%, #071f18 100%); }
html[data-tema="noche"] .hero .eyebrow { color: var(--lime); }
html[data-tema="noche"] .hero h1 { color: var(--cream); font-weight: 500; }
html[data-tema="noche"] .hero h1 span { display: inline; }
html[data-tema="noche"] .hero h1 em { color: var(--lime); }
html[data-tema="noche"] .hero-text { color: rgba(255,249,233,.78); }
html[data-tema="noche"] .hero-leaves { display: block; }
html[data-tema="noche"] .hero-peek, html[data-tema="noche"] .tv-sticker { display: none; }
html[data-tema="noche"] .hero-art { width: min(80vw, 360px); margin: 0; }
html[data-tema="noche"] .hero-float { animation: hero-float 6s ease-in-out 1.7s infinite; }
html[data-tema="noche"] .hero-frame::before { inset: 8% -6% -4%; transform: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(216,234,156,.28), transparent 75%); filter: blur(10px); }
html[data-tema="noche"] .hero-frame::after { display: none; }
html[data-tema="noche"] .hero-food-photo { aspect-ratio: 682 / 848; object-position: center; border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%; box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(216,234,156,.18); }
html[data-tema="noche"] .hero-tag { position: absolute; left: -6px; bottom: 9%; z-index: 2; display: grid; gap: 2px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--cream); color: var(--forest); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
html[data-tema="noche"] .hero-tag small { color: var(--muted); font-size: 11px; font-weight: 700; }
html[data-tema="noche"] .hero-tag strong { font: 600 17px var(--display); }
html[data-tema="noche"] .hero .button-secondary { border: 1.5px solid rgba(255,249,233,.45); color: var(--cream); }
html[data-tema="noche"] .tv-pill { display: flex; }
html[data-tema="noche"] .hero-reco h2 { color: var(--lime); }
html[data-tema="noche"] .hero-reco li { font-weight: 600; }
html[data-tema="noche"] .hero-reco li::after { border-bottom-color: rgba(255,249,233,.25); }
html[data-tema="noche"] .hero-reco b { color: var(--lime); }
html[data-tema="noche"] .hero-reco p { color: rgba(255,249,233,.6); }

@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - 80px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "copy art" "actions art" "reco art"; grid-template-rows: auto auto 1fr; align-content: center; column-gap: 72px; row-gap: 30px; padding: 56px clamp(28px, 6vw, 96px) 64px; }
  .hero-copy { align-self: end; }
  .hero h1 { font-size: clamp(56px, 6.6vw, 104px); }
  .hero-text { font-size: 19px; }
  .hero-art { align-self: center; width: min(32vw, 470px); margin: 0; }
  .tv-sticker { left: -58px; bottom: 40px; width: 140px; height: 140px; }
  .tv-sticker strong { font-size: 22px; }
  .hero .hero-actions { grid-template-columns: auto auto; justify-content: start; gap: 12px; }
  .hero-reco { align-self: start; max-width: 520px; }
  html[data-tema="noche"] .main-nav { background: transparent; }
  html[data-tema="noche"] .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 64px; background: radial-gradient(70% 90% at 72% 50%, var(--forest-2) 0%, var(--forest) 45%, #071f18 100%); }
  html[data-tema="noche"] .hero h1 { font-size: clamp(56px, 6.2vw, 96px); }
  html[data-tema="noche"] .hero-art { width: min(40vw, 560px); }
  html[data-tema="noche"] .hero-tag { left: -34px; padding: 14px 18px; }
  html[data-tema="noche"] .hero-tag strong { font-size: 21px; }
  html[data-tema="noche"] .tv-pill { grid-column: 1 / -1; width: auto; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero *, .hero { animation: none !important; }
}

/* ---- TV dialog ---- */
.tv-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; overflow: auto; background: var(--paper, #fffaf0); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.tv-dialog::backdrop { background: rgba(10,47,38,.7); backdrop-filter: blur(3px); }
.tv-dialog > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.tv-dialog-body { padding: 22px 24px 26px; }
.tv-dialog-body h2 { margin: 0 0 12px; font-size: clamp(26px, 6vw, 34px); line-height: 1.05; }
.tv-dialog-body > p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.tv-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tv-dialog-link { color: var(--forest); font-size: 13px; font-weight: 800; }
.tv-dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--forest); cursor: pointer; font-size: 24px; line-height: 1; }

/* ---- Marquee ---- */
.marquee { display: flex; align-items: center; justify-content: space-around; gap: 28px; padding: 16px 4vw; overflow: hidden; background: var(--forest); color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.marquee i { color: var(--lime); opacity: .55; font-style: normal; }

@media (min-width: 768px) {
  .marquee { padding: 19px 4vw; font-size: 12px; }
}

/* ---- Banner ambiental (imagen amazónica decorativa) ---- */
.ambient-banner { width: 100%; height: 160px; overflow: hidden; }
.ambient-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (min-width: 768px) {
  .ambient-banner { height: 320px; }
}

/* ---- Generic section ---- */
.section { padding: 56px clamp(16px, 6vw, 110px); }
.flavors { width: 100%; max-width: 1440px; margin-inline: auto; }
.section-heading { display: grid; grid-template-columns: 1fr; gap: 16px; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (min-width: 1024px) {
  .section { padding: 110px clamp(20px, 7vw, 110px); }
  .section-heading { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
  .section-heading > p { line-height: 1.7; }
}

/* ---- Search & filters ---- */
.menu-tools { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 28px 0 14px; }
.menu-tools > p { max-width: 420px; margin: 0; color: var(--forest); font-size: 13px; font-weight: 700; line-height: 1.5; }
.menu-search { display: flex; flex-direction: column; gap: 8px; width: 100%; color: var(--forest-2); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.menu-search input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid rgba(16,63,50,.18); border-radius: 14px; outline: 0; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.menu-search input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(16,63,50,.1); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.filter { padding: 9px 14px; border: 2px solid rgba(16,63,50,.18); border-radius: 99px; color: var(--forest); background: white; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s; }
.filter:hover { border-color: var(--forest); }
.filter.active { background: var(--forest); color: white; border-color: var(--forest); }

@media (min-width: 768px) {
  .menu-tools { flex-direction: row; align-items: end; justify-content: space-between; gap: 25px; margin: 48px 0 18px; }
  .menu-search { width: min(100%, 520px); }
  .menu-search input { height: 52px; padding: 0 18px; border-radius: 16px; }
  .filter-row { margin: 18px 0 26px; }
  .filter { padding: 10px 16px; }
}

/* ---- La Carta — grilla de cards delivery-app ---- */
.flavors .section-heading h2 { color: var(--forest); }
.menu-board { display: flex; flex-direction: column; gap: 32px; margin-top: 4px; }
.menu-empty { padding: 40px 20px; border: 1px dashed rgba(16,63,50,.2); border-radius: 20px; color: var(--muted); text-align: center; }

.menu-section-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid rgba(16,63,50,.1); color: var(--forest); font: 800 17px var(--sans); }

/* Compact menu: one white list per section, one row per dish (name · price · control). */
.menu-cards { display: grid; grid-template-columns: 1fr; overflow: hidden; background: white; border-radius: 14px; border: 1px solid rgba(16,63,50,.08); box-shadow: 0 2px 8px rgba(0,0,0,.04); }

.dish-card { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 10px 8px 14px; border-bottom: 1px solid rgba(16,63,50,.07); transition: background .15s; }
.dish-card:last-child { border-bottom: none; }
.dish-card:hover { background: rgba(16,63,50,.03); }

.dish-badge { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 3px 8px; border-radius: 4px; background: var(--gold); color: #5c3800; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.dish-name { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; font-family: var(--sans); line-height: 1.3; }
.dish-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.dish-price { flex: none; font-size: 16px; font-weight: 500; color: var(--forest); font-family: var(--display); letter-spacing: -.01em; white-space: nowrap; }

.btn-add { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border: none; border-radius: 8px; background: var(--forest); color: white; cursor: pointer; font: 700 12px var(--sans); white-space: nowrap; transition: background .15s; }
.btn-add:hover { background: var(--forest-2); }

.qty-ctrl { flex: none; display: flex; align-items: center; border: 2px solid var(--forest); border-radius: 8px; overflow: hidden; }
.qty-btn { display: grid; place-items: center; width: 34px; height: 34px; border: none; background: transparent; color: var(--forest); cursor: pointer; font-size: 18px; font-weight: 700; transition: background .1s; }
.qty-btn:hover { background: var(--lime); }
.qty-btn-add { background: var(--forest); color: white; }
.qty-btn-add:hover { background: var(--forest-2); }
.qty-num { min-width: 28px; padding: 0 2px; text-align: center; font-weight: 800; font-size: 14px; color: var(--forest); }


@media (min-width: 601px) {
  .menu-board { gap: 44px; margin-top: 6px; }
  .menu-empty { padding: 50px; border-radius: 22px; }
  .menu-section-title { margin-bottom: 14px; padding-bottom: 12px; font-size: 19px; }
  .menu-cards { grid-template-columns: repeat(2, 1fr); column-gap: 0; }
  .dish-card { min-height: 60px; padding: 10px 14px 10px 18px; }
  .dish-card:nth-child(odd) { border-right: 1px solid rgba(16,63,50,.07); }
  .dish-name { font-size: 15px; }
  .dish-price { font-size: 19px; }
  .btn-add { height: 36px; padding: 0 14px; font-size: 13px; }
}

@media (min-width: 1280px) {
  .menu-cards { grid-template-columns: repeat(3, 1fr); }
  .dish-card:nth-child(odd) { border-right: none; }
  .dish-card:not(:nth-child(3n)) { border-right: 1px solid rgba(16,63,50,.07); }
}

/* ---- Galería aislada (R7) — oculta vía [hidden] si MENU_DATA.galeria está vacío ---- */
.gallery[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.gallery-item { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
}

/* ---- Historia ---- */
.story { display: grid; grid-template-columns: 1fr; background: var(--paper); }
.story-art { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 240px; background: var(--forest); color: var(--cream); }
.story-art > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: center; }
.story-copy { align-self: center; max-width: 680px; padding: 48px clamp(20px, 6vw, 110px); }
.story-copy > p:not(.eyebrow) { margin: 20px 0 28px; color: var(--muted); line-height: 1.7; }
.story-copy ul { margin: 0; padding: 0; list-style: none; }
.story-copy li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(16,63,50,.15); font-weight: 800; }
.story-copy li span { color: var(--forest-2); font: 500 18px var(--display); }

@media (min-width: 1024px) {
  .story { grid-template-columns: 1fr 1fr; min-height: 690px; }
  .story-art { min-height: 520px; }
  .story-art > img { min-height: 690px; }
  .story-copy { padding: 80px clamp(35px, 7vw, 110px); }
  .story-copy > p:not(.eyebrow) { margin: 28px 0 36px; line-height: 1.8; }
  .story-copy li { padding: 18px 0; }
}

/* ---- Visítanos ---- */
.visit { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 clamp(16px, 6vw, 20px); }
.visit-card { padding: clamp(28px, 6vw, 78px); border-radius: var(--radius); background: var(--white); }
.visit-card h2 { max-width: 650px; }
.visit-details { display: grid; gap: 16px; margin: 28px 0 24px; }
.visit-details div { display: flex; flex-direction: column; gap: 5px; padding-bottom: 15px; border-bottom: 1px solid rgba(16,63,50,.12); }
.visit-details small { color: var(--forest-2); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.map-placeholder { display: grid; place-items: center; align-content: center; min-height: 280px; border-radius: var(--radius); background-color: #d8e2be; text-align: center; transition: transform .2s, box-shadow .2s; }
.map-placeholder:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,63,50,.14); }
.map-placeholder span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50% 50% 50% 0; background: var(--orange); color: white; font: 700 39px var(--display); transform: rotate(-45deg); box-shadow: 0 18px 32px rgba(16,63,50,.18); }
.map-placeholder p { margin-top: 24px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.7; }
.map-placeholder strong { font: 500 22px var(--display); letter-spacing: 0; text-transform: none; }
.map-placeholder.local-photo { position: relative; display: block; overflow: hidden; background: var(--forest); }
.local-photo > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center 35%; transition: transform .35s; }
.local-photo:hover > img { transform: scale(1.025); }
.map-placeholder.local-photo p { position: absolute; right: 16px; bottom: 16px; left: 16px; margin: 0; padding: 16px 18px; border-radius: 14px; background: rgba(10,47,38,.88); color: white; text-align: left; backdrop-filter: blur(10px); }
.map-placeholder.local-photo p span { display: block; width: auto; height: auto; margin: 0 0 4px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--lime); font: 900 10px var(--sans); letter-spacing: .13em; text-transform: uppercase; transform: none; }
.map-placeholder.local-photo p strong { color: white; }

@media (min-width: 1024px) {
  .visit { grid-template-columns: 1.05fr .95fr; gap: 20px; padding: 0; }
  .visit-details { gap: 18px; margin: 42px 0 32px; }
  .visit-details div { padding-bottom: 17px; }
  .map-placeholder { min-height: 500px; }
  .map-placeholder p { margin-top: 30px; }
  .map-placeholder strong { font-size: 24px; }
  .local-photo > img { min-height: 500px; }
  .map-placeholder.local-photo p { right: 20px; bottom: 20px; left: 20px; padding: 18px 20px; }
}

/* ---- Cierre & footer ---- */
.closing { padding: 64px 20px; background: radial-gradient(90% 120% at 50% 0%, var(--forest-2) 0%, var(--forest) 60%, #0b2a21 100%); color: var(--cream); text-align: center; }
.closing .eyebrow { color: var(--lime); }
.closing h2 { max-width: 780px; margin: auto; }
.closing > p:not(.eyebrow) { margin: 24px auto 30px; }
footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px clamp(16px, 6vw, 110px); background: #0a2f26; color: var(--cream); text-align: center; }
.brand-footer { width: 150px; height: 64px; border-radius: 12px; background: var(--cream); }
footer > p { color: var(--lime); font-size: 13px; }
footer > small { opacity: .65; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 12px; font-weight: 800; }
.social-links a { border-bottom: 1px solid rgba(216,234,156,.5); color: var(--lime); }

@media (min-width: 768px) {
  .closing { padding: 110px 20px; }
  footer { flex-direction: row; justify-content: space-between; gap: 30px; padding: 40px clamp(20px, 7vw, 110px); text-align: left; }
  .brand-footer { width: 170px; height: 70px; }
}

/* ---- Toast notice ---- */
.notice { position: fixed; z-index: 60; left: 50%; bottom: 24px; padding: 14px 18px; border-radius: 12px; background: #102d25; color: white; box-shadow: 0 15px 40px rgba(0,0,0,.25); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; }
.notice.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Cart drawer ---- */
body.cart-open { overflow: hidden; }
.cart-overlay { position: fixed; z-index: 70; inset: 0; background: rgba(6,34,27,.55); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; display: flex; flex-direction: column; width: min(100%, 480px); height: 100dvh; background: var(--cream); box-shadow: -20px 0 60px rgba(5,30,24,.2); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 18px 16px; border-bottom: 1px solid rgba(16,63,50,.1); }
.cart-head .eyebrow { margin-bottom: 7px; }
.cart-head h2 { font-size: 30px; }
.cart-heading { display: flex; align-items: center; gap: 12px; }
.cart-logo { width: 60px; height: 48px; border-radius: 10px; object-fit: cover; }
.cart-close { width: 38px; height: 38px; border: 1px solid rgba(16,63,50,.16); border-radius: 50%; background: transparent; color: var(--forest); cursor: pointer; font-size: 24px; line-height: 1; }
.cart-items { flex: 1; overflow: auto; padding: 8px 18px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(16,63,50,.1); }
.cart-line h3 { margin: 0 0 4px; font: 500 16px var(--display); }
.cart-line p { margin: 0; color: var(--forest); font-size: 14px; font-weight: 800; }
.cart-line-fee { padding: 10px 0; border-bottom: none; align-items: center; }
.cart-line-fee h3 { margin: 0; font: 600 13px var(--sans); color: var(--muted); }
.cart-line-fee p { font-size: 13px; color: var(--muted); font-weight: 700; }
.quantity { display: flex; align-items: center; align-self: center; gap: 10px; }
.quantity button { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid rgba(16,63,50,.2); border-radius: 50%; background: white; color: var(--forest); cursor: pointer; font-weight: 900; font-size: 16px; transition: background .1s; }
.quantity button:hover { background: var(--lime); border-color: var(--forest); }
.quantity span { min-width: 18px; text-align: center; font-weight: 900; }
.cart-empty { flex: 1; display: grid; place-items: center; align-content: center; padding: 24px; text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty span { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: var(--forest); color: var(--lime); font: 700 30px var(--display); }
.cart-empty strong { font: 500 21px var(--display); }
.cart-empty p { color: var(--muted); }
.cart-footer { padding: 16px 18px 22px; border-top: 1px solid rgba(16,63,50,.12); background: var(--white); }
.order-type { display: flex; gap: 18px; margin: 0 0 15px; padding: 0; border: 0; }
.order-type legend { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; width: 100%; }
.order-type label { font-size: 13px; font-weight: 700; }
.order-extra { margin: 5px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.5; }
.delivery-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(16,63,50,.08); color: var(--forest); font-size: 12px; font-weight: 800; line-height: 1.5; }
.delivery-note[hidden] { display: none; }
.delivery-address-fields { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.delivery-address-fields[hidden] { display: none; }
.delivery-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.delivery-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(16,63,50,.18); border-radius: 12px; outline: 0; background: var(--white); color: var(--ink); font: 500 14px var(--sans); text-transform: none; letter-spacing: normal; }
.delivery-field input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(16,63,50,.1); }
.delivery-field input.input-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.cart-total span { font-size: 13px; font-weight: 800; }
.cart-total strong { font: 700 23px var(--sans); color: var(--forest); }
.cart-footer > small { display: block; margin: 6px 0 14px; color: var(--muted); font-size: 10px; }
.checkout-button { width: 100%; border: 0; cursor: pointer; background: var(--orange); color: #22100a; font-weight: 800; }
.checkout-button:hover { filter: brightness(1.05); }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; }
.continue-shopping { width: 100%; margin-bottom: 9px; padding: 11px; border: 2px solid rgba(16,63,50,.2); border-radius: 99px; background: transparent; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 900; transition: border-color .15s; }
.continue-shopping:hover { border-color: var(--forest); }

@media (min-width: 768px) {
  .cart-head { padding: 28px 28px 20px; }
  .cart-head h2 { font-size: 42px; }
  .cart-logo { width: 72px; height: 58px; }
  .cart-close { width: 42px; height: 42px; }
  .cart-items { padding: 8px 28px; }
  .cart-line { padding: 18px 0; }
  .cart-line h3 { font-size: 18px; }
  .cart-empty span { width: 66px; height: 66px; margin-bottom: 15px; font-size: 34px; }
  .cart-empty strong { font-size: 23px; }
  .cart-footer { padding: 20px 28px 26px; }
  .cart-total strong { font-size: 25px; }
}

/* ---- Cart bar flotante ---- */
.cart-bar { position: fixed; z-index: 55; right: 12px; bottom: 12px; left: 12px; display: grid; grid-template-columns: auto auto; gap: 2px 22px; min-width: 0; padding: 13px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: var(--forest); color: white; box-shadow: 0 18px 45px rgba(5,30,24,.35); cursor: pointer; text-align: left; transition: background .15s; }
.cart-bar:hover { background: var(--forest-2); }
.cart-bar[hidden] { display: none; }
.cart-bar span { color: var(--lime); font-size: 11px; font-weight: 800; }
.cart-bar strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 20px var(--sans); color: white; }
.cart-bar em { font-size: 12px; font-style: normal; font-weight: 900; }

@media (min-width: 768px) {
  .cart-bar { right: 24px; bottom: 22px; left: auto; min-width: 300px; }
}

/* ---- Banner global "Cerrado" (afecta los pedidos de la carta) ---- */
.store-banner { position: sticky; top: 60px; z-index: 25; padding: 12px clamp(14px, 4vw, 76px); background: var(--orange); color: #22100a; font-size: 13px; font-weight: 700; text-align: center; }
.store-banner[hidden] { display: none; }

@media (min-width: 1024px) {
  .store-banner { top: 80px; padding: 12px clamp(20px, 5vw, 76px); }
}

/* ---- Precio de catálogo + etiqueta de taper en las cards de la carta ---- */

/* ---- Nota de cierre del carrito (checkout deshabilitado fuera de horario) ---- */
.cart-closed-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(237,111,50,.12); color: #8f3a10; font-size: 12px; font-weight: 800; line-height: 1.5; }
.cart-closed-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
