/*
 * Reparación Móvil Blog — diseño 2: el blog vestido como la tienda (reparacionmovil.es).
 * 2026-11-21. Valores medidos en la portada de la tienda: tinta #0f172a, amarillo #ffcb02, paneles piedra #f6f5f2
 * con esquinas de 22 px, tarjetas de 18 px, botones en píldora, Inter 400/600/700, ancho útil de 1296 px.
 * Todo cuelga de body.rpb (lo pone inc/v2.php): con el diseño 1 esta hoja no se carga.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400.woff2) format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600.woff2) format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700.woff2) format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* mientras llega Inter: Arial con las mismas medidas (las de la tienda), para que nada salte */
@font-face { font-family: "Inter Fallback"; font-style: normal; font-weight: 100 499; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"); size-adjust: 105.6%; ascent-override: 91.7%; descent-override: 22.8%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-style: normal; font-weight: 500 649; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"); size-adjust: 101.3%; ascent-override: 95.7%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-style: normal; font-weight: 650 1000; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"); size-adjust: 102.2%; ascent-override: 94.8%; descent-override: 23.6%; line-gap-override: 0%; }

body.rpb {
  --rpb-ink: #0f172a;
  --rpb-yellow: #ffcb02;
  --rpb-stone: #f6f5f2;
  --rpb-stone-2: #efedea;
  --rpb-ring: #e4e1dc;
  --rpb-text: #33302c;
  --rpb-muted: #57534e;
  --rpb-on-ink: #e2e8f0;
  --rpb-soft: rgba(15, 23, 42, 0.08);
  --rpb-link: #0b69f6;
  margin: 0;
  background: #fff;
  color: var(--rpb-text);
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--rpb-ink);
  caret-color: var(--rpb-ink);
}

body.rpb ::selection { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb :focus-visible { outline: 2px solid var(--rpb-ink); outline-offset: 2px; }
body.rpb .rpb-hero :focus-visible,
body.rpb .rpb-yt :focus-visible,
body.rpb .rpb-footer :focus-visible,
body.rpb .rpb-tile:focus-visible,
body.rpb .rpm-single__cta :focus-visible { outline-color: #fff; outline-offset: 3px; }

body.rpb .rpb-wrap { width: min(100% - 24px, 1296px); margin-inline: auto; }
body.rpb .rpb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.rpb .rpb-main :where(h1, h2, h3, p, ul, li),
body.rpb .rpb-header :where(ul, li),
body.rpb .rpb-footer :where(p, ul, li, address) { margin: 0; padding: 0; font-style: normal; }
body.rpb .rpb-main ul, body.rpb .rpb-header ul, body.rpb .rpb-footer ul { list-style: none; }
body.rpb .rpb-main svg, body.rpb .rpb-header svg, body.rpb .rpb-footer svg { flex: 0 0 auto; }

/* el tema padre estrecha y centra main: aquí manda cada sección */
body.rpb main.site-main.rpb-main { width: auto; max-width: none; margin: 0; padding: 0; }

/* ---------- Botones ---------- */
body.rpb .rpb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 16px; line-height: 1.2; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-btn svg { width: 20px; height: 20px; }
body.rpb .rpb-btn--yellow { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb .rpb-btn--yellow:hover, body.rpb .rpb-btn--yellow:focus-visible { background: #fff; color: var(--rpb-ink); }
body.rpb .rpb-btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 600; }
body.rpb .rpb-btn--ghost:hover, body.rpb .rpb-btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.22); color: #fff; }
body.rpb .rpb-btn--ink { min-height: 48px; padding: 0 20px; background: var(--rpb-ink); color: #fff; font-size: 15px; font-weight: 600; }
body.rpb .rpb-btn--ink:hover, body.rpb .rpb-btn--ink:focus-visible { background: var(--rpb-yellow); color: var(--rpb-ink); }

/* ---------- Cabecera ---------- */
body.rpb .rpb-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08); transition: box-shadow 0.2s; }
body.rpb .rpb-header.is-scrolled { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 12px 32px rgba(15, 23, 42, 0.07); }
body.rpb.admin-bar .rpb-header { top: 32px; }
body.rpb .rpb-header__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 12px; }
body.rpb .rpb-logo { display: block; line-height: 0; }
body.rpb .rpb-logo img { display: block; width: 270px; height: auto; }
body.rpb .rpb-search {
  display: flex; align-items: center; gap: 8px; justify-self: center; width: 100%; max-width: 640px; height: 50px;
  padding: 0 5px 0 20px; border-radius: 999px; background: var(--rpb-stone); box-shadow: inset 0 0 0 1px var(--rpb-ring);
}
body.rpb .rpb-search:focus-within { box-shadow: inset 0 0 0 2px var(--rpb-ink); }
body.rpb .rpb-search input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 100%; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--rpb-ink); font-family: inherit; font-size: 16px; outline: 0; -webkit-appearance: none; appearance: none;
}
body.rpb .rpb-search input::placeholder { color: var(--rpb-muted); opacity: 1; }
body.rpb .rpb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
body.rpb .rpb-search button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: var(--rpb-ink); color: #fff; font-family: inherit; font-size: 15px; line-height: 1; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-search button:hover, body.rpb .rpb-search button:focus-visible { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb .rpb-search button svg { width: 18px; height: 18px; }
body.rpb .rpb-shopbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 12px; border-radius: 999px;
  background: var(--rpb-ink); color: #fff; font-size: 15px; line-height: 1; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-shopbtn:hover, body.rpb .rpb-shopbtn:focus-visible { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb .rpb-shopbtn svg { width: 16px; height: 16px; }
