/* PrivilegeFans v33 · Chat y servicios exclusivos (C) — pantalla «mensajes», ventanas y ajustes. Clases con prefijo pfc-. */

/* ───── marco de la pantalla (diseño 2026: hoja blanca, título «Mensajes», filtros · lista · conversación) ───── */
.pfx-page.pfc-page { width: min(var(--pf-w, 1500px), 100%); padding: 18px 18px 0; }
.dz-band + main.pfx-page.pfc-page { padding: 22px 26px 18px; min-height: 0; }
.pfc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.pfc-head h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 900; color: var(--d-ink, #0B2D52); letter-spacing: -.01em; }
.pfc-head-act { display: flex; align-items: center; gap: 10px; }
.pfc-hbtn { height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid #E1E9F2; background: var(--d-soft, #EEF3F9); color: var(--d-navy, #154C82); font: inherit; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.pfc-hbtn:hover { transform: translateY(-1px); background: #E4EDF7; }
.pfc-hbtn.primary { background: linear-gradient(180deg, #1A5A97, #123F6E); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(21, 76, 130, .22); }
.pfc-hbtn.primary:hover { background: linear-gradient(180deg, #1D63A6, #144577); }
.pfc-hgear { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #E1E9F2; background: var(--ice, #fff); color: #4F6680; font-size: 17px; display: grid; place-items: center; cursor: pointer; } .pfc-hgear:hover { color: var(--d-navy, #154C82); background: #F4F8FC; }
.pfc { --pfc-f: 214px; --pfc-side: 356px; display: grid; grid-template-columns: var(--pfc-f) var(--pfc-side) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "f s m"; gap: 18px; height: calc(100dvh - 270px); min-height: 380px; color: var(--pfx-ink); }
.pfc button { font-family: inherit; cursor: pointer; }
.pfc-grow { flex: 1; }
.pfc-dim { color: var(--pfx-muted); }
.pfc-red { color: var(--pfx-bad); }
.pfc .pfx-dot.on, .pfc-pop .pfx-dot.on { background: #22b35a; }
.pfc .pfx-dot.off, .pfc-pop .pfx-dot.off { background: #c3cdd8; }
.pfc-name { font-weight: 800; }
.pfc-name.is-user { color: var(--d-ink, #0B2D52); } .pfc-name.is-privileged { color: var(--pfx-gold-2); } .pfc-name.is-creator { color: #C2283A; }
.pfc-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--d-navy, #154C82); color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 1px 7px; margin-left: 7px; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.pfc-chip.live { background: var(--pfx-gold-2); } .pfc-chip.req { background: #FFF4D6; color: #8A6A1C; }
.pfc-mute { color: #98a8ba; font-size: 11px; margin-left: 6px; }
.pfc-typing-txt { color: #1F6FD1; font-style: italic; font-weight: 700; }
.pfc-pres { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; } .pfc-pres.on { color: #1f9d55; } .pfc-pres.off { color: #98a8ba; }
.pfc-pres.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22b357; box-shadow: 0 0 0 3px rgba(34, 179, 87, .16); }

/* ───── filtros (columna) ───── */
.pfc-filters { grid-area: f; display: flex; flex-direction: column; gap: 4px; padding: 2px 0; min-height: 0; overflow-y: auto; }
.pfc-f { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: #3C5068; font: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; transition: background .12s, color .12s; }
.pfc-f i { width: 18px; text-align: center; color: #7A8DA2; font-size: 15px; }
.pfc-f-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfc-f-n { font-weight: 800; color: var(--d-navy, #154C82); font-size: 14px; font-variant-numeric: tabular-nums; }
.pfc-f:hover { background: #F4F8FC; }
.pfc-f.on { background: #EAF2FB; color: var(--d-ink, #0B2D52); font-weight: 900; } .pfc-f.on i { color: var(--d-navy, #154C82); }
.pfc-f.is-privileged i { color: #C99A2E; } .pfc-f.is-creator i { color: #C2283A; }

/* ───── lista de conversaciones ───── */
.pfc-side { grid-area: s; display: flex; flex-direction: column; min-height: 0; background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow, 0 4px 18px rgba(15, 54, 84, .05)); overflow: hidden; }
.pfc-search { position: relative; margin: 14px 14px 8px; } .pfc-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7d8da1; font-size: 14px; }
.pfc-search input { width: 100%; height: 44px; border: 1px solid #E6EDF4; background: #F5F8FB; border-radius: 12px; padding: 0 14px 0 40px; font-size: 14px; outline: none; color: var(--pfx-ink); }
.pfc-search input:focus { border-color: #8DB4DA; background: var(--ice, #fff); box-shadow: 0 0 0 3px rgba(21, 76, 130, .08); }
.pfc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 10px; }
.pfc-empty { padding: 28px 16px; text-align: center; display: grid; justify-items: center; gap: 10px; } .pfc-empty .pfx-empty { padding: 10px; }
.pfc-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; margin: 2px 0; border-radius: 14px; cursor: pointer; outline: none; transition: background .12s; }
.pfc-item:hover, .pfc-item:focus-visible { background: #F4F8FC; } .pfc-item.on { background: #EAF2FB; }
.pfc-pin { position: absolute; left: 6px; top: 8px; font-size: 10px; color: var(--d-navy, #154C82); transform: rotate(-30deg); }
.pfc-av { position: relative; flex: 0 0 auto; display: block; }
.pfc-ban { position: absolute; left: -3px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ice, #fff); color: var(--pfx-bad); display: grid; place-items: center; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.pfc-item-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pfc-item-top { display: flex; align-items: center; min-width: 0; font-size: 15px; } .pfc-item-top .pfc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-item-top time { font-size: 12px; color: #8697ab; margin-left: 8px; flex: 0 0 auto; font-weight: 600; }
.pfc-item.unread .pfc-item-top time { color: #1F6FD1; font-weight: 800; }
.pfc-item-bot { display: flex; align-items: center; gap: 8px; min-width: 0; } .pfc-prev { flex: 1; min-width: 0; font-size: 13px; color: #6B7F95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-prev .pfc-tk { font-size: 10px; margin-right: 2px; } .pfc-me { color: #8697ab; }
.pfc-item.unread .pfc-prev { color: #20384f; font-weight: 800; } .pfc-item.unread .pfc-name { font-weight: 900; }
.pfc-unread { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #1F6FD1; color: #fff; font-size: 11.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(31, 111, 209, .3); }
.pfc-icons { display: flex; gap: 7px; justify-content: flex-end; font-size: 11px; } .pfc-icons.as-creator i { color: #e3a21a; } .pfc-icons.as-fan i { color: #1f9d55; }
.pfc-more { position: absolute; right: 6px; top: 8px; width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; color: #6c8199; opacity: 0; transition: opacity .1s; }
.pfc-item:hover .pfc-more, .pfc-more:focus-visible, .pfc-more.menu-open { opacity: 1; background: #E3EDF8; } .pfc-item:hover .pfc-item-top time { visibility: hidden; }
@media (hover: none) { .pfc-more { opacity: .9; top: auto; bottom: 8px; right: 2px; } .pfc-item:hover .pfc-item-top time { visibility: visible; } .pfc-item-bot { padding-right: 22px; } }

/* ───── conversación ───── */
.pfc-main { grid-area: m; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow, 0 4px 18px rgba(15, 54, 84, .05)); overflow: hidden; }
.pfc-top { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 18px; background: var(--ice, #fff); border-bottom: 1px solid #EEF2F6; }
.pfc-back { display: none; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; color: var(--d-navy, #154C82); font-size: 17px; place-items: center; flex: 0 0 auto; margin-left: -6px; } .pfc-back:hover { background: #EEF4FA; }
.pfc-top-av { border: 0; background: transparent; padding: 0; display: block; flex: 0 0 auto; }
.pfc-top .pfx-avatar { width: 50px !important; height: 50px !important; }
.pfc-av-block { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ice, #fff); color: var(--pfx-bad); font-size: 36px; flex: 0 0 auto; }
.pfc-top-who { min-width: 0; display: grid; gap: 2px; } .pfc-top-name { border: 0; background: transparent; padding: 0; text-align: left; font-size: 16.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; } .pfc-top-name:hover .pfc-name { text-decoration: underline; }
.pfc-top-center { flex: 1; min-width: 0; text-align: center; display: grid; place-items: center; }
.pfc-status { font-size: 13px; color: #3f566e; font-style: italic; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #FDF8EE; border: 1px solid #F1E3BB; border-radius: 99px; padding: 5px 14px; }
.pfc-status.edit { border: 1px dashed #D7E1EC; background: transparent; padding: 7px 14px; border-radius: 10px; font-style: normal; font-weight: 700; color: #4d6580; cursor: pointer; } .pfc-status.edit:hover { background: #EEF4FA; } .pfc-status.edit i { color: #8fa1b5; margin-left: 6px; }
.pfc-top-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pfc-svc { position: relative; width: 40px; height: 40px; border: 0; background: #F3F6FA; border-radius: 50%; font-size: 16px; display: grid; place-items: center; transition: background .12s, color .12s; }
.pfc-svc.off { color: #B6C2CF; } .pfc-svc.on { color: var(--d-navy, #154C82); } .pfc-svc.live { color: #c99700; background: #fff3c8; animation: pfcPulse 1.8s infinite; } .pfc-svc.more { color: #5d7189; } .pfc-svc:hover { background: #E6EEF7; }
.pfc-svc-dot { position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #22b35a; border: 2px solid #fff; }
@keyframes pfcPulse { 50% { box-shadow: 0 0 0 5px rgba(240, 193, 44, .25); } }
.pfc-skel { display: block; background: linear-gradient(90deg, #e8eef5, #f4f7fb, #e8eef5); background-size: 200% 100%; animation: pfcSkel 1.2s linear infinite; border-radius: 8px; height: 12px; } .pfc-skel.av { width: 50px; height: 50px; border-radius: 50%; } .pfc-skel.w1 { width: 120px; } .pfc-skel.w2 { width: 70px; margin-top: 6px; }
@keyframes pfcSkel { to { background-position: -200% 0; } }

/* temporizador y barra del chat exclusivo */
.pfc-timer { display: inline-flex; align-items: center; gap: 10px; }
.pfc-timer-l { font-size: 11px; line-height: 1.25; font-weight: 800; color: #3b536c; text-align: right; }
.pfc-tbs, .pfc-cdown { display: inline-flex; gap: 8px; }
.pfc-tb { display: grid; justify-items: center; gap: 2px; }
.pfc-tb b { min-width: 34px; height: 34px; padding: 0 5px; border-radius: 8px; background: var(--pfx-blue); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pfc-tb small { font-size: 9.5px; color: #587089; font-weight: 700; }
.pfc-timer.low .pfc-tb b, .pfc-cdown.low .pfc-tb b { background: var(--ice, #fff); color: var(--pfx-bad); box-shadow: inset 0 0 0 2px var(--pfx-bad); }
.pfc-sbar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: #fff8e1; border-bottom: 1px solid #f1dfae; color: #7a5a10; font-size: 12.5px; line-height: 1.35; flex-wrap: wrap; } .pfc-sbar > i { color: #c99700; }
.pfc-sbar > span:first-of-type { flex: 1; min-width: 200px; } .pfc-sb-ext { font-weight: 800; color: #5b4300; }

/* mensajes */
.pfc-msgs { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 12px; overscroll-behavior: contain; background: var(--ice, #fff); }
.pfc-blank { flex: 1; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: #5a7289; background: #FBFCFE; }
.pfc-blank > i { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--d-navy, #154C82); background: #EAF2FB; }
.pfc-blank-t { margin: 0; font-size: 18px; font-weight: 800; color: var(--d-ink, #0B2D52); } .pfc-blank-b { margin-top: 6px; }
.pfc-first { padding: 30px 10px; }
.pfc-older { text-align: center; padding: 4px 0 10px; }
.pfc-day { text-align: center; margin: 14px 0 10px; } .pfc-day span { display: inline-block; background: #F3F6FA; color: #6B7F95; font-size: 11.5px; font-weight: 800; padding: 4px 13px; border-radius: 99px; }
.pfc-sys { text-align: center; margin: 10px 0; } .pfc-sys span { display: inline-block; background: var(--ice, #fff); border: 1px solid #dbe6f2; color: #5a7289; font-size: 12px; padding: 5px 13px; border-radius: 99px; max-width: 90%; } .pfc-sys span.live { background: #fff8e1; border-color: #f1dfae; color: #7a5a10; font-weight: 700; }
.pfc-row { display: flex; align-items: flex-end; gap: 8px; margin: 3px 0; position: relative; } .pfc-row.first { margin-top: 12px; } .pfc-row.mine { justify-content: flex-end; }
.pfc-row.flash .pfc-bubble { animation: pfcFlash 1.4s; } @keyframes pfcFlash { 0%, 60% { box-shadow: 0 0 0 3px rgba(240, 193, 44, .85); } }
.pfc-ava { flex: 0 0 34px; width: 34px; align-self: flex-end; } .pfc-ava.gap { visibility: hidden; } .pfc-ava .pfx-avatar { width: 34px !important; height: 34px !important; }
.pfc-bubble { position: relative; max-width: min(560px, 72%); padding: 10px 14px 7px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; }
.pfc-bubble::after { content: ""; display: block; clear: both; }
.pfc-row.theirs .pfc-bubble { background: #EEF3F9; color: var(--d-ink, #0B2D52); border-bottom-left-radius: 6px; }
.pfc-row.mine .pfc-bubble { background: linear-gradient(135deg, #2F7DE1, #1B5FAE); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 12px rgba(31, 95, 174, .18); }
.pfc-bubble.tmp { opacity: .75; }
.pfc-txt { margin: 0; white-space: pre-wrap; } .pfc-txt a { color: #0a63a8; text-decoration: underline; } .pfc-row.mine .pfc-txt a { color: #fff; }
.pfc-meta { float: right; margin: 5px 0 0 12px; font-size: 10.5px; color: #7A8DA2; display: inline-flex; align-items: center; gap: 4px; }
.pfc-row.mine .pfc-meta { color: rgba(255, 255, 255, .8); }
.pfc-tk { font-size: 11px; color: #9fb0c3; } .pfc-tk.read { color: #1b8ef0; }
.pfc-row.mine .pfc-tk { color: rgba(255, 255, 255, .7); } .pfc-row.mine .pfc-tk.read { color: #B9F0FF; }
.pfc-bmore { position: absolute; top: 4px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #4d6580; font-size: 11px; opacity: 0; display: grid; place-items: center; z-index: 2; transition: opacity .1s; }
.pfc-row:hover .pfc-bmore, .pfc-bmore:focus-visible, .pfc-bmore.menu-open { opacity: 1; } @media (hover: none) { .pfc-bmore { opacity: .8; } }
.pfc-fwd { font-size: 11.5px; color: #5a7289; font-style: italic; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; } .pfc-row.mine .pfc-fwd { color: rgba(255, 255, 255, .85); }
.pfc-quote { display: grid; width: 100%; text-align: left; gap: 1px; border: 0; border-left: 3px solid var(--d-navy, #154C82); background: rgba(21, 76, 130, .08); border-radius: 8px; padding: 5px 9px; margin-bottom: 5px; font-size: 12px; } .pfc-quote b { color: var(--d-navy, #154C82); } .pfc-quote span { color: #4d6580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfc-quote.gone { opacity: .6; }
.pfc-row.mine .pfc-quote { background: rgba(255, 255, 255, .16); border-left-color: #fff; } .pfc-row.mine .pfc-quote b, .pfc-row.mine .pfc-quote span { color: #fff; }
.pfc-media { display: grid; gap: 4px; margin: 2px 0 5px; } .pfc-media.n1 { grid-template-columns: minmax(0, 1fr); } .pfc-media.n2, .pfc-media.n4 { grid-template-columns: 1fr 1fr; } .pfc-media.n3 { grid-template-columns: 1fr 1fr; } .pfc-media.n3 > :first-child { grid-column: 1 / -1; }
.pfc-img { border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #e5ecf4; display: block; }
.pfc-img img { display: block; width: 100%; max-height: 340px; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pfc-media.n1 .pfc-img img { width: min(300px, 56vw); } .pfc-media.n2 .pfc-img img, .pfc-media.n3 .pfc-img img, .pfc-media.n4 .pfc-img img { width: min(150px, 28vw); height: 130px; }
.pfc-media.n3 > :first-child img { width: 100%; height: 150px; }
.pfc-img.gif img { width: 170px !important; max-height: 170px; height: auto !important; object-fit: contain; background: transparent; }
.pfc-row.is-gif .pfc-bubble, .pfc-row.is-media .pfc-bubble { background: transparent; border: 0; box-shadow: none; padding: 0; }
.pfc-row.is-gif .pfc-meta, .pfc-row.is-media .pfc-meta { position: absolute; right: 8px; bottom: 8px; float: none; margin: 0; background: rgba(11, 45, 82, .55); color: #fff; border-radius: 8px; padding: 1px 7px; }
.pfc-row.is-gif .pfc-tk, .pfc-row.is-media .pfc-tk { color: rgba(255, 255, 255, .8); }
.pfc-row.is-media .pfc-media { margin: 0; } .pfc-row.is-media .pfc-img, .pfc-row.is-media .pfc-vid video { box-shadow: 0 6px 18px rgba(15, 54, 84, .14); }
.pfc-vid video { display: block; width: min(300px, 58vw); max-height: 380px; border-radius: 14px; background: #0b1c2e; } .pfc-media audio { width: min(300px, 60vw); height: 40px; }
.pfc-typing { margin-top: 6px; } .pfc-typing[hidden] { display: none; }
.pfc-dots { display: inline-flex; gap: 4px; align-items: center; height: 16px; } .pfc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6f8bab; animation: pfcDot 1.1s infinite; } .pfc-dots i:nth-child(2) { animation-delay: .18s; } .pfc-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes pfcDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.pfc-jump { position: absolute; right: 22px; bottom: 92px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ice, #fff); color: var(--d-navy, #154C82); box-shadow: 0 6px 20px rgba(15, 54, 84, .25); z-index: 3; } .pfc-jump[hidden] { display: none; }

/* nota de voz */
.pfc-row.is-voice .pfc-bubble { padding: 10px 14px 7px; min-width: 250px; }
.pfc-voice { display: flex; align-items: center; gap: 10px; padding: 2px 0 2px; }
.pfc-media .pfc-voice + .pfc-voice { margin-top: 6px; }
.pfc-vplay { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--d-navy, #154C82); color: #fff; font-size: 13px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(21, 76, 130, .25); }
.pfc-vplay i.fa-play { margin-left: 2px; }
.pfc-row.mine .pfc-vplay { background: var(--ice, #fff); color: #1B5FAE; }
.pfc-wave { flex: 1; min-width: 120px; height: 32px; display: flex; align-items: center; gap: 2px; }
.pfc-wave i { flex: 1 1 0; min-width: 2px; max-width: 4px; height: 28%; border-radius: 2px; background: #9DB8D6; transition: background .12s, height .25s; }
.pfc-wave i.on { background: var(--d-navy, #154C82); }
.pfc-row.mine .pfc-wave i { background: rgba(255, 255, 255, .45); } .pfc-row.mine .pfc-wave i.on { background: var(--ice, #fff); }
.pfc-vdur { flex: 0 0 auto; min-width: 34px; font-size: 12px; font-weight: 800; color: #4F6680; font-variant-numeric: tabular-nums; } .pfc-row.mine .pfc-vdur { color: rgba(255, 255, 255, .9); }

/* propina en el chat */
.pfc-row.is-tip .pfc-bubble { background: var(--ice, #fff); color: var(--d-ink, #0B2D52); border: 1px solid #F1E3BB; border-radius: 16px; box-shadow: 0 6px 18px rgba(177, 137, 55, .12); padding: 14px 16px 9px; min-width: 270px; }
.pfc-row.is-tip.mine .pfc-meta { color: #7A8DA2; } .pfc-row.is-tip.mine .pfc-tk { color: #9fb0c3; } .pfc-row.is-tip.mine .pfc-tk.read { color: #1b8ef0; }
.pfc-tip { display: flex; align-items: center; gap: 13px; }
.pfc-tip-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--d-gold-grad, linear-gradient(180deg, #E2B53A, #B8891F)); color: #fff; font-size: 19px; box-shadow: 0 4px 12px rgba(177, 137, 55, .35); }
.pfc-tip-tx { display: grid; gap: 1px; } .pfc-tip-tx small { font-size: 12.5px; color: #6B7F95; font-weight: 700; } .pfc-tip-tx b { font-size: 22px; font-weight: 900; color: var(--d-ink, #0B2D52); line-height: 1.15; } .pfc-tip-tx em { font-style: normal; font-size: 12px; color: #6B7F95; }
.pfc-tip-thx { margin-top: 12px; width: 100%; height: 42px; border: 0; border-radius: 10px; background: var(--d-gold-grad, linear-gradient(180deg, #E2B53A, #B8891F)); color: #fff; font: inherit; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 5px 14px rgba(177, 137, 55, .3); }
.pfc-tip-thx:hover { filter: brightness(1.05); } .pfc-tip-thx:disabled { opacity: .6; }
.pfc-tip-done { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #1F7A4D; font-weight: 800; } .pfc-tip-done i { color: #EBB72A; }

/* selección para reenviar */
.pfc-row.selectable { cursor: pointer; } .pfc-row.selectable:hover { background: rgba(21, 76, 130, .05); }
.pfc-cb { width: 20px; height: 20px; border: 2px solid #9fb2c6; border-radius: 5px; display: grid; place-items: center; color: transparent; background: var(--ice, #fff); flex: 0 0 auto; align-self: center; font-size: 11px; } .pfc-cb.on { background: var(--pfx-blue); border-color: var(--pfx-blue); color: #fff; } .pfc-cb.dis { opacity: .35; }
.pfc-row.mine .pfc-cb { margin-right: auto; }

/* tarjeta de la solicitud / cita */
.pfc-row.req { justify-content: center; margin: 14px 0; }
.pfc-req { width: min(580px, 100%); background: var(--ice, #fff); border: 1px solid var(--pfx-line); border-radius: 14px; box-shadow: 0 6px 24px rgba(15, 54, 84, .09); padding: 14px 18px 16px; position: relative; }
.pfc-req.gone { padding: 14px; color: var(--pfx-muted); text-align: center; }
.pfc-rq-time { position: absolute; right: 14px; top: 8px; font-size: 10.5px; color: #8697ab; }
.pfc-req h4 { margin: 0 0 12px; padding: 4px 30px 10px; text-align: center; font-size: 15px; color: var(--pfx-blue-2); border-bottom: 1px solid #e3ebf4; }
.pfc-rq-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d9f3ee; color: #1b9c85; font-size: 12px; margin-right: 4px; } .pfc-rq-ic.call { background: #e1edf9; color: #1b5d9f; } .pfc-rq-ic.video { background: #eee6fa; color: #6a47b4; }
.pfc-rq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pfc-rq-col { display: grid; gap: 9px; align-content: start; text-align: center; } .pfc-rq-col.r { text-align: left; }
.pfc-rq-f small, .pfc-rq-note small { display: block; font-weight: 800; color: var(--pfx-blue-2); font-size: 12.5px; } .pfc-rq-f b { display: block; font-size: 12.5px; color: #3f566e; font-weight: 700; } .pfc-rq-f em { display: block; font-style: normal; color: #6b7f94; font-size: 11.5px; }
.pfc-rq-f b small { display: inline; color: #8697ab; font-weight: 600; }
.pfc-rq-note > div { margin-top: 4px; min-height: 64px; max-height: 120px; overflow: auto; border: 1px solid #dbe6f2; background: #f6f9fd; border-radius: 9px; padding: 8px 10px; font-size: 12.5px; color: #3f566e; white-space: pre-wrap; word-break: break-word; }
.pfc-rq-earn { background: var(--pfx-blue); color: #fff; border-radius: 9px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; flex-wrap: wrap; } .pfc-rq-earn b { color: #fff; font-size: 14px; }
.pfc-i { border: 0; background: transparent; padding: 0; color: var(--pfx-gold); font-size: 14px; line-height: 1; } .pfc-i:hover { filter: brightness(1.1); } .pfc-rq-total .pfc-i, .pfc-rq-bar .pfc-i { color: var(--pfx-gold); }
.pfc-rq-btns { display: flex; gap: 8px; } .pfc-rq-btns .pfx-btn { flex: 1; min-width: 0; padding: 0 10px; }
.pfc-rq-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pfc-rq-sl { font-weight: 800; font-size: 12.5px; color: var(--pfx-blue-2); }
.pfc-rq-when { font-size: 12.5px; color: #4d6580; display: flex; gap: 6px; align-items: center; } .pfc-rq-cancel { text-align: left; }
.pfc-linkbtn { border: 0; background: transparent; color: var(--pfx-bad); font-weight: 800; font-size: 12.5px; text-decoration: underline; padding: 2px 0; }
.pfc-st { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe6f2; border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: 12.5px; color: #587089; background: var(--ice, #fff); }
.pfc-st.accepted { color: #159447; border-color: #bfe5cd; background: #f0faf4; } .pfc-st.pending { color: #b3720a; border-color: #f1dfae; background: #fff8e7; }
.pfc-st.rejected, .pfc-st.cancelled, .pfc-st.expired, .pfc-st.no_show_creator, .pfc-st.no_show_fan { color: var(--pfx-bad); border-color: #f3c9c9; background: #fdf0f0; } .pfc-st.active { color: var(--pfx-blue); border-color: #b9d3ec; background: #eaf2fa; }

/* caja de escritura */
.pfc-composer { flex: 0 0 auto; background: var(--ice, #fff); border-top: 1px solid #EEF2F6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.pfc-row[hidden], .pfc-typing[hidden] { display: none !important; }
.pfc-comp-row { display: flex; align-items: flex-end; gap: 8px; }
.pfc-ibtn { width: 42px; height: 42px; border: 0; background: #F3F6FA; border-radius: 50%; color: var(--d-navy, #154C82); font-size: 17px; display: grid; place-items: center; flex: 0 0 auto; transition: background .12s; } .pfc-ibtn:hover { background: #E6EEF7; }
.pfc-ibtn.tip { background: #FDF8EE; color: #B18937; box-shadow: inset 0 0 0 1px #F1E3BB; } .pfc-ibtn.tip:hover { background: #FBEFD2; }
.pfc-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: #F5F8FB; border: 1px solid #E3EAF2; border-radius: 22px; padding: 1px 6px 1px 18px; min-height: 44px; } .pfc-field:focus-within { background: var(--ice, #fff); border-color: #8DB4DA; box-shadow: 0 0 0 3px rgba(21, 76, 130, .08); }
.pfc-field textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none; font: inherit; font-size: 14.5px; line-height: 20px; padding: 11px 0; max-height: 130px; color: var(--pfx-ink); }
.pfc-field .pfx-iconbtn { width: 36px; height: 42px; color: #5D7189; } .pfc-gifbtn span { font-size: 10px; font-weight: 900; border: 1.5px solid currentColor; border-radius: 5px; padding: 1px 4px; line-height: 1.2; }
.pfc-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #2F7DE1, #154C82); color: #fff; font-size: 16px; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 5px 14px rgba(21, 76, 130, .28); transition: transform .12s; } .pfc-send:not(:disabled):hover { transform: translateY(-1px); } .pfc-send:disabled { background: #CFDAE6; box-shadow: none; cursor: default; }
.pfc-composer.locked { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; color: #4d6580; font-size: 13.5px; background: #FBFCFE; } .pfc-composer.locked > i { color: #8fa1b5; }
.pfc-composer.selbar { display: flex; align-items: center; gap: 10px; } .pfc-selcount { font-weight: 800; color: var(--pfx-blue-2); font-size: 13px; }
.pfc-selbtn { border: 0; background: #eef3f8; color: var(--pfx-blue); height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; } .pfc-selbtn.go { background: var(--pfx-blue); color: #fff; } .pfc-selbtn:disabled { opacity: .5; cursor: default; }
.pfc-replybar { display: flex; align-items: center; gap: 10px; background: #EEF5FC; border-left: 3px solid var(--pfx-blue); border-radius: 10px; padding: 7px 10px; margin-bottom: 9px; font-size: 12.5px; } .pfc-replybar > i { color: var(--pfx-blue); } .pfc-replybar > div { flex: 1; min-width: 0; display: grid; } .pfc-replybar b { color: var(--pfx-blue); } .pfc-replybar span { color: #587089; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfc-replybar button { border: 0; background: transparent; color: #7d8da1; width: 26px; height: 26px; border-radius: 50%; }

/* ───── ventanas ───── */
.pfc-pop .pfx-pop-titles h3 { font-size: 17px; }
.pfc-pk-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; } .pfc-pk-bar .pfx-input-icon { flex: 1; }
.pfc-pk-star { display: flex; align-items: center; gap: 12px; padding: 8px 4px 10px; border-bottom: 1px solid #eef2f6; } .pfc-pk-star b { flex: 1; font-size: 13px; color: var(--pfx-blue-2); }
.pfc-star { width: 32px; height: 32px; border-radius: 50%; background: #fff4cf; color: #d9a406; display: grid; place-items: center; flex: 0 0 auto; }
.pfc-pk-list { max-height: 300px; min-height: 120px; overflow-y: auto; margin: 4px -6px 0; padding: 0 6px; }
.pfc-pk-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f1f4f8; cursor: pointer; } .pfc-pk-row:hover { background: #f5f9fd; }
.pfc-pk-who { flex: 1; min-width: 0; display: grid; } .pfc-pk-n { display: flex; align-items: center; gap: 4px; min-width: 0; } .pfc-pk-who b { font-size: 13.5px; } .pfc-pk-who small { color: var(--pfx-muted); font-size: 12px; } .pfc-pk-who em { font-style: normal; color: var(--pfx-gold-2); font-weight: 700; }
.pfc-pk-row input { width: 18px; height: 18px; accent-color: var(--pfx-blue); flex: 0 0 auto; }
.pfc-pk-msg { margin-top: 12px; } .pfc-pk-msgh { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--pfx-blue-2); margin-bottom: 5px; } .pfc-pk-msgh.only { justify-content: flex-end; margin-top: 8px; } .pfc-pk-msgh span.over { color: var(--pfx-bad); font-weight: 800; } .pfc-pk-msgh span { color: #587089; font-weight: 700; }
.pfc-pk-ta { position: relative; } .pfc-pk-ta textarea { width: 100%; min-height: 108px; border: 1px solid #dbe4ee; border-radius: 12px; padding: 10px 40px 10px 12px; font: inherit; font-size: 14px; outline: none; resize: vertical; } .pfc-pk-ta textarea:focus { border-color: #6fa2cf; box-shadow: 0 0 0 3px rgba(21, 76, 130, .1); } .pfc-pk-ta .pfx-iconbtn { position: absolute; right: 4px; bottom: 6px; }
.pfc-mp-stage { background: #f3f7fb; border-radius: 14px; min-height: 170px; display: grid; place-items: center; padding: 14px; gap: 10px; margin: 12px 0; } .pfc-mp-stage audio { width: 100%; }
.pfc-mp-empty { display: grid; justify-items: center; gap: 8px; text-align: center; color: #6c8199; font-size: 13px; } .pfc-mp-empty img { width: 92px; opacity: .55; }
.pfc-mp-act { display: grid; place-items: center; margin: -4px 0 14px; } .pfc-mp-round { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--pfx-blue); color: #fff; font-size: 21px; box-shadow: 0 6px 16px rgba(21, 76, 130, .3); } .pfc-mp-round:hover { filter: brightness(1.08); }
.pfc-mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; width: 100%; } .pfc-mp-th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #0b1c2e; } .pfc-mp-th img, .pfc-mp-th video { width: 100%; height: 100%; object-fit: cover; display: block; } .pfc-mp-th > i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 26px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); } .pfc-mp-th button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.pfc-mchip { display: flex; align-items: center; gap: 10px; background: var(--ice, #fff); border: 1px solid #dbe6f2; border-radius: 12px; padding: 8px 10px; width: 100%; margin-top: 6px; } .pfc-mchip > i { color: var(--pfx-blue); font-size: 17px; } .pfc-mchip span { flex: 1; min-width: 0; display: grid; } .pfc-mchip b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfc-mchip small { color: var(--pfx-muted); font-size: 11.5px; }
.pfc-mediapop .pfx-tabs { margin: -4px -4px 0; }

/* Nuevo mensaje (diseño 2026: buscador, contactos en tarjetas, «Cancelar») */
.pfc-newchat .pfx-pop-body { padding-top: 6px; }
.pfc-nc-search { position: relative; margin-bottom: 12px; } .pfc-nc-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7d8da1; font-size: 14px; }
.pfc-nc-search input { width: 100%; height: 46px; border: 1px solid #E3EAF2; background: #F5F8FB; border-radius: 12px; padding: 0 14px 0 42px; font: inherit; font-size: 14.5px; outline: none; color: var(--pfx-ink); }
.pfc-nc-search input:focus { background: var(--ice, #fff); border-color: #8DB4DA; box-shadow: 0 0 0 3px rgba(21, 76, 130, .08); }
.pfc-nc-list { max-height: min(420px, 56vh); min-height: 140px; overflow-y: auto; border: 1px solid var(--d-line, #E9EEF4); border-radius: 14px; background: var(--ice, #fff); }
.pfc-nc-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 0; border-bottom: 1px solid #EEF2F6; background: var(--ice, #fff); font: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.pfc-nc-row:last-child { border-bottom: 0; } .pfc-nc-row:hover, .pfc-nc-row:focus-visible { background: #F4F8FC; outline: none; } .pfc-nc-row:disabled { opacity: .6; }
.pfc-nc-row .pfc-pk-who b { font-size: 15px; } .pfc-nc-row .pfc-pk-who small { font-size: 12.5px; color: #4F7BB0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-nc-row .pfc-pk-who em { font-style: normal; color: #B18937; font-weight: 800; } .pfc-nc-row .pfc-pk-who em.cr { color: #C2283A; }
.pfc-nc-tag { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--d-navy, #154C82); background: #EAF2FB; border-radius: 99px; padding: 3px 10px; }
.pfc-nc-go { flex: 0 0 auto; color: #9DB0C4; font-size: 13px; }
.pfc-newchat .pfx-pop-foot { justify-content: center; } .pfc-newchat .pfx-pop-foot .pfx-btn { min-width: 210px; }

/* Mensaje masivo · asistente en 4 pasos (diseño 2026) */
.pfc-bulk .pfx-pop-body { padding: 0; }
.pfc-bk-body { padding: 4px 24px 6px; }
.pfc-bk-steps { list-style: none; margin: 4px 0 18px; padding: 14px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: #F7FAFD; border: 1px solid var(--d-line, #E9EEF4); border-radius: 14px; counter-reset: none; }
.pfc-bk-steps li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; color: #6B7F95; }
.pfc-bk-steps li span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #9DB8D6; color: var(--d-navy, #154C82); background: var(--ice, #fff); font-weight: 900; font-size: 14px; }
.pfc-bk-steps li b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfc-bk-steps li.on span { background: var(--d-navy, #154C82); border-color: var(--d-navy, #154C82); color: #fff; box-shadow: 0 4px 12px rgba(21, 76, 130, .28); } .pfc-bk-steps li.on b { color: var(--d-ink, #0B2D52); font-weight: 900; }
.pfc-bk-steps li.done span { background: #E8F6EE; border-color: #9CD3B4; color: #1F7A4D; font-size: 13px; } .pfc-bk-steps li.done b { color: #1F7A4D; }
.pfc-bk-h { margin: 0 0 12px; font-size: 16px; font-weight: 900; color: var(--d-ink, #0B2D52); }
.pfc-bk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pfc-bk-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #E3EAF2; border-radius: 14px; background: var(--ice, #fff); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.pfc-bk-opt:hover { border-color: #B9CFE6; background: #FAFCFE; }
.pfc-bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pfc-bk-radio { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid #9DB8D6; background: var(--ice, #fff); display: grid; place-items: center; }
.pfc-bk-opt.on { border-color: var(--d-navy, #154C82); background: #F3F8FD; box-shadow: 0 0 0 3px rgba(21, 76, 130, .08); }
.pfc-bk-opt.on .pfc-bk-radio { border-color: #1F6FD1; } .pfc-bk-opt.on .pfc-bk-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1F6FD1; }
.pfc-bk-opt input:focus-visible + .pfc-bk-radio { box-shadow: 0 0 0 3px rgba(31, 111, 209, .3); }
.pfc-bk-ot { min-width: 0; display: grid; gap: 3px; } .pfc-bk-ot b { font-size: 14.5px; color: var(--d-ink, #0B2D52); font-weight: 800; } .pfc-bk-ot b em { font-style: normal; color: #6B7F95; font-weight: 700; } .pfc-bk-ot small { font-size: 12.5px; color: #6B7F95; line-height: 1.4; }
.pfc-bk-pick { margin-top: 12px; padding: 12px; border: 1px solid var(--d-line, #E9EEF4); border-radius: 14px; background: #FBFCFE; } .pfc-bk-pick .pfc-pk-list { max-height: 260px; background: var(--ice, #fff); border-radius: 10px; margin: 0; padding: 0 8px; }
.pfc-bk-note { margin: 14px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #587089; line-height: 1.45; } .pfc-bk-note i { color: #6F98C4; margin-top: 2px; }
.pfc-bk-ta textarea { min-height: 170px; background: #F7FAFD; border-color: #E3EAF2; border-radius: 14px; padding: 14px 44px 30px 16px; font-size: 15px; } .pfc-bk-ta textarea:focus { background: var(--ice, #fff); }
.pfc-bk-count { position: absolute; right: 48px; bottom: 10px; font-size: 12px; color: #8697ab; font-weight: 700; font-variant-numeric: tabular-nums; }
.pfc-bk-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; } .pfc-bk-dt .pfx-field { margin: 0; }
.pfc-bk-sched { margin-top: 16px; } .pfc-bk-sched:empty { display: none; }
.pfc-bk-sched h5 { margin: 0 0 8px; font-size: 13.5px; color: var(--d-ink, #0B2D52); font-weight: 900; }
.pfc-bk-sched ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--d-line, #E9EEF4); border-radius: 12px; overflow: hidden; }
.pfc-bk-sched li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #EEF2F6; } .pfc-bk-sched li:last-child { border-bottom: 0; }
.pfc-bk-sd { flex: 1; min-width: 0; display: grid; gap: 2px; } .pfc-bk-sd b { font-size: 13px; color: var(--d-navy, #154C82); } .pfc-bk-sd small { font-size: 12.5px; color: #587089; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-bk-sum { margin: 0; display: grid; gap: 0; border: 1px solid var(--d-line, #E9EEF4); border-radius: 14px; overflow: hidden; }
.pfc-bk-sum > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #EEF2F6; align-items: start; } .pfc-bk-sum > div:last-child { border-bottom: 0; }
.pfc-bk-sum dt { font-size: 13px; font-weight: 800; color: #587089; display: flex; align-items: center; gap: 8px; } .pfc-bk-sum dt i { color: var(--d-navy, #154C82); width: 16px; text-align: center; }
.pfc-bk-sum dd { margin: 0; font-size: 14px; color: var(--d-ink, #0B2D52); }
.pfc-bk-prev { background: #EEF3F9; border-radius: 14px 14px 14px 6px; padding: 10px 14px; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; font-size: 14px; line-height: 1.45; }
.pfc-bk-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid #EEF2F6; margin-top: 18px; }
.pfc-bk-foot .pfx-btn { min-width: 150px; height: 46px; border-radius: 12px; font-weight: 900; }
.pfc-bk-foot .pfx-btn.gold { background: var(--d-gold-grad, linear-gradient(180deg, #E2B53A, #B8891F)); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(177, 137, 55, .3); } .pfc-bk-foot .pfx-btn.gold:disabled { opacity: .5; box-shadow: none; }
.pfc-bk-foot .pfx-btn.ghost { background: #F3F6FA; border: 1px solid #E3EAF2; color: var(--d-navy, #154C82); }
.pfc-bulk .pfx-err:empty { display: none; } .pfc-bulk .pfx-err { margin: 10px 0 0; }

/* solicitud, aviso del último minuto y avisos al creador */
.pfc-rq-price { background: #e6eff8; border-radius: 11px; min-height: 44px; display: grid; place-items: center; font-weight: 800; color: var(--pfx-blue); }
.pfc-rq-total { background: var(--pfx-blue); color: #fff; border-radius: 11px; padding: 13px 16px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; } .pfc-rq-total b { color: #fff; font-size: 15px; }
.pfc-rq-bal { margin-top: 10px; font-size: 12.5px; color: #587089; text-align: center; } .pfc-rq-bal .pfx-note { text-align: left; }
.pfc-rq .pfx-field small:empty { display: none; }
.pfc-rq-bar { background: var(--pfx-blue); color: #fff; border-radius: 10px; padding: 11px 14px; display: flex; gap: 9px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; font-size: 13.5px; } .pfc-rq-bar > i:first-child { color: var(--pfx-gold); } .pfc-rq-bar b { color: #fff; } .pfc-rq-bar.soft { background: #e6eff8; color: var(--pfx-blue); } .pfc-rq-bar.soft b { color: var(--pfx-blue-2); } .pfc-rq-bar.soft > i:first-child { color: #3d86c6; }
.pfc-rd-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; text-align: center; } .pfc-rd-c small { display: block; font-weight: 800; color: var(--pfx-blue-2); font-size: 12.5px; margin-bottom: 2px; } .pfc-rd-c b { font-size: 13px; color: #3f566e; font-weight: 600; } .pfc-rd-c em { font-style: normal; color: #6b7f94; font-size: 11.5px; }
.pfc-rd-note { margin-top: 14px; } .pfc-rd-note small { display: block; text-align: center; font-weight: 800; color: var(--pfx-blue-2); font-size: 13px; margin-bottom: 4px; } .pfc-rd-note > div { background: #f3f7fb; border-radius: 10px; padding: 12px; min-height: 66px; font-size: 13px; color: #3f566e; text-align: center; white-space: pre-wrap; word-break: break-word; }
.pfc-info-t { text-align: center; font-size: 14.5px; line-height: 1.6; color: #26405c; margin: 6px 0 14px; } .pfc-pen { text-decoration: underline; color: var(--pfx-blue-2); font-weight: 800; cursor: help; }
.pfc-imp { text-align: center; font-size: 12px; color: #4d6580; line-height: 1.5; } .pfc-imp b { display: block; color: var(--pfx-blue-2); }
.pfc-end { text-align: center; } .pfc-end-t { margin: 4px 0 12px; font-size: 14.5px; color: #26405c; line-height: 1.5; }
.pfc-end .pfc-cdown { margin: 4px 0 12px; justify-content: center; } .pfc-end .pfc-tb b { min-width: 42px; height: 42px; font-size: 19px; }
.pfc-end-auto { display: inline-block; background: var(--pfx-blue); color: #fff; font-size: 11.5px; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; }
.pfc-end .pfx-field { text-align: left; } .pfc-end .pfx-field label { display: flex; align-items: center; gap: 6px; }
.pfc-end-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 8px 0; color: #26405c; } .pfc-end-row.col { flex-direction: column; gap: 6px; } .pfc-earn { background: #e7f6ed; color: #159447; border-radius: 8px; padding: 6px 18px; font-size: 16px; font-weight: 900; }

/* ───── Ajustes → Mensajes (diseño 2026: tarjetas, filas con icono + texto + interruptor) ───── */
.pfc-set { max-width: 820px; }
.pfc-set-card { background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow, 0 4px 18px rgba(15, 54, 84, .05)); padding: 4px 20px 16px; margin-bottom: 16px; }
.pfc-set-h { margin: 20px 2px 10px; font-size: 16px; font-weight: 900; color: var(--d-ink, #0B2D52); } .pfc-set-h:first-child { margin-top: 4px; }
.pfc-set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #EEF2F6; } .pfc-set-row:last-of-type { border-bottom: 0; }
.pfc-set-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EAF2FB; color: var(--d-navy, #154C82); font-size: 16px; }
.pfc-set-tx { flex: 1; min-width: 0; } .pfc-set-tx b { display: block; font-size: 14.5px; color: var(--d-ink, #0B2D52); font-weight: 800; } .pfc-set-tx small { display: block; margin-top: 2px; font-size: 12.5px; color: #6B7F95; line-height: 1.4; }
.pfc-set-row > .pfx-switch, .pfc-set-row > label:last-child { flex: 0 0 auto; }
.pfc-set-status { margin: 14px 0 0; } .pfc-set-in { position: relative; } .pfc-set-in .pfx-input { padding-right: 44px; } .pfc-set-in .pfx-iconbtn { position: absolute; right: 4px; top: 3px; }
.pfc-set-ta { position: relative; margin-top: 14px; border: 1px solid #E3EAF2; border-radius: 14px; background: #F7FAFD; padding: 10px 12px 44px; } .pfc-set-ta:focus-within { background: var(--ice, #fff); border-color: #8DB4DA; box-shadow: 0 0 0 3px rgba(21, 76, 130, .08); }
.pfc-set-ta textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 110px; font: inherit; font-size: 14px; background: transparent; padding-right: 36px; } .pfc-set-ta > .pfx-iconbtn { position: absolute; right: 6px; bottom: 4px; } .pfc-set-tools { position: absolute; left: 6px; bottom: 4px; display: flex; gap: 6px; } .pfc-set-tools .pfc-ibtn { width: 36px; height: 36px; font-size: 15px; background: var(--ice, #fff); box-shadow: inset 0 0 0 1px #E3EAF2; }
.pfc-set-actions { display: flex; justify-content: flex-end; padding: 6px 0 24px; } .pfc-set-actions .pfx-btn { min-width: 200px; height: 46px; border-radius: 12px; font-weight: 900; }

/* ───── tableta y móvil ───── */
/* Por debajo de 1180 px los filtros pasan a ser una fila de pastillas encima de lista + conversación. */
@media (max-width: 1180px) {
  .pfc { grid-template-columns: var(--pfc-side) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "f f" "s m"; gap: 14px 16px; --pfc-side: 320px; }
  .pfc-filters { flex-direction: row; gap: 8px; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .pfc-filters::-webkit-scrollbar { display: none; }
  .pfc-f { flex: 0 0 auto; min-height: 38px; padding: 0 14px; gap: 8px; border-radius: 99px; background: #F3F6FA; font-size: 13.5px; }
  .pfc-f i { width: auto; font-size: 13px; } .pfc-f-l { overflow: visible; } .pfc-f-n { font-size: 12px; }
  .pfc-f.on { background: var(--d-navy, #154C82); color: #fff; } .pfc-f.on i, .pfc-f.on .pfc-f-n { color: #fff; }
  .pfc-timer-l { display: none; }
}
@media (max-width: 1000px) { .dz-band + main.pfx-page.pfc-page { padding: 18px 16px 16px; } .pfc { --pfc-side: 290px; } }
@media (max-width: 760px) {
  .dz-band + main.pfx-page.pfc-page { padding: 14px 12px 0; }
  .pfc-head { margin-bottom: 12px; } .pfc-head h1 { font-size: 24px; }
  .pfc-hbtn { height: 40px; padding: 0 12px; } .pfc-hbtn span { display: none; } .pfc-hbtn i { font-size: 15px; } .pfc-hgear { width: 40px; height: 40px; }
  .pfc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "f" "s"; gap: 10px; }
  .pfc[data-view="list"] .pfc-main { display: none; }
  .pfc[data-view="thread"] { grid-template-rows: minmax(0, 1fr); grid-template-areas: "m"; } .pfc[data-view="thread"] .pfc-side, .pfc[data-view="thread"] .pfc-filters { display: none; }
  .pfc-side { border: 0; border-radius: 0; box-shadow: none; margin: 0 -12px; } .pfc-search { margin: 4px 12px 8px; } .pfc-list { padding: 0 4px 10px; }
  .pfc-item { padding: 11px 12px; border-radius: 12px; }
  .pfc-back { display: grid; }
  /* conversación abierta en móvil: pantalla completa debajo de la barra superior (sin la banda ni el título) */
  html.pfc-thread .dz-band, html.pfc-thread .pfc-head { display: none !important; }
  html.pfc-thread main.pfx-page.pfc-page { margin: 0 auto !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 0 !important; }
  html.pfc-thread .pfc-main { border: 0; border-radius: 0; box-shadow: none; }
  html.pfc-thread .mobile-nav { display: none !important; }
  html.pfc-on, html.pfc-on body { overflow: hidden; overscroll-behavior: none; }
  .pfc-top { flex-wrap: wrap; padding: 8px 10px; gap: 6px 8px; min-height: 62px; } .pfc-top-center { order: 9; flex-basis: 100%; padding-bottom: 2px; } .pfc-top-center:empty { display: none; }
  .pfc-top .pfx-avatar { width: 42px !important; height: 42px !important; } .pfc-av-block { width: 42px; height: 42px; font-size: 30px; }
  .pfc-top-who { flex: 1; } .pfc-svc { width: 36px; height: 36px; font-size: 15px; }
  .pfc-timer-l { font-size: 10px; } .pfc-tb b { min-width: 30px; height: 30px; font-size: 14px; }
  .pfc-msgs { padding: 12px 10px 8px; } .pfc-bubble { max-width: 84%; } .pfc-row.is-voice .pfc-bubble, .pfc-row.is-tip .pfc-bubble { min-width: 0; width: 84%; }
  .pfc-rq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .pfc-rq-col.r { text-align: left; } .pfc-req { padding: 12px 12px 14px; }
  .pfc-rd-g { grid-template-columns: 1fr 1fr; }
  html.pfc-thread .au-supfab, html.pfc-thread .au-mailfab { display: none !important; }
  .pfc-composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); } .pfc-ibtn { width: 38px; height: 38px; font-size: 16px; } .pfc-comp-row { gap: 6px; } .pfc-field { padding-left: 14px; }
  .pfc-jump { bottom: 78px; right: 14px; }
  .pfc-selbtn span { display: none; }
  .pfc-bmore { opacity: .8; } .pfc-more { opacity: .9; top: auto; bottom: 8px; right: 2px; } .pfc-item-bot { padding-right: 22px; }
  .pfc-bk-body { padding: 2px 14px 4px; } .pfc-bk-steps { padding: 10px; gap: 4px; } .pfc-bk-steps li { flex-direction: column; gap: 5px; text-align: center; } .pfc-bk-steps li b { font-size: 11px; max-width: 100%; } .pfc-bk-steps li span { width: 30px; height: 30px; font-size: 13px; }
  .pfc-bk-opts, .pfc-bk-dt { grid-template-columns: minmax(0, 1fr); } .pfc-bk-sum > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pfc-bk-foot { padding: 12px 14px 16px; } .pfc-bk-foot .pfx-btn { flex: 1; min-width: 0; }
  .pfc-set-card { padding: 2px 14px 12px; } .pfc-set-ic { width: 36px; height: 36px; font-size: 15px; } .pfc-set-actions .pfx-btn { width: 100%; }
}
/* El botón de ayuda flotante no debe tapar el botón de enviar en pantallas medianas. */
@media (min-width: 761px) and (max-width: 1409px) { html.pfc-on .pfc-composer { padding-right: 84px; } }
html.pf-preview-touch .pfc-bmore { opacity: .8; } html.pf-preview-touch .pfc-more { opacity: .9; top: auto; bottom: 8px; right: 2px; } html.pf-preview-touch .pfc-item-bot { padding-right: 22px; } html.pf-preview-touch .pfc-item:hover .pfc-item-top time { visibility: visible; }
.pfc-ai { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: #E3EEFB; color: #154C82; font: 700 11px Lato, sans-serif; }

/* Mensaje masivo · diseño de plantilla (cabecera, pasos con subtítulo, tarjetas de audiencia con avatares) */
.pfc-bk-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px 8px; }
.pfc-bk-hic { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 28px; background: linear-gradient(145deg, #4C9BFF, #2457D6); box-shadow: 0 10px 24px rgba(36, 87, 214, .35); }
.pfc-bk-ht { flex: 1; min-width: 0; } .pfc-bk-ht h3 { margin: 0; font: 900 30px/1.1 Lato, Arial, sans-serif; color: #0B2D52; } .pfc-bk-ht p { margin: 6px 0 0; color: #587089; font-size: 14.5px; }
.pfc-bk-lim { flex: 0 0 auto; padding: 12px 18px; border-radius: 16px; background: #EAF3FF; display: grid; gap: 2px; } .pfc-bk-lim small { color: #587089; font-weight: 700; font-size: 13px; }
.pfc-bk-lim b { color: #154C82; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; } .pfc-bk-lim b i { color: #7FB2F0; font-size: 15px; }
.pfc-bk-x { flex: 0 0 auto; align-self: flex-start; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #EEF2F6; color: #55687E; font-size: 16px; cursor: pointer; }
.pfc-bk-steps li div { display: grid; gap: 1px; min-width: 0; } .pfc-bk-steps li small { color: #6B7F95; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfc-bk-steps li.on { position: relative; } .pfc-bk-steps li.on::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 150px; max-width: 100%; height: 4px; border-radius: 4px; background: #1F6FD1; }
.pfc-bk-steps li.on b { color: #0B2D52; }
.pfc-bk-sec { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: #F4F8FD; margin-bottom: 14px; }
.pfc-bk-sec > div:nth-child(2) { flex: 1; min-width: 0; } .pfc-bk-sec .pfc-bk-h { margin: 0 0 3px; font-size: 22px; } .pfc-bk-sec p { margin: 0; color: #587089; font-size: 13.5px; }
.pfc-bk-sic { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; background: #E6F0FF; color: #2F6BD6; display: grid; place-items: center; font-size: 24px; }
.pfc-bk-seeall { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 0; background: #E6F0FF; color: #154C82; cursor: pointer; text-align: left; font: inherit; }
.pfc-bk-seeall > i:first-child { font-size: 22px; } .pfc-bk-seeall span { display: grid; } .pfc-bk-seeall b { font-size: 14.5px; font-weight: 900; } .pfc-bk-seeall small { font-size: 12px; color: #587089; font-weight: 600; }
.pfc-bk-opt { padding: 16px 18px; border-radius: 18px; align-items: center; gap: 14px; }
.pfc-bk-oi { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; }
.pfc-bk-oi.blue { background: #E2EEFF; color: #2F6BD6; } .pfc-bk-oi.gold { background: #FFF0CC; color: #D79A1E; } .pfc-bk-oi.violet { background: #EFE6FF; color: #7A4BD6; } .pfc-bk-oi.green { background: #DDF5E8; color: #1E9E5A; }
.pfc-bk-opt .pfc-bk-ot { flex: 1; gap: 4px; } .pfc-bk-opt .pfc-bk-ot b { font-size: 16px; } .pfc-bk-opt .pfc-bk-ot small { font-size: 13px; line-height: 1.4; }
.pfc-bk-or { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pfc-bk-av { display: inline-flex; align-items: center; } .pfc-bk-av > * { margin-left: -8px; border: 2px solid #fff; border-radius: 50%; } .pfc-bk-av > *:first-child { margin-left: 0; }
.pfc-bk-av em { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ice, #fff); color: #55687E; font: 800 12px Lato, Arial, sans-serif; box-shadow: 0 0 0 1px #E3EAF2; }
.pfc-bk-av.empty i { width: 30px; height: 30px; display: grid; place-items: center; background: #EEF2F6; color: #B8C4D2; font-size: 13px; }
.pfc-bk-vl { border: 0; background: transparent; font: 800 13.5px Lato, Arial, sans-serif; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; } .pfc-bk-vl.blue { color: #2F6BD6; } .pfc-bk-vl.gold { color: #55687E; } .pfc-bk-vl.violet { color: #7A4BD6; } .pfc-bk-vl.green { color: #1E9E5A; }
.pfc-bk-cnt { position: absolute; top: 14px; right: 16px; font-style: normal; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 10px; background: #E6F0FF; color: #2F6BD6; }
.pfc-bk-view { margin-top: 12px; padding: 14px 16px; border: 1px solid #E3EAF2; border-radius: 16px; background: #FBFCFE; }
.pfc-bk-view header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .pfc-bk-view header b { color: #0B2D52; } .pfc-bk-view header em { font-style: normal; color: #6B7F95; }
.pfc-bk-view ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; max-height: 190px; overflow: auto; }
.pfc-bk-view li { display: flex; align-items: center; gap: 10px; min-width: 0; } .pfc-bk-view li span { display: grid; min-width: 0; } .pfc-bk-view li b { font-size: 13.5px; color: #0B2D52; } .pfc-bk-view li small { color: #6B7F95; font-size: 12px; }
.pfc-bk-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; padding: 14px 6px; border-radius: 18px; background: #F4F8FD; }
.pfc-bk-trio > div { display: flex; gap: 12px; padding: 0 16px; border-left: 1px solid #E3EAF2; align-items: flex-start; } .pfc-bk-trio > div:first-child { border-left: 0; }
.pfc-bk-trio span { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; } .pfc-bk-trio span.green { background: #DDF5E8; color: #1E9E5A; } .pfc-bk-trio span.blue { background: #E2EEFF; color: #2F6BD6; } .pfc-bk-trio span.violet { background: #EFE6FF; color: #7A4BD6; }
.pfc-bk-trio p { margin: 0; display: grid; gap: 3px; } .pfc-bk-trio b { font-size: 14px; color: #0B2D52; } .pfc-bk-trio small { color: #587089; font-size: 12.5px; line-height: 1.4; }
@media (max-width: 760px) {
  .pfc-bk-head { flex-wrap: wrap; padding: 16px 14px 4px; gap: 12px; } .pfc-bk-hic { width: 48px; height: 48px; font-size: 21px; border-radius: 14px; } .pfc-bk-ht h3 { font-size: 22px; } .pfc-bk-ht p { font-size: 13px; }
  .pfc-bk-lim { order: 5; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 14px; } .pfc-bk-x { position: absolute; top: 14px; right: 14px; }
  .pfc-bk-steps li small, .pfc-bk-steps li.on::after { display: none; } .pfc-bk-sec { flex-wrap: wrap; } .pfc-bk-sec .pfc-bk-h { font-size: 18px; } .pfc-bk-seeall { width: 100%; }
  .pfc-bk-oi { width: 48px; height: 48px; font-size: 20px; } .pfc-bk-or { flex-wrap: wrap; } .pfc-bk-view ul { grid-template-columns: 1fr; } .pfc-bk-trio { grid-template-columns: 1fr; gap: 12px; } .pfc-bk-trio > div { border-left: 0; }
}
.pfc-bulk .pfc-bk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pfc-bk-opt { min-width: 0; } .pfc-bk-opt .pfc-bk-ot { min-width: 0; padding-right: 44px; } .pfc-bk-or { flex-wrap: wrap; }
.pfc-bk-opt > .pfc-bk-radio { margin-top: 0; } .pfc-bk-av.empty i { margin-left: -8px; border: 2px solid #fff; } .pfc-bk-av.empty i:first-child { margin-left: 0; }
@media (max-width: 760px) { .pfc-bulk .pfc-bk-opts { grid-template-columns: minmax(0, 1fr); } }
.pfc-bk-opt .pfc-bk-ot { align-content: start; align-self: center; } .pfc-bk-opt .pfc-bk-ot b { white-space: normal; overflow: visible; text-overflow: clip; }
.pfc-bk-opt { min-height: 168px; } .pfc-bk-or { justify-content: flex-start; gap: 14px; }
.pfc-bk-oi { width: 58px; height: 58px; font-size: 24px; }
.pfc-bk-opt .pfc-bk-ot { flex: 1 1 0; width: 100%; padding-right: 54px; justify-items: start; } .pfc-bk-or { width: 100%; }
.pfc-bk-cnt { top: 12px; right: 12px; padding: 3px 10px; }
