/* ============================================================
   DUALTIC — Profile pages (perfil.php + usuario.php)
   Extiende admin-ui.css + dashboard.css (cards, tags, loc).
   Scopeado bajo .prof-page para no colisionar con Bootstrap.
   ============================================================ */

/* El footer admin no es sticky: en un perfil vacío (o con pocas
   publicaciones) quedaba pegado bajo el contenido, y el desplegable de
   cuenta se solapaba con él. La página ocupa al menos el alto de pantalla
   menos el topbar (66px), igual que .form-page.fp-fill en forms.css.
   Selector COMPUESTO a propósito: los scrims de los modales llevan
   .prof-page + .detail-scrim/.report-scrim (sin .dash-page) y no deben
   verse afectados. */
.prof-page.dash-page { min-height: calc(100vh - 66px); }

/* Red de seguridad contra overflow horizontal en mobile: nombre/empresa/
   descripción son texto libre del usuario y pueden traer una palabra sin
   espacios más ancha que el viewport (URL, código), empujando toda la
   columna (y con ella el resto de la página) hacia la derecha. */
.prof-page { overflow-x: hidden; }
.prof-page .id-desc,
.prof-page .id-name,
.prof-page .company-chip b { overflow-wrap: break-word; word-break: break-word; }

/* ============================================================
   PROFILE HERO
   ============================================================ */
.prof-page .profile-band {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding-block: clamp(30px, 5vw, 52px);
}
.prof-page .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* identity column */
.prof-page .identity { display: flex; gap: clamp(20px, 3vw, 30px); align-items: flex-start; }
.prof-page .avatar-xl {
  width: clamp(100px, 12vw, 148px); height: clamp(100px, 12vw, 148px);
  border-radius: 50%; flex: none; position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
}
.prof-page .avatar-xl img {
  width: 100%; height: 100%; object-fit: contain; background: #fff;
  display: block; border-radius: 50%;
}
.prof-page .avatar-xl .initials {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 42px);
  color: #fff; text-transform: uppercase; line-height: 1;
}
.prof-page .id-main { min-width: 0; padding-top: 4px; }

/* company logo block — shown above the name when img_empresa exists */
.prof-page .company-logo-block { margin-bottom: 16px; }
.prof-page .company-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; max-width: 144px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px;
}
.prof-page .company-logo-wrap img {
  max-height: 30px; max-width: 116px;
  width: auto; height: auto;
  object-fit: contain; display: block;
}
.prof-page .id-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-mut); margin-bottom: 10px;
}
.prof-page .id-eyebrow .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft);
}
.prof-page .id-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.8vw, 42px);
  letter-spacing: -0.03em; line-height: 1.02; color: var(--ink);
}
.prof-page .id-role { font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-mut); margin-top: 10px; }
.prof-page .id-role .at { color: var(--ink); font-weight: 600; }

/* company chip + meta row */
.prof-page .id-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.prof-page .company-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 13px 6px 6px; border-radius: var(--r-pill);
  background: var(--panel); border: 1px solid var(--line-2);
}
.prof-page .company-chip .chip-logo {
  width: 28px; height: 28px; border-radius: 7px; font-size: 11px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-family: var(--display); font-weight: 700;
}
.prof-page .company-chip b { font-size: 13px; font-weight: 600; color: var(--ink); }
.prof-page .meta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-mut);
  padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-family: var(--body);
}
.prof-page .meta-pill i { font-size: 13px; color: var(--ink-faint); }

.prof-page .id-desc {
  margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-mut);
  max-width: 60ch; font-family: var(--body);
}

