/* =====================================================
   BLOG PETKIT.PE — CSS artículo individual
   Archivo: /themes/Astra-ChildKat/blog-article.css
   ===================================================== */

/* ─── BARRA DE PROGRESO DE LECTURA ─────────────────── */
.pk-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--pk-orange);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── HERO DEL ARTÍCULO ─────────────────────────────── */
.pk-article-hero {
  background: #1a130a;
  padding: 72px 32px 56px;
  position: relative;
  overflow: hidden;
}

.pk-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(240,112,32,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(201,169,110,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.pk-article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pk-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.pk-article-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.pk-article-breadcrumb a:hover { color: var(--pk-orange); }
.pk-article-breadcrumb span { color: rgba(255,255,255,0.2); }

.pk-article-category {
  display: inline-block;
  background: var(--pk-orange);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 20px;
}

.pk-article-hero-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(28px, 4vw, 46px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
}

.pk-article-hero-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 640px;
}

.pk-article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pk-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.pk-meta-item svg {
  width: 14px; height: 14px;
  opacity: 0.5;
}

.pk-meta-divider {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.15);
}

/* ─── IMAGEN DESTACADA ──────────────────────────────── */
.pk-article-featured-img {
  max-width: 760px;
  margin: 0 auto -48px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}

.pk-article-featured-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: block;
}

/* Sin imagen: bloque visual placeholder */
.pk-article-featured-placeholder {
  max-width: 760px;
  margin: 0 auto -48px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}

.pk-placeholder-visual {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 50% at 40% 50%, rgba(240,112,32,0.25) 0%, transparent 65%),
    linear-gradient(135deg, #1a130a, #2a1e10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ─── LAYOUT PRINCIPAL ──────────────────────────────── */
.pk-article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ─── TABLA DE CONTENIDOS (sidebar sticky) ──────────── */
.pk-toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #e2d9cc;
  border-radius: 12px;
  padding: 24px;
  order: 2;
}

.pk-toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2d9cc;
}

.pk-toc-line {
  width: 20px; height: 2px;
  background: var(--pk-orange);
  display: inline-block;
  flex-shrink: 0;
}

.pk-toc-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.pk-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pk-toc-list li a {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5a5a5a;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  display: block;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}

.pk-toc-list li a:hover,
.pk-toc-list li a.pk-toc-active {
  background: #fdf3ec;
  color: var(--pk-orange);
  border-left-color: var(--pk-orange);
}

.pk-toc-list li.pk-toc-h3 a {
  padding-left: 20px;
  font-size: 12px;
}

/* Tiempo de lectura en TOC */
.pk-toc-read-time {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2d9cc;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── CUERPO DEL ARTÍCULO ───────────────────────────── */
.pk-article-body {
  order: 1;
  min-width: 0;
}

/* Tipografía base del artículo */
.pk-article-body p {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #2a2a2a;
  margin-bottom: 24px;
}

.pk-article-body h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  margin: 52px 0 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e2d9cc !important;
  line-height: 1.2 !important;
}

.pk-article-body h3 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  margin: 36px 0 14px !important;
  line-height: 1.3 !important;
}

.pk-article-body ul,
.pk-article-body ol {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #2a2a2a;
  padding-left: 24px;
  margin-bottom: 24px;
}

.pk-article-body li {
  margin-bottom: 8px;
}

.pk-article-body ul li::marker { color: var(--pk-orange); }

.pk-article-body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.pk-article-body a {
  color: var(--pk-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,112,32,0.3);
  transition: border-color 0.2s;
}

.pk-article-body a:hover { border-bottom-color: var(--pk-orange); }

.pk-article-body img {
  width: 100%;
  border-radius: 10px;
  margin: 8px 0 24px;
}

/* ─── COMPONENTES ESPECIALES ────────────────────────── */

/* Caja de puntos clave — al inicio */
.pk-key-points {
  background: #f5f0e8;
  border: 1px solid #e2d9cc;
  border-left: 4px solid var(--pk-orange);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 0 0 36px;
}

