/*
 * Réplica de la página de resultados de Google (2026), comparada con capturas reales
 * (_brief/ref/serp-*). Colores y medidas de la interfaz real: título 20/26 px
 * (#1a0dab en escritorio, #1558d6 en móvil), fragmento 14/22 px, favicon en círculo de
 * 26 px, caja de búsqueda redonda, bandas grises de 8 px entre tarjetas en móvil.
 * Teléfono por debajo de 560 px de escenario; ventana de Chrome por encima.
 * Prefijo `sp-` (y raíz `.serp`) para no chocar con otras réplicas.
 *
 * Alturas fijas (títulos, fragmentos, fichas) para que el desplazamiento final que
 * declara cada variante (--serp-final-d / -m) caiga siempre en el mismo sitio.
 */

.serp {
  --sp-pad: 16px;
  --sp-link: #1558d6;
  --sp-text: #1f1f1f;
  --sp-text-2: #4d5156;
  --sp-text-3: #5e5e5e;
  --sp-open: #146c2e;
  --sp-band: #e8eaed;
  --sp-line: #dadce0;
  --sp-pill: #f1f3f4;
  --sp-top-h: 0px;
  --serp-scroll: var(--serp-final-m);
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  font-family: var(--g-font);
  color: var(--sp-text);
}

/* ---------- Cabecera (en móvil se va con la página; en escritorio queda fija) ---------- */
.sp-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 116px;
  padding: 0 var(--sp-pad);
  background: #fff;
  transform: translate3d(0, calc(-1 * var(--serp-scroll)), 0);
  will-change: transform;
}
.sp-logo {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  height: 56px;
  display: flex;
  align-items: center;
  font: 500 30px/1 var(--g-font-ui);
  letter-spacing: -1.3px;
  white-space: nowrap;
}
.sp-logo b {
  font-weight: inherit;
}
.sp-logo .lg-b {
  color: var(--g-blue);
}
.sp-logo .lg-r {
  color: var(--g-red);
}
.sp-logo .lg-y {
  color: var(--g-yellow);
}
.sp-logo .lg-g {
  color: var(--g-green);
}
.sp-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #444746;
}
.sp-right svg {
  width: 24px;
  height: 24px;
}
.sp-share,
.sp-apps {
  display: none !important;
}
.sp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8d6e63;
  box-shadow: inset 0 -11px 0 #6d4c41;
}
.sp-box {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 14px;
  padding: 0 12px 0 14px;
  border-radius: 23px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.03),
    0 2px 8px rgb(32 33 36 / 0.2);
}
.sp-box-lead {
  flex: none;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #70757a;
}
/* El texto largo se recorta por la izquierda, como un campo con el cursor al final. */
.sp-q {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: safe flex-end;
  direction: rtl;
  overflow: hidden;
  font: 16px/24px var(--g-font);
  color: var(--sp-text);
  white-space: nowrap;
}
.sp-q-in {
  direction: ltr;
  display: flex;
  align-items: center;
  flex: none;
}
.sp-caret {
  display: block;
  width: 1px;
  height: 20px;
  margin-left: 1px;
  background: var(--sp-text);
}
.sp-box-ico {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  color: #70757a;
}
.sp-box-ico svg {
  width: 24px;
  height: 24px;
}
.sp-x,
.sp-sep {
  display: none !important;
}
.sp-sep {
  width: 1px;
  height: 24px;
  background: var(--sp-line);
}

/* Sugerencias de autocompletado */
.sp-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  margin-top: -23px;
  padding: 29px 0 8px;
  background: #fff;
  border-radius: 0 0 23px 23px;
  box-shadow: 0 6px 10px -2px rgb(32 33 36 / 0.28);
}
.sp-suggest::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 16px;
  right: 16px;
  border-top: 1px solid var(--g-divider);
}
.sp-sug {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 16px;
  font: 16px/1 var(--g-font);
  color: var(--sp-text);
  white-space: nowrap;
  overflow: hidden;
}
.sp-sug svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #9aa0a6;
}
.sp-sug-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-sug b {
  font-weight: 700;
}
.sp-top-sh {
  display: none;
}

