/* ═══════════════════════════════════════════
   GUÍA SALUD FEMENINA — Estilos de Artículos
   guiasaludfemenina.com
═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   LAYOUT DEL ARTÍCULO
══════════════════════════════════════════ */
.article-layout { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Encabezado ── */
.article-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.category-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-mid); margin-bottom: 16px;
}
h1.article-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.18; font-weight: normal;
  text-wrap: balance; margin-bottom: 18px; max-width: 24ch;
}
.article-deck {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.6; max-width: 58ch; margin-bottom: 28px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 18px;
}
.meta-dot { opacity: .35; }

/* ── Tabla de contenidos ── */
.toc {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px; margin-bottom: 44px;
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 6px; }
.toc li { counter-increment: toc; display: flex; align-items: baseline; gap: 10px; font-size: .9rem; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px; font-weight: 700; color: var(--sage-mid);
  min-width: 22px; font-variant-numeric: tabular-nums;
}
.toc a { color: var(--text); }
.toc a:hover { color: var(--sage-mid); text-decoration: underline; }

/* ══════════════════════════════════════════
   TIPOGRAFÍA DEL CUERPO DEL ARTÍCULO
══════════════════════════════════════════ */
.article-body h2 {
  font-family: Georgia, serif; font-size: 1.45rem;
  font-weight: normal; line-height: 1.25;
  text-wrap: balance; margin: 52px 0 14px; color: var(--text);
}
.article-body h3 {
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  margin: 28px 0 8px; color: var(--text);
}
.article-body p {
  margin-bottom: 18px; color: var(--text); max-width: 68ch;
}
.article-body ul,
.article-body ol {
  padding-left: 22px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 7px; max-width: 66ch;
}
.article-body li  { color: var(--text); }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body em  { font-style: italic; }

/* ── Cita destacada ── */
.pull-quote {
  border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
  padding: 20px 0; margin: 36px 0;
  font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.5;
  color: var(--text); font-style: italic; max-width: 62ch;
}

/* ══════════════════════════════════════════
   LÍNEA DE TIEMPO DE FASES (Artículo 1)
══════════════════════════════════════════ */
.phase-timeline { margin: 40px 0; overflow-x: auto; padding-bottom: 4px; }

