/* ============================================================
   SIUYI — blog.css
   Estilos del blog: lista + entrada individual
   ============================================================ */

/* ── HERO DEL BLOG ── */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) var(--pad-x) 4rem;
  background: linear-gradient(160deg, var(--black) 0%, #1e0912 60%, var(--black) 100%);
  border-bottom: 1px solid var(--white-faint);
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right top, var(--wine-glow), transparent 70%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 700px; }

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: .02em;
  margin: .8rem 0 1.5rem;
}
.blog-hero-title em { font-style: italic; color: var(--wine-light); }

.blog-hero-sub {
  font-size: .82rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.9;
  max-width: 500px;
}

/* ── CONTENEDOR BLOG ── */
.blog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad-x) var(--pad-y);
}

/* Filtro de categorías */
.blog-filter-bar {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.blog-filter-bar a { text-decoration: none; }

/* ── GRID DE TARJETAS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem clamp(1.2rem, 3vw, 2.5rem);
}

/* Tarjeta de entrada */
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--white-faint);
  transition: border-color .35s;
  overflow: hidden;
}
.blog-card:hover { border-color: var(--wine); }

/* Primera tarjeta — ocupa 2 columnas */
.blog-card:first-child {
  grid-column: span 2;
  flex-direction: row;
}
.blog-card:first-child .blog-card-img-link { flex: 0 0 55%; }
.blog-card:first-child .blog-card-body     { flex: 1; }

/* Imagen de la tarjeta */
.blog-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0910, #3a0e1c);
}
.blog-card:first-child .blog-card-img-link { aspect-ratio: auto; }
.blog-card-img-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
  display: block;
}
.blog-card:hover .blog-card-img-link img { transform: scale(1.04); }

/* Placeholder sin imagen */
.blog-card-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(135deg, #1a0910, #3a0e1c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-placeholder span {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .15em;
  color: var(--white-faint);
  text-align: center;
  padding: 1rem;
}

/* Cuerpo de la tarjeta */
.blog-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
}

/* Etiqueta de categoría */
.blog-cat {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--wine-light);
  text-decoration: none;
  transition: color .3s;
}
.blog-cat:hover { color: var(--white); }

/* Fecha */
.blog-date {
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .14em;
  color: var(--gray);
}

/* Título de tarjeta */
.blog-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .02em;
  margin-bottom: .9rem;
}
.blog-card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color .3s;
}
.blog-card-title a:hover { color: var(--wine-light); }

/* Extracto */
.blog-card-excerpt {
  font-size: .8rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* Link Leer más */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wine-light);
  text-decoration: none;
  transition: color .3s, gap .3s;
}
.blog-read-more:hover { color: var(--white); gap: .8rem; }

/* Sin entradas */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  font-size: .85rem;
  color: var(--white-dim);
}
.blog-empty a { color: var(--wine-light); text-decoration: none; }

/* ── PAGINACIÓN ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--white-dim);
  border: 1px solid var(--white-faint);
  padding: .55em 1.1em;
  text-decoration: none;
  transition: border-color .3s, color .3s, background .3s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  border-color: var(--wine);
  color: var(--white);
  background: var(--wine);
}

/* ═══════════════════════════════════════════
   ENTRADA INDIVIDUAL — single.php
═══════════════════════════════════════════ */

/* Imagen de cabecera a pantalla completa */
.single-hero-img {
  position: relative;
  height: clamp(300px, 50vw, 560px);
  overflow: hidden;
  margin-top: var(--nav-h);
}
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,6,8,.9) 100%);
}

/* Artículo */
.single-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem var(--pad-x) var(--pad-y);
}

/* Encabezado */
.single-header { margin-bottom: 3rem; }

.single-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.single-reading-time {
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Título de la entrada */
.single-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .02em;
  margin-bottom: 1.2rem;
}

/* Extracto destacado */
.single-excerpt {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.85;
  border-left: 2px solid var(--wine);
  padding-left: 1.4rem;
  margin-bottom: 2rem;
}

/* Bloque de autor */
.single-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--white-faint);
  border-bottom: none;
}

