/* ===================================================================
   ProyectoCocina Studio — blog (listados y entradas)
   Solo se carga en vistas del blog (ver inc/blog.php).
   =================================================================== */

/* ---------- migas ---------- */
.crumbs{margin-bottom:1.6rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem .55rem;font-size:.78rem;
  color:var(--muted);letter-spacing:.02em}
.crumbs li{display:flex;align-items:center;gap:.55rem;min-width:0}
.crumbs li+li::before{content:"";width:5px;height:5px;border-top:1px solid currentColor;
  border-right:1px solid currentColor;transform:rotate(45deg);opacity:.7}
.crumbs a{color:var(--ink-soft);transition:color .3s}
.crumbs a:hover{color:var(--red)}
.crumbs [aria-current] span{display:inline-block;max-width:42ch;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;vertical-align:bottom}

/* ---------- listado ---------- */
.blog-wrap{padding-bottom:clamp(3rem,7vh,6rem)}
.blog-hero{padding-top:clamp(1rem,3vh,2rem);padding-bottom:clamp(2rem,5vh,3.4rem)}
.blog-hero__title{font-size:clamp(2.4rem,6vw,4.6rem);margin:.8rem 0 1.2rem;max-width:18ch}
.blog-hero__intro{max-width:62ch;color:var(--ink-soft);font-size:1.08rem;line-height:1.75}
.blog-hero__intro p+p{margin-top:.8rem}
.blog-cats{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:2rem}
.blog-cats a{font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;padding:.7em 1.25em;
  border:1px solid var(--line);border-radius:999px;color:var(--ink-soft);transition:.35s var(--ease)}
.blog-cats a span{color:var(--muted);margin-left:.2em}
.blog-cats a:hover{border-color:var(--ink);color:var(--ink)}
.blog-cats a[aria-current]{background:var(--ink);border-color:var(--ink);color:#fff}
.blog-cats a[aria-current] span{color:rgba(255,255,255,.6)}

.blog-list{padding-bottom:1rem}
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.6rem,3vw,2.8rem) clamp(1.2rem,2.4vw,2.2rem)}
.pgrid:empty{display:none}
@media(max-width:1100px){.pgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.pgrid{grid-template-columns:1fr}}

.pcard{display:flex;flex-direction:column;gap:1.1rem}
.pcard__media{display:block;overflow:hidden;border-radius:3px;background:var(--bone);aspect-ratio:16/10.4}
.pcard__media img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease)}
.pcard:hover .pcard__media img{transform:scale(1.045)}
.pcard__body{display:flex;flex-direction:column;gap:.55rem}
.pcard__title{font-size:clamp(1.35rem,1.8vw,1.6rem);line-height:1.15;letter-spacing:-.02em}
.pcard__title a{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;
  transition:background-size .6s var(--ease),color .3s}
.pcard__title a:hover{color:var(--red);background-size:100% 1px}
.pcard__excerpt{color:var(--ink-soft);font-size:.98rem;line-height:1.6}
.pcard__meta{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}

/* primera entrada destacada */
.pfeature{margin-bottom:clamp(2.4rem,5vw,4rem);padding-bottom:clamp(2.4rem,5vw,4rem);border-bottom:1px solid var(--line)}
.pfeature .pcard{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(1.6rem,4vw,4rem);align-items:center}
.pfeature .pcard__media{aspect-ratio:16/9.6}
.pfeature .pcard__title{font-size:clamp(1.9rem,3.4vw,3rem);line-height:1.06}
.pfeature .pcard__excerpt{font-size:1.06rem;max-width:44ch}
@media(max-width:880px){.pfeature .pcard{grid-template-columns:1fr}}

.pagination{margin-top:clamp(2.4rem,5vw,4rem)}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.5rem}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.6rem;
  height:2.6rem;padding:0 .9rem;border:1px solid var(--line);border-radius:999px;font-size:.85rem;margin:0}
.pagination a.page-numbers:hover{border-color:var(--ink)}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.blog-empty{color:var(--ink-soft)}
.blog-cta{margin-top:clamp(3rem,7vw,5rem)}

