/* ═══════════════════════════════════════════════════════════════
   Q'APROVECHE · BLOG · v4
   Solo estilos ESPECÍFICOS del blog. El sistema (nav, footer,
   cookies, eyebrow, body base, :root, container, mascota) vive
   en /assets/css/qaproveche.css y se carga ANTES que este archivo.
   ═══════════════════════════════════════════════════════════════ */

/* ───────── HERO BLOG ───────── */
.blog-hero {
  padding: 9rem 0 4rem;
  background: var(--c-crema);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 20, 17, 0.08);
}
/* Sin blobs decorativos (sistema unificado, sin geometría suelta) */
.blog-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 1rem 0;
}
.hero-title em { font-style: normal; color: var(--c-vino); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(31, 20, 17, 0.7);
  line-height: 1.6;
  max-width: 42ch;
}

/* ───────── POST DESTACADO ───────── */
.featured-post {
  display: block;
  background: var(--c-crema-2);
  border: 1px solid rgba(31, 20, 17, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--e-out), box-shadow 0.4s, border-color 0.3s;
  color: inherit;
}
.featured-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -20px rgba(31, 20, 17, 0.18);
  border-color: var(--c-vino);
}
.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s var(--e-out);
}
.featured-post:hover .featured-img { transform: scale(1.03); }
.featured-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--c-crema);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139, 27, 29, 0.25);
}
.featured-body { padding: 1.75rem; }
.post-cat {
  display: inline-block;
  font-family: var(--ff-sub);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-vino);
  background: rgba(139, 27, 29, 0.08);
  border: 1px solid rgba(139, 27, 29, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-tinta);
  margin-bottom: 1rem;
}
.featured-excerpt {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(31, 20, 17, 0.65);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(31, 20, 17, 0.15);
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(31, 20, 17, 0.55);
}

/* ───────── LISTADO ───────── */
.blog-section {
  padding: 4rem 0 5rem;
  position: relative;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.section-head a {
  font-family: var(--ff-sub);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-vino);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.2rem;
  transition: gap 0.25s;
}

.cat-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--ff-sub);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1.5px solid rgba(31, 20, 17, 0.15);
  color: var(--c-cacao);
  transition: all 0.25s;
}
.cat-pill:hover { border-color: var(--c-vino); color: var(--c-vino); }
.cat-pill.active {
  background: var(--c-vino);
  border-color: var(--c-vino);
  color: var(--c-crema);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-crema-2);
  border: 1px solid rgba(31, 20, 17, 0.08);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.4s var(--e-out), box-shadow 0.4s, border-color 0.3s;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(31, 20, 17, 0.18);
  border-color: var(--c-vino);
}
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s var(--e-out);
}
.post-card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--c-crema);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139, 27, 29, 0.25);
}
.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--c-tinta);
}
.card-excerpt {
  font-size: 0.93rem;
  line-height: 1.5;
  color: rgba(31, 20, 17, 0.65);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(31, 20, 17, 0.12);
  font-family: var(--ff-sub);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(31, 20, 17, 0.55);
}

/* ───────── PAGINACIÓN ───────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  font-family: var(--ff-sub);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid rgba(31, 20, 17, 0.15);
  color: var(--c-cacao);
  transition: all 0.2s;
}
.page-btn:hover { color: var(--c-vino); border-color: var(--c-vino); }
.page-btn.active {
  background: var(--c-vino);
  border-color: var(--c-vino);
  color: var(--c-crema);
}

/* ───────── EMPTY STATE ───────── */
.empty-state {
  text-align: center;
  padding: 5rem 0;
  color: rgba(31, 20, 17, 0.65);
}
.empty-state h3 {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  color: var(--c-tinta);
}

/* ───────── POST INDIVIDUAL ───────── */
.post-hero {
  padding: 8rem 0 3rem;
  background: var(--c-crema);
  position: relative;
  border-bottom: 1px solid rgba(31, 20, 17, 0.08);
}
.post-hero-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-sub);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-cacao);
  margin-bottom: 2rem;
  transition: gap 0.25s, color 0.25s;
}
.post-back:hover { gap: 0.85rem; color: var(--c-vino); }
.post-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 1.25rem 0 1.5rem;
}
.post-hero-excerpt {
  font-size: 1.1rem;
  color: rgba(31, 20, 17, 0.7);
  line-height: 1.55;
  max-width: 56ch;
  margin-inline: auto;
}
.post-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(31, 20, 17, 0.15);
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(31, 20, 17, 0.6);
}

.post-cover {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  box-shadow: 0 30px 60px -20px rgba(31, 20, 17, 0.25);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  padding: 4rem 0 5rem;
  background: var(--c-crema);
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--c-tinta);
}
.post-content > * + * { margin-top: 1.25rem; }
.post-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: 2.75rem;
  color: var(--c-tinta);
}
.post-content h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-top: 2.25rem;
  color: var(--c-cacao);
}
.post-content p { color: rgba(31, 20, 17, 0.82); }
.post-content a {
  color: var(--c-vino);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.05em;
  transition: color 0.2s;
}
.post-content a:hover { color: var(--c-vino-dk); }
.post-content strong { color: var(--c-tinta); font-weight: 700; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  color: rgba(31, 20, 17, 0.82);
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; }
.post-content li::marker { color: var(--c-vino); }
.post-content blockquote {
  border-left: 3px solid var(--c-vino);
  padding: 0.85rem 0 0.85rem 1.5rem;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--c-cacao);
  margin: 2rem 0;
}
.post-content img { border-radius: 16px; margin: 2rem 0; }
.post-content code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(31, 20, 17, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  color: var(--c-cacao);
}
.post-content pre {
  background: var(--c-cacao-deep);
  color: var(--c-crema);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88rem;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }

/* Related posts */
.post-related {
  background: var(--c-crema-2);
  padding: 4rem 0;
  border-top: 1px solid rgba(31, 20, 17, 0.08);
}
.post-related h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}

/* CTA dentro de post */
.post-cta {
  background: var(--c-cacao);
  color: var(--c-crema);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.post-cta h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.post-cta p { opacity: 0.85; margin-bottom: 1.5rem; }
.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  padding: 1rem 1.85rem;
  background: var(--c-mostaza);
  color: var(--c-cacao-dk);
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.post-cta-btn:hover { background: var(--c-crema); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE (solo para componentes del blog)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .blog-hero { padding: 6rem 0 2.5rem; }
  .blog-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .featured-body { padding: 1.5rem; }
  .featured-title { font-size: 1.6rem; }

  .blog-section { padding: 3rem 0 4rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .post-card { border-radius: 18px; }
  .card-body { padding: 1.25rem; }
  .card-title { font-size: 1.2rem; }

  .pagination { gap: 0.35rem; flex-wrap: wrap; }
  .page-btn { width: 38px; height: 38px; font-size: 0.85rem; }

  .post-hero { padding: 6rem 0 2rem; }
  .post-cover { margin-top: 2rem; border-radius: 18px; }
  .post-body { padding: 2.5rem 0 3.5rem; }
  .post-content { font-size: 1rem; }
  .post-content h2 { font-size: 1.65rem; margin-top: 2rem; }
  .post-content blockquote { font-size: 1.2rem; padding-left: 1rem; }
  .post-cta { padding: 1.75rem 1.5rem; }
}
