:root {
  --ink: #17301f;
  --forest: #28462f;
  --forest-deep: #17351f;
  --green-soft: #dce6d8;
  --cream: #f7f2e8;
  --paper: #fffdf7;
  --gold: #b59247;
  --line: rgba(23, 48, 31, 0.16);
  --shadow: 0 18px 52px rgba(23, 48, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(23,48,31,.12) .65px, transparent .65px);
  background-size: 8px 8px;
  z-index: -1;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: rgba(247, 242, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { width: 132px; text-decoration: none; }
.brand img { width: 100%; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a, .footer-links a, .footer-link-button {
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
}
.site-header nav a:hover, .footer-links a:hover, .footer-link-button:hover { color: var(--gold); }
.header-order {
  justify-self: end;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 100px) clamp(18px, 5vw, 76px) 70px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  min-height: calc(100vh - 78px);
}
.eyebrow, .menu-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font: 800 .77rem/1.2 "Manrope", sans-serif;
  letter-spacing: .18em;
}
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 {
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 800;
}
h1 em {
  color: var(--forest);
  font-family: Georgia, serif;
  font-weight: 400;
}
.hero-text {
  max-width: 570px;
  margin: 30px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { background: var(--forest); color: white; }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.quick-facts {
  margin-top: 38px;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.hero-gallery {
  position: relative;
  height: min(640px, 70vh);
  min-height: 520px;
}
.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
  background: var(--green-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 18% 13% 0; transform: rotate(-2deg); }
.hero-photo:nth-child(2) { width: 42%; height: 49%; right: 0; top: 4%; transform: rotate(3deg); }
.hero-photo:nth-child(3) { width: 38%; height: 42%; right: 3%; bottom: 0; transform: rotate(1deg); }

.spotlight {
  margin: 0 clamp(18px, 4vw, 62px);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  color: white;
  background: var(--forest);
  border-radius: 30px;
}
.spotlight h2 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; }
.spotlight p { max-width: 720px; margin: 0; }
.spotlight .eyebrow { color: #d6bd7c; }
.spotlight-price { font: 800 clamp(3rem, 6vw, 5.5rem)/1 "Manrope", sans-serif; color: #d6bd7c; }

.menu-section { padding: 110px clamp(18px, 4vw, 62px); }
.section-heading { max-width: 690px; margin: 0 0 46px; }
.section-heading h2, .visit-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.section-heading > p:last-child { margin: 0; font-size: 1.05rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.menu-card {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 253, 247, .9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(23,48,31,.055);
}
.menu-card-featured { background: var(--green-soft); }
.menu-card-wide { grid-column: 1 / -1; }
.menu-title-row { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.menu-title-row h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.05em; }
.menu-kicker { margin-bottom: 7px; }
.menu-mark { color: rgba(23,48,31,.28); font: 800 1.1rem "Manrope", sans-serif; }
.menu-list { border-top: 1px solid var(--line); }
.menu-list-two-columns { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.menu-item strong { display: block; font-size: 1.02rem; }
.menu-item small { display: block; margin-top: 2px; color: rgba(23,48,31,.64); font-size: .82rem; }
.price { white-space: nowrap; color: var(--forest); font-weight: 800; }
.add-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.add-button:hover, .add-button:focus-visible { color: white; background: var(--forest); }
.add-button.is-added { color: white; background: var(--forest); }
.add-button-light { border-color: rgba(255,255,255,.8); color: white; }
.add-button-light:hover, .add-button-light:focus-visible { color: var(--forest); background: white; }
.menu-note { margin: 18px 0 0; font-size: .84rem; font-weight: 600; }
.recipe-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.recipe-list > div {
  padding: 14px;
  border: 1px solid rgba(23,48,31,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.42);
}
.recipe-list strong, .recipe-list small { display: block; }
.recipe-list small { margin-top: 4px; color: rgba(23,48,31,.68); line-height: 1.35; }
.size-list .menu-item { grid-template-columns: 1fr auto; }
.configure-button {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.visit-section {
  padding: 100px clamp(18px, 4vw, 62px);
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 18px;
  background: var(--forest-deep);
  color: white;
}
.visit-intro { padding-right: 34px; }
.visit-intro h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.visit-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
}
.visit-number { color: #d6bd7c; font-weight: 800; }
.visit-card h3 { margin: auto 0 14px; font-size: 1.55rem; }
.visit-card p { margin: 0 0 8px; }
.visit-card a { text-underline-offset: 4px; }
.muted { color: rgba(255,255,255,.62); }
.text-link { margin-top: 12px; color: #d6bd7c; font-weight: 700; }
.link-button { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

footer {
  min-height: 210px;
  padding: 48px clamp(18px, 4vw, 62px) 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: var(--cream);
}
footer img { width: 150px; }
footer p { text-align: center; font-size: .84rem; font-weight: 700; letter-spacing: .12em; }
.footer-links { justify-self: end; display: flex; gap: 20px; }
.footer-link-button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(620px, calc(100% - 36px));
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  color: white;
  background: rgba(23, 48, 31, .98);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.cookie-banner[hidden] { display: none; }
.cookie-copy strong { font: 800 1rem "Manrope", sans-serif; }
.cookie-copy p { margin: 5px 0 0; color: rgba(255,255,255,.76); font-size: .88rem; line-height: 1.45; }
.cookie-actions { display: grid; gap: 8px; }
.cookie-actions button { min-height: 42px; padding: 9px 13px; border-radius: 11px; cursor: pointer; font-weight: 800; white-space: nowrap; }
.cookie-primary { border: 1px solid #d6bd7c; color: var(--forest-deep); background: #d6bd7c; }
.cookie-secondary { border: 1px solid rgba(255,255,255,.28); color: white; background: transparent; }

.order-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  width: min(760px, calc(100% - 28px));
  min-height: 72px;
  padding: 10px 12px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  color: white;
  background: rgba(23, 48, 31, .97);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.order-bar[hidden] { display: none; }
.order-summary { display: flex; align-items: center; gap: 12px; }
.order-count {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #d6bd7c;
  color: var(--forest-deep);
  font-weight: 800;
}
.order-summary strong, .order-summary small { display: block; }
.order-summary small { color: rgba(255,255,255,.72); }
.clear-order { border: 0; color: rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.send-order {
  border: 0;
  padding: 13px 18px;
  border-radius: 13px;
  color: var(--forest-deep);
  background: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.product-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
}
.product-dialog::backdrop { background: rgba(11,29,17,.68); backdrop-filter: blur(7px); }
.dialog-shell { padding: clamp(20px, 4vw, 38px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-header h2 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.055em; }
.dialog-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.config-fields { display: grid; gap: 24px; }
.field-group { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.field-heading h3 { margin: 0; font-size: 1.08rem; }
.field-heading small { color: rgba(23,48,31,.62); text-align: right; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}
.choice-pill input:checked + span { color: white; background: var(--forest); border-color: var(--forest); }
.choice-pill input:focus-visible + span { outline: 3px solid #d6bd7c; outline-offset: 2px; }
.choice-pill small { font-size: .76rem; font-weight: 600; opacity: .78; }
.field-select, .field-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.field-help { margin: 10px 2px 0; color: rgba(23,48,31,.68); font-size: .88rem; }
.field-select[type="date"] { color-scheme: light; cursor: pointer; }
.field-textarea { min-height: 82px; resize: vertical; }
.recipe-description { margin: 11px 0 0; color: rgba(23,48,31,.68); font-size: .9rem; }
.config-subsection[hidden] { display: none; }
.form-error { min-height: 24px; margin: 16px 0 0; color: #9f2f2f; font-weight: 700; }
.dialog-footer {
  position: sticky;
  bottom: 0;
  margin: 18px -8px -8px;
  padding: 14px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(transparent, var(--paper) 18%);
}
.dialog-footer small, .dialog-footer strong { display: block; }
.dialog-footer strong { font: 800 1.35rem "Manrope", sans-serif; }
.dialog-footer .send-order { color: white; background: var(--forest); }

.cart-items { display: grid; gap: 10px; }
.pickup-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--green-soft); }
.pickup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickup-fields label span { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 700; }
.pickup-error { margin-bottom: 0; }
.cart-empty { padding: 30px 12px; text-align: center; color: rgba(23,48,31,.62); }
.cart-line { padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); }
.cart-line strong, .cart-line small { display: block; }
.cart-line small { margin-top: 5px; color: rgba(23,48,31,.66); line-height: 1.35; white-space: pre-line; }
.cart-line-price { font-weight: 800; white-space: nowrap; }
.quantity-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.quantity-controls button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 800; }
.quantity-controls .remove-line { width: auto; padding: 0 10px; color: #8f3030; }
.cart-total { margin: 18px 0; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 1.08rem; }
.cart-total strong { font: 800 1.35rem "Manrope", sans-serif; }
.whatsapp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.whatsapp-primary { grid-column: 1 / -1; min-height: 54px; color: white; background: #176b3a; }
.whatsapp-web, .copy-order { min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); cursor: pointer; font-weight: 700; text-align: center; text-decoration: none; }
.whatsapp-help { padding: 12px; border-radius: 12px; background: var(--green-soft); font-size: .88rem; }
.clear-cart { margin-top: 14px; padding: 8px 0; border: 0; color: #8f3030; background: transparent; cursor: pointer; font-weight: 700; }
.toast-message { position: fixed; left: 50%; bottom: 104px; z-index: 60; padding: 12px 17px; transform: translateX(-50%); border-radius: 999px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); font-weight: 700; }

:focus-visible { outline: 3px solid #d6bd7c; outline-offset: 3px; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 720px; }
  .hero-gallery { height: 600px; }
  .visit-section { grid-template-columns: repeat(3, 1fr); }
  .visit-intro { grid-column: 1 / -1; margin-bottom: 24px; }
  footer { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-self: center; }
}

@media (max-width: 720px) {
  .site-header { min-height: 66px; padding: 10px 16px; }
  .brand { width: 108px; }
  .header-order { padding: 10px 13px; font-size: .78rem; }
  .hero { padding-top: 40px; gap: 36px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.3rem); }
  .hero-text { margin: 22px 0; }
  .hero-gallery { height: 440px; min-height: 440px; }
  .hero-photo { border-width: 6px; border-radius: 20px; }
  .hero-photo-main { inset: 0 12% 14% 0; }
  .hero-photo:nth-child(2) { width: 45%; height: 43%; }
  .hero-photo:nth-child(3) { width: 43%; height: 38%; }
  .spotlight { grid-template-columns: 1fr auto; border-radius: 22px; }
  .spotlight .add-button { grid-column: 1 / -1; width: 100%; }
  .menu-section { padding-top: 78px; padding-bottom: 78px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card-wide { grid-column: auto; }
  .menu-list-two-columns { grid-template-columns: 1fr; }
  .visit-section { grid-template-columns: 1fr; padding-top: 72px; }
  .visit-intro { grid-column: auto; }
  .visit-card { min-height: 230px; }
  .order-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; gap: 9px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .order-summary { min-width: 0; }
  .order-summary span:last-child { min-width: 0; }
  .order-summary strong, .order-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .clear-order { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; color: var(--forest-deep); background: #d6bd7c; border-color: #d6bd7c; }
  .send-order { grid-column: 1 / -1; text-align: center; }
  .product-dialog { width: 100%; max-width: none; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-shell { padding: 22px 16px 18px; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .dialog-footer { margin-left: 0; margin-right: 0; }
  .cookie-banner { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .cookie-actions { grid-template-columns: 1fr 1.25fr; }
  .cookie-actions button { white-space: normal; }
}

@media (max-width: 460px) {
  .hero-gallery { height: 380px; min-height: 380px; }
  .quick-facts { font-size: .84rem; }
  .menu-card { padding: 22px 18px; }
  .recipe-list { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 1fr auto; }
  .menu-item .add-button { grid-column: 1 / -1; width: 100%; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .choice-grid { grid-template-columns: 1fr; }
  .whatsapp-actions { grid-template-columns: 1fr; }
  .whatsapp-primary { grid-column: auto; }
  .pickup-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Opciones de recogida y reparto */
.order-choice-label { margin: 0 0 12px; font-weight: 700; font-size: 1rem; }
.glovo-link { text-align: center; }
.glovo-help { margin: 10px 0 14px; font-size: .8125rem; line-height: 1.5; color: var(--muted, #596158); }
.hero-phone { display: inline-block; font-size: .875rem; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .hero-actions.order-choices { flex-direction: column; align-items: stretch; }
  .order-choices .button { justify-content: center; text-align: center; }
}
