/* Estilos del blog: heredan variables de style.css. Base = móvil, @media suma para pantallas grandes. */

.blog-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
}

.blog-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.blog-header nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 18px;
}

.blog-header nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.post {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 60px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, var(--accent-strong), var(--bg-glow));
}

.post-leer-mas {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.post-leer-mas:hover,
.post-leer-mas:focus-visible {
  text-decoration: underline;
}

.post-body {
  padding: 20px;
}

.post-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.post h1 {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.25;
  margin: 0 0 18px;
}

/* Medida de lectura cómoda + espaciado generoso entre bloques */
.block-texto {
  max-width: 65ch;
  line-height: 1.7;
  color: var(--text);
  margin: 0 auto 22px;
}

.block-texto h2 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
}

.block-texto p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.block-texto a {
  color: var(--accent);
}

.block-imagen {
  margin: 0 0 22px;
}

.block-imagen img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.block-imagen figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

.block-video {
  margin: 0 0 22px;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 700px) {
  .post-body {
    padding: 36px 42px;
  }
}
