/* =====================================================================
   PETRALINK — Red social de las piedras
   Lo cargan petralink.html (reels) y petralink2.html (publicaciones).
   Usa la paleta de style.css (:root).
   Estructura: .pl-layout > columnas laterales + .pl-device (el "móvil")
   ===================================================================== */

.pl-wrap { --pl-radius: 36px; }

/* Nuestros display: flex/grid ganan al atributo hidden; aquí mandan los hidden */
[hidden] { display: none !important; }

/* ---------- Intro ---------- */
.pl-intro { max-width: 760px; }
.pl-intro .pl-marca { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pl-intro .pl-marca svg { width: 42px; height: 42px; color: var(--slate); flex: none; }
.pl-intro .pl-marca h1 { margin: 0; }

/* ---------- Distribución de la página ---------- */
.pl-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) auto minmax(230px, 290px);
  gap: 34px;
  align-items: center;
  justify-content: center;
}
.pl-center { display: flex; align-items: center; gap: 14px; justify-self: center; }

@media (max-width: 1180px) {
  .pl-layout { grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .pl-center { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
}
@media (max-width: 720px) { .pl-layout { grid-template-columns: 1fr; } }

/* ---------- Paneles laterales ---------- */
.pl-panel {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.pl-panel + .pl-panel { margin-top: 18px; }
.pl-panel h3 { font-size: 1.05rem; margin-bottom: .6em; }
.pl-trend { list-style: none; margin: 0; padding: 0; }
.pl-trend li { padding: 8px 0; border-top: 1px solid var(--paper-3); }
.pl-trend li:first-child { border-top: 0; }
.pl-trend b { display: block; font-family: var(--font-title); color: var(--slate-dark); }
.pl-trend span { font-size: .82rem; color: var(--ink-2); }

.pl-sug { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pl-sug li { display: flex; align-items: center; gap: 10px; }
.pl-sug .pl-av { width: 42px; height: 42px; border-width: 2px; }
.pl-sug div { flex: 1; min-width: 0; line-height: 1.25; }
.pl-sug b { font-size: .92rem; display: block; }
.pl-sug span { font-size: .78rem; color: var(--ink-2); }

.pl-aviso { font-size: .82rem; color: var(--ink-2); }

/* ---------- Flechas de navegación (escritorio) ---------- */
.pl-nav { display: flex; flex-direction: column; gap: 12px; }
.pl-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--paper-3); background: var(--white); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s;
}
.pl-nav button:hover { background: var(--paper-2); transform: translateY(-2px); }
.pl-nav svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .pl-nav { display: none; } }

/* ---------- El "móvil" ---------- */
.pl-device {
  --h: clamp(460px, 74vh, 780px);
  position: relative; flex: none;
  width: min(calc(var(--h) * 0.5625), calc(100vw - 56px));
  aspect-ratio: 9 / 16;
  padding: 10px;
  border-radius: var(--pl-radius);
  background: linear-gradient(155deg, #423b33, #16130f 60%, #2a241e);
  box-shadow: 0 34px 60px rgba(46, 34, 18, .34), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
/* botones laterales */
.pl-device::before, .pl-device::after {
  content: ''; position: absolute; left: -3px; width: 3px; border-radius: 3px 0 0 3px; background: #2b251f;
}
.pl-device::before { top: 22%; height: 34px; }
.pl-device::after { top: 32%; height: 56px; }

.pl-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--pl-radius) - 11px);
  background: #0d0b09; color: #fff;
  font-family: var(--font-body);
  isolation: isolate;
}
.pl-notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .55); z-index: 9;
}

/* ---------- Feed con scroll-snap vertical ---------- */
.pl-feed {
  position: absolute; inset: 0;
  overflow-y: scroll; overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pl-feed::-webkit-scrollbar { width: 0; height: 0; }
.pl-reel {
  position: relative; height: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}

/* ---------- Escena (fondo del "vídeo") ---------- */
.pl-escena { position: absolute; inset: 0; }
.pl-escena svg { width: 100%; height: 100%; display: block; }
.pl-reel.is-active .pl-escena { animation: pl-ken 20s ease-in-out infinite alternate; }
@keyframes pl-ken { from { transform: scale(1.05); } to { transform: scale(1.13) translateY(-1.5%); } }

/* grano de vídeo + viñeta */
.pl-grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .5; pointer-events: none; }
.pl-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(0,0,0,0) 55%, rgba(10,8,6,.45) 100%),
    linear-gradient(180deg, rgba(12,10,8,.55) 0, rgba(12,10,8,0) 20%),
    linear-gradient(0deg, rgba(12,10,8,.78) 0, rgba(12,10,8,.3) 26%, rgba(12,10,8,0) 48%);
}

