/* ============================================================
   Blog — estilos de las entradas (clockzur.com)
   Componente propio del sitio: .czr-blogside (sidebar de venta).
   Depende de design-system.css (consume tokens --avz-*).
   Se encola solo en is_singular('post') (ver functions.php).
   ============================================================ */

/* Sidebar de venta: sticky en escritorio, apilada en móvil. */
.czr-blogside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.25rem;
}

/* Caja CTA destacada (fondo oscuro de marca + botón cian). */
.czr-blogside__cta {
  background: var(--avz-ink);
  border: 1px solid rgba(12, 207, 207, .30);
  border-radius: var(--avz-radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.czr-blogside__kicker {
  margin: 0 0 .5rem;
  color: var(--avz-cian);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.czr-blogside__ctatext {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}

.czr-blogside__cta .avz-btn {
  width: 100%;
  justify-content: center;
}

.czr-blogside__note {
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
}

/* Cajas de enlaces (fondo claro). */
.czr-blogside__box {
  background: var(--avz-surface);
  border: 1px solid rgba(8, 41, 61, .10);
  border-radius: var(--avz-radius);
  padding: 1.25rem 1.4rem;
}

.czr-blogside__title {
  margin: 0 0 .75rem;
  color: var(--avz-heading);
  font-weight: 700;
  font-size: .95rem;
}

.czr-blogside__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.czr-blogside__links li {
  margin: 0 0 .55rem;
}

.czr-blogside__links li:last-child {
  margin-bottom: 0;
}

.czr-blogside__links a {
  color: var(--avz-cian-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.czr-blogside__links a:hover {
  color: var(--avz-cian);
  border-bottom-color: currentColor;
}

/* En móvil la sidebar deja de ser sticky y fluye tras el contenido. */
@media (max-width: 768px) {
  .czr-blogside {
    position: static;
    top: auto;
  }
}

/* ============ Cabecera de marca de la entrada (.czr-post-hero) ============ */

/* Quita la cabecera plana de GP en entradas (el H1 ya se elimina por filtro PHP;
   esto oculta el meta residual del entry-header). */
.single-post .entry-header {
  display: none;
}

.czr-post-hero {
  position: relative;
  overflow: hidden;
  background: var(--avz-ink);
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
  border-bottom: 1px solid rgba(12, 207, 207, .25);
}

/* Motivo SVG generado: a la derecha, atenuado, sin capturar clics. */
.czr-post-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
}

.czr-post-hero__bg svg {
  position: absolute;
  right: -4%;
  top: 0;
  height: 100%;
  width: auto;
}

.czr-post-hero__inner {
  position: relative;
  z-index: 1;
}

.czr-post-hero__eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  letter-spacing: .02em;
}

.czr-post-hero__cat {
  color: var(--avz-cian);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.czr-post-hero__title {
  margin: 0;
  max-width: 24ch;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.czr-post-hero__author {
  margin: .95rem 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}

/* ============ Archivo de categoría (Recursos) ============ */

/* Fuera la cabecera plana de GP en archives; usamos .czr-archive-hero. */
.archive .page-header {
  display: none;
}

.czr-archive-hero__desc {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Lista de entradas con aire de tarjeta. */
.archive .inside-article {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.archive .inside-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--avz-shadow-lg);
}

.archive .entry-title {
  font-size: 1.6rem;
  line-height: 1.25;
}

.archive .entry-title a {
  color: var(--avz-cian-ink);
  font-weight: 700;
}

/* Icono de artículo al inicio del título; hereda el color del enlace (currentColor)
   vía mask, así siempre va en el cian del theme. */
.archive .entry-title a::before {
  content: "";
  display: inline-block;
  width: .85em;
  height: .85em;
  margin-right: .45em;
  vertical-align: -0.12em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive .entry-title a:hover {
  color: var(--avz-cian);
}

.archive .read-more,
.archive .entry-summary .more-link {
  display: inline-block;
  margin-top: .4rem;
  color: var(--avz-cian-ink);
  font-weight: 600;
  text-decoration: none;
}

.archive .read-more:hover,
.archive .entry-summary .more-link:hover {
  color: var(--avz-cian);
}

