:root {
  --bg: #f4f2ed;
  --ink: #161616;
  --muted: #5f5b55;
  --line: rgba(22, 22, 22, 0.1);
  --paper: #fffcf8;
  --title: "Newsreader", Georgia, serif;
  --text: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 4vw;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--title);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.menu { display: flex; gap: 1.6rem; }
.menu a {
  text-decoration: none;
  font-size: 0.95rem;
}
.menu a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.2rem;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.4rem 0 5rem;
}
.page-head h1 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.count { margin: 0.45rem 0 1.4rem; color: var(--muted); }

.filters { position: sticky; top: 92px; display: grid; align-content: start; gap: 0.15rem; }
.filters-label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.48rem 0.15rem 0.48rem 0.55rem;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}
.filter svg { width: 18px; height: 18px; flex: none; }
.filter .n { margin-left: auto; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.filter.on { color: var(--ink); border-left-color: var(--ink); }
.filter:focus-visible, .card:focus-visible, .menu a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.35rem 1.15rem;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  text-decoration: none;
}
.photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e5e0d7;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover img { transform: scale(1.035); }
.photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--title);
  font-size: 2.4rem;
  color: #8a8176;
}
.card-body { padding: 0.95rem 1rem 1.15rem; }
.card-body .cat {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card h2 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.excerpt { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.95rem; }
.empty {
  grid-column: 1 / -1;
  padding: 2.5rem 0;
  color: var(--muted);
}
.colophon {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.story {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}
.kicker {
  margin: 0 0 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}
.story h1 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.lead { font-size: 1.15rem; max-width: 38rem; color: var(--muted); }
.story h2 {
  margin: 3rem 0 1rem;
  font-family: var(--title);
  font-weight: 500;
  font-size: 2.2rem;
}
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.template { min-height: 180px; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; }
.template strong { font-family: var(--title); font-size: 1.6rem; font-weight: 500; }
.template span { color: inherit; opacity: 0.75; }
.template.clasica { background: #f3eee6; color: #241c16; }
.template.moderna { background: #111111; color: #f3efe6; }
.template.minimal { background: #fff; color: #161616; border: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { font-family: var(--title); font-size: 1.4rem; font-weight: 500; }
.prices { display: flex; gap: 2rem; flex-wrap: wrap; }
.prices p { margin: 0; }
.prices strong { display: block; font-family: var(--title); font-size: 2.4rem; font-weight: 500; }
.cta {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.9rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.cta-row .cta { margin-top: 0; }
.prose p { margin: 0 0 0.9rem; max-width: 42rem; }
.prose h2, .story h3 {
  font-family: var(--title);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.story h3 { margin: 1.6rem 0 0.4rem; font-size: 1.45rem; }
.rubro-links, .faq { margin: 0; padding: 0; list-style: none; }
.rubro-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.4rem; }
.rubro-links a, .faq a { color: inherit; }
.include { margin: 0; padding-left: 1.1rem; }
.include li { margin: 0.35rem 0; }
.faq li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.faq li:last-child { border-bottom: 1px solid var(--line); }
.faq strong { display: block; margin-bottom: 0.25rem; }
.note-box h2 {
  margin: 0 0 0.6rem;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.8rem 1rem;
  background: #128c7e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover img { transform: none; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; gap: 1.1rem; width: min(1180px, calc(100% - 1.6rem)); }
  .filters {
    position: static;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }
  .filters-label { display: none; }
  .filter {
    width: auto;
    border: 1px solid var(--line);
    border-left-width: 1px;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
    background: var(--paper);
  }
  .filter .n { display: none; }
  .filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .templates, .steps li, .rubro-links { grid-template-columns: 1fr; }
  .story { padding-top: 2.4rem; }
}