/* action buttons */
.prof-page .id-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.prof-page .btn-prof {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.15s var(--ease);
  text-decoration: none; cursor: pointer; line-height: 1;
}
.prof-page .btn-prof.primary {
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
}
.prof-page .btn-prof.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.prof-page .btn-prof.ghost {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--ink);
}
.prof-page .btn-prof.ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.prof-page .btn-prof.danger-ghost {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-mut);
}
.prof-page .btn-prof.danger-ghost:hover { border-color: #e53935; color: #e53935; }
/* Icon-only report button */
.prof-page .btn-icon-report {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-mut);
  font-size: 16px; transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.prof-page .btn-icon-report:hover { border-color: #e53935; color: #e53935; background: rgba(229,57,53,0.06); }

/* ---------- contact card (right column) ---------- */
.prof-page .contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.prof-page .contact-card h3 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.prof-page .contact-list { display: flex; flex-direction: column; }
.prof-page .contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 14px; text-decoration: none;
  transition: color 0.2s; font-family: var(--body);
}
.prof-page .contact-row:last-child { border-bottom: none; }
.prof-page a.contact-row:hover { color: var(--accent-deep); }
.prof-page a.contact-row:hover .ci { border-color: var(--ink); color: var(--ink); }
.prof-page .contact-row .ci {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  border: 1px solid var(--line); color: var(--ink-mut);
  background: var(--accent-soft);
  transition: border-color 0.2s, color 0.2s;
}
.prof-page .contact-row .cl { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow: hidden; }
.prof-page .contact-row .ck {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-faint);
}
.prof-page .contact-row .cv {
  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prof-page .contact-row .ext {
  margin-left: auto; color: var(--ink-faint); font-size: 13px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; flex: none;
}
.prof-page a.contact-row:hover .ext { opacity: 1; transform: translateX(2px); }

/* Dato de contacto que el usuario ocultó del perfil público.
   SOLO lo ve el dueño (el visitante no recibe la fila en el HTML), atenuado y
   con badge, para que sepa qué está mostrando realmente sin cerrar sesión. */
.prof-page .contact-row.is-hidden-field { opacity: 0.5; }
.prof-page .contact-row.is-hidden-field:hover { opacity: 0.8; }
.prof-page .contact-row .ck { display: inline-flex; align-items: center; gap: 6px; }
.prof-page .contact-row .chid {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 5px; border-radius: 999px;
  background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.12); color: var(--ink-faint);
}

/* ============================================================
   TABS + CONTENT
   ============================================================ */
.prof-page .content { padding-block: clamp(24px, 4vw, 38px) 80px; }
.prof-page .tabs-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.prof-page .tabs { display: inline-flex; gap: 8px; }
.prof-page .tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--panel);
  font-family: var(--body); font-weight: 600; font-size: 14.5px; color: var(--ink-mut);
  cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.prof-page .tab i { font-size: 15px; }
.prof-page .tab .tcount {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  background: rgba(0,0,0,0.07); color: var(--ink-mut);
}
.prof-page .tab:hover { border-color: var(--line-3); color: var(--ink); transform: translateY(-1px); }
.prof-page .tab[aria-selected="true"] { background: var(--accent); border-color: var(--ink); color: #fff; }
.prof-page .tab[aria-selected="true"] .tcount { background: rgba(0,0,0,0.14); color: #fff; }
.prof-page .tab.interests[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prof-page .tab.interests[aria-selected="true"] .tcount { background: rgba(255,255,255,0.16); color: #fff; }

.prof-page .tabs-note {
  font-size: 13px; color: var(--ink-mut); display: flex; align-items: center; gap: 7px;
  font-family: var(--body);
}
.prof-page .tabs-note i { color: var(--ink-faint); }

/* grid */
.prof-page .panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.prof-page .tabpanel[hidden] { display: none; }

/* card clickable style (las clases de card vienen de dashboard.css) */
.prof-page .card.clickable {
  cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; display: flex; flex-direction: column;
  border: none; background: none; padding: 0;
}
.prof-page .card-foot .open-cue {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--ink);
  font-family: var(--body);
}
.prof-page .card-foot .open-cue i { transition: transform 0.2s var(--ease); }
.prof-page .card.clickable:hover .card-foot .open-cue i { transform: translateX(3px); }

/* "Mis ofertas"/"Mis intereses": mismo sistema .pcard que agregar-ventas/
   agregar-interes (forms.css) — botón nativo, se abre en el modal de detalle
   en vez de navegar a "Editar". Reset para que <button> se vea como .pcard. */
.prof-page .pcard.clickable {
  cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; padding: 0;
}
.prof-page .pcard.clickable:hover .pcard-edit i { transform: translateX(3px); }
.prof-page .pcard-edit i { transition: transform 0.2s var(--ease); }

/* empty state */
.prof-page .panel-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  font-family: var(--body); color: var(--ink-mut);
}
.prof-page .panel-empty .empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.prof-page .panel-empty p { font-size: 15px; margin: 0 0 18px; }
.prof-page .panel-empty a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-weight: 600;
  font-size: 14px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.prof-page .panel-empty a:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* incomplete profile banner */
.prof-page .incomplete-banner {
  border: 1px solid var(--accent-line); background: var(--accent-tint);
  border-radius: var(--r-lg); padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px; font-family: var(--body);
}
.prof-page .incomplete-banner i { font-size: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.prof-page .incomplete-banner p { margin: 0; font-size: 14.5px; color: var(--ink-mut); line-height: 1.55; }
.prof-page .incomplete-banner a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; }

/* ============================================================
   DETAIL MODAL
   ============================================================ */
.prof-page.detail-scrim {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(22,22,15,0.48); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: clamp(14px, 4vw, 40px);
}
.prof-page.detail-scrim[hidden] { display: none; }

.prof-page .detail-modal {
  width: min(820px, 100%); max-height: calc(100dvh - 56px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,0.4);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s var(--ease);
}
.prof-page.detail-scrim.open .detail-modal { transform: none; }

/* modal media (gallery for sales) */
.prof-page .modal-media {
  position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); flex: none;
  background: #f0ede8; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.prof-page .modal-media.no-media { display: none; }
.prof-page .modal-media .modal-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.prof-page .modal-media .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
}

.prof-page .modal-badge-overlay {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
}
.prof-page .modal-badge-overlay.need { background: var(--ink); color: #fff; }

.prof-page .modal-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; color: var(--ink);
  transition: background 0.2s, transform 0.15s; cursor: pointer;
}
.prof-page .modal-close-btn:hover { background: #fff; transform: rotate(90deg); }

/* gallery nav */
.prof-page .modal-gallery-nav {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
}
.prof-page .modal-gallery-nav .modal-dots { display: flex; gap: 5px; align-items: center; }
.prof-page .modal-gallery-nav .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: background 0.2s, transform 0.2s;
}
.prof-page .modal-gallery-nav .dot.on { background: #fff; transform: scale(1.3); }
.prof-page .modal-gallery-nav .nav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); font-size: 14px;
  transition: background 0.2s; cursor: pointer;
}
.prof-page .modal-gallery-nav .nav-btn:hover { background: #fff; }

/* modal scroll body */
.prof-page .modal-scroll-body { overflow-y: auto; padding: clamp(20px, 3vw, 28px); flex: 1; }
.prof-page .modal-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mut); margin-bottom: 10px;
}
/* Estado "pausada" dentro del kicker del modal (solo perfil propio) */
/* Estado "pausada" del modal: naranjo + glow con efecto de respiración, para que el
   visitante no pase por alto que el dueño ocultó esta publicación (solo alcanzable
   por enlace directo). Solo animamos box-shadow (paint, no layout). */
