/* Ajustes responsive de Regalos Ecológicos */
@media (max-width: 781px) {
  body.re-home-page .entry-content {
    width: 100%;
    overflow-x: clip;
  }

  body.re-home-page .entry-content .re-home-hero,
  body.re-home-page .entry-content .re-section {
    box-sizing: border-box;
    width: 100%;
    padding: 42px 20px !important;
    margin: 0 !important;
  }

  body.re-home-page .entry-content .re-home-hero .wp-block-group__inner-container,
  body.re-home-page .entry-content .re-section > .wp-block-group__inner-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  body.re-home-page .entry-content .re-home-hero .wp-block-columns,
  body.re-home-page .entry-content .re-b2b .wp-block-columns,
  body.re-home-page .entry-content .re-card-grid,
  body.re-home-page .entry-content .re-editorial-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 24px !important;
    width: 100%;
    margin: 0;
  }

  body.re-home-page .entry-content .wp-block-columns > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.re-home-page .entry-content h1 {
    font-size: clamp(2.15rem, 9vw, 3.1rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em;
    margin: 10px 0 18px !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.re-home-page .entry-content h2 {
    font-size: clamp(1.8rem, 7.5vw, 2.35rem) !important;
    line-height: 1.12 !important;
    margin: 0 0 16px !important;
  }

  body.re-home-page .entry-content h3 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
  }

  body.re-home-page .entry-content p {
    font-size: 1rem;
    line-height: 1.62;
    margin-top: 0;
    margin-bottom: 16px;
  }

  body.re-home-page .entry-content .re-section-intro {
    max-width: 100%;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    text-align: left;
  }

  body.re-home-page .entry-content .re-section-intro p {
    margin-bottom: 0;
  }

  body.re-home-page .entry-content .re-home-hero .wp-block-image,
  body.re-home-page .entry-content .re-card .wp-block-image,
  body.re-home-page .entry-content .re-b2b .wp-block-image {
    width: 100%;
    margin: 0 0 16px !important;
  }

  body.re-home-page .entry-content .re-home-hero .wp-block-image img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: 340px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px !important;
  }

  body.re-home-page .entry-content .re-home-hero .wp-block-column:last-child:after {
    display: none;
  }

  body.re-home-page .entry-content .re-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 0 20px !important;
    margin: 0 !important;
    border-radius: 16px;
    overflow: hidden;
  }

  body.re-home-page .entry-content .re-card .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0 !important;
  }

  body.re-home-page .entry-content .re-card h3,
  body.re-home-page .entry-content .re-card p,
  body.re-home-page .entry-content .re-card .re-card-link {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }

  body.re-home-page .entry-content .re-card .re-card-link {
    margin-top: auto !important;
    padding-top: 8px;
  }

  body.re-home-page .entry-content .re-b2b {
    box-sizing: border-box;
    width: 100%;
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }

  body.re-home-page .entry-content .re-b2b h2,
  body.re-home-page .entry-content .re-b2b h3 {
    color: #fffefa !important;
  }

  body.re-home-page .entry-content .re-b2b p {
    color: #e8eee8 !important;
  }

  body.re-home-page .entry-content .re-b2b .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  body.re-home-page .entry-content .wp-block-buttons {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    margin: 20px 0;
  }

  body.re-home-page .entry-content .wp-block-buttons .wp-block-button {
    width: 100%;
    max-width: 360px;
    margin: 0;
  }

  body.re-home-page .entry-content .wp-block-buttons .wp-block-button__link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px !important;
    border-radius: 999px;
    font-size: .92rem !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.re-home-page .entry-content .re-editorial-item {
    border-top: 1px solid var(--re-clay);
    padding: 16px 0 0 !important;
    margin: 0 !important;
  }

  body.re-home-page .entry-content .re-article-links > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.re-home-page .entry-content .re-article-links a {
    box-sizing: border-box;
    padding: 16px 18px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  body.re-home-page .entry-content .re-photo-credit {
    font-size: .72rem !important;
  }

  body.re-home-page .entry-content > *:last-child {
    margin-bottom: 0;
  }

  /* Más presencia para los bloques editoriales sin recargar la portada */
  body.re-home-page .entry-content .re-editorial-item {
    position: relative;
    box-sizing: border-box;
    padding: 18px 18px 20px !important;
    border: 1px solid rgba(185,111,80,.28);
    border-left: 3px solid var(--re-clay);
    border-radius: 0 14px 14px 0;
    background: rgba(255,254,250,.72);
  }

  body.re-home-page .entry-content .re-editorial-item h3 {
    margin-bottom: 9px !important;
  }

  body.re-home-page .entry-content .re-editorial-item p {
    margin-bottom: 14px;
  }

  body.re-home-page .entry-content .re-editorial-item a {
    display: inline-block;
    padding-bottom: 2px;
  }

  /* Compactar y equilibrar el bloque corporativo en pantallas pequeñas */
  body.re-home-page .entry-content .re-b2b .wp-block-columns {
    gap: 18px !important;
  }

  body.re-home-page .entry-content .re-b2b .wp-block-buttons {
    margin: 16px 0 8px;
  }

  body.re-home-page .entry-content .re-b2b .wp-block-image {
    margin: 0 !important;
  }

  body.re-home-page .entry-content .re-b2b .wp-block-image img {
    max-height: 230px;
    border-radius: 14px !important;
  }
}
