/* ============================================================
   ARREPA' — Mercado Festivo
   ============================================================ */

:root {
  --maize:     #FFD23F;
  --maize-dk:  #E5B82E;
  --cochineal: #D62828;
  --cochineal-dk: #A91D1D;
  --jade:      #06A77D;
  --bone:      #FFF8EC;
  --bone-2:    #F4E9D0;
  --ink:       #1A1A1A;
  --ochre:     #C68B3C;
  --shadow-1:  0 4px 14px rgba(26,26,26,0.08);
  --shadow-2:  0 18px 40px rgba(26,26,26,0.18);
  --radius-s:  10px;
  --radius-m:  18px;
  --radius-l:  28px;
  --container: 1180px;
  --gutter:    clamp(20px, 4vw, 48px);
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-script:  'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.script { font-family: var(--font-script); font-weight: 700; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cochineal);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: var(--shadow-1); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px var(--gutter);
}
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--cochineal); }
.nav-ctas { display: flex; gap: 10px; }
.nav-toggle { display: none; font-size: 26px; padding: 4px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 99px;
  font-weight: 700; font-size: 14px; letter-spacing: .3px;
  border: 2px solid transparent; transition: transform .12s, background .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cochineal); color: #fff; }
.btn-primary:hover { background: var(--cochineal-dk); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--maize); }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--maize) 0%, #FFE068 100%);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,26,26,0.06) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.papel {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-around;
  background: var(--cochineal); padding: 6px 0;
  z-index: 2;
}
.papel span {
  width: 28px; height: 24px;
  background: var(--bone);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.papel span:nth-child(3n)   { background: var(--jade); }
.papel span:nth-child(3n+1) { background: var(--maize); }
.papel span:nth-child(5n)   { background: var(--ink); }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(56px, 8vw, 108px);
  margin: 14px 0 22px;
  color: var(--ink);
  transform: rotate(-1.2deg);
}
.hero-title em {
  font-style: normal;
  background: var(--ink);
  color: var(--maize);
  padding: 0 12px 4px;
  display: inline-block;
  transform: rotate(0.8deg) translateY(-4px);
}
.hero-sub { font-size: 19px; max-width: 480px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 18px;
  list-style: none; font-size: 14px; font-weight: 600; color: var(--ink);
  opacity: .82;
}

.hero-art { position: relative; }
.hero-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-2);
  transform: rotate(3deg);
  background: var(--ink);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker {
  position: absolute; bottom: -18px; right: -8px;
  background: var(--jade); color: var(--bone);
  padding: 18px 28px; border-radius: 50%;
  font-size: 28px; line-height: 1;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-1);
  border: 3px solid var(--ink);
}

/* ============================================================
   RESPONSIVE — hero/nav
   ============================================================ */
