/* JAML CODE — estilos de artículos del blog.
   Se carga DESPUÉS de /local.css, que aporta tokens, nav, botones y footer. */

/* ARTICLE LAYOUT */
.article-wrap {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 8.5rem var(--pad-x) 5rem;
}

/* BREADCRUMB (complementa .breadcrumb de local.css) */
.article-wrap .breadcrumb { margin-bottom: 2rem; }

/* ARTICLE HEADER */
.article-cat {
  display: block; font-size: 12px; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem;
}
.article-title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 1.5rem; max-width: none; text-align: left;
}
.article-title span, .article-title em {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
}
.article-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted);
}
.meta-item { display: flex; align-items: center; gap: 0.4rem; }

/* ARTICLE CONTENT */
.article-body { font-size: 17px; line-height: 1.8; color: rgba(0,0,0,0.72); }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--text); margin: 2.75rem 0 1rem; max-width: none;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 2rem 0 0.7rem;
}
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.55rem; line-height: 1.7; }
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(99,102,241,0.35); }
.article-body a:hover { text-decoration-color: var(--accent); }

/* CALLOUT */
.callout {
  background: #fafbff; border: 1px solid rgba(99,102,241,0.14);
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem; margin: 2rem 0;
}
.callout p { margin-bottom: 0; color: var(--text); }
.callout-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.45rem;
}

/* TABLA */
.table-scroll {
  overflow-x: auto; margin: 1.5rem 0 2rem;
  border: 1px solid var(--border); border-radius: 12px;
}
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5rem 0 2rem; }
.table-scroll .price-table { margin: 0; }
.price-table th {
  background: var(--surface); padding: 0.8rem 1rem; text-align: left;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.price-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); color: rgba(0,0,0,0.72); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: #fafbff; }
.price-highlight { color: var(--accent); font-weight: 600; }

/* DIVIDER */
.article-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* CTA AL FINAL DEL ARTÍCULO */
.article-cta {
  background: var(--text); color: #ffffff; border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem); margin-top: 3.5rem; text-align: center;
}
.article-cta .cta-tag {
  display: block; font-size: 12px; font-weight: 500; color: #a5b4fc;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem;
}
.article-cta h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.article-cta p { color: rgba(255,255,255,0.65); margin: 0 auto 1.75rem; max-width: 460px; line-height: 1.7; }
.article-cta .btn-row { gap: 10px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; color: var(--text); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-pill);
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn-cta:hover { opacity: 0.9; transform: scale(1.02); }
.btn-cta-wa {
  display: inline-block; color: #ffffff; font-size: 15px; font-weight: 500;
  padding: 14px 24px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06);
  transition: background 200ms ease, border-color 200ms ease;
}
.btn-cta-wa:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }

/* BACK LINK */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 14px; font-weight: 500; color: var(--muted);
  margin-bottom: 1.25rem; transition: color 150ms ease;
}
.back-link:hover { color: var(--text); }

/* ARTÍCULOS RELACIONADOS */
.related { margin-top: 3.5rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.related-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.related-links { display: flex; flex-direction: column; gap: 0.65rem; }
.related-links a {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 16px; font-weight: 500; color: var(--text); transition: color 150ms ease;
}
.related-links a::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.related-links a:hover { color: var(--accent); }
