/* Ficha de ruta — instrumento mapa + perfil (preview) */
html.rlp-html,
body.rlp-body-preview {
  background: #0f1411;
}
body.rlp-body-preview .page-margin,
body.rlp-body-preview .container,
body.rlp-body-preview .content-container,
body.rlp-body-preview #contnet,
body.rlp-body-preview #content,
body.rlp-body-preview .wo_content,
body.rlp-body-preview .wrapper,
body.rlp-body-preview .content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.rlp-body-preview .footer-wrapper,
body.rlp-body-preview .page-footer,
body.rlp-body-preview footer.footer,
body.rlp-body-preview footer,
body.rlp-body-preview #footer,
body.rlp-body-preview .footer,
body.rlp-body-preview .wo_footer,
body.rlp-body-preview .footer-copyright,
body.rlp-body-preview .rightside,
body.rlp-body-preview #right-content,
body.rlp-body-preview .wo_chat_online,
body.rlp-body-preview .chat-container,
body.rlp-body-preview .wo_sidebar,
body.rlp-body-preview #wo_sidebar_users,
body.rlp-body-preview .col-md-3:not(.rlp *),
body.rlp-body-preview .sidebar-right {
  display: none !important;
}
body.rlp-body-preview {
  overflow: hidden !important;
}
/* Default del offset bajo el header; el JS lo ajusta en :root (no redefinir aquí). */
html.rlp-html {
  --rlp-chrome: 56px;
}
.rlp {
  --ink: #121a15;
  --muted: #5d6a61;
  --line: #dde4df;
  --panel: #f4f6f4;
  --green: #165c38;
  --map-bg: #1a221c;
  --chart-h: 108px;
  --rlp-side-w: 340px;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--rlp-chrome);
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--rlp-side-w));
  height: auto;
  min-height: 0;
  background: #e8ece9;
  color: var(--ink);
  overflow: hidden;
  transition: grid-template-columns .2s ease;
}
body.rlp-side-hidden .rlp {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}
body.rlp-side-hidden .rlp__side { display: none !important; }

/* Flecha en el borde del panel (tipo apps de mapas) */
.rlp__side-toggle {
  position: absolute;
  top: 18px;
  right: var(--rlp-side-w, 340px);
  z-index: 90;
  width: 32px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #24312a;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(50%);
  transition: right .2s ease, transform .2s ease, background .15s ease;
}
.rlp__side-toggle:hover { background: #f3f6f3; }
.rlp__side-toggle-ico {
  display: block;
  transition: transform .2s ease;
}
body.rlp-side-hidden .rlp__side-toggle {
  right: 10px;
  transform: none;
  background: #fff;
}
body.rlp-side-hidden .rlp__side-toggle .rlp__side-toggle-ico {
  transform: rotate(180deg);
}

/* Columna visual */
.rlp__viz {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--line);
}

.rlp__viz-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "trail trail"
    "metrics actions";
  gap: 10px 16px;
  align-items: center;
  /* margen superior: miga bajo el header + chevron sin quedar tallado */
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
  overflow: visible;
}
.rlp__trail { grid-area: trail; margin: 0; }
.rlp__viz-top .rlp__metrics { grid-area: metrics; }
.rlp__viz-top .rlp__actions { grid-area: actions; justify-self: end; }

.rlp__viz-titles { min-width: 0; }
.rlp__block--hero { margin-bottom: 16px; }
.rlp__hero-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.rlp__hero-author {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  text-decoration: none;
}
.rlp__hero-author .rlp__slug-av { width: 40px; height: 40px; }
.rlp__slug-av--ph {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d7e3db;
}
.rlp__hero-text { min-width: 0; flex: 1 1 auto; }
.rlp__block--hero .rlp__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  -webkit-line-clamp: 3;
  margin: 0 0 4px;
}
.rlp__hero-by {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.rlp__hero-by a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.rlp__hero-by a:hover { text-decoration: underline; }
.rlp__hero-handle { color: #8a968c; font-weight: 500; }

/* Modal compartir */
.rlp-share-modal::backdrop { background: rgba(15, 20, 17, .48); }
.rlp-share-card { max-width: 420px; width: calc(100vw - 32px); }
.rlp-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 16px 18px;
}
.rlp-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.rlp-share-item:hover {
  background: #f3f7f4;
  border-color: #b9ccbe;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(22, 92, 56, .12);
}
.rlp-share-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex: 0 0 auto;
}
.rlp__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.rlp__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f0ea;
  color: #165c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.rlp__pill--diff { background: #eef2f6; color: #24328a; }