.pk-key-points-title {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pk-orange);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-key-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-key-points li {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pk-key-points li::before {
  content: '✓';
  color: var(--pk-orange);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Caja de dato destacado */
.pk-highlight-box {
  background: #fff;
  border: 1px solid #e2d9cc;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pk-highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pk-highlight-content {}

.pk-highlight-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pk-orange);
  margin-bottom: 6px;
}

.pk-highlight-text {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #2a2a2a;
  line-height: 1.7;
  margin: 0;
}

/* Cita / pull quote */
.pk-pullquote {
  border-left: 3px solid var(--pk-orange);
  padding: 4px 0 4px 28px;
  margin: 36px 0;
}

.pk-pullquote p {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-style: italic !important;
  font-weight: 300 !important;
  color: #1a1a1a !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ─── CTA PRODUCTO — inline ─────────────────────────── */
.pk-product-cta {
  background: #1a130a;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.pk-product-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 10% 50%, rgba(240,112,32,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.pk-product-cta:hover { transform: translateY(-2px); }

.pk-cta-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
}

.pk-cta-content {
  position: relative;
  z-index: 1;
}

.pk-cta-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.pk-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.pk-cta-sub {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.pk-cta-btn {
  background: var(--pk-orange);
  color: #fff !important;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.2s;
  display: inline-block;
}

.pk-product-cta:hover .pk-cta-btn { background: #d45f10; }

/* ─── TABLA COMPARATIVA ─────────────────────────────── */
.pk-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2d9cc;
  font-family: 'Jost', sans-serif;
}

.pk-comparison-table thead tr {
  background: #1a130a;
}

.pk-comparison-table thead th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: left;
  border: none;
}

.pk-comparison-table thead th:first-child {
  color: rgba(255,255,255,0.4);
}

.pk-comparison-table thead th.pk-col-highlight {
  color: var(--pk-orange);
}

.pk-comparison-table tbody tr {
  border-bottom: 1px solid #e2d9cc;
  transition: background 0.15s;
}

.pk-comparison-table tbody tr:last-child { border-bottom: none; }
.pk-comparison-table tbody tr:hover { background: #fdf9f5; }

.pk-comparison-table tbody td {
  padding: 13px 18px;
  font-size: 14px;
  color: #2a2a2a;
  font-weight: 300;
  border: none;
}

.pk-comparison-table tbody td:first-child {
  font-weight: 500;
  color: #1a1a1a;
  background: #fdf9f5;
}

.pk-comparison-table .pk-check {
  color: var(--pk-orange);
  font-weight: 600;
}

.pk-comparison-table .pk-cross {
  color: #ccc;
}

.pk-comparison-table .pk-col-highlight {
  background: #fdf3ec;
}

/* ─── FAQ ───────────────────────────────────────────── */
.pk-faq {
  margin: 48px 0 0;
}

.pk-faq-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pk-faq-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
}

.pk-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-faq-item {
  border: 1px solid #e2d9cc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pk-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.pk-faq-question:hover { background: #fdf9f5; }

.pk-faq-q-text {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.pk-faq-icon {
  width: 22px; height: 22px;
  border: 1px solid #e2d9cc;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--pk-orange);
  transition: transform 0.25s, background 0.2s;
  line-height: 1;
}

.pk-faq-item.pk-open .pk-faq-icon {
  transform: rotate(45deg);
  background: var(--pk-orange);
  border-color: var(--pk-orange);
  color: #fff;
}

.pk-faq-answer {
  display: none;
  padding: 0 22px 20px;
}

.pk-faq-item.pk-open .pk-faq-answer { display: block; }

.pk-faq-answer p {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #5a5a5a;
  line-height: 1.8;
  margin: 0;
}

/* ─── ARTÍCULOS RELACIONADOS ────────────────────────── */
.pk-related {
  background: #f5f0e8;
  padding: 64px 32px;
  margin-top: 0;
}

.pk-related-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.pk-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.pk-related-card {
  background: #fff;
  border: 1px solid #e2d9cc;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.pk-related-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.pk-related-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pk-related-thumb.bg1 { background: linear-gradient(135deg, #1a130a, #2e1f0e); }
.pk-related-thumb.bg2 { background: linear-gradient(135deg, #12100e, #241c12); }
.pk-related-thumb.bg3 { background: linear-gradient(135deg, #0e1218, #1a2030); }

.pk-related-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pk-related-cat {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pk-orange);
  margin-bottom: 6px;
}

.pk-related-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  margin: 0 0 12px !important;
  flex: 1;
}

.pk-related-link {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--pk-orange);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE TABLET ─────────────────────────────── */
@media (max-width: 1024px) {
  .pk-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 56px 32px 64px;
  }

  .pk-toc {
    position: static;
    order: 1;
    margin-bottom: 40px;
  }

  .pk-article-body { order: 2; }

  .pk-related-grid { grid-template-columns: repeat(2, 1fr); }

  .pk-product-cta {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .pk-cta-btn {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* ─── RESPONSIVE MÓVIL ──────────────────────────────── */
@media (max-width: 640px) {
  .pk-article-hero { padding: 56px 20px 48px; }

  .pk-article-hero-title { font-size: 26px !important; }

  .pk-article-hero-meta { gap: 12px; flex-wrap: wrap; }

  .pk-article-featured-img,
  .pk-article-featured-placeholder {
    padding: 0 20px;
    margin-bottom: -32px;
  }

  .pk-placeholder-visual { height: 220px; font-size: 52px; }

  .pk-article-layout { padding: 52px 20px 48px; }

  .pk-product-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pk-cta-icon { display: none; }
  .pk-cta-btn { width: 100%; text-align: center; }

  .pk-comparison-table { font-size: 13px; }
  .pk-comparison-table thead th,
  .pk-comparison-table tbody td { padding: 10px 12px; }

  .pk-related-grid { grid-template-columns: 1fr; }

  .pk-related { padding: 48px 20px; }

  .pk-highlight-box { flex-direction: column; gap: 10px; }

  .pk-toc { display: none; }
}