/* ---------- Página ---------- */
.sp-view {
  position: absolute;
  inset: var(--sp-top-h) 0 0;
  overflow: hidden;
}
.sp-page {
  position: relative;
  padding-top: 116px;
  padding-bottom: 60px;
  transform: translate3d(0, calc(-1 * var(--serp-scroll)), 0);
  will-change: transform;
}

/* Pestañas */
.sp-tabs {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: 44px;
  padding: 0 var(--sp-pad);
  border-bottom: 1px solid #d2d2d2;
  font: 15px/1 var(--g-font-ui);
  color: #5e5e5e;
  white-space: nowrap;
  overflow: hidden;
}
.sp-tab {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}
.sp-tab-on {
  color: var(--sp-text);
}
.sp-tab-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sp-text);
}
.sp-tab-d {
  display: none;
}
.sp-caret-dn {
  width: 0;
  height: 0;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

/* Tarjetas (en móvil, separadas por bandas grises) */
.sp-card,
.sp-r {
  position: relative;
  background: #fff;
}
.sp-card + .sp-card,
.sp-results > *,
.sp-results + .sp-card {
  border-top: 8px solid var(--sp-band);
}

/* Ubicación */
.sp-loc {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--sp-pad);
  font: 15px/1 var(--g-font);
  color: var(--sp-text-3);
}
.sp-loc b {
  color: #3c4043;
}
.sp-loc-pin {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #3c4043;
}
.sp-loc-dot {
  margin: 0 6px;
}
.sp-link {
  color: var(--sp-link);
}
.sp-loc .sp-kebab {
  margin-left: auto;
  width: 20px;
  height: 20px;
}

/* Encabezados de bloque («Empresas», «Más preguntas») */
.sp-h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font: 18px/24px var(--g-font-ui);
  color: var(--sp-text);
}
.sp-h2 .sp-kebab {
  width: 20px;
  height: 20px;
}

