:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --bg: #faf8f5;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav a {
  margin-left: 1rem;
  color: var(--color-accent);
  text-decoration: none;
}

.nav a:hover { color: var(--color-primary); }

.badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 .35rem;
  font-size: .72rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  vertical-align: middle;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 .75rem;
  color: var(--color-accent);
}

.hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ebe6df;
  transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.card a { text-decoration: none; color: inherit; display: block; }

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #eee;
}

.card-body { padding: 1rem 1.1rem 1.25rem; }

.card-body h2 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}

.price {
  font-weight: 600;
  color: var(--color-primary);
}

.tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .45rem;
  border-radius: 4px;
  background: #f0ebe3;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .detail-layout { grid-template-columns: 1.1fr 1fr; }
}

.detail-layout img {
  width: 100%;
  border-radius: var(--radius);
  background: #eee;
}

.btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
  transition: filter 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 125, 91, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: #fff;
  border: 1px solid #ccc;
  color: var(--color-accent);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 22, 18, 0.06);
}

.btn-outline:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active {
    transform: none !important;
    box-shadow: none !important;
  }

  .btn-primary:hover {
    filter: brightness(1.05);
  }

  .card:hover {
    transform: none !important;
  }
}

input, textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

label { display: block; font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }

.form-row { margin-bottom: 1rem; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .5rem .6rem; border-bottom: 1px solid #ebe6df; text-align: left; }

.error { color: #b00020; font-size: .9rem; }

.success { color: #1b7e4a; }

.not-found { text-align: center; padding: 3rem 1rem; }

/* Blog — portada, lista, cuerpo SEO */
.page-inner.prose {
  max-width: 46rem;
}

.page-inner.prose.blog-list {
  max-width: 56rem;
}

.blog-cover {
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(26, 22, 18, 0.08);
  background: #ebe6df;
}

.blog-cover img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-body h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--color-accent, #1a1612);
  font-weight: 600;
}

.blog-body ul,
.blog-body ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.blog-body li {
  margin-bottom: 0.35rem;
}

.blog-list .blog-list-item {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #ebe6df;
}

.blog-list .blog-list-item:last-child {
  border-bottom: none;
}

@media (min-width: 700px) {
  .blog-list .blog-list-item {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
  }
}

.blog-list-cover {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  background: #eee;
}

.blog-list-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
}

.blog-list-item h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.blog-list-excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.5rem 0 1rem;
}

.blog-list-more {
  font-weight: 600;
  color: var(--color-primary, #b07d5b);
  text-decoration: none;
}

.blog-list-more:hover {
  text-decoration: underline;
}
