/* ==========================================================
   SELECTAS · Diario en tema "Noche continua" (igual que el home)
   Paleta: noche #1a0a12 · noche-2 #230d19 · vino #3a1a2a · dorado #e2c391 · crema #faf0e8
   ========================================================== */
:root {
  --n-bg: #1a0a12;
  --n-bg2: #230d19;
  --n-wine: #3a1a2a;
  --n-gold: #e2c391;
  --n-cream: #faf0e8;
  --n-muted: rgba(250,240,232,.62);
  --n-line: rgba(226,195,145,.16);
  --wa-green: #1f9d55;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--n-bg);
  color: var(--n-cream);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--n-gold); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--n-gold); outline-offset: 3px; }

/* ========== TOPBAR ========== */
.blog-topbar {
  background: rgba(26,10,18,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n-line);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: 980px; margin: 0 auto;
  padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand-link { display: block; }
.brand {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 500; letter-spacing: .06em; font-size: 24px;
  color: var(--n-cream); line-height: 1;
}
.brand-sub { font-size: 8.5px; letter-spacing: .32em; color: var(--n-gold); margin-top: 5px; font-weight: 500; }
.back-home {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; color: var(--n-gold);
  border: 1px solid rgba(226,195,145,.45); border-radius: 999px; padding: 8px 16px;
  transition: background .2s, color .2s;
}
.back-home:hover { background: var(--n-gold); color: var(--n-wine); }

/* ========== BLOG MAIN ========== */
.blog-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 22px 64px;
}
.blog-header { text-align: center; margin-bottom: 40px; }
.blog-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 64px); font-weight: 500;
  color: var(--n-cream); line-height: 1;
}
.blog-header h1 em { font-style: italic; color: var(--n-cream); }
.blog-header p {
  color: var(--n-muted);
  margin-top: 14px; font-size: 14px;
}

/* ========== CATEGORÍAS: texto corrido, como los filtros del home ========== */
.cat-nav {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  justify-content: center;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--n-line);
}
.cat-chip {
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  font-size: 11.5px;
  letter-spacing: .2em;
  color: rgba(250,240,232,.55);
  text-transform: uppercase;
  font-weight: 500;
  transition: color .2s, border-color .2s;
}
.cat-chip:hover { color: var(--n-cream); border-color: rgba(226,195,145,.4); }
.cat-chip.active { color: var(--n-gold); border-color: var(--n-gold); }

/* ========== GRID DE ARTÍCULOS ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--n-bg2);
  border: 1px solid rgba(226,195,145,.12);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  transition: transform .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226,195,145,.35);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #2c1322;
}
.card-img.placeholder {
  background: radial-gradient(ellipse at 50% 30%, #5a2a40 0%, #2a1220 60%, #1a0a12 100%);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-text {
  color: rgba(226,195,145,.75);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
}
.card-body { padding: 20px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 10px; letter-spacing: .24em;
  color: var(--n-gold); font-weight: 500;
  text-transform: uppercase; margin-bottom: 8px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px; font-weight: 500;
  color: var(--n-cream); line-height: 1.15;
  margin-bottom: 10px;
}
.card-summary {
  font-size: 13.5px; color: var(--n-muted); line-height: 1.55;
  margin-bottom: 16px; flex: 1;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--n-line);
}
.card-date { font-size: 11px; color: var(--n-muted); letter-spacing: .04em; }
.card-arrow {
  font-size: 10.5px; color: var(--n-gold);
  font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase;
}

.empty {
  text-align: center; padding: 64px 20px;
  color: var(--n-muted);
  border: 1px dashed rgba(226,195,145,.3);
}
.btn-back {
  display: inline-block; margin-top: 18px;
  padding: 13px 28px; background: transparent; color: var(--n-cream);
  border: 1.5px solid var(--n-gold); border-radius: 999px;
  font-size: 11.5px; letter-spacing: .16em; font-weight: 600;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-back:hover { background: var(--n-gold); color: var(--n-wine); }

/* ========== ARTÍCULO ========== */
.post { max-width: 760px; margin: 0 auto; }
.post-hero {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(226,195,145,.12);
}
.post-content { padding: 40px 22px 20px; }
.post-cat {
  display: inline-block;
  font-size: 10px; letter-spacing: .26em;
  color: var(--n-gold); font-weight: 500;
  text-transform: uppercase; margin-bottom: 16px;
  padding: 0 0 4px; background: none; border-bottom: 1px solid rgba(226,195,145,.5); border-radius: 0;
}
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 50px); font-weight: 500;
  color: var(--n-cream); line-height: 1.04;
  margin-bottom: 18px;
}
.post-meta {
  display: flex; gap: 10px;
  font-size: 12px; color: var(--n-muted);
  margin-bottom: 30px; letter-spacing: .04em;
}
.post-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: rgba(250,240,232,.88);
  font-style: italic; line-height: 1.45;
  padding: 22px 0;
  border-top: 1px solid var(--n-line);
  border-bottom: 1px solid var(--n-line);
  margin-bottom: 30px;
}
.post-body { font-size: 16.5px; line-height: 1.8; color: rgba(250,240,232,.86); }
.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500;
  color: var(--n-cream); margin: 36px 0 12px;
}
.post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 500;
  color: var(--n-gold); margin: 26px 0 10px;
}
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 14px 0 20px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--n-gold); }
.post-body a { color: var(--n-gold); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--n-cream); font-weight: 600; }
.post-body img {
  max-width: 100%; height: auto;
  border-radius: 3px; margin: 22px 0;
  display: block;
}
.post-body iframe {
  max-width: 100%; margin: 22px 0;
  border-radius: 3px; border: none;
  aspect-ratio: 16/9; width: 100%;
}
.post-body blockquote {
  border-left: 2px solid var(--n-gold);
  padding: 10px 0 10px 20px;
  margin: 24px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-style: italic; color: rgba(250,240,232,.8);
}

.post-cta {
  margin-top: 48px;
  padding: 34px 28px;
  background: var(--n-bg2);
  border: 1px solid rgba(226,195,145,.25);
  color: var(--n-cream);
  border-radius: 3px;
  text-align: center;
}
.post-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 500;
  color: var(--n-cream); margin-bottom: 10px;
}
.post-cta p {
  color: var(--n-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.btn-whatsapp {
  display: inline-block;
  padding: 14px 28px;
  background: var(--wa-green); color: #fff;
  border-radius: 999px;
  font-size: 12px; letter-spacing: .14em;
  font-weight: 600; text-transform: uppercase;
}
.btn-whatsapp:hover { background: #25b866; }

.related { padding: 48px 22px 20px; }
.related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500;
  color: var(--n-cream); text-align: center;
  margin-bottom: 26px;
}
.related h2 em { font-style: italic; color: var(--n-cream); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--n-bg2); border-radius: 3px;
  border: 1px solid rgba(226,195,145,.12);
  overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: border-color .3s;
}
.related-card:hover { border-color: rgba(226,195,145,.35); }
.rel-img {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: #2c1322;
}
.rel-title {
  padding: 14px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; color: var(--n-cream);
  font-weight: 500; line-height: 1.2;
}

/* ========== PIE ========== */
.blog-footer {
  padding: 34px 22px;
  background: #12060c;
  border-top: 1px solid var(--n-line);
  color: var(--n-muted);
  text-align: center;
  font-size: 12px;
  margin-top: 48px;
}
.blog-footer a { color: var(--n-gold); }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .brand { font-size: 21px; }
  .back-home { font-size: 10px; padding: 7px 12px; letter-spacing: .1em; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card { transition: none; }
  .article-card:hover { transform: none; }
}