body.rpb .rpb-shopbtn__short { display: none; }
body.rpb .rpb-nav { display: flex; align-items: center; height: 50px; }
body.rpb .rpb-nav__list { display: flex; gap: 2px; margin-left: -14px; }
body.rpb .rpb-nav__list a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--rpb-ink); font-size: 15px; line-height: 1.5; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-nav__list a:hover, body.rpb .rpb-nav__list a:focus-visible { background: var(--rpb-stone); color: var(--rpb-ink); }
body.rpb .rpb-nav__list .current-menu-item > a { background: var(--rpb-ink); color: #fff; }

/* ---------- Portada: panel de arriba ---------- */
body.rpb .rpb-hero { margin-top: 20px; }
body.rpb .rpb-hero__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); align-items: center; gap: 48px;
  padding: 44px 28px 44px 56px; border-radius: 22px;
  background: var(--rpb-ink) radial-gradient(rgba(255, 255, 255, 0.055) 1px, rgba(255, 255, 255, 0) 1.5px) 0 0 / 24px 24px;
  color: #fff;
}
body.rpb .rpb-hero__title { color: #fff; font-size: clamp(34px, 3.8vw, 54.72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
body.rpb .rpb-hero__lead { max-width: 44ch; margin-top: 16px; color: var(--rpb-on-ink); font-size: 17px; line-height: 1.5; }
body.rpb .rpb-hero__mark { margin-top: 8px; color: var(--rpb-yellow); font-size: 17px; line-height: 1.5; font-weight: 600; }
body.rpb .rpb-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.rpb .rpb-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
body.rpb .rpb-hero__chips li {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--rpb-on-ink); font-size: 14px; line-height: 1.2; font-weight: 600;
}
body.rpb .rpb-hero__chips svg { width: 15px; height: 15px; color: var(--rpb-yellow); }