.prof-page .modal-kicker-paused {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(217,119,6,0.14); border: 1px solid rgba(217,119,6,0.45);
  color: #b45309;
  animation: dtPauseBreathe 2.6s ease-in-out infinite;
}
@keyframes dtPauseBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(217,119,6,0.30), 0 0 6px 0px rgba(217,119,6,0.25); }
  50%      { box-shadow: 0 0 0 1px rgba(217,119,6,0.55), 0 0 13px 3px rgba(217,119,6,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .prof-page .modal-kicker-paused {
    animation: none;
    box-shadow: 0 0 0 1px rgba(217,119,6,0.45), 0 0 9px 1px rgba(217,119,6,0.35);
  }
}
/* Estado "nueva" del modal: informativo, sin animación (a diferencia de "pausada",
   no requiere llamar la atención). Mismos tokens verdes que .new-badge (dashboard.css). */
.prof-page .modal-kicker-new {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--success-soft); border: 1px solid rgba(46,158,107,.35);
  color: var(--success-deep);
}
.prof-page .modal-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); margin: 0;
}
.prof-page .modal-loc { margin-top: 10px; font-size: 14px; color: var(--ink-mut); }
.prof-page .modal-desc {
  margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink);
  font-family: var(--body); text-wrap: pretty;
}
.prof-page .modal-tags-lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin: 22px 0 10px;
}
.prof-page .modal-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-page .modal-tags-list .mt {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  border: 1px solid var(--line-2); padding: 6px 12px; border-radius: var(--r-pill);
}

