/* Buen Día — Poster Simple */
:root {
  --font: "Archivo", system-ui, sans-serif;
  --bg: #735b41;
  --text: #f4ede4;
  --divider: color-mix(in srgb, #f4ede4 35%, transparent);
  --muted: #d2c4b3;
  --ink: #2e1915;
  --tomato: #e04a33;
  --cream: #f4ede4;
  --green: #8fe39a;
  --highlight: #8c6f51;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2 { margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--tomato); }
button { font-family: var(--font); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--tomato) 30%, transparent); }

@keyframes bd-wiggle { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-2deg) scale(1.02) } 75% { transform: rotate(2deg) scale(1.02) } }
@keyframes bd-pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* Status dot */
.status-dot { width: 10px; height: 10px; flex: none; background: var(--tomato); }
.is-open .status-dot { background: var(--green); animation: bd-pulse 1.6s ease-in-out infinite; }

/* Header */
.site-header {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.header-logo { display: block; }
.header-logo img { height: 44px; width: auto; }
.header-nav { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 600; font-size: 14px; }
.header-nav a { text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 16px; }
.status-sep { opacity: 0.7; }
.ams-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ams-clock span { opacity: 0.7; letter-spacing: 0.08em; }
.status-short { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.lang-toggle { display: flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; cursor: pointer; padding: 4px 12px; font: 700 12px var(--font);
  background: transparent; color: var(--text);
}
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

@media (max-width: 720px) {
  .site-header { flex-direction: column; justify-content: center; text-align: center; }
  .header-nav { justify-content: center; }
  .spin-line { text-align: left; }
}

/* Hero */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 72px 24px 112px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 56px;
}
.hero-logo { width: min(760px, 88vw); }
.hero-logo img { width: 100%; height: auto; }
.hero-logo img:hover { animation: bd-wiggle .6s ease-in-out infinite; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tagline {
  font-weight: 800; font-stretch: 112%; font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.greeting {
  display: inline-block; padding: 6px 18px 7px; border-radius: 999px; transform: rotate(-3deg);
  background: #1f7a32; color: var(--cream);
  font-weight: 800; font-stretch: 125%; font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.02em; text-transform: uppercase;
}
.greeting:empty { display: none; }
.hero-logo { cursor: pointer; }
.hero-meta { font-size: 17px; font-weight: 600; line-height: 1.4; }
.hero-tags { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.hero-tags .sep { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Sections */
.section { max-width: 760px; margin: 0 auto; padding: 80px 24px; border-top: 2px solid var(--divider); }
.section-title {
  font-weight: 800; font-stretch: 125%; font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.03em; line-height: 0.95;
}
.title-menu { margin-bottom: 32px; }
.title-tight { margin-bottom: 16px; }
.title-about { margin-bottom: 24px; }

/* Menu */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.menu-tab {
  border: 2px solid var(--cream); border-radius: 999px; cursor: pointer; padding: 8px 18px;
  font: 700 15px var(--font); background: transparent; color: var(--text);
  transition: transform .2s;
}
.menu-tab:hover { transform: translateY(-2px); }
.menu-tab[aria-selected="true"] { background: var(--tomato); color: var(--ink); border-color: var(--tomato); }
.menu-items { display: flex; flex-direction: column; }
.menu-item { padding: 12px 14px; margin: 0 -14px; transition: background .2s; }
.menu-item.is-picked { background: var(--tomato); color: var(--ink); }
.menu-row { display: flex; align-items: baseline; gap: 12px; }
.menu-name { flex: 0 1 auto; font-weight: 700; font-size: 19px; }
.menu-leader { flex: 1; min-width: 0; border-bottom: 2px dotted currentColor; opacity: 0.4; }
.menu-price { flex: none; font-weight: 700; font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-desc { font-size: 14px; opacity: 0.85; }
.moods-wrap { margin-top: 32px; }
.moods-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; opacity: 0.85; }
.moods { display: flex; flex-wrap: wrap; gap: 6px; }
.mood {
  border: 2px solid var(--divider); border-radius: 999px; cursor: pointer; padding: 5px 12px;
  font: 700 13px var(--font); background: transparent; color: var(--text); transition: transform .2s;
}
.mood:hover { transform: translateY(-2px); }
.mood[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.spin-line { margin-top: 14px; min-height: 1.4em; font-weight: 700; font-size: 16px; text-align: right; }
.spin-line:empty { display: none; }
.menu-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.menu-note { font-size: 13px; opacity: 0.85; }
.btn-spin {
  display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 10px 20px; background: var(--tomato); color: var(--ink); font: 700 15px var(--font);
}
.btn-spin:hover { transform: translateY(-2px); }
.spin-icon { display: inline-block; transition: transform .5s; }

/* Hours */
.hours-status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 32px; }
.day-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; margin: 0 -14px; }
.day-row.is-today { background: var(--text); color: var(--bg); }
.day-name, .day-hours { font-weight: 700; font-size: 18px; }
.day-hours { font-variant-numeric: tabular-nums; }
.today-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 8px; }

/* Events */
.events-intro { margin-bottom: 32px; font-size: 17px; max-width: 48ch; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 16px; }
.cal-nav {
  width: 40px; height: 40px; border-radius: 999px; border: 2px solid currentColor;
  background: transparent; color: inherit; cursor: pointer; font-size: 16px;
}
.cal-nav:hover { background: var(--tomato); color: var(--ink); }
.cal-month { font-weight: 800; font-stretch: 115%; font-size: 22px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 0 8px; opacity: 0.75; }
.cal-cell {
  aspect-ratio: 1; border: 2px solid transparent; background: transparent; color: var(--muted);
  cursor: default; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 6px; font: 700 15px var(--font); opacity: 1; transition: transform .15s;
}
.cal-cell:hover { transform: scale(1.08); }
.cal-cell.is-blank { border: 0; color: var(--text); }
.cal-cell.has-event { background: var(--highlight); color: var(--text); border-color: var(--tomato); cursor: pointer; }
.cal-cell.is-today { border-color: var(--tomato); }
.cal-cell.is-selected { background: var(--text); color: var(--bg); }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.has-event .cal-dot { background: var(--tomato); }
.events-panel { display: flex; flex-direction: column; }
.panel-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0 12px; }
.event-row {
  display: grid; grid-template-columns: minmax(52px, auto) 1fr; gap: 14px; text-align: left; border: 0;
  border-top: 2px solid var(--divider); padding: 14px 10px; margin: 0 -10px; cursor: pointer;
  background: transparent; color: inherit; font-family: var(--font);
}
.event-row.is-selected { background: var(--highlight); }
.event-date { font-weight: 800; font-stretch: 120%; font-size: 30px; line-height: 1; }
.event-date.is-range { font-size: 22px; }
.event-mon { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.event-title { display: block; font-weight: 700; font-size: 17px; }
.event-meta { display: block; font-size: 13px; opacity: 0.85; }
.no-events { font-size: 16px; padding: 12px 0; }

/* About */
.about {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px; align-items: start;
}
.about-1 { margin-bottom: 16px; font-size: 19px; line-height: 1.4; }
.about-2 { font-size: 16px; opacity: 0.9; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* Visit */
.visit { padding-bottom: 96px; }
.visit-address { margin-bottom: 8px; font-weight: 700; font-size: 22px; }
.visit-meta { margin-bottom: 32px; font-size: 16px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 200px;
  border-radius: 999px; text-decoration: none; font: 700 15px var(--font);
}
.pill:hover { transform: translateY(-2px); }
.pill-solid { padding: 10px 22px; background: var(--tomato); color: var(--ink); }
.pill-solid:hover { color: var(--ink); }
.pill-outline { padding: 8px 20px; border: 2px solid var(--cream); }

/* Footer */
.site-footer { background: var(--tomato); color: var(--ink); padding: 64px 24px 24px; }
.footer-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.footer-big { font-weight: 800; font-stretch: 125%; font-size: clamp(44px, 8vw, 96px); line-height: 0.9; letter-spacing: -0.04em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }

/* Fun bits */
.splash { position: fixed; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; z-index: 50; animation: bd-splash .6s ease-out forwards; }
@keyframes bd-splash { from { opacity: 1; transform: scale(.3) rotate(-20deg); } to { opacity: 0; transform: scale(1.4) rotate(15deg); } }
.cup-rain { position: fixed; top: -50px; font-size: 30px; pointer-events: none; z-index: 60; animation: bd-fall linear forwards; }
@keyframes bd-fall { to { transform: translateY(calc(100vh + 100px)) rotate(var(--spin, 360deg)); } }
.secret-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; text-align: center;
  background: var(--tomato); color: var(--ink); font: 700 16px var(--font);
  animation: bd-toast 4.5s ease forwards;
}
@keyframes bd-toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }

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