/* Avatar — neutraliza todo lo que WordPress o el navegador puedan añadir */
.single-avatar,
.single-author img,
.single-author img.avatar,
.single-author .avatar {
  border-radius: 50%;
  border: 1px solid var(--wine) !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
  object-fit: cover;
  display: block;
  max-width: 44px;
  max-height: 44px;
}
.single-author-name {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--white);
}
.single-author-role {
  display: block;
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--gray);
  margin-top: .2rem;
}

/* Contenido tipográfico — prosa del post */
.single-content {
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--white-dim);
}
.single-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  margin: 2.8rem 0 1rem;
  line-height: 1.15;
}
.single-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 300;
  color: var(--white);
  margin: 2.2rem 0 .8rem;
}
.single-content p      { margin-bottom: 1.4rem; }
.single-content strong { font-weight: 400; color: var(--white); }
.single-content em     { font-style: italic; color: var(--wine-light); }
.single-content a      { color: var(--wine-light); border-bottom: 1px solid var(--wine); padding-bottom: 1px; transition: color .3s; }
.single-content a:hover { color: var(--white); }
.single-content img    { max-width: 100%; margin: 2rem 0; border: 1px solid var(--white-faint); }
.single-content blockquote {
  border-left: 2px solid var(--wine);
  padding: 1rem 1.8rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  background: rgba(107,26,46,0.06);
}
.single-content ul, .single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.single-content li { margin-bottom: .5rem; }
.single-content hr {
  border: none;
  border-top: 1px solid var(--white-faint);
  margin: 2.5rem 0;
}
.single-content code {
  font-family: 'Courier New', monospace;
  font-size: .8em;
  background: rgba(244,240,238,.06);
  padding: .15em .4em;
  border-radius: 2px;
}
.single-content pre {
  background: rgba(244,240,238,.04);
  border: 1px solid var(--white-faint);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .8rem;
}

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-faint);
}
.single-tag {
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white-dim);
  border: 1px solid var(--white-faint);
  padding: .35em .9em;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.single-tag:hover { border-color: var(--wine); color: var(--white); }

/* Navegación entre posts */
.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--white-faint);
}
.single-nav-next { text-align: right; }
.single-nav-label {
  display: block;
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: .5rem;
}
.single-nav-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white-dim);
  text-decoration: none;
  line-height: 1.3;
  transition: color .3s;
}
.single-nav-title:hover { color: var(--wine-light); }

/* ── RESPONSIVE BLOG ── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card:first-child { grid-column: span 2; flex-direction: column; }
  .blog-card:first-child .blog-card-img-link { aspect-ratio: 16/9; flex: none; }
}
@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:first-child { grid-column: span 1; }
  .single-nav { grid-template-columns: 1fr; }
  .single-nav-next { text-align: left; }
}

/* ══════════════════════════════════════════════════════════
   ADICIONES v2.0 — Blog refinado
══════════════════════════════════════════════════════════ */

/* Elimina la línea/cuadro bajo la foto del autor en entradas individuales */
.single-author {
  border-bottom: none !important;
  padding-bottom: 1.6rem;
}
/* Elimina decoración de imagen de avatar que WP puede añadir */
.single-author img,
.single-author .avatar {
  border-radius: 50% !important;
  border: 1px solid var(--wine) !important;
  box-shadow: none !important;
  outline: none !important;
  background: none !important;
}

/* Blog hero — más editorial, menos inflado */
.blog-hero {
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 3rem;
}
.blog-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin: .5rem 0 1rem;
  font-weight: 300;
}

/* Tarjeta blog — imagen siempre con proporción controlada */
.blog-card-img-link {
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}
.blog-card:first-child .blog-card-img-link {
  aspect-ratio: unset;
}

/* Tarjeta: más aire, menos ruido */
.blog-card-body {
  padding: 1.4rem 1.6rem 1.8rem;
}
.blog-card-excerpt {
  font-size: .78rem;
  line-height: 1.8;
}

/* Meta más sutil */
.blog-card-meta {
  margin-bottom: .7rem;
}