/* Sakura Latte House · página pública del menú (mobile-first) */
:root {
  --blossom: #F195AC;
  --blossom-deep: #B24A6D;
  --petal: #FDEDF2;
  --paper: #FFFBFC;
  --matcha: #54833F;
  --matcha-soft: #E8F1E1;
  --ink: #3D2A31;
  --ink-soft: #76606A;
  --line: #EFD3DC;

  --font-ui: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: min(1080px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blossom-deep); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--blossom-deep); color: #fff; }
.btn-solid:hover { background: #9A3D5D; }
.btn-line { border: 1.5px solid var(--blossom-deep); color: var(--blossom-deep); }
.btn-line:hover { background: #fff; }

.section-title {
  font-family: var(--font-brand); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(28px, 6vw, 40px); line-height: 1.1;
}

/* ---------- portada ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--petal);
  padding: clamp(40px, 9vw, 88px) 20px clamp(44px, 8vw, 80px);
}
.hero-petal {
  position: absolute; width: clamp(220px, 46vw, 460px); right: -12%; bottom: -18%;
  opacity: .14; transform: rotate(18deg); pointer-events: none;
}
.hero-inner { position: relative; max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero-logo { width: min(340px, 78vw); }
.hero-logo img { width: 100%; }
.hero-tagline {
  font-family: var(--font-brand); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 4.6vw, 24px); color: var(--ink-soft); max-width: 26ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- navegación de secciones ---------- */
.cat-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 251, 252, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-nav-track {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px max(20px, (100% - 1080px) / 2); scroll-padding-inline: 20px;
}
.cat-nav-track::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap;
}
.cat-nav a:hover { color: var(--ink); background: var(--petal); }
.cat-nav a.on { background: var(--ink); color: #fff; }

[data-section] { scroll-margin-top: 72px; }

/* ---------- favoritos ---------- */
.featured { width: var(--wrap); margin: 44px auto 0; display: grid; gap: 20px; }
.featured-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
}
.featured-list::-webkit-scrollbar { display: none; }
.feat { scroll-snap-align: start; }
.feat {
  position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start;
  padding: 22px 20px 20px; border-radius: 22px; background: var(--petal);
}
.feat-mark { position: absolute; width: 92px; right: -18px; top: -18px; opacity: .35; }
.feat h3 { font-family: var(--font-brand); font-weight: 500; font-size: 23px; line-height: 1.15; padding-right: 50px; }
.feat p { color: var(--ink-soft); font-size: 15px; }
.feat-price { margin-top: 6px; font-family: var(--font-brand); font-size: 22px; font-weight: 600; color: var(--blossom-deep); }

/* ---------- carta ---------- */
.carta { width: var(--wrap); margin: 0 auto; display: grid; gap: 0 64px; }
.carta-section { padding-top: 48px; display: grid; gap: 16px; align-content: start; }
.items { display: grid; }
.item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item-row { display: flex; align-items: baseline; gap: 10px; }
.item-name { font-family: var(--font-brand); font-weight: 500; font-size: 20px; line-height: 1.25; }
.item-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--blossom); transform: translateY(-4px); opacity: .7; }
.item-price { font-family: var(--font-brand); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { margin-top: 3px; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }

/* ---------- extras ---------- */
.extras {
  width: var(--wrap); margin: 56px auto 0; padding: 28px 22px; border-radius: 24px;
  background: var(--matcha-soft); display: grid; gap: 8px;
}
.extras .section-title { color: #3F6A2E; }
.extras-lead { color: var(--ink-soft); }
.extras-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.extras-list li {
  display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 14px;
  border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px;
}
.extras-list b { color: #3F6A2E; font-weight: 700; }

.notice { width: var(--wrap); margin: 48px auto; padding: 24px; border-radius: 20px; background: var(--petal); text-align: center; }

/* ---------- visítanos ---------- */
.visit { margin-top: 64px; background: var(--ink); color: #fff; padding: 52px 20px calc(36px + env(safe-area-inset-bottom)); }
.visit-inner { width: min(1080px, 100%); margin: 0 auto; display: grid; gap: 26px; }
.visit .section-title { color: var(--blossom); }
.visit-grid { display: grid; gap: 22px; }
.visit h3 { font-size: 14px; font-weight: 700; color: var(--blossom); margin-bottom: 4px; }
.visit p { font-size: 17px; }
.visit-links { display: flex; flex-wrap: wrap; gap: 10px; }
.visit .btn-solid { background: var(--matcha); }
.visit .btn-solid:hover { background: #4A7437; }
.visit .btn-line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.visit .btn-line:hover { background: rgba(255, 255, 255, .08); }
.fine { font-size: 13px !important; color: rgba(255, 255, 255, .6); padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* ---------- pantallas más grandes ---------- */
@media (min-width: 560px) {
  .featured-list { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .carta { display: block; columns: 2; column-gap: 64px; }
  .carta-section { break-inside: avoid; }
  .featured-list { grid-template-columns: repeat(4, 1fr); }
  .extras { padding: 36px 40px; }
  .visit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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