/* ═══════════════════════════════════════════════════════════════════════════
   BLOG PAGE — CSS Puro (BEM estricto)
   Archivo: blog.css
   ═══════════════════════════════════════════════════════════════════════════ */

.blog {
  min-height: 100vh;
  background-color: #F8FAFC;
}

/* =========================================
   HERO SECTION
   ========================================= */
.blog__hero {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  /* WI 1532: sin imagen de fondo — mismo degradado que .proy-hero */
  background: linear-gradient(to bottom right, #323755, #1a1d2e);
}

.blog__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .blog__container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .blog__container {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.blog__hero-content {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 1024px) {
  .blog__hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.blog__hero-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
  .blog__hero-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog__title {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
@media (min-width: 640px) {
  .blog__title { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  .blog__title { font-size: 2.25rem; }
}

.blog__subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  margin-bottom: 0;
  max-width: 32rem;
}

/* =========================================
   SEARCH & CATEGORIES
   ========================================= */
.blog__search {
  position: relative;
  width: 100%;
}
@media (min-width: 1024px) {
  .blog__search { width: 20rem; }
}
@media (min-width: 1280px) {
  .blog__search { width: 24rem; }
}

.blog__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.blog__search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.blog__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.blog__search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.blog__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog__category-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog__category-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.blog__category-btn--active {
  background-color: #E60064;
  color: #ffffff;
  border-color: #E60064;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.blog__category-btn--active:hover {
  background-color: #E60064;
  color: #ffffff;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.blog__main {
  padding-top: 3rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .blog__main {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Empty state */
.blog__empty {
  text-align: center;
  padding: 6rem 0;
}

.blog__empty-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.blog__empty-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #E60064;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.blog__empty-btn:hover {
  text-decoration: underline;
}

/* =========================================
   POST CATEGORY BADGE (Compartido)
   ========================================= */
.blog__post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E60064;
  background-color: rgba(230, 0, 100, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: fit-content;
}

/* =========================================
   META INFO (Compartido)
   ========================================= */
.blog__meta-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* =========================================
   FEATURED POST
   ========================================= */
.blog__featured {
  margin-bottom: 2.5rem;
}

.blog__featured-link {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.blog__featured-link:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 1024px) {
  .blog__featured-link {
    grid-template-columns: 3fr 2fr;
  }
}

.blog__featured-image-wrapper {
  position: relative;
  height: 16rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .blog__featured-image-wrapper {
    height: auto;
  }
}

.blog__featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.blog__featured-link:hover .blog__featured-image {
  transform: scale(1.05);
}

.blog__featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(50, 55, 85, 0.6), transparent, transparent);
}

.blog__featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #E60064;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.blog__featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  .blog__featured-content {
    padding: 2.5rem;
  }
}

.blog__featured-title {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  color: #323755;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.375;
  transition: color 0.3s ease;
}
.blog__featured-link:hover .blog__featured-title {
  color: #E60064;
}
@media (min-width: 1024px) {
  .blog__featured-title { font-size: 1.5rem; }
}

.blog__featured-excerpt {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.blog__featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

.blog__meta-read {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E60064;
  transition: gap 0.3s ease;
}
.blog__featured-link:hover .blog__meta-read {
  gap: 0.75rem;
}

/* =========================================
   POSTS GRID
   ========================================= */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog__grid { grid-template-columns: repeat(3, 1fr); }
}

.blog__post-link {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.blog__post-link:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.blog__post-image-wrapper {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog__post-link:hover .blog__post-image {
  transform: scale(1.05);
}

.blog__post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog__post-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #323755;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.375;
  flex: 1;
  transition: color 0.3s ease;
}
.blog__post-link:hover .blog__post-title {
  color: #E60064;
}

.blog__post-excerpt {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 1rem;
}

.blog__post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.blog__post-arrow {
  color: #E60064;
  transition: transform 0.3s ease;
}
.blog__post-link:hover .blog__post-arrow {
  transform: translateX(0.25rem);
}

/* =========================================
   NEWSLETTER CTA
   ========================================= */
.blog__cta {
  margin-top: 4rem;
  background: linear-gradient(to bottom right, #323755, #1a1d2e);
  border-radius: 1.5rem;
  padding: 2.5rem;
}
@media (min-width: 1024px) {
  .blog__cta { padding: 3rem; }
}

.blog__cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .blog__cta-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog__cta-title {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
  .blog__cta-title { font-size: 1.875rem; }
}

.blog__cta-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.625;
  margin: 0;
}

.blog__cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .blog__cta-actions { flex-direction: row; }
}

.blog__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog__cta-btn--primary {
  background-color: #E60064;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.blog__cta-btn--primary:hover {
  background-color: #c00556;
  transform: scale(1.05);
}

.blog__cta-btn--secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.blog__cta-btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
/* ═══════════════════════════════════════════════════════════════════════════
   BLOG POST PAGE — CSS Puro (BEM estricto)
   Archivo: blog-post.css
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-post {
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* =========================================
   READING PROGRESS BAR
   ========================================= */
.blog-post__progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 0.25rem;
  background-color: rgba(229, 231, 235, 0.5); /* gray-200/50 */
}

