/*
 * Réplica de Instagram (tema claro, 2026). Colores y medidas de la interfaz real:
 * texto #0c1014 y gris #737373, botones grises #efefef con radio 8, azul #0095f6,
 * enlace #00376b, filetes #dbdbdb, tipografía del sistema a 14 px.
 *   < 560 px de escenario → la app a pantalla completa (barra de estado propia del
 *     teléfono; sin la barra de Chrome Android, que no existe en una app nativa).
 *   ≥ 560 px → instagram.com en Chrome, con la barra lateral estrecha de iconos.
 */

.rp-ig {
  --ig-text: #0c1014;
  --ig-text-2: #737373;
  --ig-border: #dbdbdb;
  --ig-sep: #efefef;
  --ig-btn: #efefef;
  --ig-blue: #0095f6;
  --ig-link: #00376b;
  --ig-red: #ff3040;
  --ig-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Liberation Sans", sans-serif;
  --ig-ring: conic-gradient(from 200deg, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75, #fa7e1e);
  --ig-nav: 62px;
}
/* App nativa: fuera la barra de direcciones de Chrome Android. */
.rp-ig .rp-momni {
  display: none;
}
.rp-ig .rp-phonebar {
  border-bottom: 0;
}

.ig {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  font: 14px/18px var(--ig-font);
  color: var(--ig-text);
}
.ig svg {
  display: block;
}
.ig b {
  font-weight: 600;
}

/* Foto de perfil / logotipo: círculo recortado. */
.ig-face {
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ig-sep);
}
.ig-face svg {
  width: 100%;
  height: 100%;
}

/* ---------- Estructura ---------- */
.ig-side {
  display: none;
}
.ig-main {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ig-layer {
  position: absolute;
  inset: 0 0 var(--ig-nav) 0;
  overflow: hidden;
  background: #fff;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.ig-layer-full {
  bottom: 0;
}
.ig-layer.is-top {
  z-index: 2;
}

/* Barra inferior de la app (con la zona de gestos de Android). */
.ig-tabbar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--ig-nav);
  padding: 0 6px 14px;
  background: #fff;
  border-top: 1px solid var(--ig-sep);
  color: var(--ig-text);
}
.ig-tabbar::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 112px;
  height: 4px;
  margin-left: -56px;
  border-radius: 2px;
  background: #1f1f1f;
}
.ig-tab-i,
.ig-tab-i svg {
  width: 26px;
  height: 26px;
}
.ig-tab-me {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.ig-tab-me.is-on {
  box-shadow:
    0 0 0 1.5px #fff,
    0 0 0 3px var(--ig-text);
}
.ig-on {
  opacity: 0;
}
.is-on .ig-on {
  opacity: 1;
}

/* ---------- Perfil (app) ---------- */
.ig-ptop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px 0 16px;
}
.ig-ptop-user {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.ig-ptop-user span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ig-ptop-user svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.ig-ptop-ico {
  display: flex;
  gap: 22px;
}
.ig-ptop-ico svg {
  width: 26px;
  height: 26px;
}
.ig-pview {
  position: absolute;
  inset: 44px 0 0 0;
  overflow: hidden;
}
.ig-pscroll {
  position: relative;
  will-change: transform;
}
.ig-phead {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 20px;
  padding: 4px 16px 0;
}
.ig-ring {
  display: block;
  width: 86px;
  height: 86px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ig-ring);
}
.ig-ring .ig-face {
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
}
.ig-pinfo {
  align-self: center;
  min-width: 0;
}
.ig-puser,
.ig-pname-web {
  display: none;
}
.ig-pname-app {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-stats {
  display: flex;
  justify-content: space-between;
  padding-right: 6px;
}
.ig-stat {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  line-height: 17px;
}
.ig-stat b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ig-pbio {
  grid-column: 1 / -1;
  margin-top: 10px;
}
.ig-pcat {
  color: var(--ig-text-2);
}
.ig-pline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-plink {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ig-link);
}
.ig-plink svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}
.ig-pbtns {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.ig-btn {
  display: grid;
  place-items: center;
  flex: 1;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ig-btn);
  font-weight: 600;
  white-space: nowrap;
}
.ig-btn-sq {
  flex: 0 0 34px;
  padding: 0;
}
.ig-btn-sq svg {
  width: 16px;
  height: 16px;
}
.ig-hl {
  display: flex;
  gap: 14px;
  padding: 14px 16px 0;
  overflow: hidden;
}
.ig-hl-i {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
}
.ig-hl-c {
  display: block;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ig-border);
}
.ig-hl-c svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.ig-hl-new {
  display: grid;
  place-items: center;
  color: var(--ig-text);
}
.ig-hl-new svg {
  width: 26px;
  height: 26px;
}
.ig-hl-t {
  max-width: 100%;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-ptabs {
  position: relative;
  z-index: 2;
  display: flex;
  height: 44px;
  margin-top: 8px;
  background: #fff;
  border-bottom: 1px solid var(--ig-sep);
}
.ig-ptab {
  display: grid;
  flex: 1;
  place-items: center;
  color: var(--ig-text-2);
}
.ig-ptab.is-on {
  color: var(--ig-text);
}
.ig-ptab svg {
  width: 24px;
  height: 24px;
}
.ig-ptab em {
  display: none;
}
.ig-ptab-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 33.334%;
  height: 1.5px;
  background: var(--ig-text);
  will-change: transform;
}
.ig-pgrids {
  position: relative;
  overflow: hidden;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  will-change: transform;
}
.ig-grid-reels {
  position: absolute;
  inset: 0 0 auto 0;
  transform: translateX(110%);
}
.ig-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ig-sep);
  will-change: transform, opacity;
}
.ig-grid-reels .ig-tile {
  aspect-ratio: 9 / 16;
}
.ig-tile > svg {
  width: 100%;
  height: 100%;
}
.ig-tile .ig-tile-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  color: #fff;
  filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 0.45));
}
.ig-views {
  position: absolute;
  bottom: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 3px rgb(0 0 0 / 0.5);
}
.ig-views svg {
  width: 13px;
  height: 13px;
  filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 0.45));
}

