/* Related Posts Modern */

.rpm-related-posts {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.rpm-related-posts h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #222;
}

.rpm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.rpm-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rpm-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.rpm-thumb img {
  width: 100%;
  height: clamp(150px, 40vw, 200px);
  object-fit: cover;
  object-position: center 35%;
}


.rpm-info {
  padding: 1rem;
}

.rpm-info h4 {
  font-size: 1.05rem;
  margin: .4rem 0;
  color: #111;
}

.rpm-cat {
  font-size: .8rem;
  font-weight: bold;
  color: #fff;
  background: #ef476f;
  padding: .35rem .7rem;
  border-radius: 20px;
}

/* CONTENEDOR DE LA IMAGEN */
.rpm-thumb {
  width: 100%;
  height: 150px;              /* 👈 AJUSTA AQUÍ LA ALTURA */
  overflow: hidden;
  background: #eee;
}

/* IMAGEN */
.rpm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 🔥 CLAVE */
  display: block;
}



/* Quitar subrayado y heredar color */
.rpm-related-posts a {
  text-decoration: none;
  color: inherit;
}

.rpm-related-posts a:hover {
  text-decoration: none;
}

/* Estilo base */
.rpm-cat {
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 20px;
  color: #fff;
  display: inline-block;
  margin-bottom: .5rem;
}



/* Forzar quitar subrayado en TODA la card */
.rpm-related-posts,
.rpm-related-posts * {
  text-decoration: none !important;
}

.rpm-related-posts a,
.rpm-related-posts a:hover,
.rpm-related-posts a:visited {
  text-decoration: none !important;
  color: inherit;
}

/* TÍTULO EN NEGRITA */
.rpm-info h4 {
  font-weight: 700;        /* Negrita */
  font-size: 1.0rem;      /* Puedes ajustar si quieres más grande */
  margin: 0.3rem 0;
  color: #111;
}

/* EXCERPT PEQUEÑO */
.rpm-excerpt {
  font-size: 0.75rem;      /* Mucho más pequeño */
  line-height: 1.3;        /* Mejor lectura */
  color: #555;             /* Gris suave */
  margin-top: 0.15rem;
  margin-bottom: 0.20rem;
}



.rpm-card {
  position: relative;
  overflow: hidden;
}

.rpm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 100%;
  background: #ccc; /* color por defecto */
}


/* =========================
   ISLAS
========================= */

