/* ==========================================================================
   BlogTecno Argentina - Single post (estilo "Coolvix", combina con la home)
   Reutiliza componentes de home.css (.btar-wrap/.btar-btn/.btar-card/.btar-cta)
   y agrega el header navy del articulo + tipografia del contenido.
   ========================================================================== */

/* ---- Romper TODA la cadena de contenedores de GeneratePress en single ---- */
body.single #page,
body.single #page.grid-container,
body.single #content,
body.single #content.site-content,
body.single #primary,
body.single .content-area,
body.single #main,
body.single .btar-single{
  max-width:100% !important; width:100% !important;
  margin-left:0 !important; margin-right:0 !important;
  padding-left:0 !important; padding-right:0 !important;
  float:none !important;
}

.btar-single{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--btar-ink,#1e2a3a);
  --btar-navy:#16233f; --btar-amber:#f6b41f; --btar-amber-600:#e0a013; --btar-gold-text:#805400;
  --btar-ink:#1e2a3a; --btar-muted:#62707f; --btar-cream:#fbf4e6; --btar-line:#e9ecf1;
}
.btar-single *{ box-sizing:border-box; }
.btar-single img{ max-width:100%; height:auto; }

/* ==========================================================================
   HERO DEL ARTICULO (navy)
   ========================================================================== */
.btar-arthero{
  position:relative; background:var(--btar-navy); color:#fff;
  padding:34px 0 130px; overflow:hidden;
}
.btar-arthero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(246,180,31,.15), transparent 60%),
    radial-gradient(700px 480px at -5% 120%, rgba(46,86,160,.32), transparent 60%);
}
.btar-arthero__inner{ position:relative; max-width:820px; margin:0 auto; padding:0 22px; }

/* Breadcrumb */
.btar-bc{ display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:.86rem; margin-bottom:22px; }
.btar-bc a{ color:rgba(255,255,255,.72); }
.btar-bc a:hover{ color:var(--btar-amber); }
.btar-bc span.sep{ color:rgba(255,255,255,.35); display:inline-flex; }
.btar-bc span.sep svg{ width:14px; height:14px; }
.btar-bc .current{ color:rgba(255,255,255,.5); }

