/* Agile Design — Blog Single Post */

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(232, 54, 79, .15);
  z-index: 100;
  pointer-events: none;
}
.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: #E8364F;
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ============================================================
   HERO COMPACTO
   ============================================================ */
.single-hero {
  background: #fff;
  border-bottom: 1px solid #EEF0F6;
  padding: 40px 0 36px;
}

/* Breadcrumb */
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.single-breadcrumb-link {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: #64748B;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.single-breadcrumb-link:hover { color: #E8364F; }
.single-breadcrumb-sep { color: #E2E8F0; font-size: 14px; }

/* Badge de categoría */
.single-cat-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 9999px;
  white-space: nowrap;
}

/* Título H1 */
.single-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.1;
  color: var(--fg1);
  margin: 0 0 20px;
  letter-spacing: -.02em;
  max-width: 780px;
  text-wrap: balance;
}

/* Meta row */
.single-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.single-meta-sep {
  width: 1px; height: 28px;
  background: #E2E8F0;
  flex-shrink: 0;
}

/* Autor */
.single-author { display: flex; align-items: center; gap: 10px; }
.single-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.single-author-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--fg1); }
.single-author-date { font-family: var(--font-body); font-size: 11px; color: var(--fg3); }

/* Tiempo de lectura */
.single-read-time {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--fg3);
}

/* ============================================================
   BOTONES DE COMPARTIR
   ============================================================ */
.share-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.share-btn span {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: var(--fg2); transition: color .2s;
}
.share-btn svg { transition: color .2s; }

.share-btn-wa:hover              { background: #25D366; border-color: #25D366; }
.share-btn-li:hover              { background: #0A66C2; border-color: #0A66C2; }
.share-btn:hover span,
.share-btn:hover svg             { color: #fff !important; }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.single-wrap { background: #fff; padding: 48px 0 88px; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ============================================================
   ARTÍCULO — tipografía editorial
   ============================================================ */
/* Párrafo lead */
.single-lead {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 500;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #EEF0F6;
}

/* Cuerpo del artículo */
.single-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}
.single-body h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--fg1);
  margin: 40px 0 14px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.single-body h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--fg1);
  margin: 28px 0 10px;
}
.single-body p { margin: 0 0 18px; }
.single-body strong { font-weight: 600; color: var(--fg1); }
.single-body a { color: #E8364F; text-underline-offset: 3px; }
.single-body a:hover { opacity: .8; }

.single-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.single-body ul li {
  padding-left: 22px;
  position: relative;
}
.single-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E8364F;
}

.single-body blockquote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 3px solid #E8364F;
  background: #FFF7F8;
  border-radius: 0 12px 12px 0;
}
.single-body blockquote p {
  font-size: 17px; font-style: italic;
  color: var(--fg1); margin: 0 0 8px;
}
.single-body blockquote cite {
  font-size: 13px; color: #64748B;
  font-style: normal;
}

/* ============================================================
   COMPARTIR (pie) + CTA DIAGNÓSTICO
   ============================================================ */
.single-share-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid #EEF0F6;
  border-bottom: 1px solid #EEF0F6;
  margin: 40px 0;
}
.single-share-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--fg2);
}

.single-cta {
  background: linear-gradient(135deg, #0B1120, #1A3580);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(75, 117, 255, .2);
}
.single-cta-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.single-cta-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(232, 54, 79, .15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.single-cta-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255, 255, 255, .45);
}
.single-cta-h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; line-height: 1.2;
  color: #fff; margin: 0 0 10px; letter-spacing: -.01em;
}
.single-cta-text {
  font-family: var(--font-body);
  font-size: 15px; color: rgba(255, 255, 255, .6);
  line-height: 1.6; margin: 0 0 24px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.single-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card: categoría */
.sidebar-cat-card {
  border-radius: 14px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.sidebar-cat-bubble {
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  opacity: .08;
  pointer-events: none;
}
.sidebar-cat-eyebrow {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 10px;
  position: relative;
}
.sidebar-cat-row { display: flex; align-items: center; gap: 10px; position: relative; }
.sidebar-cat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-cat-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  color: var(--fg1); line-height: 1.2;
}

/* Card: relacionados */
.sidebar-related-card {
  background: #F7F8FC;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.04);
}
.sidebar-related-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.sidebar-related-line {
  width: 3px; height: 16px;
  background: #E8364F;
  border-radius: 2px; flex-shrink: 0;
}
.sidebar-related-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg3);
}
.sidebar-related-list { display: flex; flex-direction: column; gap: 10px; }

.related-post-card {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #EEF0F6;
  border-left: 3px solid #E2E8F0;
  background: #FAFBFC;
  text-decoration: none;
  transition: background .2s ease, border-left-color .2s ease;
}
.related-post-card:hover {
  background: #fff;
  border-left-color: var(--rel-color, #E8364F);
}
.related-post-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px; line-height: 1.35;
  color: var(--fg2);
  margin: 0 0 7px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.related-post-card:hover .related-post-title { color: var(--fg1); }
.related-post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.related-post-mins {
  font-family: var(--font-body); font-size: 11px;
  color: var(--fg4, #94A3B8);
}

/* Card: mini CTA navy */
.sidebar-cta-card {
  background: linear-gradient(135deg, #0B1120, #1A3580);
  border: 1px solid rgba(75, 117, 255, .25);
  border-radius: 14px;
  padding: 20px 18px;
}
.sidebar-cta-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sidebar-cta-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(232, 54, 79, .2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-cta-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255, 255, 255, .45);
}
.sidebar-cta-text {
  font-family: var(--font-body);
  font-size: 13px; color: rgba(255, 255, 255, .65);
  line-height: 1.6; margin: 0 0 14px;
}
.sidebar-cta-link {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: #E8364F;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.sidebar-cta-link:hover { gap: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .single-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .single-hero    { padding: 28px 0 24px; }
  .single-wrap    { padding: 32px 0 60px; }
  .single-cta     { padding: 24px 20px; }
  .single-meta-sep { display: none; }
  .single-meta-row { gap: 10px; }
}
