/* ==========================================================================
   Nuku Blog Template v1.0 — nuku.pe
   Estructura: .nk-post > .nk-meta + .nk-toc + .nuku-article + .nk-author
   Compatible con los artículos antiguos (.nuku-lead, .nuku-lede,
   .nuku-faq-item, .nuku-cta, .nuku-btn).
   ========================================================================== */

.nk-post{
  --nk-ink:#2a2622;
  --nk-text:#3a3633;
  --nk-muted:#7d736a;
  --nk-accent:#a67c52;
  --nk-accent-deep:#87623e;
  --nk-cream:#f6f1ea;
  --nk-cream-2:#efe6d8;
  --nk-paper:#fbf9f5;
  --nk-line:#e2d9cc;
  --nk-sage:#6f7d6a;
  --nk-terra:#b5744a;
  --nk-sans:"Jost",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nk-serif:Georgia,"Times New Roman",serif;
  --nk-radius:6px;
  --nk-measure:720px;

  max-width:var(--nk-measure);
  margin:0 auto;
  padding:0 0 56px;
  color:var(--nk-text);
  font-family:var(--nk-sans);
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
.nk-post *,.nk-post *::before,.nk-post *::after{box-sizing:border-box}
@media (max-width:549px){
  .nk-post{font-size:16px;line-height:1.7}
}

/* Ocultar meta duplicada del tema (Flatsome). Desactivable con el filtro nuku_blog_hide_theme_meta */
.nk-blog-clean .entry-header .entry-meta,
.nk-blog-clean .entry-header .entry-category,
.nk-blog-clean .entry-header .entry-divider{display:none}

/* ---------- Barra de metadatos ---------- */
.nk-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;
  margin:0 0 28px;padding:0 0 18px;
  border-bottom:1px solid var(--nk-line);
  font-size:.74em;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;
  color:var(--nk-muted);
}
.nk-meta a.nk-meta__cat{color:var(--nk-accent);font-weight:600;text-decoration:none}
.nk-meta a.nk-meta__cat:hover{color:var(--nk-ink)}
.nk-meta__dot{width:3px;height:3px;border-radius:50%;background:var(--nk-muted);opacity:.5}
.nk-meta time{font-variant-numeric:tabular-nums}

/* ---------- Índice ---------- */
.nk-toc{margin:0 0 40px}
.nk-toc details{background:var(--nk-cream);border-radius:var(--nk-radius)}
.nk-toc summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  padding:15px 22px;
  font-size:.74em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--nk-ink);
}
.nk-toc summary::-webkit-details-marker{display:none}
.nk-toc summary::after{
  content:"";width:7px;height:7px;margin-left:16px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);transition:transform .2s ease;
}
.nk-toc details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.nk-toc ol{list-style:none;margin:0;padding:0 22px 14px;counter-reset:nk-toc}
.nk-toc li{
  counter-increment:nk-toc;display:flex;gap:14px;
  margin:0;padding:9px 0;border-top:1px solid var(--nk-line);
  font-size:.9em;line-height:1.45;
}
.nk-toc li::before{
  content:counter(nk-toc,decimal-leading-zero);
  flex:none;padding-top:.2em;
  font-size:.78em;color:var(--nk-accent);font-variant-numeric:tabular-nums;
}
.nk-toc a{color:var(--nk-text);text-decoration:none}
.nk-toc a:hover{color:var(--nk-accent-deep)}

/* ---------- Cuerpo ---------- */
.nuku-article{color:var(--nk-text)}
.nuku-article p{margin:0 0 1.25em}
.nuku-article h2{
  font-family:var(--nk-serif);font-weight:400;text-transform:none;
  color:var(--nk-ink);font-size:1.72em;line-height:1.25;letter-spacing:-.005em;
  margin:2.1em 0 .65em;scroll-margin-top:110px;
}
.nuku-article h3{
  font-family:var(--nk-sans);font-weight:600;text-transform:none;
  color:var(--nk-ink);font-size:1.1em;line-height:1.4;
  margin:1.8em 0 .5em;scroll-margin-top:110px;
}
.nuku-article h2 + h3{margin-top:.4em}
.nuku-article strong{color:var(--nk-ink);font-weight:600}
.nuku-article a{
  color:var(--nk-accent-deep);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:rgba(166,124,82,.45);
}
.nuku-article a:hover{text-decoration-color:currentColor}
.nuku-article ul,.nuku-article ol{margin:0 0 1.4em;padding-left:1.25em}
.nuku-article li{margin:0 0 .5em;padding-left:.2em}
.nuku-article ul li::marker{color:var(--nk-accent)}
.nuku-article ol li::marker{color:var(--nk-accent);font-weight:600}
.nuku-article hr{border:0;border-top:1px solid var(--nk-line);margin:2.6em 0}

