@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/bricolage-grotesque.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --canvas: #f7f7ee;
  --surface: #fff;
  --ink: #1a2e25;
  --muted: #52645a;
  --green: #173d31;
  --green-dark: #152f27;
  --lime: #d5f778;
  --lime-light: #ecf5cd;
  --line: #dce4da;
  --type: 'DM Sans', Arial, sans-serif;
  --display: 'Bricolage Grotesque', Arial, sans-serif;
  font-family: var(--type);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6b952d; outline-offset: 4px; }

.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.icon-definitions { position: absolute; pointer-events: none; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--lime);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { background: #fafbf7; border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: .96;
  white-space: nowrap;
}

.brand img { flex: none; }
.brand-wordmark { display: grid; line-height: .95; }
.brand-accent { display: block; margin-top: 4px; color: #46704c; font-size: .62em; font-weight: 800; letter-spacing: .025em; }
.brand-period { color: #739c27; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 37px); }
.site-nav a { font-size: .91rem; font-weight: 600; color: #354a3e; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; justify-content: end; gap: 8px; }
.header-group, .hero-group-action, .submission-action, .mobile-group-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--lime);
  font-size: .9rem;
  font-weight: 750;
}

.header-group:hover, .submission-action:hover { background: #c9ef63; }

.favorites-toggle {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 44px;
  padding: 6px 9px 6px 13px;
  border: 1px solid #d6e0d5;
  border-radius: 10px;
  background: var(--surface);
  color: var(--green);
  font-size: .86rem;
  font-weight: 700;
}

.favorites-toggle:hover, .favorites-toggle[aria-pressed='true'] { background: #e9f1e3; border-color: #bdcdbc; }
.favorites-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 7px;
  background: #edf2e9;
  font-size: .73rem;
}

.favorites-toggle[aria-pressed='true'] .favorites-count { background: var(--lime); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 333px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--green-dark);
  color: #fffef8;
}

.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background-color: var(--green-dark);
  background-image: linear-gradient(90deg, var(--green-dark), transparent 52%), url('assets/hero.jpg');
  background-size: cover, auto 100%;
  background-position: center, right 48%;
  background-repeat: no-repeat;
}

.hero-copy { padding: 34px clamp(25px, 3.35vw, 49px) 37px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.9rem, 4.7vw, 4.75rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.07em;
}

.hero h1 em { color: var(--lime); font-style: normal; }
.hero-description { max-width: 315px; margin-top: 17px; color: #e0e8dc; font-size: 1rem; line-height: 1.52; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--lime);
  color: #102d22;
  font-weight: 700;
  font-size: .93rem;
}

.hero-action:hover { background: #e4ffa5; }
.hero-action:focus-visible { outline-color: #fff; }
.hero-action-secondary { background: #163c30; color: #fff; border-color: #779081; }
.hero-action-secondary:hover { background: #285244; }

.hero-group {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: clamp(22px, 3.15vw, 42px);
  border: 1px solid #d6e6ad;
  border-radius: 22px;
  color: var(--green-dark);
  background: #ebf5cf;
}

.hero-group::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -85px;
  right: -89px;
  width: 240px;
  height: 240px;
  border: 1px solid #c8dca0;
  border-radius: 50%;
  box-shadow: 0 0 0 19px #ebf5cf, 0 0 0 20px #c8dca0, 0 0 0 39px #ebf5cf, 0 0 0 40px #c8dca0;
}

.hero-group-icon, .community-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-dark); color: var(--lime); }
.hero-group-icon .icon, .community-icon .icon { width: 26px; height: 26px; }
.hero-group h2, .community-copy h2, .whatsapp-intro h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 3.15rem);
  letter-spacing: -.064em;
  line-height: .99;
}

