/* =============================================
   Latest News / Publicaciones - Royal Masajes
   Rediseñado: fondo claro, cards modernas e interactivas
   ============================================= */

/* ── Sección principal ── */
.rm-news {
    background: #fdf8f5;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo */
.rm-news::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(204,107,142,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.rm-news::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Cabecera ── */
.rm-news__header {
    text-align: center;
    margin-bottom: 52px;
    position: relative;
    z-index: 1;
}

.rm-news__supertag {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #cc6b8e;
    margin-bottom: 12px;
}

.rm-news__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    color: #2c1a0e;
    margin-bottom: 14px;
    line-height: 1.2;
}

.rm-news__sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #888;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 28px;
}

.rm-news__ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cc6b8e;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(204,107,142,0.35);
    padding-bottom: 2px;
    transition: gap 0.25s ease, border-color 0.25s;
}
.rm-news__ver-mas:hover {
    gap: 12px;
    border-color: #cc6b8e;
    color: #cc6b8e;
    text-decoration: none;
}

/* ── Grid de 3 columnas ── */
.rm-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ── Card ── */
.rm-news__card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.rm-news__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}

/* ── Imagen ── */
.rm-news__img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.rm-news__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s ease;
}

.rm-news__card:hover .rm-news__img {
    transform: scale(1.08);
}

/* Overlay en hover */
.rm-news__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,26,14,0.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rm-news__card:hover .rm-news__img-wrap::after {
    opacity: 1;
}

/* Tag sobre la imagen */
.rm-news__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #cc6b8e, #a0455e);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Icono leer más flotante */
.rm-news__img-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc6b8e;
    font-size: 13px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.rm-news__card:hover .rm-news__img-icon {
    opacity: 1;
    transform: scale(1);
}

/* ── Cuerpo del card ── */
.rm-news__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 20px;
    flex: 1;
}

.rm-news__date {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #b8860b;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rm-news__card-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c1a0e;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-news__card:hover .rm-news__card-title {
    color: #cc6b8e;
}

.rm-news__resumen {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.83rem;
    color: #888;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Enlace ── */
.rm-news__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cc6b8e;
    text-decoration: none;
    padding-top: 14px;
    border-top: 1px solid #f0e8e8;
    margin-top: auto;
    transition: gap 0.25s ease, color 0.25s;
}

.rm-news__link:hover {
    gap: 12px;
    color: #a0455e;
    text-decoration: none;
}

.rm-news__link .fa-arrow-right {
    font-size: 9px;
    transition: transform 0.25s ease;
}

.rm-news__link:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .rm-news { padding: 60px 0; }
    .rm-news__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 0 24px; }
}

@media (max-width: 600px) {
    .rm-news { padding: 48px 0; }
    .rm-news__grid { grid-template-columns: 1fr; gap: 22px; padding: 0 16px; }
    .rm-news__title { font-size: 26px; }
}