/* ---------- 1. Respuesta directa (GEO / featured snippet) ---------- */
.nuku-article .nk-answer,
.nuku-article .nuku-lead,
.nuku-article .nuku-lede{
  font-family:var(--nk-serif);font-size:1.2em;line-height:1.55;color:var(--nk-ink);
  background:var(--nk-cream);
  border-left:3px solid var(--nk-accent);border-radius:0 var(--nk-radius) var(--nk-radius) 0;
  padding:22px 26px;margin:0 0 2em;
}
.nuku-article .nk-answer::before{
  content:"Respuesta rápida";display:block;margin:0 0 8px;
  font-family:var(--nk-sans);font-size:.6em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--nk-accent);
}

/* ---------- 2. Puntos clave ---------- */
.nuku-article .nk-key{
  background:var(--nk-paper);border:1px solid var(--nk-line);border-radius:var(--nk-radius);
  padding:22px 26px 8px;margin:0 0 2.2em;
}
.nuku-article .nk-key__title{
  margin:0 0 .9em;font-size:.72em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nk-accent);
}
.nuku-article .nk-key ul{list-style:none;padding:0;margin:0 0 1em}
.nuku-article .nk-key li{position:relative;padding-left:26px;margin:0 0 .7em;line-height:1.6}
.nuku-article .nk-key li::before{
  content:"";position:absolute;left:0;top:.8em;width:13px;height:1.5px;background:var(--nk-accent);
}

/* ---------- 3. Notas ---------- */
.nuku-article .nk-note{
  margin:1.8em 0;padding:18px 22px;
  background:var(--nk-cream);border-left:3px solid var(--nk-accent);
  border-radius:0 var(--nk-radius) var(--nk-radius) 0;
  font-size:.94em;line-height:1.65;
}
.nuku-article .nk-note--warn{background:#f8ede4;border-left-color:var(--nk-terra)}
.nuku-article .nk-note--vet{background:#eef0ea;border-left-color:var(--nk-sage)}
.nuku-article .nk-note__title{
  margin:0 0 .35em;font-size:.78em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--nk-ink);
}
.nuku-article .nk-note > :last-child{margin-bottom:0}

/* ---------- 4. Tablas ---------- */
.nuku-article .nk-table{
  margin:1.6em 0 2.2em;overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--nk-line);border-radius:var(--nk-radius);
}
.nuku-article > table{border:1px solid var(--nk-line)}
.nuku-article table{width:100%;border-collapse:collapse;margin:0 0 1.6em;font-size:.9em;line-height:1.5}
.nuku-article .nk-table table{margin:0;border:0;min-width:520px}
.nuku-article thead th{
  background:var(--nk-cream);color:var(--nk-ink);text-align:left;vertical-align:bottom;
  padding:14px 16px;border-bottom:1px solid var(--nk-line);
  font-size:.82em;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
}
.nuku-article tbody td{padding:13px 16px;border-bottom:1px solid var(--nk-line);vertical-align:top;text-align:left}
.nuku-article tbody tr:last-child td{border-bottom:0}
.nuku-article tbody tr:nth-child(even){background:var(--nk-paper)}
.nuku-article tbody td:first-child{font-weight:600;color:var(--nk-ink)}
.nuku-article thead th:first-child,.nuku-article tbody td:first-child{padding-left:16px}
.nuku-article caption{caption-side:bottom;text-align:left;padding:10px 16px;font-size:.85em;color:var(--nk-muted)}

/* ---------- 5. Imágenes ---------- */
.nuku-article .nk-figure{margin:2.2em 0}
.nuku-article .nk-figure img{display:block;width:100%;height:auto;border-radius:var(--nk-radius);background:var(--nk-cream)}
.nuku-article .nk-figure figcaption{margin-top:10px;font-size:.82em;line-height:1.5;color:var(--nk-muted)}

