:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f8fafc;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --success: #166534;
  --success-bg: #dcfce7;
  --shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); min-width: 0; margin: 0 auto; }
.hero { color: white; background: radial-gradient(circle at top right, #2dd4bf, transparent 38%), linear-gradient(135deg, #134e4a, #0f172a); padding: 72px 0 64px; }
.eyebrow { margin: 0 0 8px; color: #5eead4; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 16px; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.hero-copy { max-width: 620px; margin-bottom: 28px; color: #ccfbf1; font-size: 1.05rem; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.primary-nav a { padding: 7px 12px; color: #ccfbf1; border: 1px solid rgba(204,251,241,.35); border-radius: 99px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ink); background: #ccfbf1; }
.search-bar { display: flex; max-width: 720px; padding: 6px; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); border-radius: 16px; backdrop-filter: blur(10px); }
.search-bar input { min-width: 0; flex: 1; padding: 14px 16px; color: var(--ink); background: white; border: 0; border-radius: 11px; outline: none; }
.search-bar button, .primary-button { padding: 12px 20px; color: white; background: var(--brand); border: 0; border-radius: 11px; font-weight: 800; }
.search-bar button { background: #fbbf24; color: #422006; }
.search-bar button:hover, .primary-button:hover { background: var(--brand-dark); color: white; }
.quick-searches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-searches button { padding: 7px 12px; color: #ccfbf1; background: transparent; border: 1px solid rgba(204,251,241,.35); border-radius: 99px; }
.quick-searches button:hover { color: var(--ink); background: #ccfbf1; }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); align-items: start; gap: 24px; min-width: 0; padding: 28px 0; }
.panel, .future-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.panel, .future-panel, .layout > * { min-width: 0; }
.panel { padding: 24px; }
.shopping-panel { position: sticky; top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.muted { color: var(--muted); font-size: .88rem; }
.notice { padding: 14px; color: #475569; background: #f1f5f9; border-radius: 12px; overflow-wrap: anywhere; }
.state-message, .state-loading, .state-error, .state-warning, .state-success { border: 1px solid transparent; }
.state-loading { color: #155e75; background: #ecfeff; border-color: #a5f3fc; }
.state-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.state-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.state-success { color: var(--success); background: var(--success-bg); border-color: #86efac; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; min-width: 0; }
.result-card { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.result-card.winner { border: 2px solid #86efac; background: linear-gradient(180deg, #f0fdf4, white); }
.winner-label { position: absolute; top: 12px; right: 12px; padding: 4px 8px; color: var(--success); background: var(--success-bg); border-radius: 99px; font-size: .68rem; font-weight: 800; }
.result-name { margin: 0 70px 4px 0; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.result-brand { color: var(--brand-dark); font-size: .78rem; font-weight: 750; }
.result-presentation { margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.price { font-size: 1.7rem; font-weight: 900; letter-spacing: -.05em; }
.unit-price { color: var(--muted); font-size: .78rem; text-align: right; }
.store { margin-top: auto; font-weight: 750; }
.source { margin: 2px 0 12px; color: var(--muted); font-size: .75rem; }
.source a { color: var(--brand); }
.freshness { margin: 0 0 12px; color: var(--success); font-size: .78rem; font-weight: 800; }
.freshness.stale { color: #b45309; }
.add-button { width: 100%; padding: 9px 12px; color: var(--brand-dark); background: #ccfbf1; border: 0; border-radius: 10px; font-weight: 800; }
.add-button:hover { background: #99f6e4; }
.card-actions { display: grid; gap: 7px; margin-top: auto; }
.detail-button { width: 100%; padding: 8px 12px; color: var(--brand-dark); background: white; border: 1px solid #99f6e4; border-radius: 10px; font-weight: 800; }
.detail-button:hover { background: #f0fdfa; }
.pill { padding: 5px 9px; color: var(--brand-dark); background: #ccfbf1; border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.shopping-list { display: grid; gap: 10px; margin: 18px 0; }
.empty-list { padding: 18px 0; color: var(--muted); font-size: .9rem; }
.shopping-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.shopping-item-name { font-weight: 750; line-height: 1.25; }
.shopping-item-meta { color: var(--muted); font-size: .78rem; }
.shopping-item-price { margin-top: 3px; color: var(--brand-dark); font-size: .76rem; font-weight: 750; }
.shopping-item-subtotal { margin-top: 2px; color: var(--ink); font-size: .8rem; font-weight: 850; overflow-wrap: anywhere; }
.quantity-control { display: flex; align-items: center; gap: 5px; }
.quantity-control button { width: 27px; height: 27px; color: var(--brand-dark); background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 7px; }
.quantity-control input { width: 38px; padding: 4px; text-align: center; border: 1px solid var(--line); border-radius: 7px; }
.remove-button { grid-column: 1 / -1; justify-self: start; padding: 0; color: #b91c1c; background: none; border: 0; font-size: .75rem; }
.shopping-total { padding: 12px; color: var(--brand-dark); background: #f0fdfa; border-radius: 10px; font-size: .86rem; font-weight: 850; overflow-wrap: anywhere; }
.primary-button { width: 100%; }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.comparison { margin-top: 18px; }
.comparison h3 { margin: 0 0 8px; font-size: 1rem; }
.total-card { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 10px; }
.total-card.best { border-color: #86efac; background: var(--success-bg); }
.total-card strong { white-space: nowrap; }
.saving { padding: 14px; margin-top: 12px; color: #92400e; background: #fef3c7; border-radius: 12px; font-weight: 850; }
.split-box { padding: 14px; margin-top: 12px; border: 1px dashed #94a3b8; border-radius: 12px; }
.split-line { display: flex; justify-content: space-between; gap: 12px; margin: 5px 0; font-size: .84rem; }
.product-comparison { width: 100%; min-width: 0; margin-top: 22px; overflow-x: auto; }
.product-comparison h3 { margin: 0 0 9px; font-size: 1rem; }
.product-detail-summary { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 12px; background: #f8fafc; border-radius: 14px; }
.product-detail-summary h4 { margin: 0 0 4px; font-size: 1.05rem; }
.product-detail-summary p { margin-bottom: 8px; }
.detail-best { color: var(--brand-dark); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.comparison-table th, .comparison-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.comparison-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.comparison-table .table-winner { color: var(--success); font-weight: 850; }
.comparison-table .table-stale { color: #b45309; }
.history-panel { margin-bottom: 24px; }
.inline-form { display: flex; max-width: 620px; gap: 8px; margin: 18px 0 12px; }
.inline-form input { min-width: 0; flex: 1; padding: 10px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; }
.inline-form button { white-space: nowrap; }
.history-results { min-width: 0; }
.history-table-wrap { max-width: 100%; overflow-x: auto; }
.history-table { min-width: 700px; }
.future-panel { padding: 24px; margin-bottom: 24px; }
.future-panel p { max-width: 650px; color: var(--muted); }
.future-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--brand-dark); font-weight: 800; }
.future-flow span { padding: 8px 12px; background: #f0fdfa; border-radius: 9px; }
.recipe-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; }
.recipe-controls label, .ingredient-search > label { display: grid; gap: 5px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.recipe-controls input, .ingredient-row input { width: 120px; padding: 10px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; }
.recipe-controls .primary-button { width: auto; }
.secondary-button { padding: 10px 14px; color: var(--brand-dark); background: #ccfbf1; border: 0; border-radius: 9px; font-weight: 800; }
.recipe-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.recipe-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.recipe-card h3 { margin: 0 0 5px; font-size: 1.05rem; }
.recipe-card p { margin-bottom: 10px; color: var(--muted); font-size: .82rem; }
.recipe-cost { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: .9rem; }
.recipe-cost strong { color: var(--brand-dark); }
.recipe-per-person { margin: -2px 0 8px; color: var(--brand-dark); font-size: .82rem; font-weight: 800; }
.recipe-cost-note { margin: 0 0 10px; color: var(--muted); font-size: .76rem; }
.recipe-warning { padding: 9px; color: #92400e; background: #fef3c7; border-radius: 8px; font-size: .78rem; }
.recipe-warning.recipe-ok { color: var(--success); background: var(--success-bg); }
.recipe-ingredients { margin-top: 14px; }
.recipe-ingredients h4 { margin: 0 0 7px; font-size: .82rem; }
.recipe-ingredient { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.recipe-ingredient strong, .recipe-ingredient span { display: block; }
.recipe-ingredient span { color: var(--muted); font-size: .75rem; }
.ingredient-status.available { color: var(--success); font-weight: 800; }
.ingredient-status.unavailable { color: #92400e; font-weight: 750; }
.recipe-source { display: block; margin-top: 10px; color: var(--brand); font-size: .75rem; }
.ingredient-search { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ingredient-row { display: flex; max-width: 560px; gap: 8px; margin-top: 6px; }
.ingredient-row input { width: auto; flex: 1; }
.ingredient-results { display: grid; gap: 7px; margin-top: 12px; }
.ingredient-result { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 9px; background: #f8fafc; font-size: .84rem; }
.ingredient-result.can-prepare { color: var(--success); background: var(--success-bg); }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 28px; color: var(--muted); font-size: .78rem; }
.footer span { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.image-frame { overflow: hidden; background: #f8fafc; border-radius: 12px; }
.product-image { width: 100%; height: 138px; margin-bottom: 12px; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; padding: 12px; color: #64748b; background: linear-gradient(135deg, #f8fafc, #e2e8f0); font-size: .76rem; font-weight: 750; text-align: center; }
.shopping-image { width: 46px; height: 46px; margin: 0; border-radius: 9px; }
.detail-image { flex: 0 0 104px; width: 104px; height: 104px; margin: 0; }
.recipe-image { height: 120px; }
.ingredient-image { width: 34px; height: 34px; margin: 0; border-radius: 7px; }

@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { width: 100%; }
  .shopping-panel { position: static; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 22px); max-width: 1180px; }
  .panel { padding: 17px; border-radius: 16px; }
  .primary-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-nav a { padding: 7px 5px; font-size: .74rem; text-align: center; }
  .search-bar { flex-direction: column; }
  .search-bar button { width: 100%; }
  .footer { flex-direction: column; }
  .section-heading { flex-wrap: wrap; }
  .results-grid, .recipe-results { grid-template-columns: minmax(0, 1fr); }
  .result-card { width: 100%; min-width: 0; }
  .price-row { flex-wrap: wrap; }
  .source { overflow-wrap: anywhere; }
  .shopping-item { grid-template-columns: 40px minmax(0, 1fr); }
  .shopping-image { width: 40px; height: 40px; }
  .quantity-control { grid-column: 2; justify-self: end; }
  .remove-button { grid-column: 2; }
  .split-line { flex-wrap: wrap; }
  .product-detail-summary { min-width: 0; }
  .product-detail-summary > div:last-child { min-width: 0; overflow-wrap: anywhere; }
  .inline-form { flex-direction: column; }
  .inline-form button { width: 100%; }
  .recipe-controls { align-items: stretch; }
  .recipe-controls input, .recipe-controls .primary-button { width: 100%; }
  .ingredient-row { flex-direction: column; }
  .ingredient-row input, .ingredient-row button { width: 100%; }
  .result-card { min-height: 0; }
  .product-detail-summary { align-items: flex-start; }
  .detail-image { flex-basis: 82px; width: 82px; height: 82px; }
}

/* Super Fácil demo identity */
:root {
  --ink: #132b48;
  --muted: #667085;
  --line: #e8e9e1;
  --surface: #fffefa;
  --canvas: #fbfaf4;
  --brand: #159447;
  --brand-dark: #0b6938;
  --success: #147a3e;
  --success-bg: #e9f7e8;
  --warm: #f4b72b;
  --shadow: 0 18px 46px rgba(19, 43, 72, .09);
}

body { background: var(--canvas); }
.hero { position: relative; overflow: hidden; padding: 34px 0 44px; background: radial-gradient(circle at 87% 8%, rgba(244,183,43,.26), transparent 22%), radial-gradient(circle at 12% 100%, rgba(21,148,71,.26), transparent 30%), linear-gradient(135deg, #0d5a43 0%, #12304d 74%); }
.hero::after { position: absolute; right: -90px; bottom: -160px; width: 390px; height: 390px; content: ""; border: 34px solid rgba(255,255,255,.07); border-radius: 50%; transform: rotate(-22deg); }
.hero .shell { position: relative; z-index: 1; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; color: #12304d; background: #f4c943; border-radius: 15px; font-size: 1.55rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.brand-name { font-size: 1.75rem; font-weight: 900; letter-spacing: -.07em; line-height: .9; }
.brand-name strong { color: #7ddc67; }
.public-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: #e8fff0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 99px; font-size: .76rem; font-weight: 800; }
.tagline { margin-bottom: 17px; color: #f5e0a1; font-size: .98rem; font-weight: 800; }
.tagline span { color: #fff; }
.tagline strong { color: #90e77d; }
.tagline em { color: #f4c943; font-style: normal; }
.hero h1 { max-width: 740px; margin-bottom: 13px; font-size: clamp(2.35rem, 6vw, 4.35rem); letter-spacing: -.065em; }
.hero h1 span { color: #90e77d; }
.hero-copy { max-width: 570px; margin-bottom: 24px; color: #d5f2e5; font-size: 1rem; }
.primary-nav a { color: #e5ffef; border-color: rgba(229,255,239,.32); }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ink); background: #e5ffef; }
.search-bar { max-width: 760px; padding: 7px; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.26); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.search-bar input { min-height: 51px; border-radius: 12px; }
.search-bar button { min-height: 51px; padding-inline: 26px; color: #263b14; background: #f4c943; }
.search-bar button:hover { color: #132b48; background: #ffd967; }
.quick-searches button { color: #e5ffef; border-color: rgba(229,255,239,.34); }
.quick-searches button:hover { color: var(--ink); background: #e5ffef; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; gap: 10px; margin-top: 28px; }
.demo-steps > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 11px 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 13px; }
.demo-steps span { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; color: #17324e; background: #f4c943; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.demo-steps strong { color: #fff; font-size: .83rem; }
.demo-steps small { color: #c7e8d7; font-size: .7rem; line-height: 1.25; }
.layout { gap: 22px; padding-top: 30px; }
.panel, .future-panel { border-color: #e7e7dc; border-radius: 22px; }
.panel { padding: 25px; }
.eyebrow { color: var(--brand); }
.hero .eyebrow { color: #9aeca4; }
.result-card { border-color: #e7e9df; border-radius: 18px; box-shadow: 0 9px 22px rgba(19,43,72,.045); }
.result-card:hover { border-color: #9bd79b; box-shadow: 0 14px 30px rgba(19,43,72,.1); transform: translateY(-2px); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.result-card.winner { border-color: #8fd28e; background: linear-gradient(180deg, #f0faec, #fffefa); }
.winner-label { color: #0e6b37; background: #dff3d8; }
.result-brand, .detail-best { color: var(--brand-dark); }
.price { color: var(--ink); }
.store { color: var(--ink); }
.add-button, .secondary-button { color: #0d6e39; background: #e4f5df; }
.add-button:hover, .secondary-button:hover { background: #ccecc5; }
.detail-button { color: #0d6e39; border-color: #abd9a3; }
.pill { color: #0d6e39; background: #e4f5df; }
.primary-button { background: var(--brand); }
.primary-button:hover { background: var(--brand-dark); }
.product-image { height: 152px; }
.product-image.image-frame, .recipe-image.image-frame { background: #f8f6ed; }
.image-placeholder { color: #6b7280; background: linear-gradient(135deg, #f7f7f0, #e8eee3); }
.shopping-total { color: #0d6e39; background: #eef8e8; }
.total-card.best { border-color: #9bd79b; background: #e9f7e8; }
.saving { color: #805b0b; background: #fff4ca; }
.future-panel { background: rgba(255,254,250,.86); }
.recipe-card { border-color: #e7e9df; background: #fffefa; }
.recipe-card:hover { box-shadow: 0 10px 26px rgba(19,43,72,.07); }
.recipe-warning { color: #805b0b; background: #fff4ca; }
.recipe-warning.recipe-ok { color: #147a3e; background: #e9f7e8; }
.ingredient-result.can-prepare { color: #147a3e; background: #e9f7e8; }
.footer { color: #77808d; }

@media (max-width: 520px) {
  .hero { padding: 25px 0 32px; }
  .hero-topline { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .public-badge { font-size: .7rem; }
  .brand-name { font-size: 1.6rem; }
  .hero h1 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .demo-steps { grid-template-columns: 1fr; gap: 7px; margin-top: 22px; }
  .demo-steps > div { grid-template-columns: auto 1fr; }
  .demo-steps small { font-size: .72rem; }
  .panel { padding: 18px; }
  .product-image { height: 160px; }
}

.recipe-card.featured { border-color: #d9b13d; background: linear-gradient(180deg, #fff9df, #fffefa 38%); box-shadow: 0 12px 28px rgba(244,183,43,.14); }
.recipe-card.featured::before { display: block; width: fit-content; padding: 4px 8px; margin-bottom: 8px; color: #805b0b; background: #fff0ad; border-radius: 99px; content: "RECETA ESTRELLA"; font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.recipe-consult { width: 100%; margin-top: 13px; }
.bottom-nav { display: none; }

@media (max-width: 520px) {
  body { padding-bottom: 76px; }
  .bottom-nav { position: fixed; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 5px; background: rgba(255,254,250,.96); border: 1px solid #e7e9df; border-radius: 20px; box-shadow: 0 12px 28px rgba(19,43,72,.16); backdrop-filter: blur(12px); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 3px 1px; color: var(--muted); font-size: .62rem; font-weight: 800; text-align: center; text-decoration: none; }
  .bottom-nav a span:first-child { color: var(--ink); font-size: 1.15rem; line-height: 1; }
  .bottom-nav a[aria-current="page"] { color: var(--brand-dark); }
  .bottom-nav a[aria-current="page"] span:first-child { color: var(--brand); }
}

/* Final Super Fácil visual polish */
:root {
  --ink: #172b4d;
  --muted: #6b7788;
  --line: #e3e8df;
  --surface: #ffffff;
  --canvas: #fbfbf7;
  --brand: #178a4c;
  --brand-dark: #0d6c3b;
  --success: #147a3e;
  --success-bg: #e9f7e8;
  --warm: #f0ad1d;
  --shadow: 0 8px 24px rgba(23, 43, 77, .065);
}

body { background: var(--canvas); }
.hero { color: var(--ink); padding: 22px 0 30px; background: #fffefa; border-bottom: 1px solid #e9eee6; }
.hero::after { display: none; }
.hero-topline { margin-bottom: 15px; }
.brand-lockup { gap: 8px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; color: transparent; background: transparent; border-radius: 0; box-shadow: none; }
.brand-name { color: var(--ink); font-size: 1.65rem; letter-spacing: -.065em; }
.brand-name strong { color: var(--brand); }
.public-badge { color: var(--brand-dark); background: #f3f8ef; border-color: #dcebd7; }
.tagline { margin-bottom: 12px; color: #7d6a25; font-size: .9rem; }
.tagline span { color: var(--ink); }
.tagline strong { color: var(--brand); }
.tagline em { color: #bc7a06; }
.hero h1 { max-width: 680px; margin-bottom: 12px; font-size: clamp(2.25rem, 5vw, 4rem); color: var(--ink); }
.hero h1 span { color: var(--brand); }
.hero-copy { max-width: 570px; margin-bottom: 18px; color: var(--muted); font-size: 1rem; }
.primary-nav a { color: var(--brand-dark); background: #f7faf4; border-color: #dce8d8; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; background: var(--brand); }
.search-bar { max-width: 700px; padding: 5px; background: #fff; border-color: #afd0b3; box-shadow: 0 7px 18px rgba(23,43,77,.08); }
.search-bar input { min-height: 49px; padding: 12px 15px; }
.search-bar button { min-height: 49px; padding-inline: 22px; color: #fff; background: var(--brand); }
.search-bar button:hover { color: #fff; background: var(--brand-dark); }
.quick-searches { margin-top: 10px; }
.quick-searches button { color: var(--brand-dark); background: #f7fbf5; border-color: #d5e7d5; }
.quick-searches button:hover { color: #fff; background: var(--brand); }
.demo-steps { max-width: 700px; gap: 8px; margin-top: 18px; }
.demo-steps > div { padding: 9px 11px; background: #f7faf4; border-color: #e0eadc; }
.demo-steps span { color: #6c4c04; background: #f4c943; }
.demo-steps strong { color: var(--ink); }
.demo-steps small { color: var(--muted); }
.panel, .future-panel { border-color: var(--line); box-shadow: var(--shadow); }
.result-card { min-height: 0; border-color: var(--line); box-shadow: 0 5px 16px rgba(23,43,77,.045); }
.result-card:hover { border-color: #a8d1ad; box-shadow: 0 10px 24px rgba(23,43,77,.08); }
.result-card.winner { border-color: #a8d1ad; background: #f3fbf1; }
.winner-label { color: #17683b; background: #ddf1d9; }
.result-brand, .detail-best { color: var(--brand-dark); }
.price { color: var(--ink); }
.store { color: var(--ink); }
.freshness { color: var(--success); }
.freshness.stale { color: #9b6b13; }
.add-button, .secondary-button { color: var(--brand-dark); background: #e8f5e4; }
.add-button:hover, .secondary-button:hover { color: #fff; background: var(--brand); }
.detail-button { color: var(--brand-dark); border-color: #b4d8b3; }
.detail-button:hover { color: #fff; background: var(--brand); }
.pill { color: var(--brand-dark); background: #e8f5e4; }
.primary-button { background: var(--brand); }
.primary-button:hover { background: var(--brand-dark); }
.shopping-total { color: var(--brand-dark); background: #eff8eb; }
.total-card.best { border-color: #a8d1ad; background: #e9f7e8; }
.saving { color: #805b0b; background: #fff4d3; }
.split-box { border-color: #b9c7b7; }
.product-image.image-frame, .recipe-image.image-frame { background: #f5f8f1; border-radius: 15px; }
.image-placeholder { background: #f1f5ee; }
.recipe-card { border-color: var(--line); box-shadow: 0 4px 14px rgba(23,43,77,.035); }
.recipe-card.featured { border-color: #ddc36a; background: #fffaf0; }
.recipe-consult { min-height: 42px; }
.store-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.store-wordmark { display: inline-grid; place-items: center; min-width: 58px; min-height: 28px; padding: 4px 7px; color: #fff; background: #172b4d; border-radius: 7px; font-size: .68rem; font-weight: 950; letter-spacing: -.02em; line-height: 1; text-align: center; }
.store-name { min-width: 0; color: var(--ink); font-size: .8rem; font-weight: 800; overflow-wrap: anywhere; }
.store-identity-rey .store-wordmark { color: #fff; background: #d9252a; }
.store-identity-super99 .store-wordmark { color: #fff; background: #d82d39; font-size: .9rem; }
.store-identity-riba .store-wordmark { color: #fff; background: #328744; font-size: .55rem; }
.store-identity-machetazo .store-wordmark { color: #163a6b; background: #f3c63f; font-size: .5rem; }
.total-store-label { display: grid; gap: 5px; }
.total-winner-label { color: var(--brand-dark); font-size: .65rem; letter-spacing: .07em; }
.comparison-table .store-wordmark { min-width: 50px; min-height: 25px; }
.quantity-control button { width: 34px; height: 34px; color: var(--brand-dark); background: #f4faf1; border-color: #b8d9b4; }
.quantity-control input { min-height: 34px; }
.bottom-nav { box-shadow: 0 10px 24px rgba(23,43,77,.13); }

@media (max-width: 520px) {
  .hero { padding: 18px 0 21px; }
  .hero-topline { align-items: center; flex-direction: row; gap: 8px; margin-bottom: 14px; }
  .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .brand-name { font-size: 1.4rem; white-space: nowrap; }
  .public-badge { min-width: 0; max-width: 135px; padding: 5px 7px; overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
  .tagline { margin-bottom: 10px; font-size: .82rem; }
  .hero h1 { margin-bottom: 9px; font-size: clamp(2.15rem, 11vw, 3.35rem); line-height: 1; }
  .hero-copy { margin-bottom: 13px; font-size: .9rem; line-height: 1.4; }
  .primary-nav { display: none; }
  .search-bar { flex-direction: row; gap: 6px; padding: 5px; }
  .search-bar input { min-height: 46px; padding: 10px 12px; }
  .search-bar button { width: auto; min-height: 46px; padding: 0 15px; }
  .quick-searches { flex-wrap: nowrap; max-width: 100%; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
  .quick-searches::-webkit-scrollbar { display: none; }
  .quick-searches button { flex: 0 0 auto; padding: 6px 11px; white-space: nowrap; }
  .demo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .demo-steps > div { grid-template-columns: 1fr; gap: 3px; padding: 7px 4px; text-align: center; }
  .demo-steps span { grid-row: auto; width: 22px; height: 22px; justify-self: center; font-size: .62rem; }
  .demo-steps strong { font-size: .72rem; }
  .demo-steps small { font-size: .6rem; line-height: 1.15; }
  .layout { gap: 15px; padding-top: 16px; }
  .panel, .future-panel { padding: 15px; }
  .result-card { padding: 14px; }
  .store-identity { gap: 6px; }
  .store-wordmark { min-width: 52px; min-height: 27px; }
  .store-name { font-size: .76rem; }
  .bottom-nav { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; padding: 8px 4px; border-radius: 18px; }
  .bottom-nav a { min-height: 48px; padding: 4px 1px; font-size: .63rem; }
}