.hero-group h2 { margin-top: 14px; }
.hero-group p { margin-top: 10px; max-width: 25ch; font-size: .95rem; line-height: 1.45; color: #37543e; }
.hero-group-action { margin-top: 17px; background: var(--green-dark); color: #fff; }
.hero-group-action:hover { background: #2a5143; }
.group-status { display: block; margin-top: 8px; color: #4b6440; font-size: .83rem; font-weight: 650; }
.mobile-group-bar { display: none; }

.catalog { margin-top: 28px; }
#categorias, #ofertas, #como-funciona, #sugerir, #whatsapp { scroll-margin-top: 15px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.category-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px clamp(11px, 1.1vw, 15px);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #385044;
  background: #fff;
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
}

.category-button:hover { background: #edf2e8; }
.category-button[aria-pressed='true'] { border-color: var(--green); background: var(--green); color: #fff; }
.category-button[aria-pressed='true'] svg { color: var(--lime); }

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 285px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
}

.search-box svg { flex: none; }
.search-box:focus-within { outline: 3px solid #6b952d; outline-offset: 2px; }
.search-box input {
  height: 42px;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: .88rem;
}

.search-box input::placeholder { color: #5e6e63; opacity: 1; }

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 28px 0 10px;
}

.catalog-heading h2, .affiliate-info h2, .empty-state h3, .offer-dialog h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.catalog-heading h2 { font-size: clamp(1.85rem, 3.5vw, 2.55rem); }
#demo-notice { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; color: var(--muted); font-size: .89rem; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: #63883e; }
#result-count { margin-bottom: 13px; color: var(--muted); font-size: .87rem; white-space: nowrap; }
.catalog-order { display: flex; flex: none; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #eef1e5; }
.catalog-order button { padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #3d5647; font-size: .85rem; font-weight: 750; }
.catalog-order button:hover { background: #e7ecdc; }
.catalog-order button[aria-pressed='true'] { border-color: #d4decf; background: #fff; color: var(--green-dark); }
.offer-feedback { margin-bottom: 12px; color: #843738; font-size: .87rem; }

.offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.card-media { position: relative; aspect-ratio: 1.6; background: #e8eee5; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.community-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  height: 100%;
  color: #3f5c38;
  background: radial-gradient(circle at 51% 52%, #eef8d6, #e2edce 72%);
  font-size: .82rem;
  font-weight: 750;
}
.discount {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--lime);
  color: #1e381f;
  font-weight: 700;
  font-size: .86rem;
}

.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d9e1d8;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
}

.favorite-button:hover, .favorite-button[aria-pressed='true'] { background: #e4f7c2; border-color: #b4cd9d; }
.favorite-icon { display: block; font-family: Arial, sans-serif; font-size: 1.55rem; line-height: 1; }

.card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 16px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .78rem; }
.card-category { color: #43624b; font-weight: 700; }
.card-store::before { content: '·'; margin-right: 6px; color: #6c7a6f; }
.card-title { margin-top: 5px; font-family: var(--display); font-size: 1.2rem; font-weight: 750; line-height: 1.2; letter-spacing: -.03em; }
.card-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-block: 13px 15px; }
.current-price { order: -1; color: var(--green); font-family: var(--display); font-size: 1.58rem; font-weight: 800; letter-spacing: -.04em; }
.old-price { color: var(--muted); font-size: .88rem; }
.card-price-line { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 0 7px; }
.vote-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 35px;
  padding: 5px 8px;
  border: 1px solid #d7c9ba;
  border-radius: 8px;
  background: #fff9f0;
  color: #6a3a12;
  font-size: .79rem;
  font-weight: 750;
}
.vote-button::before { content: ''; width: 9px; height: 9px; background: currentColor; clip-path: polygon(50% 0%, 100% 82%, 0% 82%); }
.vote-button:hover, .vote-button[aria-pressed='true'] { background: #ffe2b7; border-color: #c98c53; }
.card-conditions { width: 100%; margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.card-conditions summary { cursor: pointer; font-weight: 700; }
.card-conditions p { margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 7px 12px;
  border: 1px solid #cbdbc9;
  border-radius: 8px;
  color: var(--green);
  background: #f1f5ed;
  font-size: .88rem;
  font-weight: 700;
}

.card-body .card-action { width: 100%; margin-top: auto; }
.card-action:hover { background: #e5eedf; border-color: #b7cbb6; }
.action-icon { font-size: 1.14rem; line-height: 1; }
.card-disclosure { margin-top: 8px; font-size: .76rem; color: var(--muted); line-height: 1.35; }

.empty-state {
  min-height: 215px;
  padding: 28px 18px;
  border: 1px dashed #c7d3c7;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 { margin-top: 7px; font-size: 1.5rem; color: var(--ink); }
.empty-state p { margin-block: 8px 16px; }

.community-section, .whatsapp-section { margin-top: 33px; border-radius: 17px; }
.community-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(19px, 4vw, 54px);
  padding: clamp(19px, 3.6vw, 41px);
  border: 1px solid var(--line);
  background: #fcfcf7;
}

.community-copy h2, .whatsapp-intro h2 { margin-top: 12px; }
.community-copy p, .whatsapp-intro p { max-width: 38ch; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.submission-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.submission-form label { display: grid; align-content: start; gap: 5px 6px; color: var(--green-dark); font-size: .86rem; font-weight: 700; }
.submission-form .optional { display: inline; color: var(--muted); font-size: .76rem; font-weight: 500; }
.full-field { grid-column: 1 / -1; }
.submission-form input, .submission-form select, .submission-form textarea {
  display: block;
  width: 100%;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid #cfdbce;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: 500 .91rem var(--type);
}

.submission-form textarea { resize: vertical; }
.submission-action { grid-column: 1 / -1; justify-self: start; }
.submission-action:disabled { cursor: default; background: #e8eee0; color: #53644f; }
.submission-status { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.submission-status:not(:empty) { margin-top: 9px; }
.submission-status[data-state='error'] { color: #843738; }
.submission-status[data-state='success'] { color: #25613b; font-weight: 750; }

.whatsapp-section { padding: clamp(19px, 3.6vw, 41px); border: 1px solid #d6e4bf; background: #eef4e1; }
.group-feature, .group-entry { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(15px, 2.5vw, 25px); border: 1px solid #d7e1ce; border-radius: 12px; background: #fff; }
.group-feature { margin-top: 17px; }
.group-feature h3, .group-entry-name { color: var(--green-dark); font: 800 1.37rem var(--display); letter-spacing: -.03em; }
.group-feature p, .group-entry-description { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.group-feature .group-status { margin-top: 10px; color: #3f5d38; }
.group-feature .group-instruction { margin-top: 8px; font-size: .82rem; }
.whatsapp-qr { justify-items: center; margin: 0; color: var(--muted); white-space: nowrap; font-size: .76rem; }
.group-faq { margin-top: 13px; }
.group-faq details { padding: 10px 1px; border-bottom: 1px solid #d5e1cc; color: #375341; font-size: .88rem; }
.group-faq summary { cursor: pointer; font-weight: 750; }
.group-faq p { max-width: 70ch; margin: 7px 0 1px; line-height: 1.5; }
.group-list { display: grid; gap: 10px; padding: 0; margin: 10px 0 0; list-style: none; }
.group-entry-link { padding: 7px 10px; border: 1px solid #bacfb6; border-radius: 8px; background: #f0f7e9; color: var(--green); font-size: .83rem; font-weight: 750; }
.group-entry-link:hover { background: #e4f2d8; }

.affiliate-info {
  display: flex;
  align-items: start;
  gap: 15px;
  margin: 36px 0 41px;
  padding: 22px;
  border: 1px solid #d6e0d4;
  border-radius: 13px;
  background: #eef3ea;
}

.affiliate-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  border-radius: 9px;
  color: var(--green);
  background: #dbe9d6;
}

.affiliate-info h2 { margin-top: 1px; font-size: 1.21rem; }
.affiliate-info p { max-width: 76ch; margin-top: 6px; color: #485e50; font-size: .9rem; line-height: 1.5; }
.site-footer { border-top: 1px solid var(--line); background: #f2f5ee; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 19px; gap: 13px; }
.footer-inner > a:last-child { color: var(--muted); font-size: .86rem; }

.offer-dialog {
  width: min(450px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
}

.offer-dialog::backdrop { background: #0c221bb5; }
.dialog-close-form { display: flex; justify-content: end; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f1f5ed;
  color: var(--green);
}

.dialog-close:hover { background: #e5eedf; }
.dialog-label { margin: 0 44px 6px 0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.offer-dialog h2 { font-size: 1.8rem; }
.dialog-description { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.dialog-note { color: var(--muted); font-size: .87rem; line-height: 1.45; }

@media (max-width: 955px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 12px; }
  .site-nav { gap: 14px; }
  .favorites-label { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
  .hero { min-height: 315px; }
  .hero-visual { left: 38%; background-position: center, right -58px center; background-size: cover, auto 85%; }
  .catalog-tools { gap: 12px; }
  .category-list { gap: 6px; }
  .search-box { flex-basis: 225px; }
  .offer-list { gap: 15px; }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 68px; gap: 12px; }
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 16px; }
  .hero-visual { left: 35%; background-position: center, right center; }
  .hero h1 { font-size: clamp(2.8rem, 7.6vw, 4.1rem); }
  .hero-group h2 br { display: none; }
  .hero-group h2, .hero-group p { max-width: none; }
  .hero-group::after { top: -110px; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .search-box { flex-basis: auto; }
  .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-section { grid-template-columns: 1fr; }
  .mobile-group-bar:not([hidden]) { display: flex; position: fixed; z-index: 4; inset: auto 14px max(10px, env(safe-area-inset-bottom)) 14px; box-shadow: 0 5px 18px #172f2750; }
  body:has(.mobile-group-bar:not([hidden])) { padding-bottom: 68px; }
}

@media (max-width: 545px) {
  .shell { width: calc(100% - 28px); }
  .brand img { width: 39px; height: 39px; }
  .brand { font-size: 1.23rem; gap: 7px; }
  .favorites-toggle { padding-inline: 8px; }
  .header-group { padding-inline: 8px; gap: 5px; font-size: .78rem; }
  .header-group .icon { width: 17px; height: 17px; }
  .hero, .hero-group { border-radius: 15px; }
  .hero { min-height: 0; display: block; }
  .hero-copy { padding: 23px 19px clamp(125px, 44vw, 220px); }
  .hero h1 { font-size: clamp(2.07rem, 9.8vw, 3.6rem); }
  .hero-description { max-width: 300px; margin-top: 12px; font-size: .93rem; }
  .hero-actions { margin-top: 14px; }
  .hero-action { padding-inline: 10px; font-size: .86rem; }
  .hero-visual {
    inset: auto 0 0;
    height: clamp(153px, 48vw, 251px);
    background-image: linear-gradient(180deg, var(--green-dark) 0%, transparent 23%), url('assets/hero.jpg');
    background-size: cover;
    background-position: center 57%;
  }
  .catalog { margin-top: 19px; }
  .category-button { min-height: 42px; }
  .catalog-heading { flex-direction: column; align-items: start; margin-top: 23px; }
  .offer-list { grid-template-columns: minmax(0, 1fr); }
  .group-feature { flex-wrap: wrap; }
  .group-entry { flex-wrap: wrap; }
  .whatsapp-qr { display: none; }
  .affiliate-info { margin-block: 24px 29px; padding: 16px; }
}

@media (max-width: 350px) {
  .favorites-count { display: none; }
  .header-group .icon { display: none; }
  .submission-form fieldset { grid-template-columns: minmax(0, 1fr); }
}

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