body.rpb .rpb-feature { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: 22px; background: #fff; color: var(--rpb-ink); text-decoration: none; }
body.rpb .rpb-feature__img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; background: var(--rpb-stone); overflow: hidden; }
body.rpb .rpb-feature__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.rpb .rpb-feature__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 14px 0; }
body.rpb .rpb-feature__date { color: var(--rpb-muted); font-size: 14px; line-height: 1.3; }
body.rpb .rpb-feature__name { font-size: clamp(20px, 2vw, 27px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
body.rpb .rpb-feature__more {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: 8px; padding: 0 20px; border-radius: 999px;
  background: var(--rpb-ink); color: #fff; font-size: 15px; font-weight: 600; transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-feature:hover .rpb-feature__more, body.rpb .rpb-feature:focus-visible .rpb-feature__more { background: var(--rpb-yellow); color: var(--rpb-ink); }

/* ---------- Secciones ---------- */
body.rpb .rpb-sec { margin-block: 56px; color: var(--rpb-ink); }
body.rpb .rpb-sec__head { margin-bottom: 22px; }
body.rpb .rpb-sec__title { color: var(--rpb-ink); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
body.rpb .rpb-sec__lead { max-width: 70ch; margin-top: 10px; color: var(--rpb-text); font-size: 16px; line-height: 1.55; }
body.rpb .rpb-panel { padding: 34px 36px 36px; border-radius: 22px; background: var(--rpb-stone); }

body.rpb .rpb-head { margin-top: 36px; }
body.rpb .rpb-head__title { color: var(--rpb-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
body.rpb .rpb-head__lead { max-width: 70ch; margin-top: 10px; color: var(--rpb-text); font-size: 16px; line-height: 1.55; }
body.rpb .rpb-head + .rpb-list { margin-top: 28px; }
body.rpb .rpb-empty { color: var(--rpb-text); }

/* ---------- Tarjetas de artículo ---------- */
body.rpb .rpb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.rpb .rpb-grid > li { min-width: 0; }
body.rpb .rpb-card {
  display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; border-radius: 18px;
  background: var(--rpb-stone); color: var(--rpb-ink); text-decoration: none; transition: background-color 0.2s;
}
body.rpb .rpb-card:hover, body.rpb .rpb-card:focus-visible { background: var(--rpb-stone-2); color: var(--rpb-ink); }
body.rpb .rpb-card__img { position: relative; display: grid; place-items: center; flex: 0 0 auto; aspect-ratio: 3 / 2; border-radius: 12px; background: #fff; overflow: hidden; }
body.rpb .rpb-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.rpb .rpb-card__chip { max-width: 86%; padding: 6px 12px; border-radius: 999px; background: var(--rpb-stone); color: var(--rpb-ink); font-size: 13px; line-height: 1.2; font-weight: 600; text-align: center; }
body.rpb .rpb-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 8px 0 10px; }
body.rpb .rpb-card__name { color: inherit; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.rpb .rpb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
body.rpb .rpb-card__date { color: var(--rpb-muted); font-size: 13px; line-height: 1.3; }
body.rpb .rpb-card__go, body.rpb .rpb-topic__go { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--rpb-soft); transition: background-color 0.2s; }
body.rpb .rpb-card__go svg, body.rpb .rpb-topic__go svg { width: 13px; height: 13px; }
body.rpb .rpb-card:hover .rpb-card__go, body.rpb .rpb-card:focus-visible .rpb-card__go,
body.rpb .rpb-topic:hover .rpb-topic__go, body.rpb .rpb-topic:focus-visible .rpb-topic__go { background: var(--rpb-yellow); }

/* la última casilla de la portada: lleva a los precios de la tienda */
body.rpb .rpb-tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-height: 220px; padding: 26px 24px 24px; border-radius: 18px;
  background: var(--rpb-ink) radial-gradient(rgba(255, 255, 255, 0.055) 1px, rgba(255, 255, 255, 0) 1.5px) 0 0 / 24px 24px;
  color: #fff; text-decoration: none;
}
body.rpb .rpb-tile__title { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
body.rpb .rpb-tile__text { max-width: 30ch; color: var(--rpb-on-ink); font-size: 16px; line-height: 1.5; }
body.rpb .rpb-tile__more {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 16px 0 20px; border-radius: 999px;
  background: var(--rpb-yellow); color: var(--rpb-ink); font-size: 15px; font-weight: 700; transition: background-color 0.2s;
}
body.rpb .rpb-tile__more svg { width: 14px; height: 14px; }
body.rpb .rpb-tile:hover .rpb-tile__more, body.rpb .rpb-tile:focus-visible .rpb-tile__more { background: #fff; }

/* ---------- Paginación ---------- */
body.rpb .rpb-pager { margin-top: 32px; }
body.rpb .rpb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body.rpb .rpb-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--rpb-soft); color: var(--rpb-ink); font-size: 15px; line-height: 1; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s;
}
body.rpb .rpb-pager a.page-numbers:hover, body.rpb .rpb-pager a.page-numbers:focus-visible { background: var(--rpb-ink); color: #fff; }
body.rpb .rpb-pager .page-numbers.current { background: var(--rpb-ink); color: #fff; }
body.rpb .rpb-pager .page-numbers.dots { min-width: 0; padding: 0 4px; background: none; }
body.rpb .rpb-pager svg { width: 14px; height: 14px; }

/* ---------- Temas ---------- */
body.rpb .rpb-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
body.rpb .rpb-topic {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; min-height: 104px; padding: 18px 56px 18px 20px;
  border-radius: 16px; background: #fff; color: var(--rpb-ink); text-decoration: none;
}
body.rpb .rpb-topic__name { font-size: 18px; line-height: 1.25; font-weight: 700; }
body.rpb .rpb-topic__count { color: var(--rpb-muted); font-size: 14px; line-height: 1.3; }
body.rpb .rpb-topic__go { position: absolute; top: 16px; right: 16px; }

/* ---------- Google ---------- */
body.rpb .rpb-google__panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; }
body.rpb .rpb-google__score { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 132px; padding: 20px 22px; border-radius: 16px; background: #fff; }
body.rpb .rpb-google__score strong { color: var(--rpb-ink); font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
body.rpb .rpb-stars { display: inline-flex; gap: 2px; color: var(--rpb-yellow); }
body.rpb .rpb-stars svg { width: 18px; height: 18px; }

/* ---------- YouTube ---------- */
body.rpb .rpb-yt__panel { padding: 44px 48px 48px; border-radius: 22px; background: var(--rpb-ink); color: #fff; }
body.rpb .rpb-yt__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; margin-bottom: 28px; }
body.rpb .rpb-yt .rpb-sec__title { color: #fff; }
body.rpb .rpb-yt .rpb-sec__lead { color: var(--rpb-on-ink); }
body.rpb .rpb-yt__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.rpb .rpb-yt__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.rpb .rpb-yt__item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
body.rpb .rpb-yt__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; background: #000; overflow: hidden; cursor: pointer; }
body.rpb .rpb-yt__media img, body.rpb .rpb-yt__media iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border: 0; object-fit: cover; }
body.rpb .rpb-yt__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: #fff; color: var(--rpb-ink); transition: background-color 0.2s; }
body.rpb .rpb-yt__play svg { width: 26px; height: 26px; }
body.rpb .rpb-yt__media:hover .rpb-yt__play, body.rpb .rpb-yt__media:focus-visible .rpb-yt__play { background: var(--rpb-yellow); }
body.rpb .rpb-yt__media.is-playing img, body.rpb .rpb-yt__media.is-playing .rpb-yt__play { display: none; }
body.rpb .rpb-yt__name { color: #fff; font-size: 16px; line-height: 1.35; font-weight: 600; }
body.rpb .rpb-yt__name a { color: #fff; text-decoration: none; transition: color 0.15s; }
body.rpb .rpb-yt__name a:hover, body.rpb .rpb-yt__name a:focus-visible { color: var(--rpb-yellow); }

/* ---------- Pie (el de la tienda) ---------- */
body.rpb .rpb-footer { margin-top: 72px; padding-bottom: 40px; background: var(--rpb-ink); color: #d6d3d1; font-size: 15px; line-height: 1.5; }
body.rpb .rpb-footer a { color: #f5f5f4; text-decoration: none; transition: color 0.15s; }
body.rpb .rpb-footer a:hover, body.rpb .rpb-footer a:focus-visible { color: var(--rpb-yellow); }
body.rpb .rpb-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 44px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
body.rpb .rpb-footer__cta-t { color: #fff; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
body.rpb .rpb-footer__cta-t span { display: block; color: var(--rpb-yellow); }
body.rpb .rpb-footer__cta-b { display: flex; flex-wrap: wrap; gap: 10px; }
body.rpb .rpb-footer .rpb-btn--yellow { color: var(--rpb-ink); }
body.rpb .rpb-footer .rpb-btn--yellow:hover, body.rpb .rpb-footer .rpb-btn--yellow:focus-visible { background: #fff; color: var(--rpb-ink); }
body.rpb .rpb-footer .rpb-btn--ghost, body.rpb .rpb-footer .rpb-btn--ghost:hover, body.rpb .rpb-footer .rpb-btn--ghost:focus-visible { color: #fff; }
body.rpb .rpb-footer__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 36px 32px; padding: 44px 0 40px; }
body.rpb .rpb-footer__logo { display: inline-block; line-height: 0; }
body.rpb .rpb-footer__logo img { display: block; width: 230px; height: auto; }
body.rpb .rpb-footer__about { max-width: 34ch; margin-top: 18px; }
body.rpb .rpb-footer__social { display: flex; gap: 8px; margin-top: 18px; }
body.rpb .rpb-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color 0.2s, color 0.2s; }
body.rpb .rpb-footer__social a:hover, body.rpb .rpb-footer__social a:focus-visible { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb .rpb-footer__social svg { width: 20px; height: 20px; }
body.rpb .rpb-footer__h { margin-bottom: 14px; color: #fff; font-size: 16px; font-weight: 700; }
body.rpb .rpb-footer__links li + li { margin-top: 9px; }
body.rpb .rpb-footer__shop + .rpb-footer__shop { margin-top: 18px; }
body.rpb .rpb-footer__shop b { display: block; color: #fff; font-weight: 600; }
body.rpb .rpb-footer__shop a { font-weight: 600; }
body.rpb .rpb-footer__mail { display: inline-block; margin-top: 18px; }
body.rpb .rpb-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }
body.rpb .rpb-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Artículo (misma ropa que el resto) ---------- */
body.rpb main.site-main.rpm-single { display: block; width: min(100% - 24px, 820px); max-width: 820px; margin: 36px auto 0; padding: 0; }
body.rpb .rpm-single__header { margin: 0 0 24px; }
body.rpb .rpm-single__kicker { margin: 0 0 14px; }
body.rpb .rpm-single__kicker a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; background: var(--rpb-soft); color: var(--rpb-ink); font-size: 14px; line-height: 1.2; font-weight: 600; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
body.rpb .rpm-single__kicker a:hover, body.rpb .rpm-single__kicker a:focus-visible { background: var(--rpb-ink); color: #fff; }
body.rpb .rpm-single__title { margin: 0 0 12px; color: var(--rpb-ink); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
body.rpb .rpm-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--rpb-muted); font-size: 14px; }
body.rpb .rpm-single__media { margin: 0 0 32px; border-radius: 22px; background: var(--rpb-stone); overflow: hidden; }
body.rpb .rpm-single__image { display: block; width: 100%; height: auto; }
body.rpb .rpm-single__content { color: var(--rpb-text); font-size: 17px; line-height: 1.7; }
body.rpb .rpm-single__content > *:first-child { margin-top: 0; }
body.rpb .rpm-single__content p { margin: 0 0 1.15em; }
body.rpb .rpm-single__content h2, body.rpb .rpm-single__content h3, body.rpb .rpm-single__content h4 { margin: 2.1em 0 0.6em; color: var(--rpb-ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
body.rpb .rpm-single__content h2 { font-size: clamp(23px, 2.6vw, 28px); }
body.rpb .rpm-single__content h3 { font-size: 21px; }
body.rpb .rpm-single__content h4 { font-size: 18px; }
body.rpb .rpm-single__content a { color: var(--rpb-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rpb-yellow); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
body.rpb .rpm-single__content a:hover, body.rpb .rpm-single__content a:focus-visible { text-decoration-color: var(--rpb-ink); }
body.rpb .rpm-single__content ul, body.rpb .rpm-single__content ol { margin: 0 0 1.25em; padding-left: 1.3em; }
body.rpb .rpm-single__content li { margin: 0 0 0.45em; }
body.rpb .rpm-single__content img, body.rpb .rpm-single__content figure { max-width: 100%; height: auto; border-radius: 14px; }
body.rpb .rpm-single__content blockquote { margin: 1.6em 0; padding: 20px 22px; border: 0; border-radius: 16px; background: var(--rpb-stone); color: var(--rpb-ink); }
/* recuadro de enlaces a las fichas que llevan los artículos (clase rpsl-box): mismo material que el resto */
body.rpb .rpm-single__content .rpsl-box { margin: 1.8em 0 0; padding: 20px 22px 8px; border: 0; border-radius: 16px; background: var(--rpb-stone); color: var(--rpb-ink); }
body.rpb .rpm-single__content .rpsl-box .rpsl-t { margin: 0 0 10px; color: var(--rpb-ink); font-weight: 700; }
body.rpb .rpm-single__content table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
body.rpb .rpm-single__content th, body.rpb .rpm-single__content td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--rpb-ring); text-align: left; }
body.rpb .rpm-single__content th { color: var(--rpb-ink); font-weight: 700; }
body.rpb .rpm-single__tags { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rpb-ring); color: var(--rpb-muted); font-size: 15px; }
body.rpb .rpm-single__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: 40px 0 0; padding: 30px 32px; border-radius: 22px;
  background: var(--rpb-ink) radial-gradient(rgba(255, 255, 255, 0.055) 1px, rgba(255, 255, 255, 0) 1.5px) 0 0 / 24px 24px; color: #fff;
}
body.rpb .rpm-single__cta-brand { margin: 0 0 4px; color: #fff; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
body.rpb .rpm-single__cta-text { margin: 0; color: var(--rpb-on-ink); font-size: 16px; }
body.rpb .rpm-single__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.rpb .rpm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 16px; line-height: 1.2; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
body.rpb .rpm-btn--primary { background: var(--rpb-yellow); color: var(--rpb-ink); }
body.rpb .rpm-btn--primary:hover, body.rpb .rpm-btn--primary:focus-visible { background: #fff; color: var(--rpb-ink); }
body.rpb .rpm-btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 600; }
body.rpb .rpm-btn--ghost:hover, body.rpb .rpm-btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.22); color: #fff; }
body.rpb .rpm-single__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
body.rpb .rpm-single__nav-link { display: flex; flex-direction: column; gap: 6px; min-height: 84px; padding: 16px 20px; border-radius: 18px; background: var(--rpb-stone); color: var(--rpb-ink); text-decoration: none; transition: background-color 0.2s; }
body.rpb .rpm-single__nav-link:hover, body.rpb .rpm-single__nav-link:focus-visible { background: var(--rpb-stone-2); color: var(--rpb-ink); }
body.rpb .rpm-single__nav-link--next { align-items: flex-end; text-align: right; }
body.rpb .rpm-single__nav-link--empty { background: none; pointer-events: none; }
body.rpb .rpm-single__nav-label { color: var(--rpb-muted); font-size: 13px; line-height: 1.3; }
body.rpb .rpm-single__nav-title { font-size: 16px; line-height: 1.3; font-weight: 700; }
body.rpb .comments-area, body.rpb #comments, body.rpb #respond { display: none !important; }

/* páginas que pinta el tema padre (404 y demás) */
body.rpb main.site-main:not(.rpb-main):not(.rpm-single) { width: min(100% - 24px, 820px); max-width: 820px; margin: 48px auto 0; padding: 0; color: var(--rpb-text); }
body.rpb main.site-main:not(.rpb-main):not(.rpm-single) .entry-title { color: var(--rpb-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
body.rpb main.site-main:not(.rpb-main):not(.rpm-single) a { color: var(--rpb-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rpb-yellow); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1199.98px) {
  body.rpb .rpb-hero__panel { gap: 32px; padding: 36px 24px 36px 36px; }
  body.rpb .rpb-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
  body.rpb .rpb-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; }
  body.rpb .rpb-footer__about { max-width: 60ch; margin-top: 0; }
  body.rpb .rpb-footer__social { margin-top: 0; }
  body.rpb .rpb-footer__shops { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  body.rpb .rpb-footer__shops .rpb-footer__h { grid-column: 1 / -1; }
  body.rpb .rpb-footer__shop + .rpb-footer__shop { margin-top: 0; }
  body.rpb .rpb-footer__mail { align-self: start; margin-top: 0; }
}

@media (max-width: 1099.98px) {
  body.rpb .rpb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rpb .rpb-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rpb .rpb-google__panel { grid-template-columns: auto minmax(0, 1fr); }
  body.rpb .rpb-google__panel .rpb-btn { grid-column: 2; justify-self: start; }
  body.rpb .rpb-yt__panel { padding: 34px 32px 36px; }
}

@media (max-width: 991.98px) {
  body.rpb .rpb-header__top { gap: 16px; }
  body.rpb .rpb-logo img { width: 210px; }
  body.rpb .rpb-shopbtn__long { display: none; }
  body.rpb .rpb-shopbtn__short { display: inline; }
  body.rpb .rpb-hero__panel { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 24px; }
  body.rpb .rpb-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; padding: 10px; }
  body.rpb .rpb-feature__body { padding: 8px 14px 8px 20px; }
  body.rpb .rpb-sec { margin-block: 44px; }
  body.rpb .rpb-yt__head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 782px) {
  body.rpb.admin-bar .rpb-header { top: 46px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767.98px) {
  /* en el móvil la cabecera ocupa tres filas: no se queda pegada, para dejar sitio a la lectura */
  body.rpb .rpb-header, body.rpb.admin-bar .rpb-header { position: static; }
  body.rpb .rpb-header__top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding-block: 10px; }
  body.rpb .rpb-logo img { width: 188px; }
  body.rpb .rpb-search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 46px; padding: 0 4px 0 16px; }
  body.rpb .rpb-search button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  body.rpb .rpb-search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.rpb .rpb-shopbtn { height: 42px; padding: 0 16px 0 10px; font-size: 14px; }
  body.rpb .rpb-nav { height: 48px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.rpb .rpb-nav::-webkit-scrollbar { display: none; }
  body.rpb .rpb-nav__list { margin-left: -12px; padding-right: 12px; }
  body.rpb .rpb-nav__list a { padding: 0 12px; }

  body.rpb .rpb-hero { margin-top: 12px; }
  body.rpb .rpb-hero__panel { gap: 26px; padding: 28px 18px 18px; border-radius: 20px; }
  body.rpb .rpb-hero__title { font-size: clamp(31px, 8.6vw, 38px); }
  body.rpb .rpb-hero__lead, body.rpb .rpb-hero__mark { font-size: 16px; }
  body.rpb .rpb-hero__actions { margin-top: 22px; }
  body.rpb .rpb-hero__actions .rpb-btn { flex: 1 1 auto; padding: 0 16px; }
  body.rpb .rpb-hero__chips { margin-top: 22px; }
  body.rpb .rpb-feature { display: flex; align-items: stretch; padding: 10px 10px 20px; border-radius: 18px; }
  body.rpb .rpb-feature__body { padding: 18px 10px 0; }
  body.rpb .rpb-feature__name { font-size: 21px; }

  body.rpb .rpb-sec { margin-block: 36px; }
  body.rpb .rpb-sec__head { margin-bottom: 18px; padding-inline: 6px; }
  body.rpb .rpb-sec__lead { font-size: 15px; }
  body.rpb .rpb-head { margin-top: 26px; padding-inline: 6px; }
  body.rpb .rpb-panel { padding: 24px 16px 16px; border-radius: 20px; }
  body.rpb .rpb-panel > .rpb-sec__title { padding-inline: 6px; }

  /* lista compacta, como «Consejos de nuestros técnicos» en la portada de la tienda */
  body.rpb .rpb-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.rpb .rpb-card { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; }
  body.rpb .rpb-card__img { flex: 0 0 94px; height: 100px; aspect-ratio: auto; }
  body.rpb .rpb-card__img img { top: -9%; left: 0; width: auto; height: 118%; transform: translateX(-5.1%); object-fit: fill; }
  body.rpb .rpb-card__body { gap: 5px; padding: 0; }
  body.rpb .rpb-card__name { font-size: 15.5px; }
  body.rpb .rpb-card__go { display: none; }
  body.rpb .rpb-card__foot { margin-top: 0; padding-top: 0; }
  body.rpb .rpb-tile { min-height: 0; padding: 24px 20px 20px; border-radius: 16px; }
  body.rpb .rpb-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 13px; }

  body.rpb .rpb-topics__grid { gap: 10px; margin-top: 18px; }
  body.rpb .rpb-topic { min-height: 92px; padding: 16px 48px 14px 16px; }
  body.rpb .rpb-topic__name { font-size: 16.5px; }
  body.rpb .rpb-topic__go { top: 12px; right: 12px; }

  body.rpb .rpb-google__panel { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  body.rpb .rpb-google__score { flex-direction: row; justify-content: center; gap: 14px; padding: 16px; }
  body.rpb .rpb-google__copy { padding-inline: 6px; }
  body.rpb .rpb-google__panel .rpb-btn { grid-column: 1; justify-self: stretch; margin: 0 6px 6px; }

  body.rpb .rpb-yt__panel { padding: 28px 16px 18px; border-radius: 20px; }
  body.rpb .rpb-yt__head { margin-bottom: 22px; padding-inline: 6px; }
  body.rpb .rpb-yt__actions .rpb-btn { flex: 1 1 auto; padding: 0 16px; }
  body.rpb .rpb-yt__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.rpb .rpb-yt__name { padding-inline: 6px; }

  body.rpb .rpb-footer { margin-top: 48px; padding-bottom: 32px; }
  body.rpb .rpb-footer__cta { padding: 34px 0 30px; }
  body.rpb .rpb-footer__cta-b { width: 100%; }
  body.rpb .rpb-footer__cta-b .rpb-btn { flex: 1 1 auto; padding: 0 16px; }
  body.rpb .rpb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding: 32px 0 30px; }
  body.rpb .rpb-footer__brand { display: block; }
  body.rpb .rpb-footer__about { margin-top: 16px; }
  body.rpb .rpb-footer__social { margin-top: 16px; }
  body.rpb .rpb-footer__shops { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  body.rpb main.site-main.rpm-single { margin-top: 24px; }
  body.rpb .rpm-single__media { border-radius: 18px; margin-bottom: 24px; }
  body.rpb .rpm-single__cta { padding: 24px 20px; border-radius: 20px; }
  body.rpb .rpm-single__cta-actions { width: 100%; }
  body.rpb .rpm-single__cta-actions .rpm-btn { flex: 1 1 auto; padding: 0 16px; }
  body.rpb .rpm-single__nav { grid-template-columns: minmax(0, 1fr); }
  body.rpb .rpm-single__nav-link--next { align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  body.rpb.admin-bar .rpb-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.rpb *, body.rpb *::before, body.rpb *::after { transition-duration: 0.01ms !important; }
}