/* modal footer */
.prof-page .modal-foot {
  flex: none; border-top: 1px solid var(--line); padding: 14px clamp(20px, 3vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: #fcfcf6;
}
.prof-page .modal-foot .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prof-page .modal-foot .who .wlogo {
  width: 36px; height: 36px; border-radius: 9px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px;
}
.prof-page .modal-foot .who .wlogo img { width: 100%; height: 100%; object-fit: cover; }
.prof-page .modal-foot .who .wn { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.prof-page .modal-foot .who .wr { font-size: 12px; color: var(--ink-mut); }
.prof-page .modal-foot .acts { display: flex; gap: 9px; margin-left: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .prof-page .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* minmax(0, 1fr), NO "1fr" a secas: "1fr" es minmax(auto, 1fr), así que la
     pista no baja de su min-content — con contacto/descripción largos eso
     empuja la columna (y toda la tarjeta de contacto) fuera del viewport en
     mobile aunque el contenedor sí mida el ancho correcto. */
  .prof-page .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .prof-page .contact-card { max-width: 520px; }
}
@media (max-width: 620px) {
  .prof-page .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .prof-page .identity { flex-direction: column; gap: 16px; }
  .prof-page .avatar-xl { width: 90px; height: 90px; }
  .prof-page .id-actions .btn-prof { flex: 1; justify-content: center; }
  .prof-page .tabs { width: 100%; }
  .prof-page .tab { flex: 1; justify-content: center; }
  .prof-page .modal-foot { flex-direction: column; align-items: stretch; }
  .prof-page .modal-foot .acts { width: 100%; }
  .prof-page .modal-foot .acts .btn-prof { flex: 1; justify-content: center; }
}

/* ============================================================
   REPORT MODALS (diseño de marca)
   ============================================================ */
.prof-page.report-scrim {
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(22,22,15,0.48); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: clamp(14px, 4vw, 40px);
}
.prof-page.report-scrim[hidden] { display: none; }
.prof-page .report-modal {
  width: min(560px, 100%); max-height: calc(100dvh - 56px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,0.4);
  transform: translateY(14px) scale(0.985); transition: transform 0.24s var(--ease);
}
.prof-page.report-scrim.open .report-modal { transform: none; }

.prof-page .report-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px clamp(18px,3vw,24px); border-bottom: 1px solid var(--line);
}
.prof-page .report-title {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink);
}
.prof-page .report-title i { color: var(--accent); font-size: 18px; }
.prof-page .report-close {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-mut);
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.prof-page .report-close:hover { background: var(--accent-soft); color: var(--ink); transform: rotate(90deg); }

.prof-page .report-body { overflow-y: auto; padding: clamp(18px,3vw,24px); flex: 1; }

.prof-page .report-target {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 20px;
}
.prof-page .report-target .rt-lab {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.prof-page .report-target .rt-name { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.prof-page .report-target .rt-sub { font-size: 12.5px; color: var(--ink-mut); }

.prof-page .report-q { font-family: var(--body); font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 0 0 12px; }
.prof-page .report-q .req { color: var(--accent-deep); }

.prof-page .report-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.prof-page .ropt {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer; position: relative;
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color 0.18s, background 0.18s;
}
.prof-page .ropt:hover { border-color: var(--line-3); background: var(--accent-tint); }
.prof-page .ropt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.prof-page .ropt .rmark {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 2px solid var(--line-3); transition: border-color 0.18s, box-shadow 0.18s;
}
.prof-page .ropt .rtxt { font-family: var(--body); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.prof-page .ropt input:checked ~ .rmark { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent); }
.prof-page .ropt input:checked ~ .rtxt { font-weight: 600; }
.prof-page .ropt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.prof-page .ropt input:focus-visible ~ .rmark { box-shadow: 0 0 0 3px var(--accent-soft); }

.prof-page .report-field-lab {
  display: block; font-family: var(--body); font-weight: 600; font-size: 13px;
  color: var(--ink-mut); margin-bottom: 7px;
}
.prof-page .report-textarea {
  width: 100%; resize: vertical; min-height: 76px; display: block;
  font-family: var(--body); font-size: 14px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); transition: border-color 0.18s, box-shadow 0.18s;
}
.prof-page .report-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prof-page .report-count { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 6px; }
.prof-page .report-note {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 16px;
  background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; font-family: var(--body); font-size: 12.5px; line-height: 1.5; color: var(--ink-mut);
}
.prof-page .report-note i { color: var(--accent); font-size: 14px; flex: none; margin-top: 1px; }

.prof-page .report-foot {
  flex: none; border-top: 1px solid var(--line); padding: 14px clamp(18px,3vw,24px);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: #fcfcf6;
}
@media (max-width: 480px) {
  .prof-page .report-foot { flex-direction: column-reverse; }
  .prof-page .report-foot .btn-prof { width: 100%; justify-content: center; }
}

/* ============================================================
   IMAGE PLACEHOLDER (archivo roto o sin imagen de usuario)
   ============================================================ */
.img-ph {
  background-color: #ffe5df;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 1px, transparent 1px 11px);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.img-ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.6);
}
/* Modal placeholder overlay — keeps img in DOM (JS needs it) */
.modal-media.img-ph-modal {
  background-color: #ffe5df;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 1px, transparent 1px 11px);
  display: grid;
  place-items: center;
}
.modal-media.img-ph-modal::after {
  content: attr(data-ph-label);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.6);
}

