/* =================================================================
   perfil-publico.css → perfil-publico.php
   Perfil PÚBLICO del vendedor particular, estilo TikTok.
   Teléfono: portada de lado a lado, cuadrícula de 3.
   Computadora: portada redondeada de 1488px, cuadrícula de 6.
   ================================================================= */
.page-perfil-publico { background: #fff; }
.pp { font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; color: #161823; }
.pp button { font: inherit; }
.pp-chip { display: inline-flex; align-items: center; gap: 5px; background: #F3EEFF; color: #7C3AED; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.pp-estrella { color: #F5B301; font-size: .7em; vertical-align: 2px; }
.pp-nuevo { color: #7C3AED; }
.pp-portada { background: linear-gradient(135deg, #7C3AED 0%, #2563EB 60%, #FE2C55 130%); background-size: cover; background-position: center; position: relative; }
.pp-av { border-radius: 50%; background: conic-gradient(#7C3AED, #2563EB, #FE2C55, #7C3AED); flex: none; position: relative; z-index: 2; }
.pp-av span { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; background: #0f1035; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pp-st { display: flex; }
.pp-st > div, .pp-st > button { border: none; background: none; padding: 0; text-align: left; color: #161823; }
.pp-st b { display: block; }
.pp-st span { color: #8a8b91; }
.pp-bts { display: flex; gap: 8px; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 22px; border-radius: 10px; border: none; background: #f1f1f4; color: #161823 !important; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pp-btn:hover { background: #e7e7ec; }
.pp-btn-1 { background: #FE2C55; color: #fff !important; }
.pp-btn-1:hover { background: #e8193f; }
.pp-btn-1.siguiendo { background: #f1f1f4; color: #161823 !important; }
.pp-btn-ic { padding: 0 15px; }
.pp-bio { color: #3a3a3c; line-height: 1.45; white-space: normal; }
.pp-bio small { display: block; color: #8a8b91; }
.pp-tabs { display: flex; align-items: center; border-bottom: 1px solid #ececf0; background: #fff; }
.pp-tabs button { border: none; background: none; color: #8a8b91; font-weight: 700; position: relative; }
.pp-tabs button.on { color: #161823; }
.pp-tabs button.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; border-radius: 3px; background: #161823; }
.pp-orden select { border: none; background: none; font-weight: 700; color: #161823; cursor: pointer; }
.pp-orden[hidden] { display: none !important; }
.pp-panel { display: none; }
.pp-panel.on { display: block; }
.pp-grid { display: grid; }
.ppc { display: block; color: #161823 !important; text-decoration: none; min-width: 0; }
.ppc-img { position: relative; overflow: hidden; background: #f1f1f4; }
.ppc-img img, .ppc-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppc-img video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.ppc-img video.on { opacity: 1; }
.ppc-sub { position: absolute; z-index: 2; top: 8px; left: 8px; background: #7C3AED; color: #fff; font-size: 11px; font-weight: 800; border-radius: 7px; padding: 2px 8px; }
.ppc-vid { position: absolute; z-index: 2; background: rgba(0,0,0,.5); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ppc-vid em { font-style: normal; }
.ppc-ago { position: absolute; z-index: 2; bottom: 8px; right: 8px; background: rgba(22,24,35,.75); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.ppc-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ppc-pre s { color: #8a8b91; font-weight: 500; font-size: .8em; }
.ppc-pre small { font-size: 12px; color: #6b6c74; font-weight: 600; }
.ppc-cond { font-size: 12.5px; color: #6b6c74; }
.pp-vacio { text-align: center; color: #8a8b91; padding: 50px 20px; font-size: 14.5px; }
.pp-vacio i { display: block; font-size: 34px; color: #d4d4da; margin-bottom: 10px; }
.pp-res-cab { display: flex; align-items: center; gap: 14px; padding: 18px 16px 6px; }
.pp-res-cab > b { font-size: 40px; font-weight: 900; }
.pp-res-cab small { display: block; color: #6b6c74; }
.pp-estrellas { color: #F5B301; font-size: 13px; letter-spacing: 1px; }
.pp-res { padding: 14px 16px; border-bottom: 1px solid #f2f2f5; }
.pp-res-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-res-t small { color: #8a8b91; margin-left: auto; }
.pp-res p { margin: 6px 0 4px; font-size: 14.5px; color: #3a3a3c; }
.pp-res a { font-size: 12.5px; color: #2563EB; text-decoration: none; }
.pp-mio { display: flex; align-items: center; justify-content: center; gap: 8px; background: #161823; color: #fff; font-size: 13.5px; padding: 9px 14px; }
.pp-mio a { color: #C4B5FD; font-weight: 800; margin-left: 6px; text-decoration: none; }

/* ===================== Teléfono ===================== */
@media (max-width: 767px) {
  body.page-perfil-publico .top-header, body.page-perfil-publico .footer, body.page-perfil-publico .header-publico-movil { display: none !important; }
  html body.no-sidebar.page-perfil-publico main.main-content { padding: 0 0 calc(76px + env(safe-area-inset-bottom)) !important; margin: 0 !important; }
  .pp-migas, .pp-chip:not(.pp-chip-cel), .pp-lugar-pc, .pp-orden, .ppc-info, .ppc-vid em, .pp-tabs em { display: none !important; }
  .pp-mio { position: relative; z-index: 5; }
  .pp-portada { height: calc(290px + env(safe-area-inset-top)); margin-bottom: calc(-158px - env(safe-area-inset-top)); }
  .pp-portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(255,255,255,0) 45%, rgba(255,255,255,.85) 74%, #fff 100%); }
  .pp-barra { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; }
  .pp-barra > * { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,.32); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .pp-cab { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0 16px; }
  .pp-av { width: 108px; height: 108px; padding: 4px; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 4px; }
  .pp-av span { font-size: 36px; }
  .pp-quien { grid-column: 1; grid-row: 1; align-self: end; min-width: 0; padding-bottom: 6px; }
  .pp-quien h1 { font-size: 27px; font-weight: 900; letter-spacing: -.5px; margin: 0; line-height: 1.1; word-break: break-word; }
  .pp-usu { font-size: 14.5px; color: #4a4b55; margin: 3px 0 8px; }
  .pp-st { grid-column: 1 / -1; justify-content: space-between; margin-top: 10px; }
  .pp-st b { font-size: 18px; }
  .pp-st span { font-size: 12.5px; }
  .pp-bts { grid-column: 1 / -1; margin-top: 14px; }
  .pp-bts .pp-btn { flex: 1; padding: 0 10px; }
  .pp-bts .pp-btn-ic { flex: none; width: 46px; }
  .pp-bio { padding: 12px 16px 0; font-size: 14px; }
  .pp-bio:empty { display: none; }
  .pp-tabs { margin-top: 14px; position: sticky; top: 0; z-index: 20; }
  .pp-tabs button { flex: 1; padding: 10px 0 8px; font-size: 18px; }
  .pp-tabs button span { display: block; font-size: 10.5px; margin-top: 2px; }
  .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
  .ppc-img { aspect-ratio: 3 / 4; }
  .ppc-img::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.5)); z-index: 1; pointer-events: none; }
  .ppc-pre-cel { position: absolute; z-index: 2; left: 7px; bottom: 6px; color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .ppc-vid { top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; font-size: 10px; }
  .ppc-sub { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
  .ppc-ago { bottom: auto; top: 6px; right: 6px; font-size: 10px; }
}

/* ===================== Computadora ===================== */
@media (min-width: 768px) {
  html body.no-sidebar.page-perfil-publico .main-content { padding-top: 64px !important; }
  .pp { max-width: 1488px; margin: 0 auto; padding: 0 0 50px; }
  .pp-chip-cel, .pp-lugar-cel, .ppc-pre-cel, .pp-barra, .ppc-img video, .ppc-vid { display: none !important; }   /* computadora: solo fotos */
  .pp-migas { font-size: 13px; color: #6b6c74; margin: 18px 0 12px; }
  .pp-migas a { color: #6b6c74; text-decoration: none; }
  .pp-portada { height: 240px; border-radius: 18px; }
  .pp-cab { display: flex; align-items: flex-end; gap: 24px; padding: 0 30px; margin-top: -60px; position: relative; }
  .pp-av { width: 150px; height: 150px; padding: 5px; }
  .pp-av span { border-width: 5px; font-size: 50px; }
  .pp-quien { flex: 1; min-width: 0; padding-bottom: 12px; }
  .pp-quien h1 { margin: 0; font-size: 32px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .pp-usu { color: #6b6c74; font-size: 14.5px; margin-top: 4px; }
  .pp-st { gap: 30px; padding-bottom: 14px; }
  .pp-st b { font-size: 22px; }
  .pp-st span { font-size: 13px; }
  .pp-st button { cursor: pointer; }
  .pp-bts { padding-bottom: 16px; }
  .pp-bio { margin: 16px 30px 0; font-size: 14.5px; }
  .pp-bio small { font-size: 13px; }
  .pp-tabs { gap: 34px; margin: 22px 0 20px; }
  .pp-tabs button { padding: 0 0 12px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  .pp-tabs button.on::after { left: 0; right: 0; }
  .pp-tabs em { font-style: normal; font-weight: 700; }
  .pp-orden { margin-left: auto; font-size: 14px; color: #4a4b55; padding-bottom: 12px; }
  .pp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
  .ppc-img { aspect-ratio: 1; border-radius: 14px; }
  .ppc:hover .ppc-img img { transform: scale(1.03); }
  .ppc-img img { transition: transform .25s; }
  .ppc-vid { top: 10px; left: 10px; font-size: 11.5px; border-radius: 999px; padding: 4px 10px; }
  .ppc-nom { font-size: 15px; margin-top: 10px; line-height: 1.3; }
  .ppc-pre { font-weight: 800; font-size: 18px; margin-top: 4px; }
  .pp-res-cab { padding: 6px 0 10px; }
  .pp-resenas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
  .pp-res { padding: 16px 0; }
  .pp-mio { margin: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .pp { padding-left: 20px; padding-right: 20px; }
  .pp-cab { flex-wrap: wrap; }
  .pp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