/* ---------- entrada ---------- */
.post-wrap{padding-bottom:0}
.post-hero{padding-top:clamp(1rem,3vh,2rem);max-width:calc(var(--maxw) - 0px)}
.post-hero__cat{transition:color .3s}
.post-hero__cat:hover{color:var(--ink)}
.post-hero__title{font-size:clamp(2.3rem,5.4vw,4.4rem);line-height:1.04;margin:.9rem 0 1.3rem;max-width:20ch}
.post-hero__lead{font-size:clamp(1.08rem,1.5vw,1.28rem);color:var(--ink-soft);max-width:58ch;line-height:1.6}
.post-meta{display:flex;flex-wrap:wrap;gap:.4rem 1.6rem;margin-top:1.6rem;font-size:.8rem;color:var(--muted);
  letter-spacing:.02em}
.post-meta strong{color:var(--ink);font-weight:500}
.post-meta span{position:relative}
.post-meta span+span::before{content:"";position:absolute;left:-.85rem;top:50%;width:3px;height:3px;
  border-radius:50%;background:var(--line);transform:translateY(-50%)}

@media(max-width:560px){.post-meta{gap:.3rem 1rem}.post-meta span+span::before{display:none}}

.post-cover{margin-top:clamp(2rem,5vh,3.2rem);margin-bottom:0}
.post-cover img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:3px}

.post-layout{display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr);gap:clamp(2rem,5vw,5.5rem);
  padding-top:clamp(2.6rem,6vh,4.4rem);padding-bottom:clamp(3rem,7vh,5rem);align-items:start}
.post-layout>.post-body:only-child{grid-column:1/-1;max-width:760px;margin-inline:auto;width:100%}
.post-body{min-width:0;max-width:760px}

/* índice */
.post-toc{position:sticky;top:6.5rem}
.post-toc__box summary{list-style:none;cursor:pointer;font-size:.7rem;letter-spacing:.3em;
  text-transform:uppercase;font-weight:500;color:var(--red);padding-bottom:1rem;border-bottom:1px solid var(--line)}
.post-toc__box summary::-webkit-details-marker{display:none}
.post-toc ol{list-style:none;counter-reset:toc;display:flex;flex-direction:column;gap:.15rem;padding-top:.8rem}
.post-toc li{counter-increment:toc}
.post-toc a{display:grid;grid-template-columns:1.8rem 1fr;padding:.45rem 0;font-size:.9rem;line-height:1.35;
  color:var(--ink-soft);transition:color .3s}
.post-toc a::before{content:counter(toc,decimal-leading-zero);font-size:.7rem;color:var(--muted);padding-top:.15rem}
.post-toc a:hover,.post-toc a.is-active{color:var(--ink)}
.post-toc a.is-active::before{color:var(--red)}
@media(max-width:980px){
  .post-layout{grid-template-columns:1fr;gap:2rem}
  .post-toc{position:static;border:1px solid var(--line);border-radius:3px;padding:1.1rem 1.2rem}
  .post-toc__box summary{border-bottom:0;padding-bottom:0;display:flex;justify-content:space-between;align-items:center}
  .post-toc__box summary::after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .3s}
  .post-toc__box[open] summary::after{transform:rotate(-135deg)}
  .post-toc__box[open] summary{margin-bottom:.6rem}
}

/* cuerpo */
.entry--post{max-width:none;font-size:1.075rem;line-height:1.82;color:var(--ink-soft)}
.entry--post>*+*{margin-top:0}
.entry--post p{margin-bottom:1.35rem}
.entry--post h2{font-size:clamp(1.75rem,2.8vw,2.35rem);line-height:1.12;color:var(--ink);
  margin:3.2rem 0 1.2rem;scroll-margin-top:6rem}
.entry--post h2:first-child{margin-top:0}
.entry--post h3{font-size:clamp(1.25rem,1.8vw,1.5rem);line-height:1.2;color:var(--ink);
  margin:2.2rem 0 .8rem;letter-spacing:-.02em;font-weight:400;scroll-margin-top:6rem}
