/* ── ARTICLE HERO ── */
.article-content h2 {
  scroll-margin-top: 88px;
}

.article-hero {
  background: var(--white);
  border-bottom: 2px solid var(--teal-pastel);
  padding: 52px 0 0;
}
.article-hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-light); margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--teal); text-decoration: none; font-weight: 600; }
.article-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .4; }
.article-hero-cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: #fdf4ff; color: #9333ea;
  padding: 5px 14px; border-radius: 4px; margin-bottom: 20px;
}
.article-hero h1 {
  font-family: var(--font); font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 24px; max-width: 800px;
}
.article-hero-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.article-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-pastel);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--teal); flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.author-role { font-size: 12px; color: var(--ink-light); }
.meta-sep { width: 1px; height: 32px; background: var(--border); }
.meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-light); font-weight: 600;
}
.meta-item svg {
  width: 15px; height: 15px; stroke: var(--ink-light);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── PORTADA ── */
.article-cover { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.article-cover img {
  width: 100%; max-height: 480px;
  object-fit: cover; display: block;
  border-radius: 0 0 12px 12px;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
  max-width: var(--max); margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start;
}

/* ── SHARE BAR ── */
.share-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.share-label {
  font-size: 13px; font-weight: 700; color: var(--ink-light);
  text-transform: uppercase; letter-spacing: .08em; margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 6px; border: none;
  cursor: pointer; text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-fb  { background: #1877f2; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-li  { background: #0a66c2; color: #fff; }

/* ── ARTICLE CONTENT ── */
.article-content { font-size: 18px; line-height: 1.85; color: var(--ink-mid); }
.article-content h2 {
  font-family: var(--font); font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800; color: var(--ink); letter-spacing: -.02em;
  margin: 48px 0 18px; line-height: 1.2;
  padding-left: 16px; border-left: 4px solid var(--teal);
}
.article-content h3 {
  font-size: 20px; font-weight: 800; color: var(--ink);
  margin: 32px 0 14px; letter-spacing: -.01em;
}
.article-content p { margin-bottom: 22px; }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { color: var(--ink); font-weight: 700; }

/* IMÁGENES EN CONTENIDO */
.article-content .article-img { margin: 36px 0; border-radius: 10px; overflow: hidden; }
.article-content .article-img img {
  width: 100%; height: auto; display: block;
  max-height: 420px; object-fit: cover;
}
.article-content .article-img figcaption {
  font-size: 13px; color: var(--ink-light); text-align: center;
  padding: 10px 16px; background: var(--bg); font-style: italic;
}

/* BLOCKQUOTE */
.article-content blockquote {
  margin: 36px 0; padding: 24px 28px;
  border-left: 4px solid var(--teal);
  background: var(--teal-pastel); border-radius: 0 10px 10px 0;
  font-size: 19px; font-style: italic; color: var(--teal-dark);
  line-height: 1.65; font-weight: 600;
}
.article-content blockquote::before {
  content: '"'; font-family: var(--font-deco); font-size: 64px;
  color: var(--teal); opacity: .3; line-height: .5;
  display: block; margin-bottom: 8px;
}

/* HIGHLIGHT BOX */
.article-highlight {
  background: #fefce8; border: 1px solid #fde68a;
  border-radius: 10px; padding: 20px 24px; margin: 28px 0;
  font-size: 16px; color: #78350f; line-height: 1.65;
}
.article-highlight strong { color: #92400e; }

/* TEST BOX */
.test-box {
  background: var(--white); border: 2px solid var(--teal-pastel);
  border-radius: 12px; padding: 28px 32px; margin: 36px 0;
  border-top: 4px solid var(--teal);
}
.test-box-title {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.test-box-title span {
  background: var(--teal-pastel); color: var(--teal);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.test-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 16px; color: var(--ink-mid); line-height: 1.5;
}
.test-item:last-child { border-bottom: none; }
.test-check {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer; transition: all .2s; display: flex;
  align-items: center; justify-content: center;
}
.test-check:hover { border-color: var(--teal); }
.test-check.checked { background: var(--teal); border-color: var(--teal); }
.test-check.checked::after { content: '✓'; color: white; font-size: 13px; font-weight: 700; }
.test-result {
  margin-top: 20px; padding: 16px; border-radius: 8px;
  background: var(--teal-pastel); font-size: 15px; color: var(--teal-dark);
  font-weight: 600; display: none; text-align: center;
}

/* ── TAGS ── */
.article-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 40px 0 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.article-tag {
  font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: 99px; background: var(--bg);
  color: var(--ink-light); border: 1px solid var(--border);
  text-decoration: none; transition: all .2s;
}
.article-tag:hover { border-color: var(--teal); color: var(--teal); }

/* ── SHARE BAR BOTTOM ── */
.share-bar-bottom {
  background: var(--teal-pastel); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border: 1px solid rgba(0,136,145,.15);
}
.share-bar-bottom p { font-size: 15px; font-weight: 700; color: var(--teal-dark); margin: 0; }
.share-bar-bottom .share-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── AUTHOR BOX ── */
.author-box {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); border-top: 4px solid var(--teal);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 48px;
}
.author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-pastel);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--teal);
}
.author-box-name { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.author-box-role { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.author-box-bio { font-size: 14px; color: var(--ink-light); line-height: 1.65; }

/* ── RELATED ARTICLES ── */
.related-section { margin-bottom: 60px; }
.related-title {
  font-size: 22px; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.related-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--border); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.related-card:hover { box-shadow: 0 8px 28px rgba(0,136,145,.1); transform: translateY(-3px); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 16px; flex: 1; }
.related-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px; display: block;
}
.related-card-body h4 {
  font-size: 14px; font-weight: 800; color: var(--ink);
  line-height: 1.4; letter-spacing: -.01em;
}

/* ── SIDEBAR ARTÍCULO ── */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.toc-list { list-style: none; padding: 16px 18px; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  font-size: 13px; color: var(--ink-mid); text-decoration: none;
  font-weight: 600; padding: 6px 10px; border-radius: 6px;
  display: flex; align-items: flex-start; gap: 8px;
  transition: color .2s, background .2s; line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active { color: var(--teal); background: var(--teal-pastel); }
.toc-num {
  font-family: var(--font-deco); font-size: 16px; color: var(--teal);
  opacity: .4; flex-shrink: 0; line-height: 1.2;
}
.cta-widget { padding: 24px 20px; text-align: center; }
.cta-widget h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.cta-widget p { font-size: 13px; color: var(--ink-light); line-height: 1.6; margin-bottom: 16px; }
.cta-widget-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 8px; text-decoration: none;
  transition: background .2s;
}
.cta-widget-btn:hover { background: var(--teal-dark); }


  /* Estilos adicionales para artículo 3 */
	.pixel-box {
	  background: #f3e8ff;
	  border-radius: 12px;
	  padding: 28px 32px;
	  margin: 36px 0;
	  color: var(--ink-mid);
	  border-left: 4px solid #a855f7;
	}
	.pixel-box strong { color: #a855f7; }
  
 .benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0;
  }
  
  .benefit-card {
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  
  .benefit-card.card-1 {
    background: #fffbeb;
    border-color: #f59e0b;
    color: var(--ink-mid);
  }
  
  .benefit-card.card-2 {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: var(--ink-mid);
  }
  
  .benefit-card.card-3 {
    background: #faf5ff;
    border-color: #a855f7;
    color: var(--ink-mid);
  }
  
  .benefit-card-icon {
    font-size: 32px;
    flex-shrink: 0;
  }
  
  .benefit-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
  }
  
  .benefit-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .data-highlight {
    background: #fce7f3;
    color: var(--ink);
    padding: 24px 28px;
    border-radius: 10px;
    margin: 28px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-left: 4px solid #ec4899;
  }
  
  .warning-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
    color: var(--ink-mid);
    font-weight: 600;
  }
  
  .success-box {
    background: #f7fee7;
    border: 2px solid #bbf7d0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
    color: var(--ink-mid);
    font-weight: 600;
  }
  
  .article-content .pixel-box blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 16px;
  }
  
  @media (max-width: 768px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-card { padding: 16px; }
    .benefit-card-icon { font-size: 28px; }
  }
  
  

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-layout { padding: 28px 20px 60px; }
  .article-hero-inner { padding: 0 20px; }
  .article-cover { padding: 0 20px; }
  .article-cover img { border-radius: 8px; }
  .article-content { font-size: 17px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .share-bar-bottom { flex-direction: column; }
  .author-box { flex-direction: column; }
}
@media (max-width: 480px) {
  .article-hero { padding-top: 40px; }
  .article-hero h1 { font-size: 26px; }
  .share-bar { gap: 8px; }
  .share-btn { font-size: 12px; padding: 7px 12px; }
}