/* ==========================================
   LIGHT THEME TOKENS · solo para zona de lectura
   ========================================== */
:root {
  --post-bg: #FAFAFA;
  --post-bg-2: #F4F4F5;
  --post-bg-card: #FFFFFF;
  --post-line: rgba(0, 0, 0, 0.08);
  --post-line-strong: rgba(0, 0, 0, 0.14);
  --post-text: #18181B;
  --post-text-soft: #3F3F46;
  --post-text-mute: #71717A;
}

/* ============ READING PROGRESS BAR ============ */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-banner);
  z-index: 300;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.5);
}

/* ============ POST HERO (queda oscuro) ============ */
.post-hero {
  position: relative;
  padding: 70px 0 0;
  overflow: visible;
}
.post-hero .hex-bg {
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 80%);
  opacity: 0.55;
  overflow: hidden;
}
.post-hero-bg-blob {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 600px;
  background:
    radial-gradient(ellipse 500px 350px at 30% 50%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 400px 280px at 75% 50%, rgba(232, 121, 249, 0.10) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}
.post-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.post-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.post-breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s;
  padding: 2px 0;
}
.post-breadcrumb a:hover { color: white; }
.post-breadcrumb .sep {
  opacity: 0.4;
  font-weight: 400;
  user-select: none;
}
/* Pill como último item del breadcrumb — categoría activa con más aire y tono magenta.
   Selector con especificidad alta: .post-breadcrumb a {padding:2px 0} le ganaba al pill. */
.post-breadcrumb a.post-breadcrumb-pill,
.post-breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  background: rgba(230, 70, 255, 0.10);
  border: 1px solid rgba(230, 70, 255, 0.35);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #F0ABFC !important;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 10px;
  line-height: 1;
}
.post-breadcrumb a.post-breadcrumb-pill:hover,
.post-breadcrumb-pill:hover {
  background: rgba(230, 70, 255, 0.2);
  border-color: rgba(230, 70, 255, 0.55);
  color: white !important;
  transform: translateY(-1px);
}

/* .post-category-pill se usa en archive.php / search.php / index.php (cuando NO está dentro del breadcrumb) */
.post-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple-2);
  margin-bottom: 26px;
}

h1.post-title {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: white;
  max-width: 880px;
  margin: 0 auto 22px;
}
h1.post-title .accent {
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.015em;
}

.post-deck {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 auto 38px;
  font-weight: 400;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}
.post-meta-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  color: white;
  letter-spacing: 0.02em;
}
.post-meta .dot { width: 3px; height: 3px; background: var(--text-mute); border-radius: 50%; }


/* ============ ZONA BLANCA · WRAPPER PRINCIPAL ============ */
.post-light-zone {
  background: var(--post-bg);
  color: var(--post-text);
  position: relative;
  padding-top: 200px;
}

/* ============ FEATURED IMAGE (puente entre dark y light) ============ */
/* ============ FEATURED IMAGE (3/4 dentro del hero oscuro, 1/4 protruye en light) ============ */
.post-featured {
  max-width: 980px;
  margin: 60px auto -130px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.post-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  background: var(--bg-2);
  box-shadow: 0 40px 90px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

/* ============ ARTICLE LAYOUT ============ */
.post-layout {
  position: relative;
  padding: 0 0 60px;
}
.post-layout-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  gap: 0 90px;
  align-items: start;
}

/* Sidebar izquierdo flotante (light) */
.post-aside-left {
  position: relative;
  grid-column: 1;
  justify-self: end;
  width: 60px;
  padding-right: 4px;
}
.post-aside-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-share-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--post-text-mute);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.post-share-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--post-line-strong);
  background: var(--post-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--post-text-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.post-share-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.15);
}


/* ============ ARTICLE BODY (LIGHT) ============ */
.post-body {
  font-size: 18px;
  line-height: 1.78;
  color: var(--post-text-soft);
  font-weight: 400;
  letter-spacing: -0.003em;
  grid-column: 2;
}
.post-body > * + * { margin-top: 1.4em; }

