/* ============================================================
   articulo.css — Estilo editorial para artículos
   ============================================================ */

/* --- Hero --- */
.art-hero {
  background: linear-gradient(180deg, #0a0318 0%, #1a0e35 100%);
  padding: 100px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(74,45,138,.18) 0%, transparent 60%);
  pointer-events: none;
}
.art-hero .container { position: relative; z-index: 1; }
.art-meta-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: .8rem;
  color: rgba(201,184,232,.5);
}
.art-category {
  background: rgba(74,45,138,.4);
  color: var(--purple-pale);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.art-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 18px;
}
.art-lead {
  font-size: 1.08rem;
  color: rgba(201,184,232,.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}

/* --- Body layout --- */
.art-body { padding: 56px 0 40px; }
.art-container {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 40px;
  max-width: 860px;
}
.art-content { max-width: 740px; }

/* --- Tipografía del artículo --- */
.art-content p {
  font-size: 1.02rem;
  line-height: 1.88;
  color: var(--text-body);
  margin-bottom: 22px;
}
.art-content h2 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--purple-deep);
  margin: 48px 0 16px;
  line-height: 1.3;
}
.art-content h3 {
  font-family: var(--font-d);
  font-size: 1.2rem;
  color: var(--purple-deep);
  margin: 36px 0 12px;
  line-height: 1.35;
}
.art-content em { color: var(--purple-mid); }
.art-content strong { color: var(--purple-deep); }
.art-content ul, .art-content ol {
  margin: 0 0 22px 24px;
  font-size: .97rem;
  line-height: 1.8;
  color: var(--text-body);
}
.art-content li { margin-bottom: 6px; }

/* --- Blockquote narrativo --- */
.art-content blockquote {
  border-left: 4px solid var(--purple-mid);
  background: linear-gradient(135deg, rgba(30,11,75,.04), rgba(74,45,138,.06));
  padding: 28px 32px;
  margin: 36px 0;
  border-radius: 0 14px 14px 0;
  font-family: var(--font-d);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--purple-deep);
  line-height: 1.7;
}

/* --- Separador narrativo --- */
.art-sep {
  text-align: center;
  margin: 44px 0;
  font-size: 1.4rem;
  color: var(--purple-pale);
  letter-spacing: .5em;
}

/* --- Aviso sensible --- */
.art-warning {
  background: #fef3cd;
  border: 1px solid #f0d78c;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: .9rem;
  color: #6b5a00;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* --- CTA dentro del artículo --- */
.art-cta {
  margin: 48px 0;
  border-radius: 20px;
  overflow: hidden;
}
.art-cta-inner {
  background: linear-gradient(135deg, var(--purple-deep), #3B1F7A);
  padding: 44px 36px;
  text-align: center;
  border-radius: 20px;
}
.art-cta h3 {
  font-family: var(--font-d);
  color: #fff !important;
  font-size: 1.4rem;
  margin: 0 0 10px !important;
}
.art-cta p {
  color: rgba(237,231,246,.72) !important;
  font-size: .95rem !important;
  max-width: 480px;
  margin: 0 auto 24px !important;
}
.art-cta .btn { margin: 0 8px 10px; }

/* --- Sección clínica --- */
.art-clinical {
  background: var(--cream-soft);
  border: 1px solid rgba(74,45,138,.12);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 48px 0;
}
.art-clinical-badge {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--purple-mid);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(74,45,138,.12);
}
.art-clinical h3 {
  font-size: 1.05rem;
  color: var(--purple-deep);
  margin: 22px 0 8px;
}
.art-clinical p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 14px;
}
.art-clinical ul {
  font-size: .9rem;
  line-height: 1.75;
  margin: 0 0 16px 20px;
}

/* --- Alerta final --- */
.art-alert {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 2px solid #fca5a5;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 48px 0 36px;
}
.art-alert h4 { color: #b91c1c; font-size: 1.05rem; margin-bottom: 12px; }
.art-alert p { font-size: .92rem; line-height: 1.7; color: #7f1d1d; margin-bottom: 12px; }
.art-alert ul { list-style: none; margin: 16px 0 0; padding: 0; }
.art-alert li {
  padding: 8px 0;
  font-size: .92rem;
  color: #7f1d1d;
  border-bottom: 1px solid rgba(252,165,165,.3);
}
.art-alert li:last-child { border: none; }
.art-alert a { color: #b91c1c; font-weight: 600; }

/* --- Share sidebar (desktop) --- */
.share-sidebar {
  position: relative;
}
.share-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74,45,138,.15);
  background: #fff;
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  font-size: .78rem;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-tw:hover { background: #0f1419; color: #fff; border-color: #0f1419; }
.share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-copy:hover { background: var(--purple-mid); color: #fff; border-color: var(--purple-mid); }

/* --- Share mobile --- */
.share-mobile { display: none; margin: 36px 0; text-align: center; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-mobile .share-btn {
  width: auto;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  gap: 6px;
}
.share-mobile .share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-mobile .share-tw { background: #0f1419; color: #fff; border-color: #0f1419; }
.share-mobile .share-wa { background: #25D366; color: #fff; border-color: #25D366; }

/* --- Autor --- */
.art-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(74,45,138,.1);
  margin-top: 36px;
}
.art-author img { border-radius: 50%; flex-shrink: 0; }
.art-author strong { color: var(--purple-deep); font-size: .95rem; }
.art-author p { font-size: .82rem; color: var(--text-muted); margin: 2px 0 0; line-height: 1.5; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .art-container { grid-template-columns: 1fr; gap: 0; }
  .share-sidebar { display: none; }
  .share-mobile { display: block; }
  .art-hero { padding: 80px 0 48px; }
  .art-clinical { padding: 28px 22px; }
  .art-cta-inner { padding: 32px 24px; }
  .art-content blockquote { padding: 20px 22px; }
}
