/* ============ CUE Store — Blog ============ */
/* Se carga junto a product.css (tokens, nav, footer, botones compartidos) */

/* ---- Encabezado del blog (índice) ---- */
.blog-head{
  padding:140px 0 34px;
  background:radial-gradient(58% 45% at 82% 4%,rgba(138,99,240,.13),rgba(138,99,240,0) 60%),linear-gradient(180deg,#fff 0%,var(--paper-warm) 100%);
}
.blog-head .eyebrow{margin-bottom:16px}
.blog-head h1{font-size:clamp(34px,6vw,56px);max-width:16ch;margin-bottom:18px}
.blog-head p{color:var(--muted);font-size:18px;max-width:52ch}

/* ---- Grilla de posts ---- */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  padding:36px 0 30px;
}
.post-card{
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft);border-color:#DcD3F3}
.post-card__media{aspect-ratio:1/1;overflow:hidden;background:var(--brand-soft)}
.post-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.post-card:hover .post-card__media img{transform:scale(1.04)}
.post-card__body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:11px;flex:1}
.post-meta{display:flex;gap:10px;align-items:center;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.post-tag{display:inline-block;font-size:11.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--brand);background:var(--brand-soft);padding:5px 11px;border-radius:999px}
.post-card__body h2{font-size:21px;line-height:1.2;margin:0}
.post-card__body h2 a{transition:color .2s}
.post-card__body h2 a:hover{color:var(--brand)}
.post-card__body p{color:var(--muted);font-size:15px;line-height:1.6;margin:0}
.post-card__body .link-arrow{margin-top:auto;padding-top:8px;font-size:14.5px}

/* Post destacado (primera fila, ancho completo) */
.post-card--feature{grid-column:1 / -1;flex-direction:row}
.post-card--feature .post-card__media{flex:1 1 52%;aspect-ratio:auto;min-height:340px}
.post-card--feature .post-card__body{flex:1 1 48%;justify-content:center;padding:44px 46px;gap:14px}
.post-card--feature .post-card__body h2{font-size:clamp(26px,3.2vw,36px)}
.post-card--feature .post-card__body p{font-size:16.5px}

/* ---- Artículo ---- */
.post-main{
  background:radial-gradient(60% 40% at 85% 3%,rgba(138,99,240,.10),rgba(138,99,240,0) 58%),linear-gradient(180deg,#fff 0%,var(--paper-warm) 100%);
  padding-top:112px;
}
.post-header{max-width:760px;margin:0 auto;padding:0 24px}
.post-header .breadcrumb{padding:8px 0 22px}
.post-header .post-meta{margin-bottom:16px}
.post-title{font-size:clamp(30px,5vw,50px);line-height:1.1;letter-spacing:-.022em;margin-bottom:18px}
.post-lead{font-size:20px;line-height:1.55;color:#453f57;max-width:60ch;margin-bottom:30px}
.post-cover{max-width:1080px;margin:6px auto 0;padding:0 24px}
.post-cover img{width:100%;border-radius:var(--radius-lg);border:1px solid var(--line)}

/* Cuerpo prosa */
.post-body{max-width:720px;margin:0 auto;padding:50px 24px 20px;font-size:17.5px;line-height:1.78;color:#2c2839}
.post-body > p{margin:0 0 22px}
.post-body h2{font-size:27px;line-height:1.2;margin:44px 0 16px}
.post-body h3{font-size:20px;line-height:1.25;margin:32px 0 12px;color:var(--ink)}
.post-body ul,.post-body ol{margin:0 0 24px;padding-left:24px}
.post-body li{margin:0 0 10px}
.post-body li::marker{color:var(--brand)}
.post-body a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;font-weight:500}
.post-body a:hover{color:var(--brand-deep)}
.post-body strong{font-weight:600;color:var(--ink)}
.post-body blockquote{
  margin:30px 0;padding:22px 26px;
  background:var(--brand-soft);
  border-left:4px solid var(--brand);
  border-radius:0 14px 14px 0;
  font-size:18px;color:#39324d;
}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body figure{margin:30px 0}
.post-body figure img{width:100%;border-radius:16px;border:1px solid var(--line)}
.post-body figcaption{font-size:13.5px;color:var(--muted);text-align:center;margin-top:10px}
.post-body hr{border:none;border-top:1px solid var(--line);margin:40px 0}

/* Callout FAQ */
.faq-list{max-width:720px;margin:6px auto 0;padding:0 24px}
.faq-list details{border:1px solid var(--line);border-radius:14px;padding:4px 20px;margin-bottom:12px;background:var(--white)}
.faq-list summary{cursor:pointer;font-weight:500;padding:16px 0;list-style:none;font-size:16.5px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";color:var(--brand);font-size:22px;font-weight:400;flex:none}
.faq-list details[open] summary::after{content:"–"}
.faq-list details p{color:var(--muted);font-size:15.5px;line-height:1.65;padding:0 0 18px}

/* CTA WhatsApp dentro del post */
.post-cta{
  max-width:720px;margin:44px auto 0;padding:0 24px;
}
.post-cta__inner{
  background:linear-gradient(135deg,#1d1330,#2a1a4d);
  border-radius:var(--radius-lg);
  padding:40px 40px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:22px;
  box-shadow:0 24px 60px -30px rgba(103,65,206,.7);
}
.post-cta__inner h3{color:#fff;font-size:24px;line-height:1.2;margin-bottom:8px;max-width:20ch}
.post-cta__inner p{color:#B9A6F5;font-size:15px;max-width:40ch}
.post-cta__inner .btn-wa{flex:none}

/* Autor / meta al cierre */
.post-foot{max-width:720px;margin:36px auto 0;padding:24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;align-items:center}
.post-foot .link-arrow{font-size:15px}

/* Relacionados */
.related{padding:64px 0 20px}
.related h2{font-size:26px;margin-bottom:24px}
.related .post-grid{padding-top:0}

@media (max-width:900px){
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .post-card--feature{flex-direction:column}
  .post-card--feature .post-card__media{aspect-ratio:16/10;min-height:0}
  .post-card--feature .post-card__body{padding:30px 26px}
}
@media (max-width:600px){
  .blog-head{padding-top:120px}
  .post-grid{grid-template-columns:1fr;gap:20px}
  .post-cta__inner{padding:30px 26px;flex-direction:column;align-items:flex-start}
  .post-body{font-size:17px}
}
