/* .hero-banner (modificado) */
  .hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  /* .hero-overlay (modificado) */
  .hero-overlay {
    inset: 0;
    position: absolute;
  }

  .hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin: 0;
    padding: 0 1rem;
    text-align: center;
  }

  .blog-description p,
  .blog-description ul,
  .blog-description ol,
  .blog-description h2,
  .blog-description h3,
  .blog-description strong {
    /* Ajustes básicos para rich text */
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .blog-description ul,
  .blog-description ol {
    padding-left: 1.5rem;
  }

  .blog-description h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
  }

  .blog-description h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  /* .blog-main (modificado) */
  .blog-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* .blog-article (modificado) */
  .blog-article {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .blog-hero-img {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
  }

  .blog-hero-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
  }

  .blog-content {
    padding: 2rem 2rem 1.5rem 2rem;
  }

  .blog-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1E1E1E;
    letter-spacing: -1px;
    text-align: left;
  }

  .blog-date {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1.2rem;
  }

  .blog-description {
    font-size: 1.13rem;
    color: #222;
    line-height: 1.8;
    margin-top: 1rem;
    word-break: break-word;
  }

  .related-projects-section {
    margin: 2.5rem 0 5em;
  }

  .related-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E1E1E;
    text-align: left;
    letter-spacing: -0.5px;
    padding-left: 0.2rem;
  }

  .related-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .related-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(30,30,30,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 220px;
    max-width: 100%;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 350px;
  }

  .related-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 24px rgba(30,30,30,0.13);
  }

  .related-img-container {
    width: 100%;
    height: 150px;
    background: #e6e8e5;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .related-img-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
  }

  .img-placeholder {
    width: 100%;
    height: 150px;
    background: #d1d5db;
  }

  .related-card-body {
    padding: 1.1rem 1rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .related-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1E1E1E;
  }

  .related-card-desc {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 1.1rem;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .related-btn {
    display: inline-block;
    background: #1E1E1E;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.98rem;
    transition: background 0.18s, color 0.18s;
    text-align: center;
    margin-top: auto;
  }

  .related-btn:hover {
    background: #333;
    color: #fff;
  }

  @media (max-width: 900px) {
    .blog-main {
      max-width: 98vw;
      margin: 0 auto;
      padding: 0 0 1.2rem 0;
    }
    .blog-content {
      padding: 1.2rem 1rem 1rem 1rem;
    }
    .related-cards {
      gap: 1rem;
      justify-content: center;
    }
  }

  @media (max-width: 600px) {
    .blog-title {
      font-size: 1.4rem;
    }
    .blog-content {
      padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .related-card {
      width: 100%;
      min-width: 0;
    }
  }