/* ============================================================
   SHARE — botón + popover (perfil y publicaciones)
   Escritorio: popover origin-aware. Móvil: hoja nativa (JS).
   ============================================================ */
.prof-page .btn-prof:active { transform: scale(0.97); }

.dt-share-pop {
  position: absolute;
  z-index: 2147483000;
  min-width: 216px;
  padding: 6px;
  background: var(--panel, #fff);
  border: 1px solid var(--line-2, #e6ddd8);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(24,12,6,.17), 0 2px 8px rgba(24,12,6,.08);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 165ms cubic-bezier(0.23,1,0.32,1),
              transform 165ms cubic-bezier(0.23,1,0.32,1);
}
.dt-share-pop.origin-bottom { transform-origin: bottom left; }
.dt-share-pop.open { opacity: 1; transform: scale(1); }

.dt-share-pop .dts-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 0; background: transparent;
  border-radius: 9px;
  font-family: var(--body); font-size: 14px; font-weight: 500;
  color: var(--ink); text-align: left; cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}
.dt-share-pop .dts-item:hover { background: var(--accent-tint, #fbefee); }
.dt-share-pop .dts-item:active { transform: scale(0.98); }

.dt-share-pop .dts-ic {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px; font-size: 15px;
  background: var(--accent-soft, #fbe6e1); color: var(--ink);
}
.dt-share-pop .dts-ic.wa { background: #e7f7ec; color: #1faa53; }
.dt-share-pop .dts-ic.li { background: #e6f0f8; color: #0a66c2; }
.dt-share-pop .dts-item.done .dts-ic { background: #e7f7ec; color: #1faa53; }
.dt-share-pop .dts-item.done .dts-lb { color: #1faa53; }

/* Reset defensivo de iconos (no heredan la lista negra de styles.min.css
   porque el popover vive en <body>, fuera de .form-page) */
.dt-share-pop .dts-ic .bi {
  border: 0 !important; background: none !important;
  padding: 0 !important; margin: 0 !important;
  font-size: 15px !important; line-height: 1; color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .dt-share-pop { transform: none; transition: opacity 120ms ease; }
  .dt-share-pop.open { transform: none; }
  .prof-page .btn-prof:active { transform: none; }
}

/* ============================================================
   QR CODE — modal (ver / descargar tarjeta digital)
   Modal centrado (no popover): transform-origin queda en el
   centro a proposito, no es origin-aware como .dt-share-pop.
   ============================================================ */
.prof-page.qr-scrim {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(20,12,8,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.23,1,0.32,1);
}
.prof-page.qr-scrim.open { opacity: 1; }
.prof-page.qr-scrim .qr-modal {
  position: relative;
  width: min(360px, 100%);
  background: var(--panel);
  border-radius: 20px;
  padding: 30px 26px 24px;
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.23,1,0.32,1),
              opacity 220ms cubic-bezier(0.23,1,0.32,1);
}
.prof-page.qr-scrim.open .qr-modal { transform: scale(1); opacity: 1; }
.prof-page.qr-scrim .qr-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-mut); display: grid; place-items: center; cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.prof-page.qr-scrim .qr-close:hover { background: var(--accent-soft); color: var(--ink); transform: rotate(90deg); }
.prof-page.qr-scrim .qr-canvas-wrap {
  width: 220px; height: 220px; margin: 6px auto 20px;
  background: #fff; border-radius: 16px; padding: 14px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.prof-page.qr-scrim .qr-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.prof-page.qr-scrim .qr-title { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--ink); margin: 0 0 5px; }
.prof-page.qr-scrim .qr-sub { font-size: 13px; color: var(--ink-mut); margin: 0 0 18px; }
.prof-page.qr-scrim .qr-actions { display: flex; justify-content: center; }
.prof-page.qr-scrim .qr-download:disabled { opacity: .6; cursor: default; }
.prof-page.qr-scrim .btn-prof:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .prof-page.qr-scrim,
  .prof-page.qr-scrim .qr-modal { transition: opacity 120ms ease; }
  .prof-page.qr-scrim .qr-modal { transform: none; }
  .prof-page.qr-scrim .btn-prof:active { transform: none; }
}
