/* ---------- Tokens: paleta del restaurante (ejemplo) ---------- */
:root {
  --color-arroz: #F3EFE7;       /* fondo base — secciones claras */
  --color-nori: #1E1B18;        /* ancla oscura — texto principal, nav, headers outline */
  --color-nori-deep: #141210;   /* nori profundo — fondos oscuros grandes (menú, hero scrim, mobile menu) */
  --color-nori-soft: #4A4038;   /* nori claro — texto secundario sobre fondo claro */
  --color-torii: #D6392E;       /* acento CTA principal — botones */
  --color-torii-dark: #B63027;  /* hover de CTA */
  --color-salmon: #E8927C;      /* acento secundario — script / destacados */
  --color-wasabi: #7A9B76;      /* acento terciario — tags / iconos */
  --color-hueso: #F7F2E4;       /* texto claro sobre fondos oscuros */
  --color-hueso-muted: #C7BEB0; /* texto secundario claro sobre fondos oscuros */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--color-arroz);
  color: var(--color-nori);
  font-family: 'Questrial', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { display: block; }
sup { vertical-align: top; }

.accent { color: var(--color-salmon); }
.block { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 1.5px;
  padding: 19px 38px;
  border-radius: 5px;
  transition: background .25s ease;
  cursor: pointer;
  border: none;
}
.btn-order { background: var(--color-torii); color: var(--color-hueso); }
.btn-order:hover { background: var(--color-torii-dark); }
.btn-dark { background: var(--color-nori); color: var(--color-hueso); }
.btn-dark:hover { background: var(--color-nori-deep); }
.btn-lg { font-size: 15px; padding: 17px 34px; margin-top: clamp(24px, 3.5vw, 38px); }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 60px);
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease;
}
#nav.scrolled { background: var(--color-nori); box-shadow: 0 4px 20px rgba(0,0,0,.18); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.brand-icon { width: 52px; height: 44px; object-fit: contain; }
.brand-name {
  line-height: .92; color: var(--color-hueso); font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: clamp(20px, 2.4vw, 28px);
}
.brand-name sup { font-size: .42em; font-weight: 600; color: var(--color-salmon); }

.nav-links { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.nav-link {
  text-decoration: none; color: var(--color-hueso); font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: 1.5px; padding-bottom: 4px;
  border-bottom: 3px solid transparent; transition: color .2s ease;
}
.nav-link.current { border-bottom-color: var(--color-salmon); }
.nav-link:hover { color: var(--color-salmon); }
.nav-links .btn-order { padding: 12px 26px; outline: 2px dashed rgba(30,27,24,.35); outline-offset: -6px; }

.hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 6px;
  background: none; border: none;
}
.hamburger span { width: 30px; height: 3px; background: var(--color-hueso); border-radius: 3px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--color-nori-deep);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--color-hueso); font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 22px; letter-spacing: 2px;
}
.mobile-menu a.btn-order { font-size: 18px; padding: 14px 34px; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--rd, .8s) ease var(--rdel, 0s), transform var(--rd, .8s) ease var(--rdel, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; top: -5%; left: 0; width: 100%; height: 110%; z-index: 0;
  background-size: cover; background-position: 70% 2%; will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,18,16,.62) 0%, rgba(20,18,16,.28) 45%, rgba(20,18,16,.12) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 130px clamp(20px, 6vw, 80px) 70px; max-width: 1080px; width: 100%;
}
.hero-title {
  margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: .94;
  animation: heroUp .9s ease both;
}
.stroke-line {
  display: block; color: var(--color-nori); -webkit-text-stroke: 9px var(--color-hueso); paint-order: stroke fill;
  font-size: clamp(52px, 9.5vw, 126px); text-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hero-line2 { display: flex; align-items: baseline; gap: .28em; flex-wrap: wrap; }
.script {
  font-family: 'Caveat', cursive; color: var(--color-salmon); -webkit-text-stroke: 5px var(--color-hueso);
  paint-order: stroke fill; font-size: clamp(52px, 9vw, 120px); line-height: .8;
}
.hero-subtitle {
  max-width: 540px; margin: clamp(16px, 2.4vw, 26px) 0 0; font-family: 'Questrial', sans-serif;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--color-hueso);
  text-shadow: 0 2px 10px rgba(0,0,0,.3); animation: heroUp .9s ease .1s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: clamp(28px, 4vw, 46px);
  animation: heroUp .9s ease .18s both;
}
.hero-badge {
  margin: 16px 0 0; font-family: 'Questrial', sans-serif; font-size: clamp(13px, 1.3vw, 15px);
  color: var(--color-hueso); opacity: .85; text-shadow: 0 2px 10px rgba(0,0,0,.3);
  animation: heroUp .9s ease .24s both;
}

@keyframes heroUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes chevBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Story ---------- */
.story {
  background: var(--color-arroz); position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 80px) 0;
  overflow: hidden; scroll-margin-top: 90px;
}
.story-grid {
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px);
  max-width: 1280px; margin: 0 auto; align-items: flex-start;
}
.story-copy { flex: 1 1 460px; min-width: 300px; }
.eyebrow {
  margin: 0 0 6px; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--color-nori);
  font-size: clamp(16px, 2vw, 21px); letter-spacing: .5px;
}
.story-heading {
  margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--color-nori); line-height: 1.02;
}
.story-heading .block { font-size: clamp(42px, 6.4vw, 80px); }
.story-heading .hero-line2 { gap: .12em; }
.script-lg { font-size: clamp(46px, 7vw, 92px); line-height: .9; }
.story-text {
  max-width: 560px; margin: clamp(20px, 3vw, 34px) 0 0; font-family: 'Questrial', sans-serif;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: var(--color-nori);
}