.timeline-track {
  display: grid; grid-template-columns: repeat(28, 1fr);
  gap: 2px; min-width: 400px; margin-bottom: 8px;
}
.day-block { height: 28px; border-radius: 3px; }
.ph-mens   { background: #C2485E; }
.ph-folic  { background: #5B8FA8; }
.ph-ovul   { background: #D4943A; }
.ph-lutea  { background: #8A6EA0; }

.timeline-labels {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; min-width: 400px; margin-top: 10px;
}
.tl-label { border-radius: 6px; padding: 8px 10px; font-size: 12px; line-height: 1.4; }
.tl-label strong { display: block; font-size: 13px; margin-bottom: 2px; }
.tl-label.mens  { background: rgba(194,72,94,.12);  color: var(--text); border-left: 3px solid #C2485E; }
.tl-label.folic { background: rgba(91,143,168,.12); color: var(--text); border-left: 3px solid #5B8FA8; }
.tl-label.ovul  { background: rgba(212,148,58,.12); color: var(--text); border-left: 3px solid #D4943A; }
.tl-label.lutea { background: rgba(138,110,160,.12);color: var(--text); border-left: 3px solid #8A6EA0; }

.day-nums {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  min-width: 400px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ── Encabezado de fase ── */
.phase-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.phase-dot     { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.dot-mens      { background: #C2485E; }
.dot-folic     { background: #5B8FA8; }
.dot-ovul      { background: #D4943A; }
.dot-lutea     { background: #8A6EA0; }

/* ── Barras de hormonas ── */
.hormone-bars   { margin: 14px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.hbar-row       { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.hbar-label     { width: 110px; flex-shrink: 0; color: var(--text-muted); }
.hbar-track     { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.hbar-fill      { height: 100%; border-radius: 4px; }
.hbar-estr      { background: #5B8FA8; }
.hbar-prog      { background: #8A6EA0; }
.hbar-lh        { background: #D4943A; }
.hbar-val       { font-size: 11px; color: var(--text-muted); width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

/* ── Grillas de sensaciones y tips ── */
.feel-grid,
.tip-grid { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 18px; }

.feel-item,
.tip-item  { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text); }

.feel-icon,
.tip-icon  { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.feel-icon { background: var(--surface2); }
.tip-icon  { background: var(--sage-pale); }

/* ── Caja de doctor ── */
.doctor-box        { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin: 36px 0; }
.doctor-box-header { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.doctor-box-icon   { width: 36px; height: 36px; background: var(--sage-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.doctor-box ul     { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }

/* ══════════════════════════════════════════
   CARDS DE MÉTODOS (Artículo 2)
══════════════════════════════════════════ */
.methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin: 28px 0; }

.method-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.method-header { display: flex; align-items: flex-start; gap: 12px; }
.method-icon   { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.method-name   { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: 2px; }
.method-alt    { font-size: 12px; color: var(--text-muted); }
.method-desc   { font-size: .85rem; color: var(--text); line-height: 1.55; }
.method-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

/* ── Barras de efectividad en cards ── */
.eff-row   { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-top: 2px; }
.eff-label { color: var(--text-muted); width: 90px; flex-shrink: 0; }
.eff-track { flex: 1; height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.eff-fill  { height: 100%; border-radius: 4px; }
.eff-high  { background: #10B981; }
.eff-mid   { background: #F59E0B; }
.eff-val   { font-variant-numeric: tabular-nums; font-weight: 700; width: 38px; text-align: right; color: var(--text); font-size: 12px; }

/* ══════════════════════════════════════════
   TABLA COMPARATIVA (Artículo 2)
══════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto; margin: 28px 0;
  border: 1px solid var(--border); border-radius: 10px;
}
.comp-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 580px; }
.comp-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid var(--border);
  background: var(--surface2); white-space: nowrap;
}
.comp-table td   { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; line-height: 1.4; color: var(--text); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td      { background: var(--surface2); }
.dot-yes { color: #10B981; font-size: 1rem; }
.dot-no  { color: #EF4444; font-size: 1rem; }
.dot-par { color: #F59E0B; font-size: 1rem; }

.eff-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.eff-chip.high { background: #D1FAE5; color: #065F46; }
.eff-chip.mid  { background: #FEF3C7; color: #92400E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eff-chip.high { background: #064E3B; color: #6EE7B7; }
  :root:not([data-theme="light"]) .eff-chip.mid  { background: #451A03; color: #FCD34D; }
}
:root[data-theme="dark"] .eff-chip.high { background: #064E3B; color: #6EE7B7; }
:root[data-theme="dark"] .eff-chip.mid  { background: #451A03; color: #FCD34D; }

/* ══════════════════════════════════════════
   MITOS (Artículo 2)
══════════════════════════════════════════ */
.myths-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.myth-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.myth-head  { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--rose-pale); }
.myth-icon  { font-size: 1.1rem; }
.myth-text  { font-size: .9rem; font-weight: 600; color: var(--rose); font-style: italic; }
.myth-body  { padding: 12px 18px; font-size: .88rem; line-height: 1.55; color: var(--text); }

/* ══════════════════════════════════════════
   PASOS PARA ACCEDER (Artículo 2)
══════════════════════════════════════════ */
.access-steps { display: flex; flex-direction: column; gap: 0; margin: 24px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.access-step  { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.access-step:last-child { border-bottom: none; }
.step-num     { width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-variant-numeric: tabular-nums; }
.step-title   { font-weight: 700; font-size: .95rem; margin-bottom: 4px; color: var(--text); }
.step-desc    { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   FUENTES / SOURCES
══════════════════════════════════════════ */
.sources       { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); }
.sources-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.sources ol    { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.sources li    { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   CTA AL PIE DEL ARTÍCULO
══════════════════════════════════════════ */
.article-cta { background: var(--sage); border-radius: 12px; padding: 28px; margin-top: 48px; color: #fff; }
.article-cta h3 { font-family: Georgia, serif; font-size: 1.2rem; font-weight: normal; margin-bottom: 8px; }
.article-cta p  { font-size: .9rem; opacity: .8; margin-bottom: 16px; max-width: 50ch; color: #fff; }
.cta-btn { display: inline-block; background: #fff; color: var(--sage); font-weight: 700; font-size: .9rem; padding: 10px 20px; border-radius: 6px; }
.cta-btn:hover { opacity: .9; }
