:root{
  --gold:#c89246;
  --ink: rgba(17,19,24,.92);
  --muted: rgba(17,19,24,.62);
  --paper: rgba(255,255,255,.92);
  --line: rgba(17,19,24,.10);
}

/* =========================
   Layout “revista”
========================= */
.diario-wrap{
  max-width: 980px;
  margin: 0 auto;
}

/* =========================
   HERO full-bleed (POST)
   (usa <img>)
========================= */
.diario-hero-full{
  width: 100vw;
  height: 42vh;
  min-height: 260px;
  max-height: 520px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(17,19,24,.08);
}
.diario-hero-full img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px){
  .diario-hero-full{
    height: 30vh;
    min-height: 220px;
  }
}

/* =========================
   Header del post (fuera del paper)
========================= */
.diario-head{
  color: var(--ink);
  margin-bottom: 22px;
}
.diario-title-display{
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}

/* Meta en una sola línea */
.diario-meta-line{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 10px;
}
.diario-dot{
  opacity: .6;
  margin: 0 .15rem;
}

/* Standfirst (extracto) */
.diario-standfirst{
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(17,19,24,.78);
  font-weight: 700;
  margin: 0 0 48px;
}

/* =========================
   Cuerpo en “papel”
========================= */
.diario-article{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17,19,24,.06);
  padding: 28px;
}

/* =========================
   Contenido
========================= */
.diario-content{
  color: rgba(17,19,24,.82);
  font-size: 1.06rem;
  line-height: 1.78;
}
.diario-content p{ margin: 0 0 14px; }

/* Subtítulos */
.diario-content h2{
  margin-top: 26px;
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-top: 6px;
}
.diario-content h3{
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 850;
  color: var(--ink);
}

/* Links dentro del artículo */
.diario-content a{
  color: rgba(17,19,24,.88);
  text-decoration: underline;
  text-decoration-color: rgba(200,146,70,.55);
  text-underline-offset: 3px;
}
.diario-content a:hover{
  text-decoration-color: rgba(200,146,70,.95);
}

/* Párrafo destacado dentro del body */
.diario-pull{
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin: 18px 0;
}

/* =========================
   Figuras / imágenes del post
========================= */
.diario-figure{
  border: none;
  background: transparent;
  padding: 0;
  margin: 16px 0;
}
.diario-figure .label{
  font-weight: 900;
  color: var(--ink);
  font-size: .92rem;
  margin-bottom: 8px;
}
.diario-figure img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.diario-figure .hint{
  color: var(--muted);
  font-size: .88rem;
  margin-top: 8px;
}

/* =========================
   Callouts / notas
========================= */
.diario-callout{
  border: 1px solid rgba(200,146,70,.35);
  background: rgba(200,146,70,.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
}
.diario-callout .title{
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

/* =========================
   CTA arNumis (inline)
========================= */
.btn-arnumis{
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  border-radius: 999px;
  font-weight: 800;
}
.btn-arnumis:hover{ filter: brightness(.95); }

.diario-cta{
  border: 1px solid rgba(200,146,70,.45);
  background: linear-gradient(180deg, rgba(200,146,70,.12), rgba(255,255,255,.0));
  border-radius: 16px;
  padding: 16px;
  margin-top: 22px;
}

/* =========================================================
   ÍNDICE (listado de artículos)
========================================================= */

/* (Opcional) hero compacto viejo (si aún lo usás en algún lado) */
.diario-index-hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17,19,24,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(17,19,24,.06);
  margin-bottom: 18px;
}

/* HERO full-bleed del índice (con imagen) */
.diario-index-hero-full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(17,19,24,.08);

  /* altura “más baja” que el post */
  min-height: 260px;
  height: 34vh;
  max-height: 420px;

  /* imagen vía var (se setea desde index.php) */
  background-image: var(--diario-hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* fallback si no seteás var */
  background-color: rgba(255,255,255,.85);
}

/* overlay para legibilidad (sirve con o sin imagen) */
.diario-index-hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 340px at 18% 30%, rgba(0,0,0,.38), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(255,255,255,0));
  transform: scale(1.01);
}

.diario-index-hero__inner{
  position: relative;
  z-index: 2;
  padding: 28px 0;
  color: #fff;
}

.diario-index-hero--center .diario-wrap{
  text-align: center;
}

.diario-index-hero--center .diario-index-sub{
  margin-left: auto;
  margin-right: auto;
}

/* textos del índice (sobre hero con overlay) */
.diario-kicker{
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  font-weight: 800;
  margin-bottom: 6px;
}

.diario-index-title{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
}

.diario-index-sub{
  max-width: 58ch;
  color: rgba(255,255,255,.86);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.diario-index-meta{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: .86rem;
}

@media (max-width: 768px){
  .diario-index-hero-full{
    height: 28vh;
    min-height: 220px;
  }
  .diario-index-hero__inner{
    padding: 20px 0;
  }
}

/* Card images consistente (revista) */
.diario-card-img{
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
@media (max-width: 768px){
  .diario-card-img{ height: 160px; }
}

/* =========================================================
   CTA STICKY (Diario)
========================================================= */
.diario-sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1065;
  pointer-events: none; /* habilitamos solo en el inner */
}

.diario-sticky-cta__inner{
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(17,19,24,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(17,19,24,.25);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;

  transform: translateY(140%);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.diario-sticky-cta.is-visible .diario-sticky-cta__inner{
  transform: translateY(0);
  opacity: 1;
}

.diario-sticky-cta__text{ flex: 1; min-width: 0; }
.diario-sticky-cta__title{
  color: rgba(255,255,255,.95);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.diario-sticky-cta__sub{
  color: rgba(255,255,255,.70);
  font-size: .9rem;
  line-height: 1.25;
  margin-top: 2px;
}

.diario-sticky-cta__btn{ white-space: nowrap; }

.diario-sticky-cta__close{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 10px;
}
.diario-sticky-cta__close:hover{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
}

@media (max-width: 576px){
  .diario-sticky-cta{ bottom: 10px; }
  .diario-sticky-cta__inner{
    margin: 0 10px;
    gap: 10px;
  }
  .diario-sticky-cta__sub{ display:none; } /* más compacto en mobile */
}
