/* Instagram Publicar (2.3.2): Redes Sociales → Instagram, after Mockups/instagram-publicar. Its own file, like blog.css. */
#v-instagram { --ig-tile: 210px; --phone-w: 340px; }
#v-instagram .link.back { align-self: flex-start; background: none; border: 0; padding: 0; color: #4A5A52; font-size: 13px; cursor: pointer; }
#v-instagram .warnline { margin: 0; }
#v-instagram .m { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
#v-instagram h2 { margin: 0 0 10px; }

/* the posts */
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--ig-tile), 1fr)); gap: 14px; }
.igp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--corner); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.igp.ro { cursor: default; }
.igp .sq { aspect-ratio: 1 / 1; background: var(--wash) center / cover no-repeat; position: relative; }
.igp .sq .st { position: absolute; left: 8px; top: 8px; }
.igp .bd { padding: 10px 12px; }
.igp .bd p { margin: 0 0 8px; font-size: 13px; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.igp .nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.igp .nums.bad, .igp .nums .bad { color: var(--red); }
.igp .nums a { color: var(--accent); font-weight: 600; }
.igp.new { align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: #4A5A52; min-height: 280px; background: transparent; }
.igp.new b { font-size: 15px; color: var(--navy); }
.ig-wait { border: 1px dashed var(--border); border-radius: var(--corner); padding: 16px; color: #334155; background: var(--surface); }
.ig-wait b { color: var(--text); }

/* Nuevo Post */
.ig-ed { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ig-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ig-srcs { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-srcs button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.ig-srcs button.on { border-color: var(--oro-antiguo); background: #FFF8E6; }
.ig-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 10px; }
.ig-pick div { aspect-ratio: 1 / 1; border-radius: 8px; background: var(--wash) center / cover no-repeat; border: 2px solid transparent; cursor: pointer; }
.ig-pick div.on { border-color: var(--oro); }
#v-instagram label.btn { margin-top: 10px; display: inline-flex; }
#v-instagram label.btn input { display: none; }
.ig-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ig-ch h2 { margin: 0; }
.ig-ch .btn img { vertical-align: -2px; }
textarea.ig-cap { width: 100%; min-height: 150px; resize: vertical; font: inherit; line-height: 1.45; margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.ig-cnt { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ig-cnt .bad { color: var(--red); font-weight: 600; }
.ig-f { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 12.5px; color: #4A5A52; max-width: 320px; }
.ig-flow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: #4A5A52; margin-top: 12px; }
.ig-flow span { background: #F1ECDD; border-radius: 999px; padding: 3px 10px; }
.ig-flow i { font-style: normal; color: var(--muted); }
.ig-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }

/* the preview */
.ig-phone { width: var(--phone-w); max-width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 14px 0 10px; box-shadow: 0 10px 30px rgba(20, 33, 27, .10); }
.ig-phone .ph-h { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; font-size: 13px; }
.ig-phone .ph-h .av { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.ig-phone .ph-h .av img { width: 18px; height: 18px; }
.ig-phone .ph-img { aspect-ratio: 4 / 5; background: var(--wash) center / cover no-repeat; }
.ig-phone .ph-ic { display: flex; gap: 14px; padding: 10px 14px 4px; }
.ig-phone .ph-ic svg { width: 22px; height: 22px; stroke: #111; fill: none; stroke-width: 1.7; }
.ig-phone .ph-tx { padding: 4px 14px; font-size: 13px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ig-phone .ph-tx .tg { color: #00376b; }

@media (max-width: 900px) {
  .ig-ed { grid-template-columns: minmax(0, 1fr); }
  .igrid { grid-template-columns: 1fr 1fr; }
  #v-instagram { --phone-w: 300px; }
  .igp.new { min-height: 200px; }
}