.post-body p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--post-text-soft);
}
.post-body p strong, .post-body p b {
  color: var(--post-text);
  font-weight: 700;
}

.post-body .lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--post-text);
  font-weight: 400;
  margin-bottom: 1.6em;
  padding-bottom: 1.6em;
  border-bottom: 1px solid var(--post-line);
}
.post-body .lead strong { color: var(--post-text); font-weight: 700; }

.post-body h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--post-text);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  position: relative;
  padding-left: 22px;
}
.post-body h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3em;
  bottom: 0.25em;
  width: 4px;
  background: var(--grad-button);
  border-radius: 4px;
}
.post-body h2 .accent {
  font-weight: 800;
  background: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post-body h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--post-text);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.post-body ol, .post-body ul {
  padding-left: 0;
  list-style: none;
  counter-reset: post-counter;
}
.post-body ol > li, .post-body ul > li {
  position: relative;
  padding-left: 52px;
  margin-bottom: 1.1em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--post-text-soft);
}
.post-body ol > li strong, .post-body ul > li strong { color: var(--post-text); font-weight: 700; }

.post-body ol > li {
  counter-increment: post-counter;
}
.post-body ol > li::before {
  content: counter(post-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 36px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.post-body ul > li::before {
  content: '';
  position: absolute;
  left: 14px; top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad-button);
  transform: rotate(45deg);
}

.post-body a {
  color: #7C3AED;
  text-decoration: none;
  background-image: linear-gradient(#7C3AED, #7C3AED);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.2s;
  font-weight: 500;
}
.post-body a:hover { color: #C026D3; }

.post-body blockquote {
  margin: 2em 0;
  padding: 24px 30px;
  background: var(--post-bg-2);
  border-left: 3px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  font-family: 'Plus Jakarta Sans', 'Mulish', sans-serif;
  font-size: 21px;
  line-height: 1.45;
  color: var(--post-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--post-line);
  display: block;
  margin: 1.6em 0;
}

/* ============ INLINE CTA BLOCK (DARK variant) ============ */
.post-cta-inline {
  margin: 3em 0 1em;
  padding: 48px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.4), 0 0 0 1px rgba(139, 92, 246, 0.08);
}
.post-cta-inline::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 120%; height: 200%;
  background:
    radial-gradient(ellipse 500px 280px at 30% 50%, rgba(139,92,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 400px 220px at 80% 50%, rgba(232,121,249,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.post-cta-inline > * { position: relative; }
.post-cta-inline-eyebrow,
.post-cta-newsletter-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple-2);
  font-weight: 700;
  margin-bottom: 14px;
}
.post-cta-inline h3 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.post-cta-inline h3 .accent {
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-cta-inline p {
  font-size: 15px;
  color: var(--text-dim) !important;
  margin-bottom: 24px !important;
  max-width: 460px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Variante newsletter del CTA inline (formulario en línea con input + botón) */
.post-cta-newsletter-form {
  display: flex;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.post-cta-newsletter-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.post-cta-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.post-cta-newsletter-form input::placeholder { color: var(--text-mute); }
.post-cta-newsletter-form .btn-primary {
  padding: 10px 22px;
  font-size: 13.5px;
  white-space: nowrap;
}
.post-cta-newsletter-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
  position: relative;
}
.post-cta-newsletter-count::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* Botón blanco contrastante (override de btn-primary cuando va sobre fondo oscuro de un CTA) */
.btn-on-dark {
  background: white !important;
  color: #0A0A0F !important;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}
.btn-on-dark::before {
  background: linear-gradient(120deg, transparent 30%, rgba(139, 92, 246, 0.25) 50%, transparent 70%) !important;
}
.btn-on-dark:hover {
  background: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.25) inset !important;
}
.btn-on-dark svg path { stroke: #0A0A0F; }

/* ============ POST TAGS (light) ============ */
.post-tags-section {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--post-line);
}
.post-tags-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--post-text-mute);
  font-weight: 700;
  margin-bottom: 16px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  background: var(--post-bg-card);
  border: 1px solid var(--post-line-strong);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--post-text-soft);
  font-weight: 500;
  transition: all 0.2s;
}
.post-tag:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: #6D28D9;
  background: rgba(139, 92, 246, 0.06);
}

/* ============ AUTHOR BIO BLOCK (light card) ============ */
.post-author-bio {
  max-width: 720px;
  margin: 50px auto 0;
  padding: 28px;
  background: var(--post-bg-card);
  border: 1px solid var(--post-line-strong);
  border-radius: 16px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.post-author-bio-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}
.post-author-bio-content { flex: 1; min-width: 0; }
.post-author-bio-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--post-text-mute);
  font-weight: 700;
  margin-bottom: 4px;
}
.post-author-bio h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--post-text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.post-author-bio p {
  font-size: 13.5px;
  color: var(--post-text-soft);
  line-height: 1.6;
  font-weight: 400;
}