.rlp__pill--circ { background: #f3efe6; color: #6a4b16; }
.rlp__pill--priv { background: #f3e8e8; color: #8a3030; }
.rlp__vis {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.rlp__publish {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  background: #e8f5e9;
  color: #1b5e45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(27, 94, 69, .12);
  transition: background .12s, transform .12s, border-color .12s, color .12s;
}
.rlp__publish:hover {
  background: #c8e6c9;
  border-color: #81c784;
  color: #0d3d2a;
}
.rlp__publish:focus-visible {
  outline: 2px solid #1b5e45;
  outline-offset: 2px;
}
.rlp__publish:disabled {
  opacity: .55;
  cursor: wait;
}
.rlp__publish.is-done {
  background: #1b5e45;
  color: #fff;
  border-color: #1b5e45;
}
.rlp__pill--attr { background: #e7f0ea; color: #1b5e45; }
.rlp__block--attr .rlp__attr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #5d6a61;
}
.rlp__block--attr .rlp__attr-meta strong { color: #121a15; font-weight: 700; }
.rlp__block--attr .rlp__attr-text { margin-bottom: 8px; }
.rlp__block--attr .rlp__attr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  font-size: 13px;
}
.rlp__block--attr .rlp__attr-links a {
  color: #165c38;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rlp__title {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rlp__slug {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.rlp__slug:hover { text-decoration: none; color: inherit; }
.rlp__slug--side {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.rlp__slug--side:hover { box-shadow: inset 0 0 0 1px rgba(22,92,56,.25); }
.rlp__slug-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.rlp__slug-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.rlp__slug-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rlp__slug-handle {
  font-size: 13px;
  font-weight: 700;
  color: #a84849;
  white-space: nowrap;
}
.rlp__slug:hover .rlp__slug-handle { text-decoration: underline; }
.rlp__block--author { margin-bottom: 18px; }

.rlp__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.rlp__metrics li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-left: 1px solid var(--line);
  min-height: 52px;
}
.rlp__metrics li:first-child { border-left: 0; }
.rlp__metrics span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.rlp__metrics strong {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.rlp__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rlp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.rlp-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.rlp-btn--ghost {
  background: #fff;
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.rlp-btn--ghost:hover { background: #f1f7f3; color: var(--green); }
.rlp-btn--solid { background: #24312a; }

/* Instrumento: mapa y perfil HERMANOS (mismo ancho, sin overlay, sin pie de página) */
.rlp__instrument {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--map-bg);
}
.rlp__map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.rlp__map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: var(--map-bg);
}
.rlp__map .leaflet-control-zoom a {
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 6px !important;
}
.rlp__map .leaflet-control-attribution {
  background: rgba(255,255,255,.72) !important;
  font-size: 10px !important;
}

.rlp-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e6f9f;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 Poppins, sans-serif;
  font-variant-numeric: tabular-nums;
}
.rlp-pin.is-start,
.rlp-pin.is-end {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.rlp-pin.is-start { background: var(--green); }
.rlp-pin.is-end { background: #8b2e2e; }
.rlp-pin i { line-height: 1; }

/* Capas mapa (OSM / satélite) */
.rlp-layers-ctrl a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #24312a !important;
  font-size: 15px !important;
}
.rlp-layers-ctrl a.is-sat {
  background: #165c38 !important;
  color: #fff !important;
}

.rlp__chart {
  flex: 0 0 var(--chart-h);
  height: var(--chart-h);
  display: flex;
  flex-direction: column;
  background: #f3f5f3;
  border-top: 1px solid #cfd6d1;
  color: var(--ink);
  z-index: 2;
}
.rlp__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 0;
  flex: 0 0 auto;
}
.rlp__chart-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.rlp__chart-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rlp__chart-readout {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.rlp__chart-right {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rlp__chart-tip {
  color: #8a968c;
  font-size: 11px;
}
#rlp-elev {
  display: block;
  width: 100%;
  height: 78px;
  flex: 1 1 auto;
  cursor: crosshair;
}
.rlp__places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rlp__places li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rlp__place-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rlp__place-chip {
  display: inline-flex;
  align-items: center;
  max-width: 70%;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f3eb;
  color: #0b3d2e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Datos útiles — iconos 3D compactos */
.rlp__amen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rlp__amen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.rlp__amen-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(145deg, #3a8f5e 0%, #165c38 55%, #0f3f26 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 -2px 0 rgba(0,0,0,.18) inset,
    0 6px 12px rgba(22,92,56,.28);
  transform: perspective(120px) rotateX(8deg);
}
.rlp__amen-item.is-no .rlp__amen-ico {
  background: linear-gradient(145deg, #9aa39c 0%, #5d6a61 55%, #3e4741 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -2px 0 rgba(0,0,0,.18) inset,
    0 6px 12px rgba(0,0,0,.12);
  opacity: .85;
}
.rlp__amen-item.is-unk .rlp__amen-ico {
  background: linear-gradient(145deg, #d7ddd8 0%, #aeb6b0 55%, #8a948c 100%);
  color: #3a4740;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 -2px 0 rgba(0,0,0,.12) inset,
    0 4px 10px rgba(0,0,0,.08);
}
.rlp__amen-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  width: 100%;
}
.rlp__amen-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rlp__amen-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.rlp__amen-item.is-yes .rlp__amen-val { color: var(--green); }
.rlp__amen-item.is-no .rlp__amen-val { color: #6a766e; }

/* Modal waypoint */
.rlp-modal {
  border: 0;
  padding: 0;
  max-width: min(520px, calc(100vw - 24px));
  width: 100%;
  background: transparent;
}
.rlp-modal::backdrop {
  background: rgba(10, 16, 12, .55);
  backdrop-filter: blur(2px);
}
.rlp-modal__card {
  margin: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
}
.rlp-modal__head {
  padding: 16px 44px 12px 16px;
  border-bottom: 1px solid var(--line);
}
.rlp-modal__kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #3d6b52;
}
.rlp-modal__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.rlp-modal__time {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.rlp-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.rlp-modal__media {
  display: grid;
  gap: 8px;
  padding: 12px 16px 0;
}
.rlp-modal__media img,
.rlp-modal__media video {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.rlp-modal__body {
  padding: 12px 16px 16px;
}
.rlp-modal__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #243028;
  white-space: pre-wrap;
}
.rlp-modal__links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
.rlp-modal__links li { margin: 0 0 4px; }
.rlp-modal__links .rlp-modal__hint {
  color: #5d6a61;
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f6f4;
}
.rlp-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px 16px;
}
.rlp-popup-more {
  margin-top: 6px;
  border: 0;
  background: #165c38;
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Lateral */
.rlp__side {
  overflow: auto;
  background: var(--panel);
  padding: 18px 16px 28px;
  min-height: 0;
  height: 100%;
}
.rlp__block { margin: 0 0 22px; }
.rlp__block h2,
.rlp__block-head h2 {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.2;
}
.rlp__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.rlp__block-head span {
  font-size: 11px;
  font-weight: 600;
  color: #7a867c;
}
.rlp__block > h2 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.rlp__block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #243028;
  white-space: pre-wrap;
}
.rlp__facts {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.rlp__fact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-top: 1px solid #eef1ef;
}
.rlp__fact:first-child { border-top: 0; }
.rlp__fact dt {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.rlp__fact dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rlp__empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.rlp__wps {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.rlp__wps li + li { border-top: 1px solid #eef1ef; }

.rlp__wp {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 72px;
  column-gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.rlp__wp:hover,
.rlp__wp.is-on { background: #eef5f0; }
.rlp__wp-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e6f9f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rlp__wp-main {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.rlp__wp-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rlp__wp.is-notime {
  grid-template-columns: 28px minmax(0, 1fr);
}
.rlp__wp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rlp__wp-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rlp__wp-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  width: 72px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rlp__wp-elapsed {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.rlp__wp-clock {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.rlp__wp-na { font-size: 13px; color: #b0b8b2; }

@media (max-width: 1100px) {
  .rlp__viz-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "trail"
      "metrics"
      "actions";
  }
  .rlp__viz-top .rlp__actions { justify-self: start; }
}

/* Móvil: primera pantalla = cabecera + mapa + perfil. Puntos debajo al hacer scroll. */
@media (max-width: 900px) {
  .rlp {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 42%);
  }
  body.rlp-side-hidden .rlp {
    grid-template-rows: 1fr;
  }
  .rlp__viz {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }
  .rlp__viz-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "trail"
      "metrics"
      "actions";
    gap: 8px;
    padding: 18px 12px 10px;
    overflow: visible;
  }
  .rlp__block--hero .rlp__title { white-space: normal; font-size: 1.1rem; }
  .rlp-share-grid { grid-template-columns: 1fr 1fr; }
  .rlp__metrics { grid-template-columns: repeat(2, 1fr); }
  .rlp__actions { justify-content: flex-start; }
  .rlp__chart { --chart-h: 100px; }
  .rlp__chart-tip { display: none; }
  #rlp-elev { height: 70px; }
  .rlp__amen { grid-template-columns: repeat(3, 1fr); }
  .rlp__side {
    height: auto;
    min-height: 0;
    overflow: auto;
  }
  .rlp__side-toggle {
    top: auto;
    right: 12px;
    bottom: 42%;
    transform: translateY(50%) rotate(90deg);
  }
  body.rlp-side-hidden .rlp__side-toggle {
    right: 12px;
    bottom: 12px;
    transform: rotate(-90deg);
  }
}

@media (max-width: 420px) {
  .rlp__metrics li { padding: 8px; min-height: 48px; }
  .rlp__metrics strong { font-size: 13px; }
  .rlp__wp { grid-template-columns: 26px minmax(0, 1fr) 64px; }
  .rlp__wp-time { width: 64px; }
}

.rlp__hero-row{display:flex;align-items:flex-start;gap:10px}
.rlp-app-open{flex:0 0 auto;margin-left:auto;width:42px;height:42px;border:0;border-radius:12px;background:#1b5e45;color:#fff;display:grid;place-items:center;cursor:pointer}
.rlp-app-open:disabled{opacity:.6}
.rlp-app-open svg{display:block}
.rlp-along{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rlp-along a{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1b3a28}
.rlp-along img,.rlp-along__ph{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:0 0 56px}
.rlp-along__ph{display:grid;place-items:center;background:#1b5e45;color:#fff;font-weight:700}
.rlp-along small{display:block;color:#5c6b5e;font-size:13px}
.rlp__wp-photo{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:0 0 44px}

.rlp-modal { height: fit-content; max-height: calc(100vh - 48px); }
.rlp-modal__media[hidden], .rlp-modal__time[hidden], #rlp-wp-modal-note[hidden] { display: none !important; }
.rlp-modal.is-place { max-width: min(360px, calc(100vw - 32px)); }
.rlp-modal.is-place .rlp-modal__head { border-bottom: 0; padding-bottom: 0; }
.rlp-modal.is-place .rlp-modal__body { padding-top: 10px; }
.rlp-modal.is-place .rlp-modal__body p { color: #3d4a40; }
.rlp-modal.is-place .rlp-modal__head { padding: 16px 48px 6px 16px; }
.rlp-modal.is-place .rlp-modal__body { padding: 8px 16px 16px; }
.rlp-modal.is-place .rlp-modal__foot { padding: 12px 16px 16px; }
.rlp-modal__links[hidden] { display: none !important; }
a.rlp-modal__go,
a.rlp-modal__go:hover,
a.rlp-modal__go:visited,
a.rlp-modal__go:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0 4px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #165c38;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
a.rlp-modal__go:hover { background: #124c2e; color: #fff; }
.rlp-modal.is-media { max-width: min(480px, calc(100vw - 32px)); }
.rlp-modal.is-media .rlp-modal__head { border-bottom: 0; padding-bottom: 4px; }
.rlp-modal.is-media .rlp-modal__media { padding: 4px 16px 0; }
.rlp-modal.is-media .rlp-modal__media img,
.rlp-modal.is-media .rlp-modal__media video {
  border-radius: 10px;
  max-height: 340px;
  background: #e6eeea;
}
.rlp-modal.is-media .rlp-modal__body { padding: 12px 16px 18px; }
.rlp-modal.is-media .rlp-modal__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #243028;
}
@media (max-width: 420px) {
  .rlp__wp.is-notime { grid-template-columns: 26px minmax(0, 1fr); }
}
.rlp-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 12000;
  max-width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  background: #143d28;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(12, 28, 20, .28);
}
.rlp-toast.is-bad { background: #9b2c2c; }
.rlp-toast[hidden] { display: none !important; }