/* ---------- Feed ---------- */
.ig-fscroll {
  position: relative;
  will-change: transform;
}
.ig-post {
  padding-bottom: 14px;
}
.ig-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 10px 0 12px;
}
.ig-post-ava {
  width: 32px;
  height: 32px;
}
.ig-post-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ig-post-user {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-post-time {
  font-weight: 400;
  color: var(--ig-text-2);
}
.ig-post-sub {
  font-size: 12px;
  line-height: 15px;
}
.ig-post-more {
  width: 22px;
  height: 22px;
}
.ig-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ig-sep);
}
.ig-media svg {
  width: 100%;
  height: 100%;
}
.ig-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 10px 0 14px;
  overflow: hidden;
  background: var(--ig-btn);
  font-weight: 600;
}
.ig-cta svg {
  width: 18px;
  height: 18px;
}
.ig-cta-on {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: inherit;
  background: var(--ig-blue);
  color: #fff;
  opacity: 0;
  will-change: opacity;
}
.ig-cta-press {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.14);
  opacity: 0;
}
.ig-acts {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 12px;
}
.ig-act,
.ig-act svg {
  width: 24px;
  height: 24px;
}
.ig-act-save {
  margin-left: auto;
}
.ig-act.is-liked {
  color: var(--ig-red);
}
.ig-act.is-liked .ig-on {
  opacity: 1;
}
.ig-likes {
  padding: 0 12px;
  font-weight: 600;
}
.ig-cap {
  display: -webkit-box;
  padding: 4px 12px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ig-comm {
  padding: 4px 12px 0;
  color: var(--ig-text-2);
}

/* ---------- Mensajes ---------- */
.ig-ilist {
  position: absolute;
  inset: 0;
}
.ig-itop {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 16px 0 10px;
}
.ig-itop-back {
  width: 28px;
  height: 28px;
}
.ig-itop-user {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}
.ig-itop-user span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ig-itop-user svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.ig-itop-new {
  width: 26px;
  height: 26px;
}
.ig-isearch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 2px 16px 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ig-btn);
  font-size: 15px;
  color: var(--ig-text-2);
}
.ig-isearch svg {
  width: 16px;
  height: 16px;
}
.ig-itabs {
  display: flex;
  gap: 20px;
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
  color: var(--ig-text-2);
}
.ig-itabs span {
  display: flex;
  align-items: center;
}
.ig-itabs .is-on {
  color: var(--ig-text);
  box-shadow: inset 0 -1.5px 0 var(--ig-text);
}
.ig-irows {
  position: relative;
  padding-top: 4px;
}
.ig-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 16px;
  background: #fff;
  will-change: transform, opacity;
}
.ig-row-ava {
  width: 56px;
  height: 56px;
}
.ig-row-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ig-row-user {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-row-msg {
  display: flex;
  gap: 4px;
  min-width: 0;
  color: var(--ig-text-2);
}
.ig-row-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-row-time {
  flex: none;
}
/* Sin leer: negrita y punto azul. En la app el chat «seleccionado» sigue sin leer (no se abre). */
.ig-row:is(.is-new, .is-sel) .ig-row-user,
.ig-row:is(.is-new, .is-sel) .ig-row-msg {
  font-weight: 700;
  color: var(--ig-text);
}
.ig-row:is(.is-new, .is-sel) .ig-row-time {
  font-weight: 400;
  color: var(--ig-text-2);
}
.ig-row:not(.is-new, .is-sel) .ig-row-dot {
  display: none;
}
.ig-row-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ig-blue);
}
.ig-row-cam {
  width: 24px;
  height: 24px;
  color: var(--ig-text-2);
}
.ig-ithread {
  display: none;
}

