/* Distribución y marcos del prototipo aprobado, aislados del CSS del Portal. */
.vp-vista { color:var(--text); font:inherit; display:flex; flex-direction:column; gap:16px; container-type:inline-size; }
.vp-vista *, .vp-vista *::before, .vp-vista *::after { box-sizing:border-box; }
.vp-vista [hidden] { display:none !important; }
.vp-vista button { font:inherit; cursor:pointer; }
.vp-vista button:focus-visible { outline:2px solid var(--gold-strong); outline-offset:3px; }
.vp-tabs, .vp-tools { display:flex; flex-wrap:wrap; gap:6px; }
.vp-tools { justify-content:center; gap:8px; }
.vp-vista .vp-tab, .vp-vista .vp-chip { appearance:none; border:1px solid var(--border); background:var(--card); color:var(--text); font-size:.88rem; font-weight:600; padding:8px 14px; border-radius:999px; }
.vp-vista .vp-tab[aria-selected="true"] { background:var(--text); color:var(--bg); border-color:var(--text); }
.vp-vista .vp-chip { font-size:.78rem; padding:6px 12px; }
.vp-vista .vp-chip[aria-pressed="true"] { background:var(--gold-bg); color:var(--gold-strong); border-color:var(--gold-strong); }
.vp-stage { display:grid; grid-template-columns:minmax(0,380px) minmax(0,1fr); gap:28px; align-items:start; }
.vp-phone-col { display:flex; flex-direction:column; gap:12px; align-items:center; min-width:0; }
.vp-phone { width:100%; max-width:340px; background:#fff; color:#121212; color-scheme:light; border-radius:30px; border:8px solid #1b1b1b; overflow:hidden; position:relative; box-shadow:0 10px 30px #0003; }
.vp-notch { height:22px; background:#fff; display:flex; justify-content:center; align-items:center; }
.vp-notch i { display:block; width:70px; height:6px; background:#1b1b1b; border-radius:6px; }
.vp-ig-head, .vp-fb-head, .vp-v-head { display:flex; align-items:center; gap:8px; padding:8px 10px; }
.vp-fb-head { padding:10px; }
.vp-who { font-weight:600; font-size:.82rem; line-height:1.2; overflow-wrap:anywhere; min-width:0; }
.vp-avatar { width:30px; height:30px; border-radius:50%; background:var(--gold-strong,#C81620); color:#fff; display:grid; place-items:center; font-size:.62rem; font-weight:700; flex:none; box-shadow:0 0 0 2px #fff,0 0 0 3.5px #d62976; overflow:hidden; }
.vp-vista .vp-avatar-img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; margin:0; }
.vp-fb-head .vp-avatar { box-shadow:none; }
.vp-media { position:relative; width:100%; overflow:hidden; background:#111; }
.vp-r45 { aspect-ratio:4/5; }
.vp-r916 { aspect-ratio:9/16; }
.vp-r11 { aspect-ratio:1; }
.vp-vista .vp-asset { display:block; width:100%; height:100%; max-width:100%; border:0; border-radius:0; margin:0; object-fit:contain; }
.vp-vista .vp-nav { position:absolute; z-index:2; top:50%; transform:translateY(-50%); width:28px; height:28px; padding:0; border-radius:50%; border:0; background:#ffffffd9; color:#111; font-size:1.2rem; line-height:1; display:grid; place-items:center; }
.vp-prev { left:6px; } .vp-next { right:6px; }
.vp-vista .vp-nav:disabled { opacity:.35; cursor:default; }
.vp-badge { position:absolute; top:8px; right:8px; background:#0009; color:#fff; font-size:.62rem; padding:2px 8px; border-radius:10px; font-weight:600; }
.vp-pager { position:absolute; bottom:6px; left:0; right:0; display:flex; flex-wrap:wrap; gap:2px; justify-content:center; }
.vp-vista .vp-dot { width:20px; height:20px; border:0; padding:7px; border-radius:50%; background:transparent; }
.vp-dot::before { content:''; display:block; width:6px; height:6px; border-radius:50%; background:#cfcfcf; box-shadow:0 0 2px #000; }
.vp-dot[aria-pressed="true"]::before { background:#0095f6; }
.vp-actions { display:flex; align-items:center; gap:12px; padding:8px 10px 2px; }
.vp-actions svg, .vp-reel-side svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.vp-actions svg:last-child { margin-left:auto; }
.vp-caption { padding:4px 10px 12px; font-size:.8rem; line-height:1.35; overflow-wrap:anywhere; white-space:pre-wrap; }
.vp-vista .vp-more { appearance:none; border:0; background:none; padding:0; font:inherit; color:#6b6b6b; text-decoration:none; }
.vp-tabbar { display:flex; justify-content:space-around; padding:8px 0 12px; border-top:1px solid #e6e6e6; }
.vp-tabbar i { width:20px; height:20px; border-radius:5px; border:1.8px solid #121212; display:block; }
.vp-tabbar i:nth-child(3) { border-radius:50%; }
.vp-over { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; color:#fff; pointer-events:none; }
.vp-shade { position:absolute; inset:0; background:linear-gradient(180deg,#0006,transparent 22%,transparent 55%,#0009); pointer-events:none; }
.vp-bars { display:flex; gap:3px; padding:8px 8px 0; }
.vp-bars i { flex:1; height:2px; border-radius:2px; background:#ffffff73; }
.vp-bars i:first-child { background:#fff; }
.vp-v-head { font-size:.78rem; font-weight:600; }
.vp-v-head .vp-avatar { width:28px; height:28px; box-shadow:0 0 0 1.5px #fff; }
.vp-reply { margin:0 10px 12px; border:1px solid #fffc; border-radius:999px; padding:9px 14px; font-size:.78rem; }
.vp-reel-side { position:absolute; right:8px; bottom:70px; display:flex; flex-direction:column; gap:14px; align-items:center; color:#fff; pointer-events:none; }
.vp-reel-side svg { width:24px; height:24px; }
.vp-reel-bottom { padding:0 52px 40px 10px; font-size:.76rem; line-height:1.3; max-height:65%; overflow:hidden; }
.vp-reel-bottom .vp-v-head { padding:0 0 6px; }
.vp-reel-bottom .vp-caption { padding:0; font-size:inherit; max-height:140px; overflow:hidden; }
/* Al tocar «más» el texto crece hacia arriba sobre el video, con el fondo más oscuro, como en Instagram.
   Los controles del video quedan libres abajo. */
.vp-expandido .vp-shade { background:linear-gradient(180deg,#0006,transparent 18%,#000a 40%,#000d 100%); }
.vp-expandido .vp-reel-bottom { max-height:82%; display:flex; flex-direction:column; }
.vp-expandido .vp-reel-bottom .vp-v-head, .vp-expandido .vp-reel-bottom .vp-music { flex:none; }
.vp-expandido .vp-reel-bottom .vp-caption { max-height:none; min-height:0; flex:0 1 auto; overflow-y:auto; scrollbar-width:none; pointer-events:auto; }
.vp-expandido .vp-reel-bottom .vp-caption::-webkit-scrollbar { display:none; }
.vp-reel-bottom .vp-avatar { width:24px; height:24px; }
.vp-music { margin-top:6px; font-size:.68rem; opacity:.9; overflow-wrap:anywhere; }
/* Las capas decorativas nunca capturan clics del video. Solo «más» es interactivo. */
.vp-over .vp-more { color:#fffc; pointer-events:auto; }
/* Con video, la barra nativa de reproducción ocupa ~50px abajo: la maqueta se sube para no taparla. */
.vp-con-video .vp-pager { bottom:62px; }
.vp-con-video .vp-reply { margin-bottom:60px; }
.vp-con-video .vp-reel-bottom { padding-bottom:86px; }
.vp-safe { position:absolute; left:0; right:0; pointer-events:none; background:repeating-linear-gradient(135deg,#c8162059 0 6px,#c816201a 6px 12px); display:none; }
.vp-safe-top { top:0; height:14%; }
.vp-safe-bottom { bottom:0; height:22%; }
.vp-safe-right { right:0; top:44%; bottom:22%; left:auto; width:17%; }
.vp-show-safe .vp-safe { display:block; }
.vp-safe span { position:absolute; left:6px; top:4px; font-size:.55rem; color:#fff; background:#c81620e6; padding:1px 5px; border-radius:3px; }
.vp-tt-top { display:flex; justify-content:center; gap:18px; padding:10px 0 0; font-size:.8rem; font-weight:600; }
.vp-tt-top span { opacity:.7; }
.vp-tt-nav { display:flex; justify-content:space-around; align-items:center; background:#000; color:#fff; padding:9px 0 12px; font-size:.62rem; }
.vp-tt-nav b { background:#fff; color:#000; width:34px; height:22px; border-radius:7px; display:grid; place-items:center; font-size:1rem; box-shadow:-3px 0 0 #25f4ee,3px 0 0 #fe2c55; }
.vp-phone[data-marco="tiktok"] .vp-notch { background:#000; }
.vp-phone[data-marco="tiktok"] .vp-notch i { background:#2a2a2a; }
.vp-fb-react { display:flex; justify-content:space-around; border-top:1px solid #e6e6e6; padding:9px 0 11px; font-size:.76rem; color:#6b6b6b; font-weight:600; }
.vp-side { display:flex; flex-direction:column; gap:16px; min-width:0; }
.vp-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.vp-title { margin:0; font-size:.72rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.vp-copy { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.95rem; line-height:1.6; }
.vp-hidden-copy { background:var(--gold-bg); color:inherit; border-radius:3px; text-decoration:underline; text-decoration-color:var(--gold-strong); text-decoration-thickness:1px; text-underline-offset:3px; }
.vp-legend, .vp-note { font-size:.76rem; color:var(--text-muted); margin:0; }
.vp-empty { padding:24px; margin:0; text-align:center; }
.vp-media .vp-empty { color:#fff; }
.vp-original { width:100%; }
.vp-original .vp-asset { height:auto; max-height:80vh; }
.vp-original iframe.vp-asset { aspect-ratio:16/9; height:auto; }
.vp-is-original .vp-stage { grid-template-columns:minmax(0,1fr); }
/* Contenedor de 360 a 759px: el marco del celular se mantiene y el texto pasa debajo. */
@container (max-width:759px) {
  .vp-stage { grid-template-columns:minmax(0,1fr); gap:16px; }
}
/* Contenedor menor a 360px (celular): sin carcasa ni UI superpuesta, solo la pieza y su texto. */
@container (max-width:359px) {
  .vp-phone { max-width:none; border:0; border-radius:0; box-shadow:none; background:transparent; color:var(--text); }
  .vp-phone .vp-notch, .vp-phone .vp-ig-head, .vp-phone .vp-fb-head, .vp-phone .vp-actions, .vp-phone .vp-tabbar, .vp-phone .vp-over, .vp-phone .vp-shade, .vp-phone .vp-reel-side, .vp-phone .vp-tt-nav, .vp-phone .vp-fb-react, .vp-phone > .vp-caption { display:none; }
  .vp-phone .vp-media { aspect-ratio:auto; }
  .vp-phone .vp-asset { height:auto; max-height:80vh; }
  .vp-phone iframe.vp-asset { aspect-ratio:9/16; }
  /* Sin marco no hay nada que comparar: «Ver original», «zonas seguras» y la nota de cortes sobran.
     Si venías de una pantalla ancha en modo original, el botón se queda para poder volver. */
  .vp-vista:not(.vp-is-original) .vp-tools, .vp-vista:not(.vp-is-original) .vp-note { display:none; }
}
/* Tarjeta de pieza con vista previa: la columna de la pieza mide lo justo para el marco (360px).
   Las tarjetas van de a dos por fila si caben (720px cada una) y de a una si no. */
@media (min-width:860px) {
  #piezas:has(.pieza-con-vista) { grid-template-columns:repeat(auto-fit, minmax(720px, 1fr)); }
  .pieza.pieza-con-vista { grid-template-columns:minmax(0,360px) minmax(0,1fr); }
}