/* ---------- Protagonista ---------- */
.pl-actor {
  position: absolute; left: 50%; bottom: var(--suelo, 18%);
  width: var(--tam, 52%); transform: translateX(-50%);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45));
}
.pl-actor img { width: 100%; }

.pl-reel--picos      { --suelo: 17%; --tam: 50%; }
.pl-reel--rio        { --suelo: 21%; --tam: 46%; }
.pl-reel--estanteria { --suelo: 27%; --tam: 40%; }
.pl-reel--playa      { --suelo: 18%; --tam: 46%; }
.pl-reel--noche      { --suelo: 19%; --tam: 56%; }
.pl-reel--cueva      { --suelo: 22%; --tam: 44%; }
.pl-reel--cosmos     { --suelo: 30%; --tam: 74%; }

/* Animaciones del protagonista */
.pl-anim { display: block; transform-origin: 50% 92%; }
.pl-anim--temblor       { animation: pl-temblor 5s ease-in-out infinite; }
.pl-anim--tiembla-fuerte{ animation: pl-tiembla 2.4s ease-in-out infinite; }
.pl-anim--flota         { animation: pl-flota 4.2s ease-in-out infinite; }
.pl-anim--salto         { animation: pl-salto 2.6s cubic-bezier(.3,.7,.4,1) infinite; }
.pl-anim--rueda         { animation: pl-rueda 3.6s linear infinite; }
.pl-anim--respira       { animation: pl-respira 6s ease-in-out infinite; }
.pl-anim--acecha        { animation: pl-acecha 9s ease-in-out infinite; }
.pl-anim--duerme        { animation: pl-duerme 6.5s ease-in-out infinite; }

@keyframes pl-temblor { 0%, 92%, 100% { transform: none; } 94% { transform: translateX(-1.5%) rotate(-1deg); } 97% { transform: translateX(1.5%) rotate(1deg); } }
@keyframes pl-tiembla { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes pl-flota   { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4%) rotate(2deg); } }
@keyframes pl-salto   { 0%, 60%, 100% { transform: translateY(0) scaleY(1); } 66% { transform: translateY(4%) scaleY(.9); } 80% { transform: translateY(-26%) scaleY(1.06); } 92% { transform: translateY(0) scaleY(.96); } }
@keyframes pl-rueda   { from { transform: translateX(-115%) rotate(0); } to { transform: translateX(115%) rotate(720deg); } }
@keyframes pl-respira { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.035) translateY(-1.5%); } }
@keyframes pl-acecha  { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.14) translate(-2%, 3%); } }
@keyframes pl-duerme  { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.02) translateY(-1%); } }

/* ---------- Partículas (polvo, burbujas, gotas, estrellas) ---------- */
.pl-motas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-motas i {
  position: absolute; display: block; border-radius: 50%;
  background: #fff; opacity: .5;
  animation: pl-sube linear infinite;
}
.pl-motas.pl-motas--gota i { border-radius: 0 0 50% 50%; width: 2px !important; animation-name: pl-cae; }
@keyframes pl-sube { from { transform: translateY(20px) scale(.6); opacity: 0; } 20% { opacity: .6; } to { transform: translateY(-110%) scale(1); opacity: 0; } }
@keyframes pl-cae  { from { transform: translateY(-20px); opacity: 0; } 15% { opacity: .75; } to { transform: translateY(560%); opacity: 0; } }

/* ---------- Barra superior ---------- */
.pl-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 16px 12px 0; pointer-events: none; }
.pl-top > * { pointer-events: auto; }
.pl-progress { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.pl-progress i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }
.pl-progress i.run { animation: pl-avanza var(--dur, 8s) linear forwards; }
@keyframes pl-avanza { from { width: 0; } to { width: 100%; } }

