/* Redes sociales conectadas · todo con prefijo .rd- (no toca el diseño existente) */
.rd-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pfx-line, #e6ecf3); }
.rd-h { margin: 0 0 6px; font-size: 14.5px; color: var(--pfx-ink, #10243d); display: flex; align-items: center; gap: 8px; } .rd-h i { color: var(--pfx-blue, #154C82); }
.rd-list { display: grid; gap: 10px; }
.rd-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--pfx-line, #e6ecf3); border-radius: 14px; background: var(--ice, #fff); }
.rd-row.on { border-color: #bfe3cc; background: #f7fcf9; }
.rd-main { min-width: 0; display: grid; gap: 1px; } .rd-main b { font-size: 13.5px; color: var(--pfx-ink, #10243d); }
.rd-main small { font-size: 12px; color: var(--pfx-muted, #718096); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rd-row.on .rd-main small { color: var(--pfx-ok, #159447); }
.rd-auto { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--pfx-line, #e6ecf3); font-size: 12.5px; color: #4f647b; cursor: pointer; }
.rd-note { grid-column: 2 / -1; font-size: 11.5px; color: var(--pfx-muted, #718096); line-height: 1.45; white-space: normal !important; }
.rd-foot { margin-top: 12px; } .rd-foot .pfx-link { font-size: 12.5px; }

/* iconos de red */
.rd-ic { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 16px; flex: 0 0 auto; background: #64748b; }
.rd-ic.big { width: 54px; height: 54px; font-size: 24px; }
.rd-ic.x { background: #111; } .rd-ic.facebook { background: #1877f2; } .rd-ic.telegram { background: #229ed9; } .rd-ic.whatsapp { background: #25d366; }
.rd-ic.instagram { background: linear-gradient(45deg, #f9ce34, #EEBA2B 55%, #6228d7); }

/* punto verde en los iconos «Compartir en» */
.ini-chip.rd-conn { position: relative; }
.ini-chip.rd-conn::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--pfx-ok, #159447); border: 2px solid #fff; box-sizing: border-box; }

/* pantalla de consentimiento */
.rd-consent { display: grid; gap: 10px; }
.rd-brand { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--pfx-muted, #718096); margin: 2px 0 2px; }
.rd-pf { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--pfx-blue, #154C82); color: var(--pfx-gold, #F0C12C); font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.rd-ask { margin: 0; text-align: center; font-size: 14px; color: var(--pfx-ink, #10243d); }
.rd-perm-h { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: #4f647b; text-transform: uppercase; letter-spacing: .04em; }
.rd-perm { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #33475f; } .rd-perm i { width: 16px; text-align: center; }
.rd-perm.ok i { color: var(--pfx-ok, #159447); } .rd-perm.no i { color: var(--pfx-bad, #e5484d); }
.rd-err { color: var(--pfx-bad, #e5484d); font-size: 12px; min-height: 0; } .rd-err:empty { display: none; }
.rd-sim { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--pfx-muted, #718096); } .rd-sim i { margin-right: 4px; }

/* tarjetas «así sale en cada red» */
.rd-cards { display: grid; gap: 12px; margin: 10px 0; }
.rd-card { border: 1px solid var(--pfx-line, #e6ecf3); border-radius: 16px; background: var(--ice, #fff); overflow: hidden; }
.rd-card.ok { border-color: #bfe3cc; } .rd-card.bad { border-color: #f4c2c4; }
.rd-card > header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; } .rd-card > header .rd-ic { width: 32px; height: 32px; font-size: 14px; }
.rd-card > header .rd-main { flex: 1; }
.rd-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.rd-badge.ok { background: #e3f6ea; color: #0f7a39; } .rd-badge.warn { background: #fff3da; color: #9a6205; } .rd-badge.bad { background: #fde8e9; color: #b3262c; }
.rd-msg { margin: 0; padding: 0 12px 10px; font-size: 12.5px; color: #4f647b; }
.rd-mock { margin: 0 12px 10px; border: 1px solid var(--pfx-line, #e6ecf3); border-radius: 12px; overflow: hidden; background: #fafcfe; }
.rd-ph { position: relative; aspect-ratio: 16 / 10; background: #e9eef5; overflow: hidden; } .rd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-ph.blur img { filter: blur(18px) saturate(1.1); transform: scale(1.15); }
.rd-lock { position: absolute; inset: 0; display: grid; place-items: center; } .rd-lock i { width: 46px; height: 46px; border-radius: 50%; background: rgba(16, 36, 61, .62); color: #fff; display: grid; place-items: center; font-size: 19px; }
.rd-txt { margin: 0; padding: 10px 12px 4px; font-size: 13px; line-height: 1.5; color: var(--pfx-ink, #10243d); white-space: pre-line; word-break: break-word; }
.rd-url { color: #1d6fd1; font-weight: 600; word-break: break-all; } .rd-url.dead { color: #4f647b; text-decoration: none; }
.rd-cnt { display: block; padding: 0 12px 9px; font-size: 11px; color: var(--pfx-muted, #718096); }
.rd-card > footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; } .rd-card > footer:empty { display: none; }
.rd-when { display: block; margin: 0 0 4px 2px; font-size: 11.5px; color: var(--pfx-muted, #718096); }
.rd-hist .rd-cards { max-height: 60vh; overflow: auto; }

@media (max-width: 520px) {
  .rd-row { grid-template-columns: 38px 1fr; } .rd-row > .pfx-btn { grid-column: 1 / -1; justify-self: stretch; }
  .rd-note { grid-column: 1 / -1; }
}