.blog-post__progress-bar {
  height: 100%;
  background-color: #E60064;
  transition: all 100ms;
  width: 0%;
}

/* =========================================
   CONTAINER
   ========================================= */
.blog-post__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .blog-post__container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .blog-post__container { padding-left: 8rem; padding-right: 8rem; }
}

/* =========================================
   HERO
   ========================================= */
.blog-post__hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  margin-top: 0;
}
@media (min-width: 1024px) {
  .blog-post__hero { height: 420px; }
}

.blog-post__hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 46, 0.9), rgba(50, 55, 85, 0.5), transparent);
}

.blog-post__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 2.5rem;
}

.blog-post__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.blog-post__breadcrumb-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-post__breadcrumb-link:hover {
  color: #ffffff;
}

.blog-post__breadcrumb-current {
  color: rgba(255, 255, 255, 0.8);
}

.blog-post__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.blog-post__badge--hero {
  color: #ffffff;
  background-color: #E60064;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
}

.blog-post__badge--footer {
  color: #E60064;
  background-color: rgba(230, 0, 100, 0.1);
  padding: 0.5rem 1rem;
}

.blog-post__title {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  max-width: 48rem;
  margin: 0;
}
@media (min-width: 640px) {
  .blog-post__title { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  .blog-post__title { font-size: 2.25rem; }
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.blog-post__meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* =========================================
   MAIN SECTION & GRID
   ========================================= */
.blog-post__main {
  padding-top: 3rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .blog-post__main {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.blog-post__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .blog-post__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================
   MAIN ARTICLE
   ========================================= */
.blog-post__article {
  /* col-span-2 equivalent */
}
@media (min-width: 1024px) {
  .blog-post__article {
    grid-column: span 2 / span 2;
  }
}

.blog-post__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #9ca3af; /* gray-400 */
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 2rem;
}
.blog-post__back-link:hover {
  color: #E60064;
}
.blog-post__back-icon {
  transition: transform 0.2s;
}
.blog-post__back-link:hover .blog-post__back-icon {
  transform: translateX(-0.25rem);
}

.blog-post__excerpt {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  color: #4b5563; /* gray-600 */
  line-height: 1.625;
  border-left: 4px solid #E60064;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
  margin-top: 0;
}

/* Sections Content */
.blog-post__heading {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  color: #323755;
  font-weight: 700;
  line-height: 1.375;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .blog-post__heading { font-size: 1.5rem; }
}

.blog-post__paragraph {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #374151; /* gray-700 */
  line-height: 1.625;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.blog-post__list {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.blog-post__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.625;
}

.blog-post__list-icon {
  color: #E60064;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.blog-post__blockquote {
  margin: 2rem 0;
  border-left: 4px solid #E60064;
  background-color: rgba(230, 0, 100, 0.05);
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

.blog-post__blockquote-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #323755;
  font-style: italic;
  line-height: 1.625;
  margin: 0;
}

.blog-post__tip {
  margin: 2rem 0;
  background-color: #323755;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.blog-post__tip-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #E60064;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

.blog-post__tip-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.625;
  margin: 0;
}

/* Footer Actions (Tags & Share) */
.blog-post__footer-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6; /* gray-100 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 640px) {
  .blog-post__footer-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog-post__share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-post__share-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
}

.blog-post__share-wrapper {
  position: relative;
}

.blog-post__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #323755;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.blog-post__share-btn:hover {
  background-color: #1a1d2e;
}

.blog-post__share-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  width: 12rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  z-index: 20;
}

.blog-post__share-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #323755;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
}
.blog-post__share-link:hover {
  background-color: #f9fafb; /* gray-50 */
}

.blog-post__share-divider {
  border-top: 1px solid #f3f4f6;
  margin: 0.25rem 0.5rem;
}

/* Prev/Next Nav */
.blog-post__nav {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .blog-post__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.blog-post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background-color: #F8FAFC;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-post__nav-link:hover {
  border-color: rgba(230, 0, 100, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.blog-post__nav-link--next {
  text-align: left;
}
@media (min-width: 640px) {
  .blog-post__nav-link--next { text-align: right; }
}

.blog-post__nav-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .blog-post__nav-link--next .blog-post__nav-label {
    justify-content: flex-end;
  }
}

.blog-post__nav-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #323755;
  line-height: 1.375;
  transition: color 0.2s;
}
.blog-post__nav-link:hover .blog-post__nav-title {
  color: #E60064;
}

/* =========================================
   SIDEBAR
   ========================================= */
.blog-post__sidebar-sticky {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post__widget {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.blog-post__widget-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #323755;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* TOC Widget */
.blog-post__toc {
  background-color: #F8FAFC;
  box-shadow: none;
}

.blog-post__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-post__toc-link {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  line-height: 1.375;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.blog-post__toc-link:hover {
  color: #E60064;
  border-left-color: #E60064;
}

/* Advisor Widget */
.blog-post__advisor-cta {
  background: linear-gradient(to bottom right, #323755, #1a1d2e);
  color: #ffffff;
  border: none;
}

.blog-post__advisor-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #E60064;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #ffffff;
}

.blog-post__advisor-title {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.375;
}

.blog-post__advisor-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.625;
  margin: 0 0 1.25rem 0;
}

.blog-post__advisor-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  background-color: #E60064;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.blog-post__advisor-btn:hover {
  background-color: #c00556;
  transform: scale(1.02);
}

.blog-post__advisor-note {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0.75rem 0 0 0;
}

/* Simulator Widget */
.blog-post__simulator-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #323755;
  margin: 0 0 0.5rem 0;
}

.blog-post__simulator-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.625;
  margin: 0 0 1rem 0;
}

.blog-post__simulator-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E60064;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-post__simulator-link:hover {
  color: #c00556;
}
.blog-post__simulator-link svg {
  transition: transform 0.2s;
}
.blog-post__simulator-link:hover svg {
  transform: translateX(0.25rem);
}

/* Related Widget */
.blog-post__related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-post__related-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
}
.blog-post__related-item:hover .blog-post__related-image {
  transform: scale(1.1);
}
.blog-post__related-item:hover .blog-post__related-title {
  color: #E60064;
}

.blog-post__related-image-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-post__related-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-post__related-content {
  flex: 1;
  min-width: 0;
}

.blog-post__related-category {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #E60064;
  font-weight: 600;
}

.blog-post__related-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #323755;
  font-weight: 600;
  line-height: 1.375;
  margin: 0.125rem 0 0 0;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   BOTTOM CTA & MORE ARTICLES
   ========================================= */
.blog-post__bottom {
  padding-top: 3rem;
  padding-bottom: 6rem;
  background-color: #F8FAFC;
  border-top: 1px solid #f3f4f6;
}
@media (min-width: 1024px) {
  .blog-post__bottom {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.blog-post__cta {
  background: linear-gradient(to bottom right, #323755, #1a1d2e);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .blog-post__cta {
    flex-direction: row;
    align-items: center;
    padding: 3rem;
  }
}

.blog-post__cta-content {
  flex: 1;
}

.blog-post__cta-title {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.375;
}
@media (min-width: 1024px) {
  .blog-post__cta-title { font-size: 1.875rem; }
}

.blog-post__cta-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.625;
  margin: 0;
}

.blog-post__cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .blog-post__cta-actions {
    flex-direction: row;
  }
}

.blog-post__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-post__btn--primary {
  background-color: #E60064;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.blog-post__btn--primary:hover {
  background-color: #c00556;
  transform: scale(1.05);
}
.blog-post__btn--primary svg {
  transition: transform 0.2s;
}
.blog-post__btn--primary:hover svg {
  transform: translateX(0.25rem);
}

.blog-post__btn--secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.blog-post__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* More Articles Grid */
.blog-post__more {
  margin-top: 3rem;
}

.blog-post__more-title {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  color: #323755;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}
@media (min-width: 1024px) {
  .blog-post__more-title { font-size: 1.875rem; }
}

.blog-post__more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-post__more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.blog-post__card {
  display: flex;
  gap: 1.25rem;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}
.blog-post__card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.25rem);
}
.blog-post__card:hover .blog-post__card-image {
  transform: scale(1.1);
}
.blog-post__card:hover .blog-post__card-title {
  color: #E60064;
}