/* ============ POST NAV (prev/next) — light ============ */
.post-nav-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 22px;
  text-align: center;
}
.post-nav-header .section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--post-text-mute);
  font-weight: 700;
  margin-bottom: 14px;
}
.post-nav-header h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--post-text);
}
.post-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.post-nav-card {
  padding: 22px 24px;
  background: var(--post-bg-card);
  border: 1px solid var(--post-line-strong);
  border-radius: 14px;
  transition: all 0.25s ease;
  display: block;
  color: var(--post-text);
}
.post-nav-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(139, 92, 246, 0.2);
}
.post-nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--post-text-mute);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav-card.next .post-nav-label { justify-content: flex-end; }
.post-nav-card h4 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--post-text);
  letter-spacing: -0.015em;
}
.post-nav-card.next { text-align: right; }

/* ============ RELATED POSTS (DARK) ============ */
.post-related {
  padding: 110px 0 100px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.post-related::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 500px;
  background:
    radial-gradient(ellipse 500px 300px at 30% 50%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 400px 250px at 75% 50%, rgba(232, 121, 249, 0.06) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.post-related-header {
  max-width: 1180px;
  margin: 0 auto 50px;
  padding: 0 24px;
  text-align: center;
  position: relative;
}
.post-related-header .section-eyebrow {
  margin-bottom: 14px;
  color: var(--purple-2);
}
.post-related-header .section-eyebrow::before {
  background: var(--purple-2);
}
.post-related-header h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: white;
}
.post-related-header h2 .accent {
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-related-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: white;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.12);
}
.related-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.related-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-card-cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.related-card h3 {
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.related-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.related-card-meta {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
}

/* ============ MOBILE ADAPTATIONS ============ */
@media (max-width: 1080px) {
  .post-layout-grid {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
  }
  .post-aside-left { display: none; }
  .post-body { grid-column: 1; }
}
@media (max-width: 760px) {
  .post-hero { padding: 50px 0 0; }
  .post-featured { margin: 40px auto -50px; }
  .post-light-zone { padding-top: 90px; }
  .post-layout { padding: 0 0 40px; }
  .post-body { font-size: 17px; }
  .post-body p { font-size: 17px; }
  .post-body .lead { font-size: 19px; }
  .post-body ol > li, .post-body ul > li { font-size: 16px; padding-left: 44px; }
  .post-body ol > li::before { font-size: 24px; width: 30px; }
  .post-body blockquote { font-size: 19px; padding: 18px 22px; }
  .post-cta-inline { padding: 36px 22px; }
  .post-cta-inline h3 { font-size: 24px; }
  .post-cta-newsletter-form { flex-direction: column; border-radius: 16px; padding: 8px; gap: 6px; }
  .post-cta-newsletter-form input { padding: 12px 16px; text-align: center; }
  .post-cta-newsletter-form .btn-primary { width: 100%; justify-content: center; padding: 12px 22px; }
  .post-author-bio { flex-direction: column; gap: 14px; padding: 22px; }
  .post-related { padding: 80px 0 70px; margin-top: 0; }
  .post-related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card.next { text-align: left; }
  .post-nav-card.next .post-nav-label { justify-content: flex-start; }
}

/* ============ AVATAR UNIVERSAL (Gravatar real o fallback de iniciales) ============ */
.bc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad-button);
  position: relative;
  vertical-align: middle;
}
.bc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.bc-avatar__initials {
  color: white;
  font-weight: 700;
  font-size: 38%;
  letter-spacing: 0.02em;
  font-family: 'Mulish', sans-serif;
}
.bc-avatar--fallback {
  background: var(--grad-button);
}

