/* Páginas estáticas por rubro y guías. Misma piel que la home (src/styles/home.css + ref.css):
   Figtree en todo, tarjetas blancas muy redondeadas con sombra suave, verde para la acción
   y pastillas verdes para los números que importan. */
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
:root {
  --bg: #f6f1e6; --card: #fff; --raised: #efe8da;
  --text: #1f1b16; --text-2: #5e554a; --muted: #766d61; --line: rgba(31, 27, 22, 0.1);
  --accent: #33642f; --accent-hover: #2a5427; --accent-soft: #e2ead9;
  --tomato: #b8352a; --tomato-soft: #f6e0dc; --malbec: #5b1a28;
  --body: 'Figtree', 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  --r-card: 26px; --r-tile: 18px; --r-btn: 14px;
  --sombra: 0 1px 1px rgba(36, 33, 29, 0.04), 0 18px 40px -24px rgba(36, 33, 29, 0.32);
  --sombra-alta: 0 1px 1px rgba(36, 33, 29, 0.04), 0 26px 54px -26px rgba(60, 40, 20, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { font-family: var(--body); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border-radius: var(--r-btn); border: 0; background: var(--accent); color: #fff;
  font: 600 15px/1 var(--body); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -10px rgba(51, 100, 47, 0.8);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px rgba(36, 33, 29, 0.16); }
.btn-ghost:hover { background: var(--text); color: #fff; }
.btn-light { background: #f2e8d2; color: var(--malbec); box-shadow: none; }
.btn-light:hover { background: #fff8ea; }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 241, 230, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top .link { height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font: 500 14px/36px var(--body); }
.top .link:hover { background: var(--raised); color: var(--text); }
.logo img { width: 144px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
.kicker { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-bottom: 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 13px/30px var(--body); }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -0.035em; }
.lede { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; min-height: 560px; align-items: center; }
.dish { position: absolute; left: -16%; top: 50%; width: 74%; translate: 0 -50%; filter: drop-shadow(0 24px 32px rgba(60, 40, 20, 0.22)); pointer-events: none; }

/* ---------- Comanda de costos (igual que la de la home) ---------- */
.ticket {
  position: relative; z-index: 1; margin: 0; width: min(380px, 100%); min-width: 0;
  padding: 18px 18px 20px; background: var(--card); color: var(--text); border-radius: var(--r-card);
  box-shadow: var(--sombra-alta); font: 14px/1.45 var(--body); font-variant-numeric: tabular-nums;
}
.ticket figcaption { display: grid; gap: 2px; padding: 0 2px 14px; }
.ticket figcaption strong { font: 700 20px/1.2 var(--body); letter-spacing: -0.02em; }
.ticket figcaption span { font-size: 12.5px; color: var(--muted); }
.ticket table { width: 100%; border-collapse: collapse; }
.ticket tbody th, .ticket tbody td { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.ticket tbody tr:first-child th, .ticket tbody tr:first-child td { border-top: 1px solid var(--line); }
.ticket th { text-align: left; font-weight: 600; vertical-align: middle; }
.ticket th small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ticket td { text-align: right; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.ticket tfoot th, .ticket tfoot td { padding: 4px 2px; }
.ticket tfoot tr:first-child th, .ticket tfoot tr:first-child td { padding-top: 14px; }
.ticket tfoot th { font-weight: 400; color: var(--text-2); }
.ticket .big th { padding-top: 10px; font-weight: 600; color: var(--text); }
.ticket .big td { padding-top: 10px; font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.ticket .big.low td { color: var(--tomato); }
.ticket .dozen th, .ticket .dozen td { padding-top: 8px; color: var(--muted); font-weight: 500; }
.meter { position: relative; height: 10px; margin-top: 14px; border-radius: 999px; background: var(--bg); }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.meter i.low { background: var(--tomato); }
.meter span { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; background: var(--text); }

/* ---------- Secciones ---------- */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; }
.sub { margin-top: 14px; color: var(--text-2); font-size: 17px; max-width: 44em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }

/* La carta con números */
.table-wrap { margin-top: 32px; overflow-x: auto; padding: 6px 10px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sombra); }
.menu { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.menu th, .menu td { padding: 14px 14px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.menu th[scope="row"], .menu thead th:first-child { text-align: left; }
.menu thead th { font: 600 13px/1.3 var(--body); color: var(--muted); }
.menu tbody th { font-weight: 600; }
.menu td { font-weight: 600; }
.menu tbody tr:last-child th, .menu tbody tr:last-child td { border-bottom: 0; }
.menu .pct { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.menu tr.low .pct { background: var(--tomato-soft); color: var(--tomato); }
.menu small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--tomato); }
.note { margin-top: 20px; color: var(--text-2); max-width: 44em; }

/* Lo que hace */
.does { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.does li { padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--sombra); }
.does h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.does p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.prose { display: grid; gap: 16px; color: var(--text-2); font-size: 17px; }
.prose a { font-weight: 600; }

/* Preguntas */
.faq { padding: 4px 24px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sombra); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--bg); color: var(--text-2); font: 500 18px/1 var(--body); transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq details p { padding-bottom: 18px; color: var(--text-2); }

/* Cierre */
.final { background: var(--malbec); color: #f2e8d2; }
.final-in { padding-top: 88px; padding-bottom: 88px; display: grid; gap: 16px; justify-items: start; }
.final h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.final p { color: rgba(242, 232, 210, 0.8); font-size: 18px; max-width: 34em; margin-bottom: 8px; }

/* Otros rubros */
.others { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 48px; padding-bottom: 64px; }
.others p { width: 100%; color: var(--muted); font-size: 14px; font-weight: 500; }
.others a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; transition: transform 160ms var(--ease); }
.others a:hover { transform: translateY(-2px); }
.others img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- Guía ---------- */
.article { max-width: 760px; padding-top: 24px; padding-bottom: 80px; }
.article h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.035em; }
.article h2 { font-size: 24px; margin-top: 48px; margin-bottom: 12px; }
.article p { color: var(--text-2); font-size: 17px; margin-top: 12px; }
.article .lede { font-size: 19px; }
.article .formula { margin-top: 16px; padding: 16px 20px; border-radius: var(--r-tile); background: var(--card); box-shadow: var(--sombra); color: var(--text); font: 600 16px/1.5 var(--body); }
.article .ticket { margin: 24px 0 16px; }
.article .faq { margin-top: 8px; }
.links { padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }

/* ---------- Margen bruto vs. ganancia ---------- */
.ticket-note { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.article .ticket-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.callout { margin-top: 28px; display: grid; gap: 14px; padding: 24px 26px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sombra); max-width: 760px; }
.callout h3 { font-size: 19px; letter-spacing: -0.015em; }
.callout p, .article .callout p { margin: 0; color: var(--text-2); font-size: 16px; }
.split-bar { display: flex; overflow: hidden; border-radius: 14px; font-size: 13px; line-height: 1.3; min-height: 56px; }
.split-bar span { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; min-width: 0; }
.split-bar b { font-size: 18px; letter-spacing: -0.02em; }
.sb-cost { background: var(--raised); color: var(--text-2); }
.sb-rest { background: var(--accent-soft); color: var(--accent); }

/* ---------- Calculadora ---------- */
.calc { margin-top: 40px; padding: 26px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sombra-alta); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; font-variant-numeric: tabular-nums; }
.calc-head { grid-column: 1 / -1; display: grid; gap: 6px; }
.calc-head h2, .article .calc-head h2 { margin: 0; font-size: 24px; }
.calc-head p, .article .calc-head p { margin: 0; font-size: 15px; color: var(--muted); }
.calc-body { display: grid; gap: 16px; align-content: start; min-width: 0; }
.calc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(76px, auto) 32px; gap: 8px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calc-row .calc-name { grid-column: 1 / 3; grid-row: 1; }
.calc-row .calc-line { grid-column: 3; grid-row: 1; }
.calc-row .calc-del { grid-column: 4; grid-row: 1; }
.calc-row > .calc-f:nth-child(3) { grid-column: 2 / -1; }
.calc-f { display: grid; gap: 5px; min-width: 0; }
.calc-f > span:first-child { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc input, .calc select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid #e2ddd3; border-radius: 12px; background: #fff; color: var(--text); font: 500 15px/1 var(--body); font-variant-numeric: tabular-nums; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 100, 47, 0.16); }
.calc-qty { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; }
.calc-qty select { padding: 0 6px; }
.calc-line { height: 42px; display: flex; align-items: center; justify-content: flex-end; font-weight: 700; font-size: 15px; }
.calc-del { width: 32px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 500 22px/1 var(--body); cursor: pointer; }
.calc-del:hover { background: var(--tomato-soft); color: var(--tomato); }
.calc-add { justify-self: start; cursor: pointer; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-more .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.calc-more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--accent); }
.calc-nojs { color: var(--text-2); }
.calc-out { align-self: start; position: sticky; top: 88px; padding: 18px; border-radius: var(--r-tile); background: var(--bg); display: grid; gap: 6px; }
.calc-out dl { margin: 0; display: grid; gap: 6px; }
.calc-out dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-out dl div[hidden] { display: none; }
.calc-out dt { color: var(--text-2); font-size: 14px; }
.calc-out dd { margin: 0; font-weight: 700; white-space: nowrap; }
.calc-out .big { align-items: center; padding-top: 6px; }
.calc-out .big dt { font-weight: 600; color: var(--text); font-size: 15px; }
.calc-out .big dd { font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.calc-out .big.low dd, .calc-out .net.low dd { color: var(--tomato); }
.calc-out .meter { background: var(--card); margin: 4px 0 8px; }
.calc-out .sug { padding: 10px 12px; margin: 0 -4px; border-radius: 12px; background: var(--accent-soft); }
.calc-out .sug dt { color: var(--accent); font-weight: 600; }
.calc-out .sug dd { color: var(--accent); font-size: 18px; }
.calc-out .ticket-note { margin-top: 6px; }

/* Tablas de las guías */
.menu caption { caption-side: top; text-align: left; padding: 12px 14px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.menu tfoot th, .menu tfoot td { padding: 14px; font-weight: 700; text-align: right; }
.menu tfoot th { text-align: left; }
.article .table-wrap { margin-top: 20px; }
.article .kicker { margin-bottom: 14px; }
.article-wide { max-width: 1100px; }
.article-wide > p, .article-wide > h1, .article-wide > h2, .article-wide > .faq, .article-wide > .links { max-width: 760px; }
.article-dish { width: min(300px, 70%); margin: 24px auto 0; filter: drop-shadow(0 20px 28px rgba(60, 40, 20, 0.2)); }
.article .calc { margin-left: -40px; margin-right: -40px; }
.article-wide .calc { margin-left: 0; margin-right: 0; }
.article-cta { padding: 16px 20px; border-radius: var(--r-tile); background: var(--accent-soft); color: var(--text) !important; }
.article-cta a { font-weight: 600; }

/* ---------- Pie ---------- */
.foot { background: #45131e; color: rgba(242, 232, 210, 0.78); font-size: 14px; }
.foot-in { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-in > div { display: grid; gap: 12px; align-content: start; justify-items: start; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav p { color: #f2e8d2; font-weight: 600; margin-bottom: 4px; }
.foot a { color: rgba(242, 232, 210, 0.78); text-decoration: none; }
.foot a:hover { color: #f2e8d2; text-decoration: underline; }

@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stage { min-height: 0; justify-items: center; padding-top: 170px; }
  .dish { left: 50%; top: 0; width: min(340px, 82%); translate: -50% 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .calc, .article .calc { grid-template-columns: minmax(0, 1fr); margin-left: 0; margin-right: 0; }
  .calc-out { position: static; }
  .foot-in > div { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .top .link { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .does { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 64px 0; }
  .faq { padding: 4px 18px; }
  .table-wrap { padding: 4px 6px; }
  .menu { min-width: 0; font-size: 14px; }
  .menu th, .menu td { padding: 12px 5px; }
  .menu th:first-child { padding-left: 10px; }
  .menu td:last-child, .menu thead th:last-child { padding-right: 8px; }
  .menu thead th { font-size: 12px; }
  .menu .pct { height: 26px; padding: 0 8px; font-size: 13px; }
  .calc { padding: 18px 14px; }
  .calc-grid, .calc-more .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .split-bar { flex-direction: column; }
  .split-bar span { width: auto !important; }
  .callout { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
