/* ---------- Tokens ---------- */
:root {
  --cream: #f6f2e7;
  --cream-alt: #efe8d6;
  --ink: #2a2a24;
  --green: #3d5c2e;
  --green-dark: #2c4321;
  --yellow: #f2d544;
  --muted: #8a8a7c;
  --border: #ddd6c1;
  --white: #fffdf8;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 720px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-weight: 800; }

/* ---------- Announcement ---------- */
.announcement {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.announcement p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--green-dark);
}
.logo-dot { color: var(--yellow); }

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Flag icons: square, rounded, colours baked into the SVG
   markup itself (not CSS) so they still render correctly even if this
   stylesheet fails to load — only size/rounding depend on CSS. ---------- */
.flag-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.flag-icon[hidden] { display: none; }

/* ---------- Language select (sits inline, right after "Contacto") ---------- */
.lang-select {
  position: relative;
  margin-left: 4px;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  line-height: 1;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 10px;
  cursor: pointer;
}
.lang-current:hover { border-color: var(--green); }
.lang-caret {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  margin: 0;
  list-style: none;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(43, 67, 33, 0.12);
  z-index: 60;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-option:hover { background: var(--cream-alt); }
.lang-option.is-active {
  background: var(--green);
  color: var(--white);
}
.lang-option .lang-flag { font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}
.hero-inner { max-width: 760px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 620px;
  color: var(--ink);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Photo banner ---------- */
.photo-banner {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  overflow: hidden;
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-alt); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.section-title.center { text-align: center; }

.section-lead {
  max-width: 620px;
  color: var(--ink);
  font-size: 1rem;
}
.section-lead.center { margin: 0 auto 56px; text-align: center; }

/* ---------- Bread list: 2-column grid (3 + 3) ---------- */
.bread-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.bread-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bread-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.bread-info {
  padding: 24px;
}

.bread-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
}

.bread-info h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.bread-desc {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
}

.bread-price {
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 18px;
}

.day-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.day-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: transparent;
}

.day-pill.is-available {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---------- Reservation form ---------- */
.reservation-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.reservation-form[hidden] { display: none; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-row-split > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label, .field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

input, textarea {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

.quantity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.quantity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
}
.quantity-name {
  font-size: 0.85rem;
  color: var(--ink);
}
.stepper {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 34px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(43, 67, 33, 0.06);
}
.stepper-btn {
  width: 32px;
  border: none;
  background: var(--cream-alt);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.stepper-btn:hover { background: var(--green); color: var(--white); }
.stepper-btn:active { background: var(--green-dark); color: var(--white); }

.qty-input {
  width: 34px;
  padding: 0;
  text-align: center;
  border-style: none solid;
  border-width: 1.5px;
  border-color: var(--green);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
}
.qty-input:focus { outline: none; border-color: var(--green); background: var(--cream-alt); }

/* ---------- Custom date picker ---------- */
.date-picker {
  position: relative;
}

.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.date-trigger:hover, .date-trigger[aria-expanded="true"] { border-color: var(--green); }
.date-trigger .is-placeholder { color: var(--muted); }
.date-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

.date-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 280px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(43, 67, 33, 0.12);
}
.date-panel[hidden] { display: none; }

.date-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.date-month-label {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.date-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.date-nav:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.date-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.date-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.date-cell:hover:not(.is-disabled) { background: var(--cream-alt); }
.date-cell.is-today { border: 1.5px solid var(--green); }
.date-cell.is-selected { background: var(--green); color: var(--white); font-weight: 700; }
.date-cell.is-disabled { color: var(--border); cursor: not-allowed; }

.field-error {
  font-size: 0.8rem;
  color: #b3372c;
  margin: 10px 0 0;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  margin-top: 24px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
}
.form-success h3 { color: var(--white); margin-bottom: 8px; }
.form-success p { margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-copy p { margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo { font-size: 1.6rem; margin-bottom: 10px; }
.footer-tagline { color: #c9d4bd; margin: 0; }
.site-footer h4 {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.site-footer p { margin: 0 0 8px; color: #e4e6d8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #b7c2a9;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .lang-select { margin-left: 0; }
  .lang-menu { left: 0; right: auto; }

  .bread-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-row-split,
  .quantity-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reservation-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .lang-current { padding: 5px 8px; }
  .lang-menu { right: -8px; }
}
