/* ====== Blog Entries ====== */
:root{
  --post-bg:#fff;
  --post-border:#e9eef3;
  --post-shadow:0 6px 18px rgba(26,28,31,.06);
  --post-radius:14px;
  --text:#1b1f23;
  --muted:#67728a;
  --accent:#0ea5e9;
  --accent-2:#14b8a6;
  --link:#0f766e;
  --tag-bg:#f1f5f9;
  --tag:#0f172a;
}

.blog-list{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.post-card{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:24px;
  align-items:start;
  background:var(--post-bg);
  border:1px solid var(--post-border);
  border-radius:var(--post-radius);
  box-shadow:var(--post-shadow);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(26,28,31,.08);
  border-color:#d8e3ec;
}

.post-thumb{
  position:relative;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  background:#f8fafc;
}
.post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.post-card:hover .post-thumb img{ transform:scale(1.03); }

.post-content{
  padding:22px 22px 24px 0;
}
.post-title{
  margin:0 0 8px 0;
 font-size: 1.5em;
  line-height:1.25;
  color:var(--text);
}
.post-title a{
  color:inherit;
  text-decoration:none;
}
.post-title a:hover{ text-decoration:underline; }

.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  font-size:.92rem;
  color:var(--muted);
  margin-bottom:10px;
}
.post-meta .meta{
  display:inline-flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
}

/* simple icon bullets */
.post-meta .meta::before{
  content:"";
  inline-size:.6rem;
  block-size:.6rem;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:inline-block;
}

/* categorías/etiquetas */
.post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 10px 0;
}
.post-tags a{
  font-size:.85rem;
  color:var(--tag);
  background:var(--tag-bg);
  border:1px solid #e2e8f0;
  padding:6px 10px;
  border-radius:999px;
  text-decoration:none;
  transition:background .18s ease, transform .1s ease, border-color .18s ease;
}
.post-tags a:hover{
  background:#e2e8f0;
  border-color:#cbd5e1;
  transform:translateY(-1px);
}

.post-excerpt{
  color:#334155;
  line-height:1.6;
  margin:8px 0 16px 0;
}

/* Leer más */
.post-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.read-more{
  --ring:rgba(20,184,166,.35);
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-weight:600;
  color:var(--link);
  position:relative;
}
.read-more::after{
  content:"→";
  transition:transform .18s ease;
}
.read-more:hover::after{ transform:translateX(2px); }
.read-more:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:3px;
  border-radius:6px;
}

/* Divider opcional entre tarjetas */
.post-divider{
  height:1px;
  background:linear-gradient(90deg, transparent, #e7edf3, transparent);
}

/* ====== Responsive ====== */
@media (max-width: 900px){
  .post-card{
    grid-template-columns: 220px 1fr;
  }
}
@media (max-width: 720px){
  .post-card{
    grid-template-columns: 1fr;
  }
  .post-content{ padding:16px 16px 18px 16px; }
  .post-thumb{ aspect-ratio: 16 / 9; }
}
@media (prefers-color-scheme: dark){
  :root{
    --post-bg:#0b1220;
    --post-border:#1f2a3a;
    --text:#e6edf3;
    --muted:#9fb0c6;
    --tag-bg:#0f172a;
    --tag:#e2e8f0;
    --link:#22d3ee;
  }
  .post-excerpt{ color:#c7d2fe; }
}