/* ---------- Resultado orgánico ---------- */
.sp-r {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 16px var(--sp-pad) 18px;
}
.sp-r > * {
  grid-column: 1;
}
.sp-src {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  min-width: 0;
}
.sp-fav {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dadce0;
  font: 700 13px/1 var(--g-font-ui);
}
.sp-src-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sp-site {
  font: 14px/18px var(--g-font);
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-url {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 12px/16px var(--g-font);
  color: var(--sp-text-2);
  white-space: nowrap;
  min-width: 0;
}
.sp-url > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-kebab {
  flex: none;
  width: 18px;
  height: 18px;
  color: #474747;
}
/* En móvil el ⋮ va al borde derecho de la tarjeta. */
.sp-r .sp-url .sp-kebab {
  position: absolute;
  top: 21px;
  right: 10px;
}
.sp-r-thumb .sp-url .sp-kebab {
  right: 10px;
}
.sp-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 52px;
  margin-top: 10px;
  font: 20px/26px var(--g-font);
  color: var(--sp-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sp-title-ul {
  text-decoration-line: underline;
}
.sp-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-top: 6px;
  font: 14px/20px var(--g-font);
  color: var(--sp-text-3);
  white-space: nowrap;
}
.sp-stars {
  display: inline-flex;
  color: var(--g-star);
  vertical-align: -2px;
}
.sp-stars svg {
  width: 14px;
  height: 14px;
}
.sp-open {
  color: var(--sp-open);
}
.sp-meta {
  height: 20px;
  margin-top: 2px;
  font: 14px/20px var(--g-font);
  color: var(--sp-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-snip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  height: 60px;
  margin-top: 6px;
  font: 14px/20px var(--g-font);
  color: var(--sp-text-2);
}
.sp-rating ~ .sp-snip {
  -webkit-line-clamp: 2;
  height: 40px;
}
.sp-snip b {
  font-weight: 700;
  color: #5f6368;
}
.sp-date {
  color: #70757a;
}
.sp-thumb {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
}
.sp-r-thumb {
  grid-template-columns: minmax(0, 1fr) 80px;
  column-gap: 14px;
}
.sp-r-thumb > .sp-src,
.sp-r-thumb > .sp-title {
  grid-column: 1 / -1;
}
.sp-r-thumb > .sp-thumb {
  grid-column: 2;
  grid-row: 3 / span 3;
  margin-top: 8px;
  align-self: start;
}
.sp-r-thumb > .sp-snip {
  -webkit-line-clamp: 4;
  height: 80px;
}
.sp-r-thumb > .sp-rating ~ .sp-snip {
  -webkit-line-clamp: 3;
  height: 60px;
}

/* Resultado del cliente: la versión «antes» encima, el relevo es un fundido. */
.sp-client {
  position: relative;
  z-index: 2;
}
.sp-client-before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-top-color: transparent !important;
}

/* ---------- Bloque local «Empresas» ---------- */
.sp-pack {
  padding: 0 var(--sp-pad) 16px;
}
.sp-pack > .sp-h2 {
  border-bottom: 1px solid var(--sp-line);
}
.sp-gsrc {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 66px;
}
.sp-gsrc-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.sp-gsrc-logo svg {
  width: 30px;
  height: 30px;
}
.sp-gsrc .sp-src-text {
  flex: 1;
}
.sp-gsrc .sp-site {
  font: 16px/22px var(--g-font);
}
.sp-gsrc .sp-url {
  font-size: 12px;
}
.sp-round {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sp-pill);
  color: #474747;
}
.sp-round svg {
  width: 20px;
  height: 20px;
}
.sp-round-up {
  transform: rotate(180deg);
}
.sp-map {
  position: relative;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f0e5;
}
.sp-map-art {
  display: block;
  width: 100%;
  height: 100%;
}
.sp-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px 0 3px;
  margin: -26px 0 0 -12px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(60 64 67 / 0.35);
  font: 12px/1 var(--g-font);
  color: #3c4043;
  white-space: nowrap;
  transform-origin: 12px 100%;
}
.sp-pin::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -4px;
  border: 4px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.sp-pin i {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: #ea4335;
  transform: rotate(-45deg);
  box-shadow: inset 0 0 0 4.5px #ea4335, inset 0 0 0 8px #fff;
}
.sp-map-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3c4043;
  color: #fff;
  opacity: 0.9;
}
.sp-map-expand svg {
  width: 18px;
  height: 18px;
}
.sp-map-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 8px;
  background: rgb(255 255 255 / 0.85);
  font: 10px/14px var(--g-font);
  color: #3c4043;
}
.sp-places {
  margin-top: 4px;
}
.sp-place {
  position: relative;
  display: flex;
  gap: 14px;
  height: 120px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sp-line);
  background: #fff;
}
.sp-place-slot {
  position: relative;
}
.sp-place-slot > .sp-place {
  border-bottom: 0;
}
.sp-place-old {
  position: absolute;
  inset: 0;
}
.sp-place-photo {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 8px;
}
.sp-place-body {
  min-width: 0;
  flex: 1;
  font: 14px/20px var(--g-font);
  color: var(--sp-text-3);
}
.sp-place-name {
  font: 16px/22px var(--g-font);
  color: var(--sp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-place-line {
  height: 20px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-place-line .sp-stars svg {
  width: 13px;
  height: 13px;
}
.sp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  margin-top: 12px;
  border-radius: 22px;
  background: var(--sp-pill);
  font: 500 15px/1 var(--g-font-ui);
  color: var(--sp-text);
}
.sp-pill svg {
  width: 18px;
  height: 18px;
}
.sp-pill svg:last-child:not(:first-child) {
  color: #474747;
}
.sp-more {
  margin: 0 var(--sp-pad);
  border-top: 0 !important;
}

/* ---------- Vista creada con IA ---------- */
.sp-ai {
  padding: 4px var(--sp-pad) 0;
}
.sp-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  font: 500 15px/20px var(--g-font-ui);
  color: var(--sp-text);
}
.sp-ai-head > svg:first-child {
  width: 20px;
  height: 20px;
}
.sp-ai-head .sp-kebab {
  margin-left: auto;
}
.sp-ai-text {
  position: relative;
  display: grid;
}
.sp-ai-ans {
  grid-area: 1 / 1;
  font: 16px/24px var(--g-font);
  color: var(--sp-text);
}
.sp-ai-ans p,
.sp-ai-ans ul {
  margin: 0;
  padding: 0;
}
.sp-ai-ans ul {
  margin-top: 8px;
  list-style: none;
}
.sp-ai-ans li {
  position: relative;
  padding-left: 20px;
}
.sp-ai-ans li + li {
  margin-top: 6px;
}
.sp-ai-ans li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sp-text);
}
.sp-ai-ans b {
  font-weight: 700;
}
.sp-ai-load {
  position: absolute;
  inset: 4px 0 auto;
  display: grid;
  gap: 12px;
}
.sp-ai-load i {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: #e3e8f4;
}
.sp-ai-load i:nth-child(2) {
  width: 88%;
}
.sp-ai-load i:nth-child(3) {
  width: 64%;
  margin-bottom: 14px;
}
.sp-ai-load i:nth-child(5) {
  width: 92%;
}
.sp-ai-load i:nth-child(6) {
  width: 48%;
}
.sp-ai-srcs {
  display: flex;
  gap: 8px;
  margin: 2px calc(-1 * var(--sp-pad)) 0 -6px;
  padding: 12px 0 6px 6px;
  overflow: hidden;
}
.sp-ai-src {
  position: relative;
  flex: 0 0 168px;
  height: 84px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--sp-line);
}
.sp-ai-src-in {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}
.sp-ai-src-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font: 14px/19px var(--g-font);
  color: var(--sp-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sp-ai-src-site {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 12px/1 var(--g-font);
  color: var(--sp-text-2);
  white-space: nowrap;
}
.sp-ai-src-site .sp-fav {
  width: 16px;
  height: 16px;
  font-size: 9px;
}
.sp-ai-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin: 8px calc(-1 * var(--sp-pad)) 0;
  border-top: 1px solid var(--sp-line);
  font: 500 14px/1 var(--g-font-ui);
  color: var(--sp-text);
}
.sp-ai-more svg {
  width: 18px;
  height: 18px;
}