.pl-topbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pl-logo { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.pl-logo svg { width: 22px; height: 22px; color: #fff; }
.pl-tabs { display: flex; gap: 4px; margin-left: auto; }
.pl-tabs button {
  background: none; border: 0; color: rgba(255, 255, 255, .72); cursor: pointer;
  font: 800 .78rem var(--font-body); padding: 4px 8px; border-radius: 99px;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.pl-tabs button.on { color: #fff; background: rgba(255, 255, 255, .18); }
.pl-mute {
  width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .38); color: #fff; display: grid; place-items: center;
}
.pl-mute svg { width: 16px; height: 16px; }

/* ---------- Barra de acciones ---------- */
.pl-rail { position: absolute; right: 8px; bottom: 18px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.pl-rail button {
  background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: 800 .66rem var(--font-body); text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
  transition: transform .15s;
}
.pl-rail button:hover { transform: scale(1.08); }
.pl-rail button:active { transform: scale(.92); }
.pl-rail svg { width: 27px; height: 27px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .5)); }
.pl-rail .pl-like.on { color: var(--coral); }
.pl-rail .pl-save.on { color: var(--gold); }

.pl-avwrap { position: relative; display: block; margin-bottom: 4px; }
.pl-av { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #6b645b; }
.pl-av svg, .pl-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-av--gorvak { background: #10131a; }
.pl-rail .pl-follow {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff;
  background: var(--coral); color: #fff; cursor: pointer;
  display: grid; place-items: center; font: 800 13px/1 var(--font-body); padding: 0;
}
.pl-rail .pl-follow.on { background: var(--olive-dark); }

.pl-disc {
  display: block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .8); background: #201c18;
  animation: pl-gira 5s linear infinite;
}
.pl-disc svg, .pl-disc img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pl-gira { to { transform: rotate(360deg); } }

/* ---------- Pie: cuenta, texto, audio ---------- */
.pl-info { position: absolute; left: 14px; right: 68px; bottom: 16px; z-index: 4; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.pl-user { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .9rem; }
.pl-user .pl-verif { display: block; flex: none; width: 14px; height: 14px; color: #8fd0f0; }
.pl-user .pl-verif svg { display: block; width: 100%; height: 100%; }
.pl-seguir {
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); color: #fff;
  border-radius: 7px; padding: 2px 9px; font: 800 .7rem var(--font-body); cursor: pointer;
}
.pl-seguir.on { border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .75); }
.pl-caption {
  font-size: .86rem; line-height: 1.35; margin: 7px 0 2px; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.pl-caption.abierta { display: block; max-height: 8.5em; overflow-y: auto; }
.pl-caption .pl-tags { color: #cfe3f2; font-weight: 700; }
.pl-mas {
  background: none; border: 0; padding: 0; margin: 0 0 8px; cursor: pointer;
  color: rgba(255, 255, 255, .85); font: 800 .76rem var(--font-body); text-shadow: inherit;
}
.pl-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px;
  background: rgba(255, 255, 255, .95); color: var(--ink); text-decoration: none;
  border-radius: 8px; padding: 7px 12px; font: 800 .78rem var(--font-body); text-shadow: none;
}
.pl-cta svg { width: 14px; height: 14px; }
.pl-audio { display: flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; }
.pl-audio > svg { width: 13px; height: 13px; flex: none; }
.pl-marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); }
.pl-marquee span { display: inline-block; white-space: nowrap; animation: pl-tira 15s linear infinite; }
@keyframes pl-tira { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Doble toque, pausa ---------- */
.pl-burst { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.pl-burst svg { width: 120px; height: 120px; color: #fff; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.pl-burst.go { animation: pl-late .95s ease forwards; }
@keyframes pl-late {
  0% { opacity: 0; transform: scale(.3) rotate(-14deg); }
  30% { opacity: 1; transform: scale(1.12) rotate(6deg); }
  45% { transform: scale(.96) rotate(0); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25) translateY(-16px); }
}
.pl-pausa { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .18s; }
.pl-pausa svg { width: 62px; height: 62px; color: rgba(255, 255, 255, .9); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55)); }
.pl-screen.is-paused .pl-reel.is-active .pl-pausa { opacity: 1; }
.pl-screen.is-paused .pl-reel.is-active .pl-escena,
.pl-screen.is-paused .pl-reel.is-active .pl-anim,
.pl-screen.is-paused .pl-reel.is-active .pl-motas i,
.pl-screen.is-paused .pl-reel.is-active .pl-disc,
.pl-screen.is-paused .pl-progress i { animation-play-state: paused; }

/* ---------- Hoja de comentarios ---------- */
.pl-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  height: 68%; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border-radius: 20px 20px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, .35);
  transform: translateY(101%); transition: transform .3s cubic-bezier(.3, .8, .4, 1);
}
.pl-sheet.open { transform: none; }
.pl-sheet header { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--paper-3); }
.pl-sheet header strong { font-family: var(--font-title); font-size: .95rem; }
.pl-sheet header button { margin-left: auto; background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.pl-lista { flex: 1; overflow-y: auto; padding: 12px 14px; display: grid; gap: 14px; align-content: start; }
.pl-com { display: flex; gap: 10px; }
.pl-com .pl-av { width: 32px; height: 32px; border-color: var(--paper-3); flex: none; }
.pl-com div { min-width: 0; }
.pl-com b { font-size: .8rem; font-family: var(--font-title); }
.pl-com p { margin: 1px 0 2px; font-size: .86rem; line-height: 1.35; }
.pl-com span { font-size: .72rem; color: var(--ink-3); }
.pl-sheet form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--paper-3); background: var(--white); }
.pl-sheet input {
  flex: 1; min-width: 0; border: 1px solid var(--paper-3); border-radius: 99px;
  padding: 8px 14px; font: 400 .86rem var(--font-body); background: var(--paper); color: var(--ink);
}
.pl-sheet input:focus { outline: 2px solid var(--slate-light); }
.pl-sheet form button { border: 0; background: none; color: var(--slate-dark); font: 800 .84rem var(--font-body); cursor: pointer; padding: 0 6px; }