.btar-arthero__cat{
  display:inline-flex; align-items:center; gap:.4rem; background:var(--btar-amber); color:#20130a;
  font-weight:800; font-size:.74rem; text-transform:uppercase; letter-spacing:.05em;
  padding:6px 13px; border-radius:7px; margin-bottom:18px;
}
.btar-arthero h1{
  font-size:clamp(1.8rem,3.8vw,2.75rem); line-height:1.15; font-weight:800;
  letter-spacing:-.015em; margin:0 0 22px;
}
.btar-artmeta{ display:flex; flex-wrap:wrap; gap:20px; color:rgba(255,255,255,.72); font-size:.9rem; }
.btar-artmeta .it{ display:inline-flex; align-items:center; gap:8px; }
.btar-artmeta .it svg{ width:16px; height:16px; color:var(--btar-amber); }
.btar-artmeta .it b{ color:#fff; font-weight:600; }

/* ==========================================================================
   IMAGEN DESTACADA (superpuesta sobre el hero)
   ========================================================================== */
.btar-artfeat{ max-width:900px; margin:-104px auto 0; padding:0 22px; position:relative; z-index:2; }
.btar-artfeat img{
  width:100%; border-radius:18px; display:block;
  box-shadow:0 34px 60px -28px rgba(16,26,48,.55); border:6px solid #fff;
  aspect-ratio:16/8; object-fit:cover;
}
.btar-single.no-feat .btar-arthero{ padding-bottom:44px; }

/* ==========================================================================
   CUERPO DEL ARTICULO
   ========================================================================== */
.btar-artbody{ max-width:800px; margin:0 auto; padding:48px 22px 20px; }
.btar-artbody .entry-content{ font-size:1.075rem; line-height:1.78; color:#2a3646; }
.btar-artbody .entry-content > *{ margin-bottom:1.25em; }
.btar-artbody .entry-content p{ margin:0 0 1.25em; }

.btar-artbody .entry-content h2,
.btar-artbody .entry-content h3,
.btar-artbody .entry-content h4{
  color:var(--btar-navy); font-weight:800; line-height:1.28; letter-spacing:-.01em;
  scroll-margin-top:90px;
}
.btar-artbody .entry-content h2{
  font-size:1.62rem; margin:1.9em 0 .7em; padding-left:16px; position:relative;
}
.btar-artbody .entry-content h2::before{
  content:""; position:absolute; left:0; top:.12em; bottom:.12em; width:5px;
  border-radius:5px; background:var(--btar-amber);
}
.btar-artbody .entry-content h3{ font-size:1.32rem; margin:1.6em 0 .6em; }
.btar-artbody .entry-content h4{ font-size:1.12rem; margin:1.4em 0 .5em; }

.btar-artbody .entry-content a{ color:var(--btar-gold-text); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.btar-artbody .entry-content a:hover{ color:var(--btar-navy); }

.btar-artbody .entry-content img{ border-radius:14px; margin:1.4em 0; }
.btar-artbody .entry-content figure{ margin:1.6em 0; }
.btar-artbody .entry-content figcaption{ text-align:center; font-size:.85rem; color:var(--btar-muted); margin-top:.6em; }

.btar-artbody .entry-content ul,
.btar-artbody .entry-content ol{ padding-left:1.3em; margin:0 0 1.25em; }
.btar-artbody .entry-content li{ margin-bottom:.5em; }
.btar-artbody .entry-content ul li::marker{ color:var(--btar-gold-text); }
.btar-artbody .entry-content ol li::marker{ color:var(--btar-gold-text); font-weight:700; }

.btar-artbody .entry-content blockquote{
  margin:1.6em 0; padding:18px 24px; background:#fff; border-left:5px solid var(--btar-amber);
  border-radius:0 12px 12px 0; box-shadow:0 12px 30px -22px rgba(16,26,48,.4); color:var(--btar-navy);
  font-size:1.08rem; font-style:italic;
}
.btar-artbody .entry-content blockquote p:last-child{ margin-bottom:0; }

.btar-artbody .entry-content table{ width:100%; border-collapse:collapse; margin:1.6em 0; font-size:.96rem; overflow:hidden; border-radius:12px; box-shadow:0 0 0 1px var(--btar-line); }
.btar-artbody .entry-content th{ background:var(--btar-navy); color:#fff; text-align:left; padding:12px 15px; font-weight:700; }
.btar-artbody .entry-content td{ padding:11px 15px; border-top:1px solid var(--btar-line); }
.btar-artbody .entry-content tr:nth-child(even) td{ background:#faf7f0; }

.btar-artbody .entry-content code{ background:#eef1f5; padding:.15em .45em; border-radius:5px; font-size:.9em; }
.btar-artbody .entry-content pre{ background:var(--btar-navy); color:#eef2f8; padding:18px 20px; border-radius:12px; overflow:auto; }
.btar-artbody .entry-content pre code{ background:none; padding:0; }
.btar-artbody .entry-content hr{ border:0; border-top:1px solid var(--btar-line); margin:2em 0; }

/* ---- Tabla de contenidos (plugin tocvpro) al estilo de la home ---- */
.btar-artbody .tocvpro-wrapper,
.btar-artbody #tocvpro,
.btar-artbody .tocvpro-namespace{
  background:var(--btar-cream) !important; border:1px solid #efe6d0 !important;
  border-radius:14px !important; box-shadow:none !important;
}
.btar-artbody .tocvpro-title-wrap{ border-bottom:1px solid #efe6d0 !important; background:transparent !important; }
.btar-artbody .tocvpro-title{ color:var(--btar-navy) !important; font-weight:800 !important; }
.btar-artbody .tocvpro-list a{ color:#3a475a !important; text-decoration:none !important; }
.btar-artbody .tocvpro-list a:hover{ color:var(--btar-gold-text) !important; }
.btar-artbody .tocvpro-num{ color:var(--btar-gold-text) !important; }
/* Boton mostrar/ocultar y "volver arriba" a la paleta navy/ambar */
.btar-artbody .tocvpro-toggle-btn{
  background:var(--btar-navy) !important; color:#fff !important; border:0 !important;
  border-radius:7px !important; font-weight:700 !important;
}
.btar-artbody .tocvpro-toggle-btn:hover{ background:var(--btar-amber) !important; color:#20130a !important; }
.btar-artbody .tocvpro-back2toc-btn{ background:var(--btar-amber) !important; color:#20130a !important; border:0 !important; }

/* ==========================================================================
   ETIQUETAS + META FINAL
   ========================================================================== */
.btar-artfoot{ max-width:800px; margin:0 auto; padding:8px 22px 6px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.btar-artfoot .lbl{ font-weight:700; color:var(--btar-navy); font-size:.9rem; margin-right:4px; display:inline-flex; align-items:center; gap:6px; }
.btar-artfoot .lbl svg{ width:16px; height:16px; color:var(--btar-gold-text); }
.btar-tag{
  display:inline-block; background:#fff; border:1px solid var(--btar-line); color:#3a475a;
  font-size:.82rem; padding:6px 13px; border-radius:100px; transition:all .18s;
}
.btar-tag:hover{ background:var(--btar-navy); color:#fff; border-color:var(--btar-navy); }

/* ==========================================================================
   COMENTARIOS (a juego con la paleta)
   ========================================================================== */
.btar-single .comments-area{ margin-top:20px; }
.btar-single .comments-title,
.btar-single .comment-reply-title{ color:var(--btar-navy); font-weight:800; font-size:1.35rem; }
.btar-single .comment-form input[type="text"],
.btar-single .comment-form input[type="email"],
.btar-single .comment-form input[type="url"],
.btar-single .comment-form textarea{
  border:1px solid var(--btar-line); border-radius:10px; padding:12px 14px; background:#fff;
  width:100%; font-size:.98rem;
}
.btar-single .comment-form input:focus,
.btar-single .comment-form textarea:focus{ outline:2px solid var(--btar-amber); border-color:transparent; }
.btar-single .comments-area .form-submit input[type="submit"],
.btar-single .comment-form .submit{
  background:var(--btar-amber); color:#20130a; border:0; font-weight:700;
  padding:14px 26px; border-radius:10px; cursor:pointer; transition:background .18s, transform .18s;
}
.btar-single .comments-area .form-submit input[type="submit"]:hover,
.btar-single .comment-form .submit:hover{ background:var(--btar-amber-600); transform:translateY(-2px); }
.btar-single .comment-body{ border-bottom:1px solid var(--btar-line); padding:16px 0; }

/* ==========================================================================
   AUTOR + RELACIONADOS + CTA
   ========================================================================== */
.btar-related{ background:var(--btar-cream); padding:66px 0 74px; margin-top:44px; }
.btar-related .btar-wrap{ width:100%; max-width:1180px; margin:0 auto; padding:0 22px; }
.btar-related__head{ text-align:center; margin-bottom:38px; }
.btar-related .btar-posts__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }

/* CTA final (mismo look que la home aunque home.css no defina navy-deep aca) */
.btar-single .btar-cta{ background:#0f1a30; }

@media (max-width:900px){
  .btar-related .btar-posts__grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .btar-arthero{ padding:26px 0 90px; }
  .btar-artfeat{ margin-top:-72px; }
  .btar-artfeat img{ aspect-ratio:16/10; }
  .btar-artbody{ padding-top:36px; }
  .btar-artbody .entry-content{ font-size:1.02rem; }
  .btar-related .btar-posts__grid{ grid-template-columns:1fr; }
}