/* ---------- Más preguntas ---------- */
.sp-paa {
  padding: 0 var(--sp-pad) 8px;
}
.sp-paa-q0 {
  position: relative;
}
.sp-paa-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sp-line);
  background: #fff;
  font: 16px/22px var(--g-font);
  color: var(--sp-text);
}
.sp-paa-row > span:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sp-paa-q0 .sp-paa-row {
  border-bottom: 0;
}
.sp-paa-panel {
  padding: 4px 0 18px;
}
.sp-paa-ans {
  font: 15px/22px var(--g-font);
  color: var(--sp-text);
}
.sp-paa-ans b {
  font-weight: 400;
  background: #d3e3fd;
  border-radius: 3px;
  padding: 0 2px;
}
.sp-paa-panel .sp-src {
  margin-top: 14px;
}
.sp-paa-panel .sp-kebab {
  display: none;
}
.sp-paa-link {
  margin-top: 6px;
  font: 18px/24px var(--g-font);
  color: var(--sp-link);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-paa-rest {
  position: relative;
  z-index: 1;
  background: #fff;
  border-top: 1px solid var(--sp-line);
}

/* ---------- Capa propia (marca sobre lo que es del cliente) ---------- */
.sp-mark {
  position: absolute;
  inset: 14px 6px 6px;
  z-index: 3;
  border: 2px solid var(--brand);
  border-radius: 12px;
  pointer-events: none;
}
.sp-tag {
  position: absolute;
  top: -11px;
  right: 40px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: 600 12px/22px var(--font-sans);
  white-space: nowrap;
}
.sp-place-slot .sp-mark {
  inset: 6px -8px;
}
.sp-ai-src .sp-mark {
  inset: -4px;
  border-radius: 15px;
}
.sp-ai-src .sp-tag {
  right: auto;
  left: 10px;
}
.sp-paa-q0 .sp-mark {
  inset: 2px -8px 4px;
}
.sp-click {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid var(--g-blue);
  z-index: 4;
}
/* El aviso de WhatsApp entra por abajo (encima de los resultados que no son tuyos): así no tapa el
   logotipo de Google, el buscador ni la búsqueda, que es lo que cuenta la historia. */
.rp-notif.sp-notif {
  top: auto;
  bottom: 10px;
}
@container rp (min-width: 560px) {
  .rp-notif.sp-notif {
    top: auto;
    bottom: 14px;
  }
}
.sp-notif .rp-notif-app svg {
  width: 24px;
  height: 24px;
}

/* =================== Escritorio (ventana de Chrome) =================== */
@container rp (min-width: 560px) {
  .serp {
    --sp-pad: clamp(18px, 3.6cqw, 26px);
    --sp-link: #1a0dab;
    --sp-text-3: #70757a;
    --sp-open: #188038;
    --sp-top-h: 76px;
    --serp-scroll: var(--serp-final-d);
  }
  .sp-top {
    display: flex;
    gap: 0;
    height: var(--sp-top-h);
    padding: 14px var(--sp-pad) 0;
    align-items: flex-start;
    transform: none;
  }
  .sp-logo {
    order: 1;
    flex: none;
    height: 48px;
    font-size: 28px;
    letter-spacing: -1.2px;
  }
  .sp-box {
    order: 2;
    flex: 1;
    min-width: 0;
    max-width: 692px;
    height: 48px;
    margin: 0 0 0 clamp(22px, 4.4cqw, 40px);
    padding: 0 14px 0 20px;
    border-radius: 24px;
    box-shadow:
      0 0 0 1px #dfe1e5,
      0 1px 4px rgb(32 33 36 / 0.08);
  }
  .sp-box-lead,
  .sp-bell {
    display: none !important;
  }
  .sp-x,
  .sp-sep {
    display: block !important;
  }
  .sp-box-ico {
    gap: 14px;
  }
  .sp-box-ico .sp-x {
    color: #1f1f1f;
    width: 22px;
    height: 22px;
  }
  .sp-suggest {
    margin-top: -24px;
    border-radius: 0 0 24px 24px;
    box-shadow:
      0 0 0 1px #dfe1e5,
      0 4px 6px rgb(32 33 36 / 0.28);
    clip-path: inset(0 -10px -10px);
  }
  .sp-sug {
    height: 34px;
    padding-left: 20px;
  }
  .sp-right {
    order: 3;
    flex: none;
    height: 48px;
    margin-left: 18px;
    gap: 16px;
  }
  .sp-apps {
    display: block !important;
  }
  .sp-top-sh {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1px;
    background: #ebebeb;
    box-shadow: 0 1px 5px rgb(32 33 36 / 0.14);
    pointer-events: none;
  }
  .sp-page {
    padding-top: 0;
  }
  .sp-tabs {
    height: 50px;
    gap: 22px;
    font-size: 14px;
    color: #70757a;
  }
  .sp-tab-d {
    display: flex;
  }
  .sp-tab-x,
  .sp-tab-w {
    display: none;
  }
  .sp-tools {
    margin-left: 8px;
  }

  /* Sin bandas: bloques separados por aire, como en la web de escritorio. */
  .sp-card + .sp-card,
  .sp-results > *,
  .sp-results + .sp-card {
    border-top: 0;
  }
  .sp-loc {
    height: 52px;
    padding-top: 10px;
    font-size: 14px;
  }
  .sp-loc .sp-kebab {
    margin-left: 18px;
    width: 18px;
    height: 18px;
  }
  .sp-loc-pin {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }
  .sp-h2 {
    justify-content: flex-start;
    gap: 14px;
    height: 54px;
    font-size: 20px;
  }
  .sp-r {
    padding: 14px var(--sp-pad) 16px;
  }
  .sp-src {
    gap: 12px;
    height: 30px;
  }
  .sp-fav {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .sp-r .sp-url .sp-kebab {
    position: static;
    width: 16px;
    height: 16px;
  }
  .sp-src-text {
    flex: 0 1 auto;
  }
  .sp-title {
    -webkit-line-clamp: 1;
    height: 26px;
    max-height: none;
    margin-top: 4px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .sp-rating {
    height: 22px;
    margin-top: 3px;
    line-height: 22px;
  }
  .sp-meta {
    height: 22px;
    margin-top: 0;
    line-height: 22px;
  }
  .sp-snip,
  .sp-rating ~ .sp-snip {
    -webkit-line-clamp: 2;
    height: 44px;
    margin-top: 3px;
    font-size: 14px;
    line-height: 22px;
  }
  .sp-r-thumb {
    grid-template-columns: minmax(0, 1fr) 80px;
    column-gap: 22px;
  }
  .sp-r-thumb > .sp-src,
  .sp-r-thumb > .sp-title,
  .sp-r-thumb > * {
    grid-column: 1;
  }
  .sp-r-thumb > .sp-thumb {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 2px;
  }
  .sp-r-thumb > .sp-snip,
  .sp-r-thumb > .sp-rating ~ .sp-snip {
    -webkit-line-clamp: 2;
    height: 44px;
  }

  .sp-pack {
    padding-bottom: 8px;
  }
  .sp-gsrc {
    height: 64px;
  }
  .sp-map {
    height: 150px;
    border-radius: 10px;
  }
  .sp-place {
    height: 108px;
    padding: 12px 0;
  }
  .sp-place-photo {
    width: 128px;
    height: 84px;
  }
  .sp-place-body {
    padding-top: 2px;
  }
  /* En escritorio la dirección y el horario van en la misma línea. */
  .sp-place-addr {
    display: inline;
  }
  .sp-place-addr + .sp-place-line {
    display: inline;
  }
  .sp-place-line {
    margin-top: 4px;
  }
  .sp-place-addr::after {
    content: " ";
  }
  .sp-pill {
    width: min(372px, 64%);
    margin: 12px auto 0;
    height: 40px;
    font-size: 15px;
  }
  .sp-more {
    margin-top: 6px;
  }

  .sp-ai {
    margin: 6px var(--sp-pad) 0;
    padding: 2px 18px 0;
    border-radius: 16px;
    background: #f3f6fc;
  }
  .sp-ai-srcs {
    margin-right: -6px;
    padding-right: 6px;
  }
  .sp-ai-src {
    flex: 1 1 0;
    min-width: 0;
  }
  .sp-ai-more {
    margin: 8px -18px 0;
    border-top-color: #e1e7f2;
  }

  .sp-paa {
    padding-top: 8px;
  }
  .sp-paa-row {
    min-height: 52px;
    padding: 6px 0;
    font-size: 16px;
  }
  .sp-paa-row > span:first-child {
    -webkit-line-clamp: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
  }
  .sp-paa-ans {
    font-size: 14px;
  }

  .sp-mark {
    inset: 3px calc(var(--sp-pad) - 12px) 4px;
  }
  .sp-tag {
    right: 12px;
  }
  .sp-paa-q0 .sp-mark {
    inset: 0 -12px 4px;
  }
  .sp-place-slot .sp-mark {
    inset: 4px -10px;
  }
}

/* Ventanas algo más anchas: aparecen más pestañas. */
@container rp (min-width: 680px) {
  .sp-tab-w {
    display: flex;
  }
}