/* ---------- 6. Pasos ---------- */
.nuku-article ol.nk-steps{list-style:none;padding:0;margin:1.6em 0 2.2em;counter-reset:nk-step}
.nuku-article ol.nk-steps > li{counter-increment:nk-step;position:relative;margin:0;padding:0 0 1.4em 54px}
.nuku-article ol.nk-steps > li::before{
  content:counter(nk-step);position:absolute;left:0;top:-.1em;
  width:34px;height:34px;border:1px solid var(--nk-accent);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--nk-serif);font-size:1em;color:var(--nk-accent);background:#fff;
}
.nuku-article ol.nk-steps > li::after{
  content:"";position:absolute;left:17px;top:40px;bottom:8px;width:1px;background:var(--nk-line);
}
.nuku-article ol.nk-steps > li:last-child{padding-bottom:0}
.nuku-article ol.nk-steps > li:last-child::after{display:none}
.nuku-article ol.nk-steps > li > strong:first-child{display:block;margin-bottom:.15em}

/* ---------- 7. Tarjeta de producto [nuku_producto] ---------- */
.nk-post .nk-prod{
  display:grid;grid-template-columns:170px 1fr;gap:0;
  margin:2.2em 0;background:var(--nk-paper);
  border:1px solid var(--nk-line);border-radius:var(--nk-radius);overflow:hidden;
}
.nk-post .nk-prod__media{display:block;background:var(--nk-cream)}
.nk-post .nk-prod__media img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;margin:0}
.nk-post .nk-prod__body{padding:20px 22px;display:flex;flex-direction:column}
.nk-post .nk-prod__eyebrow{margin:0 0 4px;font-size:.68em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nk-accent)}
.nk-post .nk-prod__name{margin:0 0 6px;font-family:var(--nk-serif);font-size:1.25em;line-height:1.3}
.nk-post .nk-prod__name a{color:var(--nk-ink);text-decoration:none}
.nk-post .nk-prod__desc{margin:0 0 14px;font-size:.88em;line-height:1.55;color:var(--nk-muted)}
.nk-post .nk-prod__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nk-post .nk-prod__price{font-weight:600;color:var(--nk-ink);font-size:.95em}
.nk-post .nk-prod__price del{color:var(--nk-muted);font-weight:400;margin-right:6px}
.nk-post .nk-prod__price ins{text-decoration:none}
.nk-prod-missing{padding:10px 14px;background:#fff3cd;border:1px dashed #c9a227;font-size:.85em}
@media (max-width:549px){
  .nk-post .nk-prod{grid-template-columns:112px 1fr}
  .nk-post .nk-prod__body{padding:14px 16px}
  .nk-post .nk-prod__desc{display:none}
}

/* ---------- 8. Botones ---------- */
.nk-post .nk-btn,
.nk-post a.nuku-btn,
.nk-post a.nuku-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border:1px solid var(--nk-ink);border-radius:4px;
  background:var(--nk-ink);color:#fff !important;
  font-family:var(--nk-sans);font-size:.88em;font-weight:600;letter-spacing:.04em;text-transform:none;
  text-decoration:none !important;line-height:1.2;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.nk-post .nk-btn:hover,
.nk-post a.nuku-btn:hover,
.nk-post a.nuku-cta:hover{background:var(--nk-accent);border-color:var(--nk-accent)}
.nk-post .nk-btn--sm{padding:10px 18px;font-size:.8em}
.nk-post .nk-btn--ghost{background:transparent;color:var(--nk-ink) !important}
.nk-post .nk-btn--ghost:hover{background:var(--nk-ink);color:#fff !important;border-color:var(--nk-ink)}

/* ---------- 9. FAQ ---------- */
.nuku-article .nk-faq{margin:1em 0 2.6em;border-top:1px solid var(--nk-line)}
.nuku-article .nk-faq-item{border-bottom:1px solid var(--nk-line)}
.nuku-article .nk-faq-item > summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  padding:19px 0;font-weight:600;color:var(--nk-ink);line-height:1.45;
}
.nuku-article .nk-faq-item > summary::-webkit-details-marker{display:none}
.nuku-article .nk-faq-item > summary::after{
  content:"";flex:none;width:28px;height:28px;margin-top:-2px;border-radius:5px;
  background:#ecebea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%232a2622' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition:transform .2s ease,background-color .2s ease;
}
.nuku-article .nk-faq-item[open] > summary::after{
  background-color:var(--nk-ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform:rotate(180deg);
}
.nuku-article .nk-faq-item > summary:hover{color:var(--nk-accent-deep)}
.nuku-article .nk-faq-a{padding:0 48px 20px 0;color:var(--nk-text)}
.nuku-article .nk-faq-a > :last-child{margin-bottom:0}

/* FAQ antiguas */
.nuku-article .nuku-faq{margin:1em 0 2.6em;border-top:1px solid var(--nk-line)}
.nuku-article .nuku-faq-item{border-bottom:1px solid var(--nk-line);padding:18px 0}
.nuku-article .nuku-faq-q{margin:0 0 .4em;font-weight:600;font-size:1em;color:var(--nk-ink)}
.nuku-article .nuku-faq-a{margin:0}
.nuku-article .nuku-faq > h3{margin:1.2em 0 .4em;padding-top:1.1em;border-top:1px solid var(--nk-line)}
.nuku-article .nuku-faq > h3:first-child{border-top:0;padding-top:.4em}

/* ---------- 10. CTA ---------- */
.nuku-article .nk-cta,
.nuku-article div.nuku-cta{
  margin:2.8em 0;padding:40px 32px;text-align:center;
  background:var(--nk-ink);color:rgba(246,241,234,.82);
  border:0;border-radius:var(--nk-radius);
}
.nuku-article .nk-cta__title{margin:0 0 .4em;font-family:var(--nk-serif);font-size:1.55em;line-height:1.3;color:#fff}
.nuku-article .nk-cta p,.nuku-article div.nuku-cta p{margin:0 auto 1.4em;max-width:46ch;color:inherit}
.nuku-article .nk-cta__actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.nuku-article .nk-cta .nk-btn,
.nuku-article div.nuku-cta .nuku-btn{background:var(--nk-cream);border-color:var(--nk-cream);color:var(--nk-ink) !important}
.nuku-article .nk-cta .nk-btn:hover,
.nuku-article div.nuku-cta .nuku-btn:hover{background:var(--nk-accent);border-color:var(--nk-accent);color:#fff !important}
.nuku-article .nk-cta .nk-btn--ghost{background:transparent;border-color:rgba(246,241,234,.4);color:#fff !important}
.nuku-article .nk-cta .nk-btn--ghost:hover{background:rgba(246,241,234,.1);border-color:#fff}

/* ---------- 11. Fuentes ---------- */
.nuku-article .nk-sources{margin:2.6em 0 0;padding-top:18px;border-top:1px solid var(--nk-line);font-size:.82em;line-height:1.55;color:var(--nk-muted)}
.nuku-article .nk-sources__title{margin:0 0 .6em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:.9em;color:var(--nk-ink)}
.nuku-article .nk-sources ol{margin:0;padding-left:1.2em}
.nuku-article .nk-sources li{margin:0 0 .35em}
.nuku-article .nk-sources a{color:var(--nk-muted)}

/* ---------- Caja de autor ---------- */
.nk-author{
  display:flex;gap:20px;align-items:flex-start;
  margin:3em 0 0;padding:26px 0 0;border-top:1px solid var(--nk-line);
}
.nk-author__media{flex:none}
.nk-author img.nk-author__img{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;margin:0}
.nk-author__body p{margin:0}
.nk-author__label{font-size:.68em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nk-accent)}
.nk-author__name{margin:2px 0 6px !important;font-family:var(--nk-serif);font-size:1.2em;color:var(--nk-ink)}
.nk-author__bio{font-size:.88em;line-height:1.6;color:var(--nk-muted)}
.nk-author__review{margin-top:10px !important;font-size:.8em;color:var(--nk-sage);font-weight:600}
.nk-author__review::before{content:"✓ ";}

/* ---------- Reset de listas del tema dentro de componentes ---------- */
.nk-post .nk-toc li,
.nk-post .nk-key li,
.nk-post ol.nk-steps > li{margin-left:0}