.story-art {
  flex: 1 1 440px; min-width: 300px; position: relative;
  min-height: clamp(360px, 42vw, 560px); will-change: transform;
}
.story-sketch {
  width: 100%; height: clamp(360px, 42vw, 560px); object-fit: contain;
  --rd: 1s;
}
.story-postcard {
  position: absolute; left: 2%; bottom: -6%; width: clamp(180px, 24vw, 300px);
  --rd: 1s; --rdel: .15s;
}
.story-postcard.is-visible { transform: none; }
.story-postcard:not(.is-visible) { transform: translateY(40px) rotate(-4deg); }
.story-lotus {
  width: 44%; height: 70px; margin: 0 auto -18px; position: relative; z-index: 2; object-fit: contain;
}
.postcard-frame {
  background: #fff; padding: 12px; border-radius: 4px; transform: rotate(-3deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.16); outline: 2px dashed rgba(0,0,0,.12); outline-offset: -10px;
}
.story-stamp { width: 100%; height: clamp(150px, 17vw, 210px); object-fit: cover; border-radius: 2px; }

.story-treeline {
  margin-top: clamp(30px, 5vw, 60px);
  width: 100%; height: clamp(110px, 15vw, 190px);
  background-image: url('../assets/treeline-tile.jpg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  --rd: 1s;
}

/* ---------- Menu ---------- */
.menu { background: var(--color-nori-deep); position: relative; scroll-margin-top: 90px; }
.menu-inner {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vh, 56px) 0;
}
.menu-head {
  display: flex; align-items: baseline; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 0 clamp(20px, 6vw, 80px); margin-bottom: clamp(22px, 4vh, 46px);
}
.menu-head h2 {
  margin: 0; font-family: 'Caveat', cursive; font-weight: 700; color: var(--color-hueso);
  font-size: clamp(42px, 6.2vw, 92px); line-height: .95;
}
.menu-hint {
  font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: 1.5px;
  font-size: 12px; color: var(--color-hueso-muted); text-decoration: none;
}
.menu-scroller { overflow: hidden; width: 100%; }
.menu-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 clamp(20px, 6vw, 80px); width: max-content; will-change: transform; }

.dish { flex: 0 0 auto; width: clamp(240px, 26vw, 360px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.dish-icon {
  width: 100%; max-height: clamp(210px, 32vh, 320px); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, var(--color-nori) 0%, var(--color-nori-deep) 70%);
  border-radius: 50%;
}
.dish-icon svg {
  width: 46%; height: 46%;
  fill: none; stroke: var(--color-hueso); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.dish-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dish h3 {
  margin: 22px 0 8px; font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--color-hueso);
  font-size: clamp(21px, 2.2vw, 28px); letter-spacing: .5px;
}
.dish p {
  margin: 0; font-family: 'Questrial', sans-serif; color: var(--color-hueso-muted);
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5; max-width: 290px;
}

@media (max-width: 899px) {
  .menu-inner { position: static; height: auto; }
  .menu-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .menu-track { transform: none !important; }
}

/* ---------- Contact ---------- */
.contact { background: var(--color-arroz); padding: clamp(60px, 9vw, 110px) 24px; text-align: center; scroll-margin-top: 90px; }
.contact-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact-phone { width: clamp(230px, 34vw, 380px); height: clamp(240px, 34vw, 380px); object-fit: contain; }
.contact-number {
  margin: clamp(18px, 3vw, 34px) 0 0; font-family: 'Playfair Display', serif; font-style: italic;
  font-weight: 700; color: var(--color-torii); font-size: clamp(30px, 5.2vw, 52px); letter-spacing: 1px;
}
.contact-label {
  margin: clamp(26px, 4vw, 44px) 0 0; font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--color-nori); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 2px;
}
.contact-line { margin: 14px 0 0; font-family: 'PT Serif', serif; color: var(--color-nori); font-size: clamp(18px, 2vw, 24px); line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { background: var(--color-arroz); border-top: 1px solid rgba(0,0,0,.06); padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 80px); }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(48px, 10vw, 150px); max-width: 1100px; margin: 0 auto; }
.footer-col { min-width: 160px; }
.footer-heading {
  margin: 0 0 22px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  color: var(--color-nori); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 1px;
}
.footer-col p:not(.footer-heading) { margin: 0 0 18px; font-family: 'PT Serif', serif; color: var(--color-nori-soft); font-size: clamp(17px, 1.8vw, 21px); }
.footer-col p:last-child { margin-bottom: 0; }
.footer-foodtruck { margin-top: 10px; font-weight: 600; }

/* ---------- Back to top ---------- */
.top-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 130; width: 50px; height: 50px;
  border: none; cursor: pointer; background: var(--color-torii); color: var(--color-hueso); border-radius: 6px;
  font-size: 22px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.top-btn.visible { opacity: 1; pointer-events: auto; }
.top-btn:hover { background: var(--color-torii-dark); }
.chevron { display: inline-block; animation: chevBob 1.6s ease-in-out infinite; }
