:root {
  --green: #1f6b4a;
  --green-dark: #174f36;
  --cream: #f4f0e6;
  --cream-2: #ebe4d4;
  --ink: #171717;
  --muted: #5c564e;
  --line: #e4dccb;
  --white: #fff;
  --shadow: 0 10px 30px rgba(23, 31, 26, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.nav a:hover { color: var(--green); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: white; border: 0; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; cursor: pointer; font: inherit;
}
.btn:hover { background: var(--green-dark); }
.btn.light { background: white; color: var(--green); }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; }
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  color: white; background: #1b2420 center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.62)); }
.hero .wrap { position: relative; z-index: 1; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; margin: 0 0 14px; max-width: 16ch; letter-spacing: -0.03em; }
.hero p { max-width: 46ch; font-size: 18px; margin: 0 0 22px; }
.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 18px; letter-spacing: -0.03em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 28%); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.card { scroll-snap-align: start; }
.card img, .gallery img, .product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: var(--cream-2); }
.card h3, .product h3 { margin: 10px 0 4px; font-size: 18px; }
.muted { color: var(--muted); margin: 0; }
.price { font-weight: 700; color: var(--green); }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-row img { aspect-ratio: 5 / 3; border-radius: 16px; }
.menu-banner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
  background: white; border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason, .review, .faq, .place, .panel, .product {
  background: white; border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
}
.reason h3 { margin-top: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; flex: none; margin: 0; padding: 0;
  border-radius: 4px; accent-color: var(--green); cursor: pointer;
}
.check { cursor: pointer; font-weight: 500; }
textarea { min-height: 120px; resize: vertical; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 14px; overflow-x: auto; }
.stars { color: #e0a100; letter-spacing: 2px; }
.faq { margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 650; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.places { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 16px; }
.places a, .chip {
  border-radius: 999px; padding: 10px 14px; background: white; border: 1px solid var(--line); white-space: nowrap; font-weight: 650;
}
.places a.active, .chip.active { background: var(--green); color: white; border-color: var(--green); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 16px; font-weight: 650; }
.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; background: #e7f5ee; }
.flash.error { background: #fde8e4; }
.menu-layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }
.cat-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: sticky; top: 92px; }
.cat-nav h2 { margin: 0 0 12px; padding: 0 4px; font-size: 18px; font-weight: 700; }
.cat-nav a {
  display: inline-block; max-width: 100%;
  padding: 8px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.35;
  color: rgba(0, 0, 0, 0.85); background: transparent;
}
.cat-nav a.active { background: var(--green); color: white; }
.cat-nav a:hover { background: rgba(31, 107, 74, 0.08); }
.cat-nav a.active:hover { background: var(--green); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { display: flex; flex-direction: column; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 18px; cursor: pointer; }
.order-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: min(320px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 12px;
  background: white; color: var(--ink); border-radius: 18px; padding: 14px;
  box-shadow: var(--shadow);
}
.order-bar[hidden] { display: none; }
.order-toggle { display: none; }
.order-details { display: flex; flex-direction: column; gap: 12px; }
.order-arrow {
  width: 9px; height: 9px; flex: none;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(-45deg);
}
.order-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-clear { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; text-decoration: underline; padding: 0; }
.order-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow: auto; }
.order-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.order-lines span { min-width: 0; flex: 1; }
.order-remove { width: 24px; height: 24px; flex: none; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; line-height: 1; font-size: 16px; }
.order-lines strong, .order-total-row strong { white-space: nowrap; }
.order-total-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.order-bar .btn { width: 100%; }
body:has(#order-bar:not([hidden])) { padding-bottom: 28px; }
.place-dialog { border: 0; padding: 0; background: transparent; width: min(460px, calc(100% - 32px)); }
.place-dialog::backdrop { background: rgba(23, 23, 23, 0.45); }
.place-dialog-card { background: white; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.place-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.place-dialog-head h2 { margin: 0; font-size: 24px; }
.place-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); font-size: 22px; cursor: pointer; line-height: 1; }
.place-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.place-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--cream); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px;
}
.place-option:hover { border-color: var(--green); background: white; }
.place-option strong { font-size: 16px; }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-bar { background: var(--green); color: white; }
.admin-bar .wrap { display: flex; gap: 16px; align-items: center; min-height: 58px; flex-wrap: wrap; }
.admin-bar a { color: white; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.check { display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-banner, .reasons, .form, .menu-layout, .locations-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .scroller, .reviews { grid-auto-columns: 78%; }
  .photo-row { grid-template-columns: 1fr; }
  .cat-nav { position: static; flex-direction: row; align-items: center; overflow-x: auto; gap: 4px; }
  .cat-nav h2 { display: none; }
  .cat-nav a { white-space: nowrap; flex: none; }
}
@media (max-width: 860px) {
  .order-bar {
    left: 0; right: 0; bottom: 0; width: auto;
    display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px;
    border-radius: 18px 18px 0 0; padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(23, 31, 26, 0.12);
  }
  .order-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; background: transparent; color: var(--ink);
    font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px 0;
  }
  .order-bar.open .order-arrow { transform: rotate(135deg); margin-top: -4px; }
  .order-bar:not(.open) .order-details { display: none; }
  .order-lines { max-height: 34vh; }
  body:has(#order-bar:not([hidden])) { padding-bottom: 108px; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
}

/* ---------- Trabajá con nosotros ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form label .muted, .stack label .muted { font-weight: 400; }

/* ---------- Panel ---------- */
.admin-bar .wrap { justify-content: space-between; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; font-weight: 600; opacity: .85; }
.admin-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.admin-nav a.active { background: white; color: var(--green); opacity: 1; }
.admin-me { display: flex; gap: 14px; font-size: 14px; }
.admin-me a { font-weight: 600; }
.admin h3 { margin: 0 0 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: white; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.stat:hover { outline: 2px solid var(--green); }
.stat-num { font-size: 34px; font-weight: 800; color: var(--green); line-height: 1.1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: white; font-weight: 600; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select { width: auto; min-width: 180px; }
.table-scroll { overflow-x: auto; }
.table a { color: var(--green); }
.actions { white-space: nowrap; }
.actions > * { display: inline-block; margin-left: 10px; }
.actions form { display: inline; }
.link-danger { background: none; border: 0; padding: 0; color: #9b2c2c; cursor: pointer; font: inherit; }
.link-danger:hover { text-decoration: underline; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.order-btns { white-space: nowrap; }
.order-btns form { display: inline; }
.order-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: white; cursor: pointer; }
.order-btns button:disabled { opacity: .35; cursor: default; }
.cat-edit { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
.inline-price { display: flex; gap: 4px; align-items: center; }
.inline-price input { width: 100px; padding: 6px 8px; }
.inline-price button { border: 1px solid var(--line); background: white; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--green); }
.toggle { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-weight: 600; color: var(--muted); }
.toggle.on { background: #e7f5ee; color: var(--green); border-color: #bfe3cf; }
tr.is-hidden td { opacity: .6; }
tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cream-2); color: var(--ink); white-space: nowrap; }
.badge.s-nuevo { background: #1f6b4a; color: white; }
.badge.s-visto { background: #ebe4d4; }
.badge.s-entrevista { background: #fff1c7; color: #6b4e00; }
.badge.s-descartado { background: #fde8e4; color: #9b2c2c; }
.badge.s-contratado { background: #e7f5ee; color: #1f6b4a; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 12px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a { color: var(--green); }
@media (max-width: 860px) {
  .two-col, .cat-edit { grid-template-columns: 1fr; }
  .admin-me { width: 100%; }
}

/* ---------- Mapa de cada ubicación ---------- */
.place { display: flex; flex-direction: column; }
.place .btn { align-self: flex-start; margin-top: auto; }
.place-map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 16px; background: var(--cream-2); margin-bottom: 4px; }

/* ---------- Menú: título de la categoría alineado con la primera categoría ---------- */
.menu-head { margin-bottom: 18px; }
/* Misma altura que el botón de categoría (8px + 14px*1.35 + 8px) para que el texto quede a la par. */
.menu-head h3 { margin: 0; min-height: 35px; display: flex; align-items: center; font-size: 20px; line-height: 1.2; }
.menu-head p { margin-top: 2px; }

/* ---------- Carruseles (favoritos, reseñas) ---------- */
.carousel { position: relative; }
.carousel .scroller, .carousel .reviews {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* Edge viejo */
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
}
.carousel .scroller::-webkit-scrollbar, .carousel .reviews::-webkit-scrollbar { display: none; }
.carousel .review { scroll-snap-align: start; }
.carousel-btn {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: white; color: var(--green); box-shadow: 0 6px 20px rgba(23, 31, 26, 0.18);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
/* En favoritos, las flechas quedan a la altura del centro de la foto. */
.carousel:has(.scroller) .carousel-btn { top: calc(min(1120px, 100vw - 32px) * 0.28 * 0.5); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
.carousel-btn:hover { background: var(--green); color: white; transform: translateY(-50%) scale(1.06); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel.is-static .carousel-btn { display: none; }
.carousel-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 1200px) {
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}
@media (max-width: 860px) {
  /* En celular se desliza con el dedo; las flechas estorban. */
  .carousel-btn { display: none; }
  .carousel:has(.scroller) .carousel-btn { top: 50%; }
}

/* ---------- Tarjetas de "Nuestros favoritos" ---------- */
.carousel .scroller { padding: 6px 2px 14px; }   /* aire para que no se corte la sombra */
.card {
  display: flex; flex-direction: column;
  background: white; border-radius: 20px; padding: 12px 12px 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(228, 220, 203, 0.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23, 31, 26, 0.14); }
.card img { border-radius: 14px; }
.card h3 { margin: 12px 4px 4px; }
.card .muted { margin: 0 4px; font-size: 14px; }
.card .price { margin: auto 4px 0; padding-top: 10px; font-size: 17px; }
/* Las flechas siguen centradas en la foto (padding de la lista + de la tarjeta). */
.carousel:has(.scroller) .carousel-btn { top: calc(6px + min(1120px, 100vw - 32px) * 0.28 * 0.5); }

/* Sombra más corta y definida + más separación entre tarjetas */
.carousel .scroller { gap: 22px; padding: 12px 6px 26px; scroll-padding-left: 6px; }
.card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23, 31, 26, 0.06), 0 4px 12px rgba(23, 31, 26, 0.07);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #d6cbb3;
  box-shadow: 0 2px 4px rgba(23, 31, 26, 0.06), 0 12px 24px rgba(23, 31, 26, 0.12);
}
.carousel:has(.scroller) .carousel-btn { top: calc(12px + min(1120px, 100vw - 32px) * 0.28 * 0.5); }

/* ---------- Tarjetas de productos del menú: misma sombra que "Nuestros favoritos" ---------- */
.products { gap: 22px; }
.product {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23, 31, 26, 0.06), 0 4px 12px rgba(23, 31, 26, 0.07);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product:hover {
  border-color: #d6cbb3;
  box-shadow: 0 2px 4px rgba(23, 31, 26, 0.06), 0 12px 24px rgba(23, 31, 26, 0.12);
}
.product img { border-radius: 14px; }

/* ---------- Popup (dialog) del panel ---------- */
.head-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.head-actions a { color: var(--green); font-weight: 600; }
dialog.modal { border: 0; padding: 0; background: transparent; width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
dialog.modal::backdrop { background: rgba(23, 23, 23, 0.45); }
.modal-card { background: white; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 24px; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); font-size: 22px; cursor: pointer; line-height: 1; flex: none; }
.modal-add { display: flex; gap: 8px; }
.modal-add input { flex: 1; }
.pos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pos-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.pos-list li.is-off .pos-name input { color: var(--muted); text-decoration: line-through; }
.pos-name { display: flex; flex: 1; gap: 4px; min-width: 0; }
.pos-name input { padding: 8px 10px; background: white; }
.pos-save { flex: none; width: 34px; border: 1px solid var(--line); background: white; border-radius: 10px; cursor: pointer; color: var(--green); }
@media (max-width: 560px) {
  .pos-list li { flex-wrap: wrap; }
  .pos-name { flex-basis: 100%; order: -1; }
  .modal-add { flex-direction: column; }
}

/* ---------- Paginación del panel ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; font-weight: 600; font-size: 14px; }
.pager a { background: white; border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager .current { background: var(--green); color: white; }
.pager .disabled { color: var(--muted); opacity: .5; }
.pager .gap { min-width: 20px; padding: 0; color: var(--muted); }