/* Avatar dentro del meta del hero (28px) */
.post-meta-author .bc-avatar {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Avatar dentro de la bio del autor (56px en fondo claro) */
.post-author-bio .bc-avatar {
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}
.post-author-bio .bc-avatar__initials {
  font-size: 32%;
}


/* ============================================ */
/* ARCHIVE / SEARCH / INDEX (blog listings)     */
/* ============================================ */

.archive-hero {
  padding: 60px 0 90px;
  position: relative;
}
.archive-hero::after {
  /* Smooth fade from dark hero into white zone */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(250, 250, 250, 0.08) 100%);
  pointer-events: none;
}
.archive-hero .post-title {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}
.archive-author-avatar {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.archive-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.archive-count::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.archive-zone {
  padding: 70px 0 110px;
  position: relative;
}

.archive-grid {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
@media (max-width: 980px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; gap: 22px; }
}

.archive-card {
  background: var(--post-bg-card);
  border: 1px solid var(--post-line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--post-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.08);
}
.archive-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--post-bg-2);
  position: relative;
  overflow: hidden;
}
.archive-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.archive-card:hover .archive-card-img img {
  transform: scale(1.05);
}
.archive-card-img-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 70% 70%, rgba(232, 121, 249, 0.18) 0%, transparent 60%),
    var(--post-bg-2);
}
.archive-card-body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.archive-card-cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6D28D9;
  font-weight: 700;
  margin-bottom: 12px;
}
.archive-card-title {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--post-text);
  margin-bottom: 12px;
}
.archive-card-excerpt {
  font-size: 14px;
  color: var(--post-text-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.archive-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--post-text-mute);
  font-weight: 500;
}
.archive-card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--post-text-mute);
  border-radius: 50%;
}

/* ============ PAGINATION (UX-polished) ============ */
.bc-pagination {
  max-width: 720px;
  margin: 70px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--post-text-soft);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0;
}
.bc-pagination a.page-numbers:hover {
  background: rgba(139, 92, 246, 0.06);
  color: #6D28D9;
  border-color: rgba(139, 92, 246, 0.2);
}
.bc-pagination .page-numbers.current {
  background: var(--grad-button);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px -4px rgba(139, 92, 246, 0.45);
  cursor: default;
}
.bc-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--post-text-mute);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: default;
  min-width: auto;
  padding: 0 6px;
}
.bc-pagination .prev,
.bc-pagination .next {
  background: var(--post-bg-card);
  border: 1px solid var(--post-line-strong);
  padding: 0 16px;
  gap: 8px;
  font-size: 13.5px;
  color: var(--post-text);
}
.bc-pagination .prev:hover,
.bc-pagination .next:hover {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.4);
  color: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(139, 92, 246, 0.3);
}
.bc-pagination .prev svg,
.bc-pagination .next svg {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .bc-pagination { gap: 4px; }
  .bc-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; font-size: 13px; }
  .bc-pagination .prev span,
  .bc-pagination .next span { display: none; } /* sólo flechas en mobile */
  .bc-pagination .prev,
  .bc-pagination .next { padding: 0 12px; }
}