/* ---------- Reel (app) ---------- */
.ig-reel {
  background: #000;
  color: #fff;
}
.ig-rstage {
  position: absolute;
  inset: 0 0 var(--ig-nav) 0;
}
.ig-rvideo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.ig-rart {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.ig-rart svg {
  width: 100%;
  height: 100%;
}
.ig-rloaf,
.ig-rsteam path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.ig-rstickers {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
}
.ig-rstickers > * {
  grid-area: 1 / 1;
}
.ig-rsticker {
  padding: 5px 10px 6px;
  border-radius: 7px;
  background: #fff;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #111;
  will-change: transform, opacity;
}
.ig-rburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  color: #fff;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.35));
  will-change: transform, opacity;
}
.ig-rburst svg {
  width: 100%;
  height: 100%;
}
.ig-rmeta {
  position: absolute;
  left: 14px;
  right: 74px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-shadow: 0 0 4px rgb(0 0 0 / 0.35);
}
.ig-rmeta-who {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.ig-rmeta-ava {
  width: 32px;
  height: 32px;
}
.ig-rmeta-follow {
  padding: 3px 10px 4px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.ig-rmeta-cap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-rmeta-audio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.ig-rmeta-audio svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.ig-rmeta-audio span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-rprog {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgb(255 255 255 / 0.3);
}
.ig-rprog i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  will-change: transform;
}
.ig-ractions {
  position: absolute;
  right: 10px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  filter: drop-shadow(0 0 3px rgb(0 0 0 / 0.3));
}
.ig-ract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ig-ract svg {
  width: 28px;
  height: 28px;
}
.ig-ract-heart {
  display: block;
  will-change: transform;
}
.ig-ract-heart.is-liked {
  color: var(--ig-red);
}
.ig-ract-heart.is-liked .ig-on {
  opacity: 1;
}
.ig-ract-audio {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #fff;
}
.ig-rtop {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.ig-rtop span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ig-rtop svg {
  width: 26px;
  height: 26px;
}
.ig-rtop span svg {
  width: 16px;
  height: 16px;
}
.ig-tabbar-dark {
  --ig-cut: #000;
  z-index: 1;
  background: #000;
  border-top-color: #000;
  color: #fff;
}
.ig-tabbar-dark::after {
  background: #f2f2f2;
}
.ig-tabbar-dark .ig-tab-me {
  box-shadow: none;
}

/* Barra de estado oscura (encima de la del teléfono cuando se ve el reel). */
.ig-sbdark {
  position: absolute;
  inset: 0 0 auto 0;
  background: #000;
  color: #fff;
}
.rp-status.ig-sbdark .rp-status-ico i {
  background: #fff;
}
.rp-status.ig-sbdark .rp-battery {
  box-shadow: inset 0 0 0 1.5px #fff;
  background: linear-gradient(90deg, #fff 0 72%, transparent 72%) !important;
  background-clip: content-box !important;
}

/* =====================================================================
   instagram.com en Chrome (escritorio, ≥ 560 px de escenario)
   ===================================================================== */
@container rp (min-width: 560px) {
  .ig {
    --ig-nav: 0px;
    display: flex;
  }
  .ig-sbdark,
  .ig-tabbar,
  .ig-ptop,
  .ig-rtop,
  .ig .ig-itop-back,
  .ig-isearch,
  .ig-pname-app,
  .ig-pbtns {
    display: none;
  }

  /* Barra lateral estrecha. */
  .ig-side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 72px;
    padding: 14px 0 8px;
    border-right: 1px solid var(--ig-border);
  }
  .ig-side-i {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 44px;
    border-radius: 8px;
    color: var(--ig-text);
  }
  .ig-side-i > svg {
    width: 24px;
    height: 24px;
  }
  .ig-side-i.is-on > svg :is(path, circle, rect) {
    stroke-width: 2.5;
  }
  .ig-side-dot {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ig-red);
    box-shadow: 0 0 0 2px #fff;
  }
  .ig-side-me .ig-face {
    width: 24px;
    height: 24px;
  }
  .ig-side-me.is-on .ig-face {
    box-shadow:
      0 0 0 1.5px #fff,
      0 0 0 3px var(--ig-text);
  }
  .ig-side-menu {
    margin-top: auto;
  }
  .ig-main {
    position: relative;
    flex: 1;
    min-width: 0;
  }

  /* Perfil. */
  .ig-pview {
    top: 0;
  }
  .ig-phead {
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 26px;
    max-width: 935px;
    padding: 20px 24px 0;
  }
  .ig-pava {
    grid-row: 1 / span 2;
    padding-top: 4px;
  }
  .ig-ring {
    width: 112px;
    height: 112px;
    padding: 3.5px;
  }
  .ig-ring .ig-face {
    border-width: 4px;
  }
  .ig-pinfo {
    align-self: start;
  }
  .ig-puser {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .ig-puser-name {
    min-width: 0;
    margin-right: 8px;
    font-size: 20px;
    line-height: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ig-puser .ig-btn {
    flex: none;
    padding: 0 16px;
  }
  .ig-puser-gear {
    flex: none;
    width: 24px;
    height: 24px;
    margin-left: 4px;
  }
  .ig-stats {
    justify-content: flex-start;
    gap: 28px;
    margin-top: 16px;
    padding: 0;
  }
  .ig-stat {
    flex-direction: row;
    gap: 5px;
    font-size: 16px;
    line-height: 20px;
  }
  .ig-stat b {
    font-weight: 600;
  }
  .ig-pbio {
    grid-column: 2;
    margin-top: 14px;
  }
  .ig-pname-web {
    display: block;
    font-weight: 600;
  }
  .ig-pline + .ig-pline {
    display: none;
  }
  .ig-hl {
    gap: 22px;
    padding: 18px 24px 0 36px;
  }
  .ig-hl-i {
    width: 70px;
    gap: 6px;
  }
  .ig-hl-c {
    width: 66px;
    height: 66px;
  }
  .ig-hl-t {
    font-weight: 600;
  }
  .ig-ptabs {
    justify-content: center;
    gap: 52px;
    height: 52px;
    margin: 16px 24px 0;
    border-top: 1px solid var(--ig-border);
    border-bottom: 0;
  }
  .ig-ptab {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .ig-ptab svg {
    width: 12px;
    height: 12px;
  }
  .ig-ptab em {
    display: inline;
    font-style: normal;
  }
  .ig-ptab.is-on::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ig-text);
  }
  .ig-ptab-line {
    display: none;
  }
  .ig-pgrids {
    margin: 0 24px;
  }
  .ig-grid {
    gap: 4px;
  }

  /* Feed: columna central de 470 px. */
  .ig-fscroll {
    width: 470px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding-top: 12px;
  }
  .ig-post {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ig-border);
  }
  .ig-post-head {
    padding: 0 4px 0 0;
  }
  .ig-media {
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--ig-border);
  }
  .ig-ad .ig-media {
    border-radius: 4px 4px 0 0;
  }
  .ig-cta {
    border-radius: 0 0 4px 4px;
  }
  .ig-acts,
  .ig-likes,
  .ig-cap,
  .ig-comm {
    padding-left: 0;
    padding-right: 0;
  }
  .ig-acts {
    gap: 14px;
  }

  /* Mensajes: lista + conversación abierta. */
  .ig-inbox {
    display: flex;
  }
  .ig-ilist {
    position: relative;
    flex: none;
    width: clamp(248px, 50%, 330px);
    border-right: 1px solid var(--ig-border);
  }
  .ig-itop {
    height: 70px;
    padding: 0 20px;
  }
  .ig-itabs {
    padding: 0 20px;
  }
  .ig-row {
    gap: 12px;
    padding: 0 20px;
  }
  /* En escritorio el chat seleccionado está abierto: leído y con fondo gris. */
  .ig-row.is-sel {
    background: var(--ig-sep);
  }
  .ig-row.is-sel .ig-row-user,
  .ig-row.is-sel .ig-row-msg {
    font-weight: 400;
    color: var(--ig-text-2);
  }
  .ig-row.is-sel .ig-row-user {
    color: var(--ig-text);
  }
  .ig-row.is-sel .ig-row-dot {
    display: none;
  }
  .ig-ithread {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
  }
  .ig-tempty,
  .ig-tconv {
    position: absolute;
    inset: 0;
  }
  .ig-tempty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    text-align: center;
  }
  .ig-tempty-ico {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 8px;
    border: 2px solid var(--ig-text);
    border-radius: 50%;
  }
  .ig-tempty-ico svg {
    width: 44px;
    height: 44px;
  }
  .ig-tempty-title {
    font-size: 20px;
    line-height: 25px;
  }
  .ig-tempty-text {
    color: var(--ig-text-2);
  }
  .ig-tempty-btn {
    margin-top: 10px;
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--ig-blue);
    font-weight: 600;
    color: #fff;
  }
  .ig-tconv {
    display: flex;
    flex-direction: column;
  }
  .ig-thead {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    height: 70px;
    padding: 0 16px;
    border-bottom: 1px solid var(--ig-border);
  }
  .ig-thead-ava {
    width: 44px;
    height: 44px;
  }
  .ig-thead-user {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ig-thead-ico {
    display: flex;
    gap: 14px;
  }
  .ig-thead-ico svg {
    width: 24px;
    height: 24px;
  }
  .ig-tbody {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 0;
    padding: 12px 16px;
  }
  .ig-tmeta {
    align-self: center;
    font-size: 12px;
    line-height: 16px;
    color: var(--ig-text-2);
  }
  .ig-tad {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    max-width: 100%;
    margin: 4px 0 8px 36px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--ig-border);
    border-radius: 14px;
  }
  .ig-tad-img {
    flex: none;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 8px;
  }
  .ig-tad-img svg {
    width: 100%;
    height: 100%;
  }
  .ig-tad-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 17px;
  }
  .ig-tad-txt b,
  .ig-tad-txt span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ig-tad-txt span {
    color: var(--ig-text-2);
  }
  .ig-bub-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    will-change: transform, opacity;
  }
  .ig-bub-ava {
    flex: none;
    width: 28px;
    height: 28px;
  }
  .ig-bub {
    max-width: calc(100% - 52px);
    padding: 8px 12px;
    border-radius: 18px;
    background: var(--ig-btn);
  }
  .ig-tinput {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    height: 44px;
    margin: 0 16px 16px;
    padding: 0 14px;
    border: 1px solid var(--ig-border);
    border-radius: 22px;
    color: var(--ig-text);
  }
  .ig-tinput span {
    flex: 1;
    min-width: 0;
    color: var(--ig-text-2);
    white-space: nowrap;
    overflow: hidden;
  }
  .ig-tinput svg {
    width: 22px;
    height: 22px;
    flex: none;
  }

  /* Reel: vídeo vertical centrado con las acciones a la derecha. */
  .ig-reel {
    background: #fff;
    color: var(--ig-text);
  }
  .ig-rstage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 16px 0;
  }
  .ig-rvideo {
    position: relative;
    inset: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    color: #fff;
  }
  .ig-rsticker {
    font-size: 14px;
    line-height: 18px;
  }
  .ig-rburst {
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
  }
  .ig-rmeta {
    right: 12px;
    bottom: 14px;
  }
  .ig-ractions {
    position: static;
    padding-bottom: 4px;
    filter: none;
  }
  .ig-ract {
    font-size: 12px;
  }
  .ig-ract svg {
    width: 24px;
    height: 24px;
  }
  .ig-ract-audio {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--ig-border);
  }
}