/* ---------- Estado vacío (pestaña Siguiendo) ---------- */
.pl-vacio { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 40px 28px; gap: 10px; }
.pl-vacio svg { width: 64px; height: 64px; margin: 0 auto; opacity: .7; }
.pl-vacio p { font-size: .9rem; color: rgba(255, 255, 255, .8); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .pl-escena, .pl-anim, .pl-motas i, .pl-disc, .pl-marquee span { animation: none !important; }
}

/* ---------- Animaciones dentro de las escenas SVG ---------- */
.pl-drift  { animation: pl-drift 34s ease-in-out infinite alternate; }
.pl-drift2 { animation: pl-drift 52s ease-in-out infinite alternate-reverse; }
@keyframes pl-drift { from { transform: translateX(-38px); } to { transform: translateX(38px); } }

.pl-ola  { animation: pl-vaiven 7s ease-in-out infinite; }
.pl-ola2 { animation: pl-vaiven 10s ease-in-out infinite reverse; }
@keyframes pl-vaiven { 0%, 100% { transform: translateX(-13px); } 50% { transform: translateX(13px); } }

.pl-tw  { animation: pl-parpadeo 3.6s ease-in-out infinite; }
.pl-tw2 { animation: pl-parpadeo 5.4s ease-in-out infinite .9s; }
@keyframes pl-parpadeo { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.pl-glow { animation: pl-brillo 6s ease-in-out infinite; }
@keyframes pl-brillo { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Color de las partículas ---------- */
.pl-motas--polvo i       { background: #fff4d8; opacity: .35; }
.pl-motas--burbuja i     { background: #d8ecf6; opacity: .4; }
.pl-motas--luciernaga i  { background: #ffe9a8; box-shadow: 0 0 6px #ffe9a8; }
.pl-motas--estrella i    { background: #fff; animation-name: pl-parpadeo; }
.pl-motas--gota i        { background: #a9d4e4; }

/* Congelar también las escenas al pausar */
.pl-screen.is-paused .pl-reel.is-active .pl-escena svg * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pl-escena svg * { animation: none !important; } }

/* =====================================================================
   PUBLICACIONES (petralink2.html) — la app de fotos dentro del móvil
   ===================================================================== */

/* Conmutador Reels / Publicaciones de la cabecera de página */
.pl-switch {
  flex-wrap: wrap;
  display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px;
  background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: 999px;
}
.pl-switch a {
  padding: 7px 20px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 800; font-size: .92rem;
}
.pl-switch a:hover { color: var(--ink); }
.pl-switch a.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Barras de la app ---------- */
.pl-appbar, .pl-tabbar { position: absolute; left: 0; right: 0; z-index: 6; }
.pl-appbar {
  top: 0; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: rgba(243, 237, 225, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--paper-3);
}
.pl-appbar .pl-logo { color: var(--ink); font-size: 1.3rem; text-shadow: none; }
.pl-appbar .pl-logo svg { color: var(--slate); }
.pl-appbar .pl-iconos { margin-left: auto; display: flex; gap: 14px; }
.pl-appbar button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.pl-appbar svg { width: 22px; height: 22px; display: block; }

.pl-tabbar {
  bottom: 0; height: 48px; display: flex; align-items: center; justify-content: space-around;
  background: rgba(243, 237, 225, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--paper-3);
}
.pl-tabbar button, .pl-tabbar a {
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-3);
  display: grid; place-items: center; text-decoration: none;
}
.pl-tabbar .on { color: var(--ink); }
.pl-tabbar svg { width: 23px; height: 23px; display: block; }
.pl-tabbar .pl-av { width: 25px; height: 25px; border-color: var(--ink-3); }

/* ---------- Feed de publicaciones ---------- */
.pl-feed2 {
  position: absolute; top: 46px; bottom: 48px; left: 0; right: 0;
  overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  background: var(--paper); color: var(--ink);
  scrollbar-width: none; -ms-overflow-style: none;
}
.pl-feed2::-webkit-scrollbar { width: 0; }

/* ---------- Historias ---------- */
.pl-stories {
  display: flex; gap: 12px; padding: 12px; overflow-x: auto;
  border-bottom: 1px solid var(--paper-3); scrollbar-width: none;
}
.pl-stories::-webkit-scrollbar { height: 0; }
.pl-story { flex: 0 0 auto; width: 62px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pl-ring {
  display: block; width: 60px; height: 60px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from 200deg, var(--coral), var(--gold), var(--olive-dark), var(--slate), var(--coral));
}
.pl-story.vista .pl-ring, .pl-story--tuya .pl-ring { background: var(--paper-3); }
.pl-ring .pl-av { width: 100%; height: 100%; border: 2px solid var(--paper); }
.pl-story small {
  display: block; margin-top: 5px; font-size: .64rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-plus {
  position: absolute; right: 1px; top: 41px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--slate); color: #fff; border: 2px solid var(--paper); display: grid; place-items: center;
}
.pl-plus svg { width: 10px; height: 10px; }

/* ---------- Una publicación ---------- */
.pl-post { border-bottom: 1px solid var(--paper-3); padding-bottom: 12px; }
.pl-post:last-child { border-bottom: 0; }
.pl-phead { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.pl-phead .pl-av { width: 34px; height: 34px; border-color: var(--paper-3); }
.pl-pwho { min-width: 0; flex: 1; line-height: 1.2; }
.pl-pwho b { font: 800 .84rem var(--font-title); display: inline-flex; align-items: center; gap: 5px; }
.pl-pwho .pl-verif { width: 13px; height: 13px; color: var(--slate); flex: none; }
.pl-pwho .pl-verif svg { width: 100%; height: 100%; display: block; }
.pl-pwho span { display: block; font-size: .71rem; color: var(--ink-2); }
.pl-pseguir { background: none; border: 0; padding: 0 4px; cursor: pointer; color: var(--slate-dark); font: 800 .8rem var(--font-body); }
.pl-pmas { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); }
.pl-pmas svg { width: 18px; height: 18px; display: block; }

/* Carrusel de fotos */
.pl-carrusel { position: relative; background: #0d0b09; }
.pl-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pl-tira::-webkit-scrollbar { height: 0; }
.pl-foto {
  position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1;
  scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.pl-foto svg { width: 100%; height: 100%; display: block; }
/* una foto no se mueve: se congela la escena y la piedra queda en una pose */
.pl-foto svg *, .pl-foto .pl-anim { animation: none !important; }
.pl-pose--temblor        { transform: rotate(-1.5deg); }
.pl-pose--tiembla-fuerte { transform: rotate(2.5deg); }
.pl-pose--flota          { transform: rotate(-4deg) translateY(-3%); }
.pl-pose--salto          { transform: translateY(-15%) scaleY(1.04); }
.pl-pose--rueda          { transform: rotate(38deg); }
.pl-pose--respira        { transform: scale(1.03); }
.pl-pose--duerme         { transform: rotate(1.5deg); }
.pl-pose--acecha         { transform: scale(1.06); }

.pl-foto--picos      { --suelo: 16%; --tam: 42%; }
.pl-foto--rio        { --suelo: 20%; --tam: 38%; }
.pl-foto--estanteria { --suelo: 23%; --tam: 34%; }
.pl-foto--playa      { --suelo: 15%; --tam: 38%; }
.pl-foto--noche      { --suelo: 10%; --tam: 46%; }
.pl-foto--cueva      { --suelo: 22%; --tam: 36%; }
.pl-foto--cosmos     { --suelo: 26%; --tam: 62%; }

.pl-cont {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(20, 16, 12, .6); color: #fff;
  font: 800 .7rem var(--font-body); padding: 2px 9px; border-radius: 99px;
}
.pl-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 249, 244, .86); color: var(--ink);
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.pl-carrusel:hover .pl-flecha { opacity: 1; }
.pl-flecha--izq { left: 8px; }
.pl-flecha--der { right: 8px; }
.pl-flecha svg { width: 15px; height: 15px; }
@media (hover: none) { .pl-flecha { display: none; } }

/* Fila de acciones */
.pl-acciones { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 12px 3px; }
.pl-acciones button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); transition: transform .12s; }
.pl-acciones button:active { transform: scale(.88); }
.pl-acciones svg { width: 24px; height: 24px; display: block; }
.pl-acciones .pl-like.on { color: var(--coral); }
.pl-acciones .pl-save { margin-left: auto; }
.pl-puntos { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.pl-puntos i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--paper-4); }
.pl-puntos i.on { background: var(--slate); }

/* Pie de la publicación */
.pl-pie { padding: 3px 12px 0; }
.pl-pie > b { display: block; font: 800 .84rem var(--font-title); margin-bottom: 4px; }
.pl-texto { font-size: .85rem; line-height: 1.4; margin: 0 0 3px; }
.pl-texto > b { font-family: var(--font-title); }
.pl-texto .pl-tags { color: var(--slate-dark); font-weight: 700; }
.pl-pcta {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px;
  background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: 8px;
  padding: 6px 11px; text-decoration: none; color: var(--ink); font: 800 .78rem var(--font-body);
}
.pl-pcta svg { width: 13px; height: 13px; }
.pl-vercom { display: block; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3); font: 400 .82rem var(--font-body); }
.pl-coms { display: grid; gap: 9px; margin: 7px 0 4px; }
.pl-coms .pl-av { width: 28px; height: 28px; border-color: var(--paper-3); }
.pl-cform { display: flex; gap: 8px; align-items: center; margin: 8px 0 2px; }
.pl-cform input {
  flex: 1; min-width: 0; border: 1px solid var(--paper-3); border-radius: 99px;
  padding: 6px 12px; font: 400 .82rem var(--font-body); background: var(--white); color: var(--ink);
}
.pl-cform input:focus { outline: 2px solid var(--slate-light); }
.pl-cform button { border: 0; background: none; color: var(--slate-dark); font: 800 .8rem var(--font-body); cursor: pointer; }
.pl-hace { display: block; margin-top: 6px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* Ficha de perfil de la columna lateral */
.pl-perfil { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pl-perfil .pl-av { width: 52px; height: 52px; border-color: var(--paper-3); }
.pl-perfil b { display: block; font-family: var(--font-title); }
.pl-perfil span { font-size: .8rem; color: var(--ink-2); }
