/* BetterYou Receta del Mes */
.by-rm-section,
.by-rm-section * {
    box-sizing: border-box;
}

.by-rm-section {
    width: 100%;
    padding: 42px 55px 58px;
    background: #668a8a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* Título general centrado arriba, como en el diseño */
.by-rm-heading {
    margin: 0 0 32px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-transform: uppercase;
}

/* Fila principal: imagen izquierda / contenido derecha */
.by-rm-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 68px;
}

/* Imagen 500 x 500 */
.by-rm-image {
    flex: 0 0 500px;
    width: 500px;
    height: 500px;
    overflow: hidden;
}

.by-rm-image img {
    width: 500px !important;
    height: 500px !important;
    max-width: none !important;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

/* Columna de información */
.by-rm-content {
    flex: 1 1 0;
    width: 100%;
    max-width: 500px;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

/* Título real de la publicación: ej. PANCAKES KETO */
.by-rm-title {
    margin: 0 0 26px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 31px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    text-transform: uppercase;
}

.by-rm-content p {
    margin: 0 0 44px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

.by-rm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 28px;
    background: #CADEDB;
    color: #172929 !important;
    border: 0;
    border-radius: 28px;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    transition: background .25s ease, transform .25s ease;
}

.by-rm-btn:hover,
.by-rm-btn:focus {
    background: #ffffff;
    color: #172929 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.by-rm-empty {
    font-family: 'Montserrat', sans-serif;
}

/* Tablet */
@media (max-width: 1180px) {
    .by-rm-section {
        padding-left: 35px;
        padding-right: 35px;
    }

    .by-rm-container {
        gap: 45px;
    }

    .by-rm-image {
        flex-basis: min(500px, 46vw);
        width: min(500px, 46vw);
        height: min(500px, 46vw);
    }

    .by-rm-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
}

/* Móvil / tablet vertical */
@media (max-width: 820px) {
    .by-rm-section {
        padding: 34px 22px 42px;
    }

    .by-rm-heading {
        margin-bottom: 28px !important;
        font-size: 27px !important;
    }

    .by-rm-container {
        flex-direction: column;
        gap: 30px;
        max-width: 560px;
    }

    .by-rm-image {
        flex: none;
        width: 100%;
        height: auto;
        max-width: 500px;
        aspect-ratio: 1 / 1;
    }

    .by-rm-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }

    .by-rm-content {
        max-width: 500px;
        text-align: center;
    }

    .by-rm-title {
        margin-bottom: 20px !important;
        font-size: 28px !important;
    }

    .by-rm-content p {
        margin-bottom: 30px !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .by-rm-section {
        padding: 28px 16px 34px;
    }

    .by-rm-heading {
        font-size: 23px !important;
    }

    .by-rm-title {
        font-size: 24px !important;
    }

    .by-rm-content p {
        font-size: 14px !important;
    }

    .by-rm-btn {
        min-height: 44px;
        padding: 10px 23px;
        font-size: 14px;
    }
}