.entry--post strong{font-weight:500;color:var(--ink)}
.entry--post a{color:var(--red);text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:.18em;transition:color .3s}
.entry--post a:hover{color:var(--ink)}
.entry--post ul,.entry--post ol{margin:0 0 1.5rem 0;padding-left:1.4rem}
.entry--post li{margin-bottom:.55rem;padding-left:.3rem}
.entry--post ul li::marker{color:var(--red)}
.entry--post ol li::marker{color:var(--red);font-weight:500}
.entry--post blockquote{margin:2.2rem 0;padding:.4rem 0 .4rem 1.6rem;border-left:2px solid var(--red);
  font-family:var(--serif);font-size:1.3rem;line-height:1.45;color:var(--ink)}
.entry--post blockquote p{margin-bottom:.6rem}
.entry--post figure{margin:2.4rem 0}
.entry--post figure img{width:100%;height:auto;border-radius:3px}
.entry--post figcaption{margin-top:.7rem;font-size:.82rem;color:var(--muted);line-height:1.5}
.entry--post .wp-block-table{margin:2rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.entry--post table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.5;min-width:520px}
.entry--post .wp-block-table th,.entry--post .wp-block-table td,.entry--post th,.entry--post td{padding:.8rem .9rem;border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.entry--post .wp-block-table thead{border-bottom:0}
.entry--post .wp-block-table thead th,.entry--post thead th{font-family:var(--sans);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  font-weight:500;color:var(--ink);border-bottom:1.5px solid var(--ink)}
.entry--post tbody tr:nth-child(even){background:var(--cream)}

/* FAQ */
.post-faq{margin-top:3.4rem;padding-top:2.6rem;border-top:1px solid var(--line)}
.post-faq h2{font-size:clamp(1.75rem,2.8vw,2.35rem);margin-bottom:1.4rem;scroll-margin-top:6rem}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:1.2rem;
  align-items:flex-start;padding:1.2rem 0;font-family:var(--serif);font-size:1.18rem;line-height:1.35;
  color:var(--ink);font-weight:400}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex:none;font-family:var(--sans);font-size:1.4rem;line-height:1;
  color:var(--red);transition:transform .35s var(--ease)}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item__a{padding:0 2.4rem 1.3rem 0;color:var(--ink-soft);line-height:1.75}
.faq-item__a p+p{margin-top:.7rem}

/* CTA */
.pc-cta{margin-top:3.4rem;background:var(--ink);color:#fff;border-radius:3px;
  padding:clamp(2rem,4.5vw,3.4rem);position:relative;overflow:hidden}
.pc-cta::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;
  border:1px solid rgba(255,255,255,.1)}
.pc-cta__title{font-family:var(--serif);font-weight:300;font-size:clamp(1.8rem,3.2vw,2.6rem);
  line-height:1.08;letter-spacing:-.03em;margin:.9rem 0 .9rem}
.pc-cta__text{color:rgba(255,255,255,.75);max-width:52ch;line-height:1.7;margin-bottom:1.8rem}
.pc-cta__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.8rem}
.pc-cta__link{font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.8);
  border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:.25em;transition:color .3s,border-color .3s}
.pc-cta__link:hover{color:#fff;border-color:var(--red)}
.blog-cta .pc-cta{margin-top:0}

/* autor */
.post-author{display:grid;grid-template-columns:auto 1fr;gap:1.4rem;align-items:start;margin-top:2.6rem;
  padding:1.8rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.post-author__faces{display:flex}
.post-author__faces img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.post-author__faces img+img{margin-left:-18px}
.post-author__name{font-family:var(--serif);font-size:1.2rem;color:var(--ink);margin-bottom:.4rem}
.post-author__bio{color:var(--ink-soft);font-size:.95rem;line-height:1.65;margin-bottom:.9rem;max-width:60ch}
@media(max-width:560px){.post-author{grid-template-columns:1fr}}

/* relacionados */
.post-related{background:var(--cream);padding:clamp(3.4rem,8vh,6rem) 0}
.section-head{margin-bottom:clamp(2rem,4vw,3rem)}
.section-head h2{font-size:clamp(2rem,4vw,3.2rem);margin-top:.7rem}