@media (max-width: 860px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bone); padding: 18px var(--gutter);
    border-bottom: 3px solid var(--ink);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 70px 0 90px; }
  .hero-art { max-width: 380px; margin: 0 auto; }
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  background: var(--bone);
  padding: 110px 0;
  position: relative;
}
.story-title {
  text-align: center;
  font-size: clamp(38px, 5.5vw, 68px);
  margin: 14px auto 26px;
  max-width: 760px;
}
.story-lede {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
  font-size: 19px;
  color: #3a3a3a;
}
.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.story-card {
  background: var(--bone-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.story-card:nth-child(2) { transform: translateY(-12px); background: var(--maize); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.story-card:nth-child(2):hover { transform: translateY(-16px); box-shadow: var(--shadow-2); }
.story-icon { font-size: 44px; margin-bottom: 16px; }
.story-card h3 { font-size: 26px; margin-bottom: 10px; }
.story-card p { font-size: 15px; line-height: 1.55; }

@media (max-width: 860px) {
  .story { padding: 80px 0; }
  .story-cards { grid-template-columns: 1fr; gap: 18px; }
  .story-card:nth-child(2) { transform: none; }
}

/* ============================================================
   MENU
   ============================================================ */
.menu {
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
  padding: 110px 0;
}
.menu-title {
  text-align: center;
  font-size: clamp(40px, 6vw, 78px);
  margin: 14px 0 14px;
}
.menu-title em {
  font-style: normal;
  background: var(--cochineal);
  color: var(--maize);
  padding: 0 14px 4px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.menu-sub {
  text-align: center; max-width: 580px; margin: 0 auto 36px;
  color: #555; font-size: 15px;
}

.menu-tabs {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.menu-tab {
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--bone);
  border: 2px solid var(--ink);
  font-weight: 700; font-size: 14px;
  transition: background .12s, color .12s;
}
.menu-tab.is-active { background: var(--ink); color: var(--maize); }
.menu-tab:hover { background: var(--maize); }
.menu-tab.is-active:hover { background: var(--ink); color: var(--maize); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.menu-item {
  background: var(--bone);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 22px 22px 18px;
  position: relative;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.menu-item-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 8px;
}
.menu-item-name {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .3px;
}
.menu-item-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cochineal);
  white-space: nowrap;
}
.menu-item-desc { font-size: 14px; color: #444; line-height: 1.5; flex: 1; }
.menu-item-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.tag-v       { background: var(--jade); color: #fff; }
.tag-gf      { background: var(--ochre); color: #fff; }
.tag-picante { background: var(--cochineal); color: #fff; }

.menu-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.62); }
.modal-card {
  position: relative;
  background: var(--bone);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  max-width: 460px; width: 100%;
  padding: 36px 30px 30px;
  box-shadow: var(--shadow-2);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0;} to { transform: scale(1); opacity: 1;} }
.modal-x {
  position: absolute; top: 10px; right: 14px;
  font-size: 32px; line-height: 1; color: var(--ink); padding: 4px 10px;
}
.modal-body h3 {
  font-size: 32px; line-height: 1.05; margin-bottom: 8px;
}
.modal-body .modal-price { font-family: var(--font-display); color: var(--cochineal); font-size: 28px; }
.modal-body p { margin: 14px 0 18px; }
.modal-body .btn { width: 100%; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: var(--ink); color: var(--bone); padding: 110px 0; }
.visit .eyebrow { color: var(--maize); }
.visit-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start;
}
.visit-title {
  font-size: clamp(40px, 5.5vw, 72px);
  margin: 14px 0 22px;
  color: var(--maize);
}
.visit-lede { font-size: 17px; max-width: 460px; margin-bottom: 36px; opacity: .85; }
.visit-block { margin-bottom: 28px; }
.visit-h3 {
  font-size: 14px; letter-spacing: 3px; color: var(--cochineal);
  text-transform: uppercase; margin-bottom: 8px; font-family: var(--font-body); font-weight: 800;
}
.link-underline {
  border-bottom: 2px solid var(--maize); padding-bottom: 2px;
  font-weight: 600;
}
.link-underline:hover { color: var(--maize); }
.hours { list-style: none; }
.hours li {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed rgba(255,248,236,.2);
  padding: 8px 0; font-size: 15px;
}
.visit-map {
  height: 100%; min-height: 420px;
  border-radius: var(--radius-m); overflow: hidden;
  border: 4px solid var(--maize);
  box-shadow: var(--shadow-2);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--bone); padding: 110px 0; }
.gallery-title {
  text-align: center;
  font-size: clamp(40px, 6vw, 74px);
  margin: 14px 0 50px;
}
.gallery-title em {
  font-style: normal; background: var(--jade); color: var(--bone);
  padding: 0 14px 4px; display: inline-block; transform: rotate(1deg);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-s); border: 3px solid var(--ink);
  aspect-ratio: 4 / 3;
}
.gallery-grid img:nth-child(1) { aspect-ratio: 1 / 1; grid-row: span 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink); color: var(--bone); padding: 70px 0 20px; }
.foot-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.foot-logo {
  width: 110px; background: var(--bone); border-radius: 8px; padding: 8px;
  margin-bottom: 16px;
}
.foot-brand p { font-size: 14px; opacity: .8; }
.foot-links h4 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 18px; color: var(--maize); margin-bottom: 10px;
}
.foot-links p { font-size: 14px; line-height: 1.7; opacity: .85; }
.foot-links a { border-bottom: 1px solid rgba(255,210,63,.4); }
.foot-links a:hover { color: var(--maize); }
.foot-bottom {
  border-top: 1px solid rgba(255,248,236,.12);
  margin-top: 50px; padding-top: 18px;
  text-align: center; font-size: 12px; opacity: .55;
}

/* ============================================================
   STICKY BOTTOM CTAS — mobile only
   ============================================================ */
.sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 14px;
  background: var(--bone);
  border-top: 3px solid var(--ink);
  gap: 10px;
}
.sticky-bar .btn { flex: 1; }

@media (max-width: 860px) {
  .visit { padding: 80px 0; }
  .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .visit-map { min-height: 280px; }
  .gallery { padding: 80px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img:nth-child(1) { grid-row: auto; aspect-ratio: 4/3; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 520px) {
  .foot-inner { grid-template-columns: 1fr; }
}