/* Canarias */
.rpm-cat-canarias { background:#BBDEFB; }
.rpm-card-cat-canarias::before { background:#1E88E5; }

/* Fuerteventura */
.rpm-cat-fuerteventura { background:#B3E5FC; }
.rpm-card-cat-fuerteventura::before { background:#0288D1; }

/* Lanzarote */
.rpm-cat-lanzarote { background:#FFCCBC; }
.rpm-card-cat-lanzarote::before { background:#E64A19; }

/* La Gomera */
.rpm-cat-la-gomera { background:#C8E6C9; }
.rpm-card-cat-la-gomera::before { background:#2E7D32; }

/* Tenerife */
.rpm-cat-tenerife { background:#D1C4E9; }
.rpm-card-cat-tenerife::before { background:#5E35B1; }


/* =========================
   PLAYAS
========================= */

/* Playas de Canarias */
.rpm-cat-playas-de-canarias { background:#B2EBF2; }
.rpm-card-cat-playas-de-canarias::before { background:#00ACC1; }

/* Las mejores Playas de Fuerteventura */
.rpm-cat-las-mejores-playas-de-fuerteventura { background:#80DEEA; }
.rpm-card-cat-las-mejores-playas-de-fuerteventura::before { background:#00838F; }

/* Playas de Antigua */
.rpm-cat-playas-de-antigua { background:#E0F7FA; }
.rpm-card-cat-playas-de-antigua::before { background:#0097A7; }

/* Playas de Betancuria */
.rpm-cat-playas-de-betancuria { background:#B2DFDB; }
.rpm-card-cat-playas-de-betancuria::before { background:#00796B; }

/* Playas de La Oliva */
.rpm-cat-playas-de-la-oliva { background:#B3E5FC; }
.rpm-card-cat-playas-de-la-oliva::before { background:#039BE5; }

/* Playas de Pájara */
.rpm-cat-playas-de-pajara { background:#FFE082; }
.rpm-card-cat-playas-de-pajara::before { background:#FFC107; }

/* Playas de Puerto del Rosario */
.rpm-cat-playas-de-puerto-del-rosario { background:#B2EBF2; }
.rpm-card-cat-playas-de-puerto-del-rosario::before { background:#00BCD4; }

/* Playas de Tuineje */
.rpm-cat-playas-de-tuineje { background:#C5E1A5; }
.rpm-card-cat-playas-de-tuineje::before { background:#7CB342; }


/* =========================
   NATURALEZA / VOLCANES
========================= */

/* Paisajes volcánicos */
.rpm-cat-paisajes-volcanicos { background:#FFAB91; }
.rpm-card-cat-paisajes-volcanicos::before { background:#D84315; }

/* Monumentos Naturales */
.rpm-cat-monumentos-naturales { background:#DCEDC8; }
.rpm-card-cat-monumentos-naturales::before { background:#558B2F; }


/* =========================
   FAROS / MAR
========================= */

/* Faros */
.rpm-cat-faros { background:#CFD8DC; }
.rpm-card-cat-faros::before { background:#455A64; }

/* Faros de Canarias */
.rpm-cat-faros-de-canarias { background:#B0BEC5; }
.rpm-card-cat-faros-de-canarias::before { background:#37474F; }


/* =========================
   CULTURA / HISTORIA
========================= */

/* Esculturas urbanas */
.rpm-cat-esculturas-urbanas { background:#E1BEE7; }
.rpm-card-cat-esculturas-urbanas::before { background:#8E24AA; }

/* Esculturas de Fuerteventura */
.rpm-cat-esculturas-de-fuerteventura { background:#CE93D8; }
.rpm-card-cat-esculturas-de-fuerteventura::before { background:#6A1B9A; }

/* Iglesias y ermitas */
.rpm-cat-iglesias-y-ermitas-de-fuerteventura { background:#FFF9C4; }
.rpm-card-cat-iglesias-y-ermitas-de-fuerteventura::before { background:#FBC02D; }

/* Molinos */
.rpm-cat-molinos { background:#D7CCC8; }
.rpm-card-cat-molinos::before { background:#6D4C41; }

/* Tras la huella de los mahos */
.rpm-cat-tras-la-huella-de-los-mahos { background:#FFE0B2; }
.rpm-card-cat-tras-la-huella-de-los-mahos::before { background:#EF6C00; }

/* Monumentos Lanzarote */
.rpm-cat-monumentoslanzarote { background:#FFCDD2; }
.rpm-card-cat-monumentoslanzarote::before { background:#C62828; }


/* =========================
   ARQUITECTURA / MATERIALES
========================= */

/* Hormigón, Hierro */
.rpm-cat-hormigon-hierro { background:#CFD8DC; }
.rpm-card-cat-hormigon-hierro::before { background:#546E7A; }

/* Mampostería, Madera */
.rpm-cat-mamposteria-madera { background:#D7CCC8; }
.rpm-card-cat-mamposteria-madera::before { background:#5D4037; }

/* Piedra, Cal */
.rpm-cat-piedra-cal { background:#F5F5F5; }
.rpm-card-cat-piedra-cal::before { background:#9E9E9E; }

/* Piedra, Madera */
.rpm-cat-piedra-madera { background:#E0CFC2; }
.rpm-card-cat-piedra-madera::before { background:#795548; }

/* Sillería */
.rpm-cat-silleria { background:#E0E0E0; }
.rpm-card-cat-silleria::before { background:#616161; }


/* =========================
   ACTIVIDADES / OCIO
========================= */

/* Qué hacer en Fuerteventura */
.rpm-cat-que-hacer-en-fuerteventura { background:#C8E6C9; }
.rpm-card-cat-que-hacer-en-fuerteventura::before { background:#388E3C; }

/* Comer en Fuerteventura */
.rpm-cat-comer-en-fuerteventura { background:#FFCDD2; }
.rpm-card-cat-comer-en-fuerteventura::before { background:#D32F2F; }

/* De compras */
.rpm-cat-de-compras-por-fuerteventura { background:#F8BBD0; }
.rpm-card-cat-de-compras-por-fuerteventura::before { background:#C2185B; }

/* Deportes náuticos */
.rpm-cat-deportes-nauticos { background:#B3E5FC; }
.rpm-card-cat-deportes-nauticos::before { background:#0288D1; }

/* Rutas a pie */
.rpm-cat-rutas-a-pie { background:#DCEDC8; }
.rpm-card-cat-rutas-a-pie::before { background:#689F38; }

/* Rutas en bici */
.rpm-cat-rutas-en-bici { background:#C5E1A5; }
.rpm-card-cat-rutas-en-bici::before { background:#558B2F; }

/* Rutas a caballo */
.rpm-cat-rutas-a-caballo { background:#D7CCC8; }
.rpm-card-cat-rutas-a-caballo::before { background:#6D4C41; }

/* Viajar con niños */
.rpm-cat-viajar-con-ninos-en-fuerteventura { background:#FFF176; }
.rpm-card-cat-viajar-con-ninos-en-fuerteventura::before { background:#FBC02D; }


/* =========================
   SENDEROS
========================= */

/* Gran Ruta 131 */
.rpm-cat-gran-ruta-131 { background:#A5D6A7; }
.rpm-card-cat-gran-ruta-131::before { background:#2E7D32; }

/* Pequeñas Rutas */
.rpm-cat-pequenas-rutas { background:#C8E6C9; }
.rpm-card-cat-pequenas-rutas::before { background:#43A047; }

/* Senderos Locales */
.rpm-cat-senderos-locales-sl-fv { background:#E6EE9C; }
.rpm-card-cat-senderos-locales-sl-fv::before { background:#9E9D24; }


/* =========================
   TURISMO GENERAL
========================= */

/* Lugares de interés */
.rpm-cat-lugares-de-interes { background:#BBDEFB; }
.rpm-card-cat-lugares-de-interes::before { background:#1976D2; }

/* Zonas turísticas */
.rpm-cat-zonas-turisticas-de-fuerteventura { background:#B2DFDB; }
.rpm-card-cat-zonas-turisticas-de-fuerteventura::before { background:#00695C; }