/* Backward-compat: keep old selectors working */
.archive-pagination {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.archive-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ SEARCH FORM ============ */
.archive-search-form {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.archive-search-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.archive-search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.archive-search-form input::placeholder {
  color: var(--text-mute);
}
.archive-search-form .btn-primary {
  padding: 10px 22px;
  font-size: 13.5px;
}

/* ============ EMPTY STATE ============ */
.archive-empty {
  max-width: 520px;
  margin: 60px auto;
  padding: 60px 32px;
  text-align: center;
  background: var(--post-bg-card);
  border: 1px solid var(--post-line);
  border-radius: 20px;
}
.archive-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(232, 121, 249, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 24px;
  color: #6D28D9;
}
.archive-empty h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--post-text);
  margin-bottom: 10px;
}
.archive-empty p {
  font-size: 15px;
  color: var(--post-text-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}
.archive-empty-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ============================================ */
/* LEGAL TEMPLATES (Aviso de Privacidad, etc.)  */
/* ============================================ */

.legal-hero {
  padding: 60px 0 90px;
  position: relative;
}
.legal-hero::after {
  /* Same fade as archive-hero for consistency */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(250, 250, 250, 0.08) 100%);
  pointer-events: none;
}
.legal-title {
  font-size: clamp(34px, 5vw, 54px) !important;
  line-height: 1.05;
  margin-bottom: 22px !important;
}
.legal-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}

.legal-zone {
  padding: 70px 0 110px;
  position: relative;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  color: var(--post-text);
  font-size: 15.5px;
  line-height: 1.75;
  font-family: 'Mulish', -apple-system, sans-serif;
}
.legal-content p {
  margin: 0 0 18px;
  color: var(--post-text-soft);
}
.legal-content strong {
  color: var(--post-text);
  font-weight: 700;
}
.legal-content a {
  color: #6D28D9;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color 0.2s;
}
.legal-content a:hover {
  color: #5B21B6;
}

.legal-lead {
  font-size: 17px !important;
  line-height: 1.7;
  color: var(--post-text) !important;
  padding-left: 18px;
  border-left: 3px solid #8B5CF6;
  margin-bottom: 36px !important;
  font-weight: 500;
}

.legal-content h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--post-text);
  margin: 56px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--post-line);
  position: relative;
}
.legal-content h2::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #E879F9);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--post-text);
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.legal-content ul li,
.legal-content ol li {
  margin: 0 0 8px;
  color: var(--post-text-soft);
  padding-left: 6px;
}
.legal-content ul li::marker {
  color: #8B5CF6;
}
.legal-content ol li::marker {
  color: #6D28D9;
  font-weight: 700;
}

.legal-content abbr {
  text-decoration: dotted underline;
  cursor: help;
  font-weight: 600;
}

/* Contact card */
.legal-contact-card {
  margin: 32px 0 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(232, 121, 249, 0.02));
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-contact-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 14.5px;
}
.legal-contact-label {
  color: var(--post-text-mute);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
@media (max-width: 600px) {
  .legal-contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Definitions list */
.legal-defs {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--post-line);
  border-bottom: 1px solid var(--post-line);
}
.legal-defs dt {
  font-weight: 700;
  color: var(--post-text);
  font-size: 14px;
  letter-spacing: 0.005em;
}
.legal-defs dd {
  margin: 0;
  color: var(--post-text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
@media (max-width: 600px) {
  .legal-defs {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .legal-defs dt {
    margin-top: 12px;
  }
  .legal-defs dt:first-child {
    margin-top: 0;
  }
}

/* Numbered procedure steps */
.legal-steps {
  counter-reset: legal-step;
  list-style: none !important;
  padding-left: 0 !important;
}
.legal-steps > li {
  counter-increment: legal-step;
  position: relative;
  padding-left: 50px !important;
  margin-bottom: 22px !important;
  min-height: 36px;
}
.legal-steps > li::before {
  content: counter(legal-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.legal-steps ul {
  margin-top: 10px !important;
}
