/* ═══════════════════════════════════════════════════
   blog.css — C&R Auditores Blog Styles
   Complementa cyr2026.css para las páginas de artículos.
   Usa las variables CSS definidas en cyr2026.css.
   ═══════════════════════════════════════════════════ */

/* ── TIPOGRAFÍA BLOG ── */
.blog-page {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #2e2a24;
  background: #faf8f6;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: #f2ede8;
  border-bottom: 1px solid #c8bdb2;
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #8c7d6e;
  flex-wrap: wrap;
}
.breadcrumb a { color: #e8600a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #c8bdb2; }

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 52px 0 70px;
}

/* ── ARTICLE HEADER ── */
.article-tag {
  display: inline-block;
  background: #e8600a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #2e2a24;
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #8c7d6e;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(232, 96, 10, 0.12);
}
.article-meta strong { color: #c04e00; }
.article-featured-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.article-featured-img img { width: 100%; height: auto; display: block; }

/* ── ARTICLE BODY ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2e2a24;
}
.article-body p { margin-bottom: 18px; }
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2e2a24;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #e8600a;
  line-height: 1.25;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #c04e00;
  margin: 26px 0 8px;
  letter-spacing: 0.5px;
}
.article-body ul { margin: 0 0 18px 20px; }
.article-body ul li { margin-bottom: 8px; line-height: 1.6; }
.article-body strong { color: #2e2a24; }

/* ── CALLOUT BOXES ── */
.callout {
  border-radius: 6px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.98rem;
}
.callout p { margin: 0; line-height: 1.6; }
.callout-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.callout-importante {
  background: rgba(232, 96, 10, 0.07);
  border-left: 4px solid #e8600a;
}
.callout-importante .callout-label { color: #c04e00; }
.callout-normativa {
  background: #eff6ff;
  border-left: 4px solid #1e3a5f;
}
.callout-normativa .callout-label { color: #1e3a5f; }
.callout-ok {
  background: #f0fdf4;
  border-left: 4px solid #15803d;
}
.callout-ok .callout-label { color: #15803d; }
.callout-alerta {
  background: #fff7ed;
  border-left: 4px solid #d97706;
}
.callout-alerta .callout-label { color: #d97706; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: rgba(232, 96, 10, 0.06);
  border-left: 4px solid #e8600a;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0;
}
.highlight-box strong {
  display: block;
  color: #c04e00;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ── ALERT BOX ── */
.alert-box {
  background: #fff7ed;
  border: 1.5px solid #e8600a;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.alert-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.alert-box p { margin: 0; font-size: 1rem; line-height: 1.6; }
.alert-box strong { color: #c04e00; }

/* ── INFO BOX ── */
.info-box {
  background: #eff6ff;
  border: 1.5px solid #2e6da4;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.info-box strong {
  display: block;
  color: #1e3a5f;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ── COMPARISON TABLE ── */
.comparison { overflow-x: auto; margin: 24px 0 32px; }
.comparison table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.comparison th {
  background: #2e2a24;
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison td { padding: 10px 14px; border-bottom: 1px solid #c8bdb2; vertical-align: top; }
.comparison tr:nth-child(even) td { background: #f2ede8; }
.comparison tr:last-child td { border-bottom: none; font-weight: 700; }
.icon-si { color: #15803d; font-weight: 600; }

/* ── STATS BAR (article) ── */
.stats-bar-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #2e2a24;
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
}
.stat-art-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-art-item:last-child { border-right: none; }
.stat-art-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #e8600a;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-art-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── DEBATE BLOCK ── */
.debate-block {
  border: 1.5px solid #c8bdb2;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 32px;
}
.debate-header {
  background: #2e2a24;
  color: #fff;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.myth {
  padding: 14px 16px;
  background: #fff7ed;
  border-bottom: 1px solid #c8bdb2;
}
.myth-label {
  display: inline-block;
  background: #d97706;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.myth p { margin: 0; font-style: italic; font-size: 0.97rem; }
.reality {
  padding: 14px 16px;
  background: #faf8f6;
  border-bottom: 1px solid #c8bdb2;
}
.reality-label {
  display: inline-block;
  background: #15803d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.reality p { margin: 0; font-size: 0.97rem; }
.debate-block .myth:last-of-type,
.debate-block .reality:last-child { border-bottom: none; }

/* ── GIROS GRID ── */
.giros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 32px;
}
.giro-card {
  border-radius: 8px;
  padding: 20px;
  font-size: 0.92rem;
}
.giro-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
}
.giro-card ul { margin: 0; padding: 0 0 0 16px; }
.giro-card ul li { margin-bottom: 6px; line-height: 1.5; }
.giro-card.compatible {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}
.giro-card.compatible h4 { color: #15803d; border-bottom: 2px solid #86efac; }
.giro-card.incompatible {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
}
.giro-card.incompatible h4 { color: #c04e00; border-bottom: 2px solid #fed7aa; }

/* ── CHECKLIST ── */
ul.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
ul.checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #c8bdb2;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}
ul.checklist li:last-child { border-bottom: none; }
ul.checklist li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #e8600a;
  font-weight: 700;
  font-size: 1rem;
}

/* ── CODE REF ── */
.code-ref {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(232, 96, 10, 0.08);
  padding: 0.15rem 0.4rem;
  color: #e8600a;
  border: 1px solid rgba(232, 96, 10, 0.2);
  border-radius: 3px;
}

/* ── INFOGRAPHIC BLOCK ── */
.infographic-block { margin: 28px 0; }
.infographic-block img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.infographic-caption { font-size: 0.82rem; color: #8c7d6e; text-align: center; margin-top: 8px; font-style: italic; }

/* ── TOC ── */
.toc {
  background: #f2ede8;
  border: 1px solid #c8bdb2;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.toc-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2e2a24;
  margin-bottom: 12px;
}
.toc ol { padding-left: 18px; margin: 0; }
.toc ol li { margin-bottom: 6px; font-size: 0.9rem; }
.toc a { color: #e8600a; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── ARTICLE CTA ── */
.article-cta {
  background: linear-gradient(135deg, #e8600a, #c04e00);
  border-radius: 10px;
  padding: 28px 26px;
  text-align: center;
  margin-top: 36px;
}
.article-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}
.article-cta p { color: rgba(255,255,255,0.88); font-size: 1rem; margin-bottom: 20px; line-height: 1.5; }
.article-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-wsp-art {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #027e02;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-wsp-art:hover { background: #1da851; }
.btn-wsp-art svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
.btn-mail-art {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.44);
  transition: background 0.2s;
}
.btn-mail-art:hover { background: rgba(255,255,255,0.28); }
.btn-plan-art {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.44);
  transition: background 0.2s;
}
.btn-plan-art:hover { background: rgba(255,255,255,0.28); }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: #f2ede8;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid #c8bdb2;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2e2a24;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8600a;
}
.sidebar-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.sidebar-contact-item a { color: #e8600a; text-decoration: none; }
.sidebar-contact-item a:hover { text-decoration: underline; }
.sidebar-cta-btn {
  display: block;
  background: #027e02;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  margin-top: 14px;
  transition: background 0.2s;
}
.sidebar-cta-btn:hover { background: #1da851; }
.sidebar-plan-btn {
  display: block;
  background: #e8600a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 16px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
  transition: background 0.2s;
}
.sidebar-plan-btn:hover { background: #c04e00; }
.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid #c8bdb2; padding: 10px 0; }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  color: #c04e00;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}
.related-list a:hover { color: #e8600a; text-decoration: underline; }
.related-list span { display: block; font-size: 0.78rem; color: #8c7d6e; margin-top: 3px; }

/* ── PDF DOWNLOAD ── */
.pdf-download {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f2ede8;
  border: 1.5px solid #c8bdb2;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pdf-download:hover { border-color: #e8600a; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.pdf-icon {
  width: 48px;
  height: 48px;
  background: #d32f2f;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdf-icon svg { width: 26px; height: 26px; fill: white; }
.pdf-info strong { display: block; color: #2e2a24; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.pdf-info span { font-size: 0.85rem; color: #8c7d6e; }
.pdf-btn {
  margin-left: auto;
  background: #e8600a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── BADGE VIGENTE ── */
.badge-vigente {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1.5px solid #15803d;
  color: #15803d;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.badge-vigente::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15803d;
  animation: blink-badge 1.5s infinite;
}
@keyframes blink-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── CRONOGRAMA ── */
.cronograma {
  display: flex;
  gap: 0;
  margin: 24px 0 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #c8bdb2;
}
.crono-step { flex: 1; text-align: center; padding: 16px 12px; }
.crono-step:nth-child(1) { background: #fff7ed; border-right: 1px solid #c8bdb2; }
.crono-step:nth-child(2) { background: #f0fdf4; border-right: 1px solid #c8bdb2; }
.crono-step:nth-child(3) { background: #eff6ff; }
.crono-year {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
  color: #5a5248;
}
.crono-hours {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.crono-step:nth-child(1) .crono-hours { color: #c04e00; }
.crono-step:nth-child(2) .crono-hours { color: #15803d; }
.crono-step:nth-child(3) .crono-hours { color: #1e3a5f; }
.crono-label { font-size: 0.78rem; color: #8c7d6e; text-transform: uppercase; letter-spacing: 0.5px; }
.crono-step:nth-child(2) .crono-label { color: #15803d; font-weight: 700; }

/* ── JORNADA TABLE ── */
.jornada-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.97rem; }
.jornada-table th {
  background: #1e3a5f;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
}
.jornada-table td { padding: 10px 14px; border-bottom: 1px solid #c8bdb2; vertical-align: top; }
.jornada-table tr:nth-child(even) td { background: #f2ede8; }
.jornada-table tr:last-child td { border-bottom: none; }

/* ── CONCLUSIONES DICTAMEN ── */
.conclusiones-dictamen {
  border: 1.5px solid #1e3a5f;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 28px;
}
.concl-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.15);
}
.concl-item:last-child { border-bottom: none; }
.concl-num {
  min-width: 44px;
  background: #1e3a5f;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.concl-text { padding: 14px 16px; font-size: 0.97rem; line-height: 1.6; color: #2e2a24; }

/* ── FUENTES LEGALES ── */
.legal-sources-list {
  list-style: none;
  margin: 16px 0 24px;
  border: 1px solid #c8bdb2;
  border-radius: 8px;
  overflow: hidden;
}
.legal-sources-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid #c8bdb2;
  font-size: 0.93rem;
  line-height: 1.5;
}
.legal-sources-list li:last-child { border-bottom: none; }
.legal-sources-list li:nth-child(even) { background: #f2ede8; }
.legal-source-law {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1e3a5f;
  min-width: 200px;
  flex-shrink: 0;
  font-size: 0.92rem;
}

/* ── TESTIMONIAL QUOTE ── */
.testimonial {
  background: #f2ede8;
  border-left: 4px solid #e8600a;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1rem;
}
.testimonial cite { display: block; font-style: normal; color: #8c7d6e; font-size: 0.85rem; margin-top: 10px; }

/* ── WSP FLOTANTE ── */
.wsp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #029638;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform 0.2s;
  animation: wsp-pulse 2.5s infinite;
}
.wsp-float:hover { transform: scale(1.1); }
@keyframes wsp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.75); }
}
.wsp-float svg { width: 27px; height: 27px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .stats-bar-art { grid-template-columns: 1fr 1fr; }
  .giros-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-wrap { padding: 28px 0 48px; }
  .cronograma { flex-direction: column; }
  .pdf-download { flex-wrap: wrap; }
  .pdf-btn { margin-left: 0; width: 100%; text-align: center; }
  .stats-bar-art { grid-template-columns: 1fr 1fr; }
  .legal-sources-list li { flex-direction: column; gap: 4px; }
  .legal-source-law { min-width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wsp-float { animation: none; box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  .badge-vigente::before { animation: none; }
}