.blog-post__card-image-wrapper {
  width: 6rem;
  height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-post__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-post__card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E60064;
  background-color: rgba(230, 0, 100, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.blog-post__card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #323755;
  line-height: 1.375;
  margin: 0;
  transition: color 0.2s;
}

.blog-post__card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* =========================================
   BLOG POST — Contenido real del editor
   El HTML del RichTextEditor llega sin clases BEM, así que los elementos
   dentro de .blog-post__content heredan los estilos del diseño.
   ========================================= */
.blog-post__content h2,
.blog-post__content h3 {
  font-family: 'LT_Wave', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #323755;
  font-weight: 700;
  line-height: 1.375;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-post__content h2 { font-size: 1.25rem; }
.blog-post__content h3 { font-size: 1.125rem; }
@media (min-width: 1024px) {
  .blog-post__content h2 { font-size: 1.5rem; }
  .blog-post__content h3 { font-size: 1.25rem; }
}

.blog-post__content p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-post__content li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.625;
  margin-bottom: 0.75rem;
}
.blog-post__content li::marker {
  color: #E60064;
}

.blog-post__content blockquote {
  margin: 2rem 0;
  border-left: 4px solid #E60064;
  background-color: rgba(230, 0, 100, 0.05);
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #323755;
  font-style: italic;
  line-height: 1.625;
}
.blog-post__content blockquote p {
  margin: 0;
  color: inherit;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.blog-post__content a {
  color: #E60064;
  text-decoration: underline;
  transition: color 0.2s;
}
.blog-post__content a:hover {
  color: #c00556;
}

/* Tablas del contenido migrado (HU 761).
   La guía (BlogPost.tsx) no define tablas — su renderSection solo cubre párrafo,
   encabezado, lista y cita — así que estas reglas se derivan de los tokens que ya
   usa el resto de .blog-post__content: texto #374151, títulos #323755, borde
   #e5e7eb y radio 0.75rem. El material migrado trae 30 tablas sin clases. */
.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

.blog-post__content th,
.blog-post__content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.blog-post__content th {
  font-weight: 700;
  color: #323755;
  background-color: #f8fafc;
}

/* La mayoría de las tablas del export no traen <thead>: la primera fila hace de
   encabezado, así que se resalta igual. */
.blog-post__content table tr:first-child td {
  font-weight: 700;
  color: #323755;
  background-color: #f8fafc;
}

.blog-post__content tr:last-child td {
  border-bottom: none;
}

/* En móvil la tabla scrollea dentro de su propio contenedor: el cuerpo de la
   página nunca debe desplazarse en horizontal. */
@media (max-width: 640px) {
  .blog-post__content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
