/* Comparte Renacer v1 · componente global staging */
:root{--cr-share-wine:#6a1414;--cr-share-wine-deep:#4b0b0b;--cr-share-gold:#d5af45;--cr-share-cream:#fff8e9;--cr-share-blue:#082f50;--cr-share-bottom:18px}
.renacerShare{position:fixed;right:16px;bottom:var(--cr-share-bottom);z-index:57;display:grid;justify-items:end;gap:10px;transition:bottom .2s ease,opacity .18s ease,transform .18s ease}.renacerMenuOpen .renacerShare{opacity:0;pointer-events:none;transform:translateY(10px)}
.renacerShareButton{min-height:54px;padding:5px 14px 5px 6px;border:1px solid rgba(213,175,69,.92);border-radius:999px;background:linear-gradient(135deg,#082f50 0,#0c426d 46%,#67101b 100%);color:#fff8e9;display:flex;align-items:center;gap:9px;box-shadow:0 12px 28px rgba(18,13,18,.25),inset 0 1px 0 rgba(255,255,255,.18);font:800 12px/1 system-ui,sans-serif;letter-spacing:.01em}.renacerShareButton img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:1px solid #d5af45;box-shadow:0 0 0 2px rgba(255,248,233,.12)}.renacerShareGlyph{width:20px;height:20px;fill:none;stroke:#f2cf68;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.renacerShareButton:focus-visible,.renacerSharePanel button:focus-visible,.renacerSharePanel a:focus-visible{outline:3px solid #d5af45;outline-offset:3px}
.renacerSharePanel{width:min(340px,calc(100vw - 24px));padding:14px;border:1px solid rgba(213,175,69,.78);border-radius:22px;background:linear-gradient(145deg,rgba(255,251,241,.99),rgba(247,234,207,.99));box-shadow:0 20px 48px rgba(35,17,15,.28),inset 0 1px 0 #fff;backdrop-filter:blur(16px);color:#342522}.renacerSharePanel[hidden]{display:none}.renacerShareHead{display:grid;grid-template-columns:46px 1fr 42px;gap:10px;align-items:center}.renacerShareHead img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1px solid #d5af45}.renacerShareHead strong,.renacerShareHead small{display:block}.renacerShareHead strong{font:800 17px/1.05 Georgia,serif;color:#6a1414}.renacerShareHead small{margin-top:4px;font:600 11px/1.35 system-ui,sans-serif;color:#6d5d54}.renacerShareClose{width:42px;height:42px;border:1px solid rgba(106,20,20,.12);border-radius:50%;background:#fffaf0;color:#6a1414;font-size:22px}.renacerSharePreview{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:center;margin:12px 0;padding:8px;border:1px solid rgba(213,175,69,.34);border-radius:14px;background:rgba(255,255,255,.62)}.renacerSharePreview img{width:92px;aspect-ratio:1200/630;object-fit:cover;border-radius:9px;border:1px solid rgba(213,175,69,.45)}.renacerSharePreview b,.renacerSharePreview span{display:block}.renacerSharePreview b{font:800 11px/1.25 system-ui,sans-serif;color:#173450}.renacerSharePreview span{margin-top:4px;font:600 9px/1.35 system-ui,sans-serif;color:#7a6a60}
.renacerShareActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.renacerShareActions button,.renacerShareActions a{min-height:46px;border:1px solid rgba(86,52,30,.13);border-radius:13px;background:#fffdf8;color:#173450;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;font:800 11px/1 system-ui,sans-serif}.renacerShareActions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.renacerShareActions .isPrimary{grid-column:1/-1;background:linear-gradient(180deg,#811523,#5a0912);border-color:#d5af45;color:#fff8e9}.renacerShareActions .isNative[hidden]{display:none}.renacerShareStatus{min-height:18px;margin:8px 2px 0;font:700 9px/1.3 system-ui,sans-serif;color:#705f51;text-align:center}.renacerShareStatus:empty{display:none}
@media(max-width:760px){.renacerShare{right:10px}.renacerShareButton{width:54px;height:54px;min-height:54px;padding:5px;border-radius:50%;justify-content:center}.renacerShareButton img{width:42px;height:42px}.renacerShareButton .renacerShareLabel,.renacerShareButton .renacerShareGlyph{display:none}.renacerSharePanel{width:min(350px,calc(100vw - 16px));padding:13px;border-radius:20px}.renacerShareActions button,.renacerShareActions a{min-height:48px}.renacerSharePreview{grid-template-columns:84px 1fr}.renacerSharePreview img{width:84px}}
@media(prefers-reduced-motion:reduce){.renacerShare{transition:none}}

/* v1.0.2 · claridad móvil y safe-area */
.renacerShare{bottom:calc(var(--cr-share-bottom) + env(safe-area-inset-bottom))}.renacerShareGlyph svg{width:19px;height:19px;display:block;fill:none;stroke:#f2cf68;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.renacerShareButton{position:relative}.renacerShareButton .renacerShareGlyph{display:grid;position:absolute;right:-2px;bottom:-2px;width:23px;height:23px;border-radius:50%;place-items:center;background:linear-gradient(180deg,#861724,#5a0912);border:1px solid #d5af45;box-shadow:0 4px 9px rgba(45,15,15,.24)}.renacerShareButton .renacerShareGlyph svg{width:14px;height:14px}.renacerShareButton .renacerShareLabel{display:none}}
.pv11ComposerOpen .renacerShare{opacity:0!important;pointer-events:none!important;transform:translateY(10px)}

/* v1.1.0 · footer-aware + native-share-first */
.renacerShare.footerShareVisible .renacerShareButton{opacity:0;pointer-events:none;transform:scale(.92)}
.rg2Seal.renacerShareFooterTrigger{cursor:pointer;overflow:visible}
.rg2Seal.renacerShareFooterTrigger .renacerShareFooterBadge{position:absolute;right:-5px;bottom:-5px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#861724,#5a0912);border:2px solid #f0cf69;color:#f8dd78;box-shadow:0 5px 12px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.25)}
.rg2Seal.renacerShareFooterTrigger .renacerShareFooterBadge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.renacerShareActions{grid-template-columns:1fr}.renacerShareActions .isPrimary{grid-column:auto}
@media(max-width:760px){
  .renacerSharePanel{width:min(310px,calc(100vw - 24px));padding:12px}
  .renacerSharePreview{display:none}
  .renacerShareHead{grid-template-columns:42px 1fr 40px;gap:8px}
  .renacerShareHead img{width:42px;height:42px}.renacerShareClose{width:40px;height:40px}
  .renacerShareActions{margin-top:10px;gap:8px}
  .renacerShareActions button{min-height:50px;font-size:12px}
  .rg2Seal.renacerShareFooterTrigger .renacerShareFooterBadge{width:26px;height:26px;right:-4px;bottom:-4px}
}


/* v1.1.1 · Plaza chat priority: compartir se retira mientras el chat continuo está visible */
body:has(.pv11QuickComposer:not(.pv11QuickOutOfChat)) .renacerShare{opacity:0!important;pointer-events:none!important;transform:translateY(10px)!important}
body:has(.pv11QuickComposer:focus-within) .renacerShare{opacity:0!important;pointer-events:none!important}
