:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #1c2522;
  --muted: #68736f;
  --line: #dce2dd;
  --accent: #0f7b67;
  --accent-dark: #075947;
  --gold: #b8842f;
  --gold-soft: #fff3d8;
  --shadow: 0 18px 48px rgba(28, 37, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  min-height: 360px;
  padding: 56px clamp(20px, 5vw, 72px) 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background:
    linear-gradient(115deg, rgba(12, 49, 42, 0.92), rgba(12, 49, 42, 0.62)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80")
      center/cover;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfe2db;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: #edf6f2;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.header-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -24px auto 48px;
}

.toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.segmented {
  align-self: end;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f3f5f1;
}

.segmented button {
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segmented button.active {
  background: var(--accent);
  color: #fff;
}

.status-band {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #ead7ab;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #5c4318;
}

.status-band div {
  display: grid;
  gap: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card.featured {
  border-color: #d6ab59;
}

.photo {
  aspect-ratio: 4 / 3;
  background: #d9e0dc;
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--gold);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.content {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.content h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.creci {
  color: var(--accent-dark);
  font-weight: 800;
}

.meta {
  color: var(--muted);
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf2ef;
  color: #40504a;
  font-size: 0.78rem;
  font-weight: 700;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.whatsapp {
  background: var(--accent);
  color: #fff;
}

.instagram {
  border: 1px solid var(--line);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 880px) {
  .site-header,
  footer {
    display: grid;
  }

  .toolbar,
  .grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
}
