/* ===== Comunidad Nichosblack (usa las variables de styles.css) ===== */
.c-body { background: var(--bg); padding-bottom: 0; }

/* ----- Barra superior ----- */
.c-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.c-top__inner {
  width: min(1240px, 100% - 32px); margin-inline: auto; height: 60px;
  display: flex; align-items: center; gap: 20px;
}
.c-search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px;
}
.c-search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; padding: 9px 0; outline: none; }
.c-top__nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.c-navlink {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem;
}
.c-navlink:hover { background: var(--card); color: var(--text); }
.c-navlink.active { color: var(--accent); background: rgba(34,197,94,.1); }

/* ----- Layout ----- */
.c-app { width: min(1240px, 100% - 32px); margin: 24px auto 60px; }
.c-layout { display: grid; grid-template-columns: 250px minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.c-side { position: sticky; top: 84px; display: grid; gap: 16px; }

.c-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.c-box h4 { font-size: .95rem; margin-bottom: 12px; }
.c-box p { color: var(--muted); font-size: .9rem; }
.c-box--accent { border-color: #2f3a33; background: linear-gradient(160deg, rgba(34,197,94,.12), var(--card) 60%); }
.c-box--accent .btn { margin-top: 12px; }

.c-menu { list-style: none; display: grid; gap: 2px; }
.c-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem;
}
.c-menu a:hover { background: var(--bg-alt); color: var(--text); }
.c-menu a.active { background: rgba(34,197,94,.1); color: var(--accent); font-weight: 600; }
.c-menu small { background: var(--bg-alt); border-radius: 99px; padding: 0 8px; font-size: .75rem; }

.c-rules { padding-left: 18px; color: var(--muted); font-size: .85rem; display: grid; gap: 6px; }

/* ----- Avatar ----- */
.av {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #04150a; font-size: .95rem;
}
.av--lg { width: 110px; height: 110px; font-size: 2.4rem; border: 4px solid var(--bg); }
.av--sm { width: 32px; height: 32px; font-size: .78rem; }

.c-user { display: flex; gap: 10px; align-items: center; }
.c-user b { display: block; }
.c-user small { color: var(--muted); font-size: .8rem; }

/* ----- Etiquetas ----- */
.role { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.role--anunciante { background: rgba(59,130,246,.15); color: #60a5fa; }
.role--trafficker { background: rgba(34,197,94,.15); color: var(--accent); }
.role--marca      { background: rgba(168,85,247,.15); color: #c084fc; }
.role--demo       { background: var(--bg-alt); color: var(--muted); }

.ptype { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.ptype--red   { background: rgba(239,68,68,.15); color: #f87171; }
.ptype--amber { background: rgba(245,158,11,.15); color: #fbbf24; }
.ptype--blue  { background: rgba(59,130,246,.15); color: #60a5fa; }
.ptype--green { background: rgba(34,197,94,.15); color: var(--accent); }
.ptype--purple{ background: rgba(168,85,247,.15); color: #c084fc; }
.solved { background: var(--accent); color: #04150a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); background: var(--card);
}
.chip:hover { color: var(--text); }
.chip.active { border-color: var(--accent); color: var(--accent); }

.skill { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; font-size: .78rem; margin: 0 4px 4px 0; }

/* ----- Publicar ----- */
.c-composer { display: grid; gap: 10px; margin-bottom: 16px; }
.c-composer__row { display: flex; gap: 10px; }
.c-input, .c-composer select, .c-composer input, .c-composer textarea, .c-form input, .c-form select, .c-form textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.c-composer textarea, .c-form textarea { resize: vertical; min-height: 80px; }
.c-composer select { width: auto; min-width: 210px; }
.c-composer__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-composer__foot small { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ----- Publicación ----- */
.c-post { margin-bottom: 14px; }
.c-post__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.c-post__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.c-post h3 { font-size: 1.08rem; margin-bottom: 6px; }
.c-post__body { color: #d4d4d8; white-space: pre-line; font-size: .95rem; }
.c-post__actions {
  display: flex; gap: 4px; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.act {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.act:hover { background: var(--bg-alt); color: var(--text); }
.act.on { color: var(--accent); }
.act--danger:hover { color: var(--danger); }

.c-comments { margin-top: 10px; display: grid; gap: 10px; }
.c-comment { display: flex; gap: 8px; }
.c-comment__bubble { background: var(--bg-alt); border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.c-comment__bubble b { font-size: .85rem; }
.c-comment__bubble p { color: #d4d4d8; white-space: pre-line; }
.c-comment__bubble small { color: var(--muted); font-size: .75rem; }
.c-comment-form { display: flex; gap: 8px; }
.c-comment-form input { flex: 1; }

.c-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ----- Traffickers ----- */
.c-hero {
  border-radius: var(--radius); padding: 32px; margin-bottom: 20px; border: 1px solid #2f3a33;
  background: radial-gradient(600px 240px at 0% 0%, rgba(34,197,94,.2), transparent 70%), var(--card);
}
.c-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.5px; }
.c-hero p { color: var(--muted); margin: 6px 0 16px; max-width: 620px; }
.c-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.c-filters select, .c-filters input {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.c-filters input { flex: 1; min-width: 200px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.c-tcard { display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.c-tcard:hover { border-color: var(--accent); }
.c-tcard p { flex: 1; }
.c-tcard__price { font-weight: 800; }
.c-tcard__price small { color: var(--muted); font-weight: 500; }
.c-tcard__btns { display: flex; gap: 8px; }
.c-tcard__btns .btn { flex: 1; text-align: center; padding: 10px; font-size: .9rem; }

/* ----- Perfil ----- */
.c-profile { padding: 0; overflow: hidden; margin-bottom: 16px; }
.c-profile__cover { height: 150px; background: linear-gradient(120deg, #052e16, #16a34a 55%, #0a0a0b); }
.c-profile__info { padding: 0 24px 24px; margin-top: -55px; }
.c-profile__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.c-profile h1 { font-size: 1.6rem; margin-top: 10px; }
.c-profile__meta { color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.c-profile__bio { color: #d4d4d8; margin-bottom: 12px; white-space: pre-line; }
.c-stats { display: flex; gap: 24px; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.c-stats b { color: var(--text); font-size: 1.1rem; display: block; }

/* ----- Formularios / Entrar ----- */
.c-auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 30px auto; }
.c-auth__pitch h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.8px; margin-bottom: 14px; }
.c-auth__pitch p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.c-auth__pitch ul { list-style: none; display: grid; gap: 10px; }
.c-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg); padding: 4px; border-radius: 12px; }
.c-tabs button {
  flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700;
  padding: 10px; border-radius: 9px; cursor: pointer;
}
.c-tabs button.active { background: var(--accent); color: #04150a; }
.c-form { display: grid; gap: 12px; }
.c-form label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
.c-form small { color: var(--muted); font-weight: 400; }
.c-form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-check { display: flex !important; align-items: center; gap: 8px; grid-template-columns: none; }
.c-check input { width: auto; }
.c-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-roles label {
  display: block; text-align: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px;
  cursor: pointer; font-size: .82rem;
}
.c-roles input { display: none; }
.c-roles label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(34,197,94,.08); }
.c-roles span { display: block; font-size: 1.3rem; }
.c-error { color: #f87171; font-size: .88rem; min-height: 1em; }

/* ----- Toast ----- */
.c-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--accent); color: #04150a; font-weight: 700; padding: 12px 22px; border-radius: 999px;
  transition: transform .25s; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.c-toast.show { transform: translate(-50%, 0); }

/* ----- Navegación inferior (celular) ----- */
.c-bottom { display: none; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .c-layout { grid-template-columns: 220px minmax(0,1fr); }
  .c-layout > .c-side--right { display: none; }
}
@media (max-width: 800px) {
  .c-layout { grid-template-columns: 1fr; }
  .c-layout > .c-side--left { display: none; }
  .c-top__nav { display: none; }
  .c-search { max-width: none; }
  .c-auth { grid-template-columns: 1fr; gap: 24px; }
  .c-form__2 { grid-template-columns: 1fr; }
  .c-composer__row { flex-direction: column; }
  .c-composer select { width: 100%; }
  .c-app { margin-bottom: 90px; }
  .c-bottom {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--bg-alt); border-top: 1px solid var(--border);
  }
  .c-bottom a {
    flex: 1; text-align: center; padding: 10px 4px 12px; font-size: .72rem; color: var(--muted); font-weight: 600;
  }
  .c-bottom a span { display: block; font-size: 1.25rem; }
  .c-bottom a.active { color: var(--accent); }
  .c-toast { bottom: 84px; }
}

/* =====================================================================
   v2: Entrada estilo Facebook + Perfil estilo Instagram
   ===================================================================== */
.av { object-fit: cover; }
.av--xs { width: 28px; height: 28px; font-size: .7rem; }
.av--xl { width: 150px; height: 150px; font-size: 3rem; }

/* ----- Invitado: se oculta la plataforma ----- */
.is-guest .c-top, .is-guest .c-bottom { display: none; }
.is-guest .c-app { width: 100%; margin: 0; }

/* ----- Pantalla de entrada ----- */
.fb {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 15% 10%, rgba(34,197,94,.14), transparent 70%), var(--bg);
}
.fb__main {
  flex: 1; width: min(1100px, 100% - 32px); margin: 0 auto; padding: 48px 0;
  display: grid; grid-template-columns: 1.15fr 400px; gap: 56px; align-items: center;
}
.logo--xl { font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: -2px; display: block; line-height: 1; }
.fb__tagline { font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.3; margin: 14px 0 28px; max-width: 520px; font-weight: 500; }
.fb__tagline b { color: var(--accent); }

/* Iconos profesionales en la comunidad */
.c-search i { color: var(--muted); }
.c-navlink i { margin-right: 4px; }
.c-bottom a span { display: block; font-size: 1.2rem; margin-bottom: 2px; }
.c-menu a i { width: 1.2em; text-align: center; margin-right: 6px; color: var(--muted); }
.c-menu a.active i { color: var(--accent); }
.act i { margin-right: 4px; }
.act.on i { color: var(--accent); }
.act .ic-wa { font-size: 1.1em; }
.ptype i { margin-right: 3px; }
.chip i { margin-right: 4px; }
.c-box h4 i { color: var(--accent); margin-right: 4px; }
.c-roles span { color: var(--accent); margin-bottom: 4px; }
.fb-shot figcaption i { color: #ef4444; margin-right: 4px; }
.ig__cat i { color: var(--accent); margin-right: 2px; }
.ig__bio p i { margin-right: 3px; }
.ig__hl span { color: var(--accent); font-size: 1.4rem; }
.ig__hl span .ic-wa { font-size: 1.8rem; }
.ig__tabs a i { margin-right: 6px; }
.ig__tile-txt span { color: rgba(255,255,255,.85); font-size: 1.6rem; }
.ig__tile-over i { margin-right: 4px; }
.ig__dl i { color: var(--accent); font-size: 1rem; margin-top: 3px; text-align: center; }
.ig__upload i { font-size: .95rem; }
.c-empty .fa-camera { color: var(--muted); }
.c-dialog__close i { font-size: .95rem; }
.c-tcard__btns .btn i, .ig__btn i { margin-right: 4px; }

/* Capturas reales en la entrada */
.fb__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 560px; }
.fb-shot {
  margin: 0; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); border: 1px solid #2a2a2e;
  transition: transform .25s;
}
.fb-shot:nth-child(1) { rotate: -2deg; }
.fb-shot:nth-child(2) { rotate: 2deg; margin-top: 28px; }
.fb-shot:hover { transform: translateY(-6px) scale(1.02); }
.fb-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.fb-shot figcaption {
  background: var(--card); color: var(--text); font-weight: 700; font-size: .85rem;
  padding: 10px 12px; text-align: center; border-top: 1px solid var(--border);
}
.fb__shots-note { color: var(--muted); margin-top: 26px; font-size: .95rem; }

/* Botón de Google */
.google-wrap { display: flex; justify-content: center; min-height: 44px; }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; padding: 11px 16px; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fb__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.fb__or::before, .fb__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.fb__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 560px; }
.fb__collage > * { animation: float 6s ease-in-out infinite; }
.fb__collage > *:nth-child(2) { animation-delay: -1.5s; rotate: 2deg; }
.fb__collage > *:nth-child(3) { animation-delay: -3s; rotate: -1.5deg; }
.fb__collage > *:nth-child(4) { animation-delay: -4.5s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.fb__collage .mock { margin: 0; }
.fb-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); font-size: .85rem; display: grid; gap: 8px;
}
.fb-card small { color: var(--muted); }
.fb-card__center { text-align: center; justify-items: center; }
.fb-stats { display: flex; justify-content: center; gap: 16px; }
.fb-stats b { display: block; font-size: 1rem; }
.fb-stats span { color: var(--muted); font-size: .72rem; }
.fb-mini-btn { background: var(--accent); color: #04150a; font-weight: 700; border-radius: 8px; padding: 6px; width: 100%; text-align: center; }
.chart { width: 100%; height: 56px; display: block; }

.fb__login {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: grid; gap: 12px;
}
.fb__login input {
  font: inherit; font-size: 1.02rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; width: 100%;
}
.fb__login .btn { font-size: 1.15rem; padding: 13px; }
.fb__forgot { text-align: center; color: var(--accent); font-size: .92rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.fb__forgot:hover { text-decoration: underline; }
.fb__sep { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.btn--create { background: #14532d; border-color: #166534; color: #dcfce7; justify-self: center; padding: 12px 26px; font-size: 1.02rem; }
.btn--create:hover { background: #166534; border-color: #16a34a; }
.fb__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 20px; }
.fb__note b { color: var(--text); }
.fb__footer { border-top: 1px solid var(--border); padding: 18px 16px; text-align: center; color: var(--muted); font-size: .82rem; }
.fb__footer a { margin: 0 8px; }
.fb__footer a:hover { color: var(--text); }

/* ----- Ventanas (dialog) ----- */
.c-dialog {
  border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text);
  width: min(560px, 100% - 24px); max-height: 90vh; padding: 0; margin: auto;
}
.c-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.c-dialog__close {
  position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; z-index: 2;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.c-dialog .c-post { margin: 0; border: 0; }
.c-dialog__head { padding: 18px 22px 12px; border-bottom: 1px solid var(--border); }
.c-dialog__head h2 { font-size: 1.6rem; }
.c-dialog__head p { color: var(--muted); }
.c-dialog__body { padding: 18px 22px 22px; }

/* ----- Perfil estilo Instagram ----- */
.ig { max-width: 935px; margin: 0 auto; }
.ig__head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 18px 0 26px; align-items: center; }
.ig__avatar { position: relative; justify-self: center; }
.ring { display: inline-block; padding: 4px; border-radius: 50%; background: conic-gradient(from 200deg, #16a34a, #4ade80, #a3e635, #22c55e, #16a34a); }
.ring > .av { border: 4px solid var(--bg); display: grid; }
.ig__upload {
  position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #04150a; display: grid; place-items: center; cursor: pointer;
  border: 3px solid var(--bg); font-size: 1.05rem;
}
.ig__upload input { display: none; }
.ig__row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ig__row1 h1 { font-size: 1.4rem; font-weight: 600; margin-right: 8px; }
.ig__btn {
  display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 16px; border-radius: 8px; cursor: pointer;
}
.ig__btn:hover { background: var(--bg-alt); }
.ig__btn--primary { background: var(--accent); border-color: var(--accent); color: #04150a; }
.ig__btn--primary:hover { background: var(--accent-dark); }
.ig__stats { list-style: none; display: flex; gap: 36px; margin: 18px 0; }
.ig__stats b { font-weight: 700; }
.ig__bio b { display: block; }
.ig__cat { color: var(--muted); font-size: .9rem; }
.ig__headline { color: var(--accent); font-weight: 600; margin: 2px 0; }
.ig__bio p { white-space: pre-line; margin: 4px 0; }

.ig__complete { margin-bottom: 20px; display: grid; gap: 10px; }
.ig__bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.ig__bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ig__missing { display: flex; flex-wrap: wrap; gap: 6px; }

.ig__highlights { display: flex; gap: 28px; padding: 6px 4px 26px; overflow-x: auto; }
.ig__hl { display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 600; min-width: 76px; text-align: center; }
.ig__hl span {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
}
.ig__hl:hover span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent); }
.ig__hl small { color: var(--muted); font-weight: 500; font-size: .72rem; display: block; margin-top: -4px; }

.ig__tabs { display: flex; justify-content: center; gap: 48px; border-top: 1px solid var(--border); }
.ig__tabs a {
  padding: 14px 0; font-size: .78rem; font-weight: 700; letter-spacing: 1px; color: var(--muted);
  border-top: 1px solid transparent; margin-top: -1px;
}
.ig__tabs a.active { color: var(--text); border-top-color: var(--text); }

.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig__tile {
  position: relative; aspect-ratio: 1; border: 0; cursor: pointer; overflow: hidden; padding: 0;
  background: var(--card); color: var(--text); font: inherit;
}
.ig__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig__tile--red    { background: linear-gradient(145deg, #450a0a, #18181b); }
.ig__tile--amber  { background: linear-gradient(145deg, #451a03, #18181b); }
.ig__tile--blue   { background: linear-gradient(145deg, #172554, #18181b); }
.ig__tile--green  { background: linear-gradient(145deg, #052e16, #18181b); }
.ig__tile--purple { background: linear-gradient(145deg, #3b0764, #18181b); }
.ig__tile-txt { position: absolute; inset: 0; padding: 14% 12%; display: grid; align-content: center; gap: 8px; text-align: left; }
.ig__tile-txt span { font-size: 1.8rem; }
.ig__tile-txt b { font-size: clamp(.75rem, 1.6vw, 1.05rem); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig__tile-over {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center;
  font-weight: 700; opacity: 0; transition: opacity .15s;
}
.ig__tile:hover .ig__tile-over { opacity: 1; }
.ig__tile-solved { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #04150a; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; }

.ig__panel { padding: 22px 0; }
.ig__cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
.ig__dl { display: grid; gap: 12px; }
.ig__dl div { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; }
.ig__dl i { grid-row: span 2; font-style: normal; font-size: 1.2rem; }
.ig__dl dt { color: var(--muted); font-size: .8rem; }
.ig__dl dd { font-weight: 600; }
.ig__timeline { list-style: none; }
.ig__timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--border); margin-left: 8px; }
.ig__timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ig__timeline li::before {
  content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--card);
}
.ig__timeline b { display: block; }
.ig__timeline small { color: var(--muted); display: block; }
.ig__timeline p { color: #d4d4d8; font-size: .92rem; margin-top: 4px; white-space: pre-line; }
.ig__services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ig__service h4 { margin-bottom: 4px; }
.ig__service .price { color: var(--accent); font-weight: 800; margin: 6px 0; }

/* ----- Editar perfil ----- */
.ed { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.ed h1 { font-size: 1.4rem; }
.ed__photo { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; flex-wrap: wrap; }
.ed__photo > div { flex: 1; min-width: 160px; }
.ed__photo small { color: var(--muted); display: block; }
.ed__photo input { display: none; }
.exp-row { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; position: relative; }
.exp-row .exp-del { justify-self: end; }
.ed__actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 10px; border-top: 1px solid var(--border); z-index: 5; }

/* ----- Publicar con imagen ----- */
.c-composer__img { position: relative; max-width: 260px; }
.c-composer__img img { width: 100%; border-radius: 10px; display: block; }
.c-composer__img button { position: absolute; top: 6px; right: 6px; }
.c-attach { cursor: pointer; }
.c-attach input { display: none; }
.c-post__img { width: 100%; border-radius: 10px; margin-top: 12px; max-height: 520px; object-fit: cover; display: block; }

.c-me { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; font-weight: 600; font-size: .9rem; }
.c-me:hover, .c-me.active { background: var(--card); }
.c-bottom .av { margin: 0 auto 2px; display: grid; }

@media (max-width: 900px) {
  .fb__main { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
  .fb__brand { text-align: center; }
  .fb__tagline { margin-inline: auto; }
  .fb__collage, .fb__shots { margin: 0 auto; }
  .fb__shots-note { text-align: center; }
  .fb__login { max-width: 420px; width: 100%; justify-self: center; }
  .ig__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fb__collage { gap: 10px; }
  .fb__shots { gap: 12px; }
  .fb-shot figcaption { font-size: .72rem; padding: 8px 6px; }
  .fb__collage > *:nth-child(n+3) { display: none; }
  .ig__head { grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
  .ig__head .av--xl { width: 88px; height: 88px; font-size: 1.8rem; }
  .ig__upload { width: 30px; height: 30px; right: 0; bottom: 0; font-size: .8rem; }
  .ig__row1 h1 { font-size: 1.15rem; width: 100%; }
  .ig__stats { gap: 18px; font-size: .88rem; margin: 10px 0; }
  .ig__tabs { gap: 24px; }
  .ig__highlights { gap: 16px; }
}

/* =====================================================================
   v3: Interfaz profesional de red social
   ===================================================================== */
.c-body {
  --bg: #0a0a0b; --bg-alt: #111113; --card: #161618; --card-2: #212124; --hover: #26262a;
  --border: #26262b; --text: #ececef; --muted: #9b9ba4; --radius: 12px;
  background: var(--bg); font-size: 15px;
}
.c-body ::selection { background: rgba(34,197,94,.35); }

/* ----- Barra superior ----- */
.c-top { background: var(--card); border-bottom: 1px solid var(--border); backdrop-filter: none; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.c-top__inner {
  width: 100%; max-width: none; padding: 0 16px; height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
}
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-logo { font-size: 1.35rem; white-space: nowrap; }
.tb-mark {
  display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; flex: none;
  background: var(--accent); color: #04150a; font-weight: 800; font-size: 1.3rem;
}
.c-search { flex: 1; max-width: 260px; background: var(--card-2); border: 0; padding: 0 14px; }
.c-search input { padding: 10px 0; font-size: .95rem; }
.c-search input::placeholder { color: var(--muted); }
.c-search:focus-within { outline: 2px solid var(--accent); }
.c-search input:focus { outline: none; }

.tb-tabs { display: flex; height: 56px; }
.tb-tab {
  position: relative; width: 112px; display: grid; place-items: center; color: var(--muted); font-size: 1.3rem;
}
.tb-tab::before { content: ""; position: absolute; inset: 4px 2px 6px; border-radius: 8px; z-index: 0; }
.tb-tab:hover::before { background: var(--hover); }
.tb-tab i { position: relative; z-index: 1; }
.tb-tab.active { color: var(--accent); }
.tb-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.tb-tab.active:hover::before { background: transparent; }

.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.tb-circle {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card-2); color: var(--text); font-size: 1.05rem;
}
.tb-circle:hover { background: var(--hover); }
.tb-menu { position: relative; }
.tb-me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.tb-me:hover { filter: brightness(1.1); }
.av--nav { width: 40px; height: 40px; font-size: .9rem; }

/* ----- Menús desplegables ----- */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 300px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); display: grid; gap: 2px;
}
.dropdown[hidden] { display: none; }
.dropdown--sm { min-width: 240px; top: calc(100% + 4px); }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 500; font-size: .95rem;
  padding: 10px; border-radius: 8px; cursor: pointer;
}
.dropdown a:hover, .dropdown button:hover { background: var(--hover); }
.dropdown i { width: 20px; text-align: center; color: var(--muted); }
.dropdown .danger, .dropdown .danger i { color: #f87171; }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown__me b { display: block; }
.dropdown__me small { color: var(--muted); }

/* ----- Estructura ----- */
.c-app { width: 100%; max-width: 1360px; margin: 0 auto; padding: 16px 16px 60px; }
.c-layout { grid-template-columns: 280px minmax(0, 600px) 300px; justify-content: space-between; gap: 28px; }
.c-side { top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: none; gap: 6px; }
.c-side::-webkit-scrollbar { display: none; }
.feed { min-width: 0; }

/* ----- Columna izquierda ----- */
.sl { display: grid; gap: 2px; }
.sl-item {
  display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: .95rem;
}
.sl-item:hover { background: var(--hover); }
.sl-item.active { background: rgba(34,197,94,.1); }
.sl-item.active .sl-label { color: var(--accent); font-weight: 700; }
.sl-ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .95rem; background: var(--card-2);
}
.sl-ic--av { background: none; }
.sl-ic--av .av { width: 36px; height: 36px; }
.sl-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-count { color: var(--muted); font-size: .78rem; font-weight: 600; min-width: 22px; text-align: center; background: var(--card-2); border-radius: 99px; padding: 1px 7px; }
.sl-title { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; margin: 14px 8px 4px; padding-top: 14px; border-top: 1px solid var(--border); }

.c-green  { background: rgba(34,197,94,.14);  color: #4ade80; }
.c-red    { background: rgba(239,68,68,.14);  color: #f87171; }
.c-amber  { background: rgba(245,158,11,.14); color: #fbbf24; }
.c-blue   { background: rgba(59,130,246,.14); color: #60a5fa; }
.c-purple { background: rgba(168,85,247,.14); color: #c084fc; }
.t-green { color: #4ade80; } .t-red { color: #f87171; } .t-amber { color: #fbbf24; } .t-blue { color: #60a5fa; } .t-purple { color: #c084fc; }

.c-foot { color: var(--muted); font-size: .78rem; padding: 14px 8px; line-height: 1.8; }
.c-foot button, .fb__footer button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.c-foot button:hover, .fb__footer button:hover { text-decoration: underline; color: var(--text); }
.fb__footer button { margin: 0 8px; }

/* ----- Columna derecha ----- */
.sr { padding: 4px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sr:last-child { border-bottom: 0; }
.sr-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; }
.sr-head h5 { color: var(--muted); font-size: .95rem; font-weight: 600; }
.sr-head a { color: var(--accent); font-size: .85rem; font-weight: 600; }
.sr-person, .sr-trend { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.sr-person:hover, .sr-trend:hover { background: var(--hover); }
.sr-person div, .sr-trend div { flex: 1; min-width: 0; }
.sr-person b, .sr-trend b { display: block; font-size: .92rem; }
.sr-person small, .sr-trend small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-btn { background: var(--card-2); color: var(--text); font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; }
.sr-person:hover .sr-btn { background: var(--accent); color: #04150a; }
.sr-empty { color: var(--muted); padding: 0 8px; font-size: .9rem; }

/* ----- Tarjetas ----- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.c-box { background: var(--card); border-color: var(--border); }

/* ----- Historias / traffickers destacados ----- */
.stories { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story {
  position: relative; flex: none; width: 112px; height: 196px; border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); cursor: pointer; padding: 0; color: #fff; font: inherit; text-align: left;
}
.story__cover { position: absolute; inset: 0; transition: transform .3s; }
.story:hover .story__cover { transform: scale(1.04); }
.story__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 35%, transparent 55%, rgba(0,0,0,.8) 100%); }
.av--cover { width: 100%; height: 100%; border-radius: 0; font-size: 2.2rem; display: grid; place-items: center; }
.story__ring { position: absolute; top: 10px; left: 10px; z-index: 2; border-radius: 50%; padding: 2px; background: var(--accent); }
.story__ring .av { border: 2px solid var(--card); display: grid; }
.story__txt { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.story__txt b { display: block; font-size: .82rem; line-height: 1.2; }
.story__txt small { display: block; font-size: .7rem; opacity: .8; margin-top: 2px; }
.story--me .story__cover { bottom: 56px; }
.story--me .story__cover::after { display: none; }
.story--me .story__plus {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #04150a; border: 4px solid var(--card); font-size: .9rem;
}
.story--me b { position: absolute; left: 6px; right: 6px; bottom: 10px; text-align: center; font-size: .8rem; color: var(--text); }

/* ----- Crear publicación ----- */
.composer { padding: 12px 16px 8px; margin-bottom: 16px; }
.composer__top { display: flex; align-items: center; gap: 10px; }
.composer__pill {
  flex: 1; text-align: left; background: var(--card-2); color: var(--muted); border: 0; border-radius: 999px;
  padding: 11px 16px; font: inherit; font-size: 1rem; cursor: pointer;
}
.composer__pill:hover { background: var(--hover); }
.composer__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.composer__quick button {
  display: flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 6px; border-radius: 8px; cursor: pointer;
}
.composer__quick button:hover { background: var(--hover); }
.composer__quick i { font-size: 1.15rem; }

.dlg-head { padding: 16px 56px; text-align: center; border-bottom: 1px solid var(--border); }
.dlg-head h3 { font-size: 1.2rem; }
.c-dialog__close { position: absolute; top: 10px; right: 12px; float: none; margin: 0; background: var(--card-2); border: 0; }
.c-dialog__close:hover { background: var(--hover); }
.c-dialog { position: fixed; }
#post-dialog .c-dialog__close { position: sticky; float: right; margin: 10px 10px 0 0; }
.compose { padding: 16px; display: grid; gap: 12px; }
.compose__who { display: flex; align-items: center; gap: 10px; }
.compose__who b { display: block; font-size: .95rem; }
.compose__type {
  margin-top: 3px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--text);
  background: var(--card-2); border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer;
}
.compose__title, .compose__body { background: transparent; border: 0; color: var(--text); font: inherit; width: 100%; padding: 4px 0; }
.compose__title { font-size: 1.2rem; font-weight: 700; }
.compose__body { min-height: 140px; resize: vertical; font-size: 1rem; line-height: 1.5; }
.compose__title:focus, .compose__body:focus, .compose__type:focus { outline: none; }
.compose__title::placeholder, .compose__body::placeholder { color: var(--muted); }
.compose__add {
  display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 8px 8px 16px; font-weight: 600; font-size: .92rem;
}
.compose__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #4ade80; font-size: 1.25rem; cursor: pointer; }
.compose__icon:hover { background: var(--hover); }
.compose__icon input { display: none; }
.compose__hint { color: var(--muted); font-size: .8rem; }
.compose .btn { border-radius: 8px; padding: 11px; }
.c-composer__img { max-width: 100%; }
.c-composer__img img { max-height: 280px; object-fit: cover; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn--dark { background: rgba(0,0,0,.65); color: #fff; }

/* ----- Pestañas del muro ----- */
.feed-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs a {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--text); background: var(--card); border: 1px solid var(--border);
}
.feed-tabs a:hover { background: var(--hover); }
.feed-tabs a.active { background: var(--accent); border-color: var(--accent); color: #04150a; }
.feed-search { color: var(--muted); margin-bottom: 12px; }

/* ----- Publicación ----- */
.post { padding: 0; margin-bottom: 16px; }
.post__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 0 16px; }
.post__who { flex: 1; min-width: 0; line-height: 1.3; }
.post__name { font-weight: 700; font-size: .95rem; }
.post__name:hover { text-decoration: underline; }
.post__meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.post__type { font-weight: 600; }
.post__type:hover { text-decoration: underline; }
.post__type i { font-size: .75rem; margin-right: 2px; }
.post__solved { background: rgba(34,197,94,.14); color: #4ade80; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.post__menu { position: relative; }
.post__content { padding: 10px 16px 12px; }
.post .post__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.post__body { color: #d6d6db; white-space: pre-line; font-size: .95rem; line-height: 1.55; }
.post__img { display: block; width: 100%; max-height: 640px; object-fit: cover; background: #000; border-block: 1px solid var(--border); }
.post__stats { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--muted); font-size: .88rem; }
.post__stats button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.post__stats button:hover { text-decoration: underline; }
.like-dot {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #04150a; font-size: .58rem; vertical-align: -3px; margin-right: 2px;
}
.post__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 12px; padding: 4px 0; border-top: 1px solid var(--border); }
.pa {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 4px; border-radius: 8px;
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.pa:hover { background: var(--hover); }
.pa.on { color: var(--accent); }
.pa i { font-size: 1.05rem; }
.pa .ic-wa { font-size: 1.2rem; }

.post__comments { border-top: 1px solid var(--border); padding: 4px 16px 14px; margin-top: 0; display: block; }
.cmt { display: flex; gap: 8px; margin-top: 10px; }
.cmt > div { min-width: 0; }
.cmt__bubble { background: var(--card-2); border-radius: 18px; padding: 8px 12px; display: inline-block; max-width: 100%; }
.cmt__bubble b { font-size: .85rem; }
.cmt__bubble a:hover b { text-decoration: underline; }
.cmt__bubble p { color: #d6d6db; font-size: .92rem; white-space: pre-line; margin-top: 2px; }
.cmt__time { display: block; color: var(--muted); font-size: .75rem; margin: 3px 0 0 12px; }
.cmt-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.cmt-input { flex: 1; display: flex; align-items: center; background: var(--card-2); border-radius: 999px; padding: 0 6px 0 14px; }
.cmt-input:focus-within { outline: 2px solid var(--accent); }
.cmt-input input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: .92rem; padding: 9px 0; }
.cmt-input input:focus { outline: none; }
.cmt-input button { background: none; border: 0; color: var(--accent); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.cmt-input button:hover { background: var(--hover); }

.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 8px; }
.empty > i { font-size: 2.2rem; color: var(--muted); }
.empty p { color: var(--muted); }

.role { font-size: .68rem; padding: 2px 7px; margin-left: 4px; }

/* ----- Reglas ----- */
.rules { padding: 16px 22px 22px; display: grid; gap: 10px; }
.rules h4 { font-size: 1rem; margin-top: 6px; }
.rules h4 i { color: var(--accent); margin-right: 6px; }
.rules ol { padding-left: 20px; display: grid; gap: 6px; color: #d6d6db; }
.rules p { color: #d6d6db; }
.rules__note { color: var(--muted) !important; font-size: .82rem; }

/* ----- Navegación inferior (celular) ----- */
.c-bottom button {
  flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 600;
  padding: 10px 4px 12px; cursor: pointer;
}
.c-bottom span { display: grid; place-items: center; font-size: 1.2rem; height: 26px; }

/* ----- Otras páginas con el mismo estilo ----- */
.c-hero { border-color: var(--border); }
.ig__btn { border-radius: 8px; }

/* ----- Responsive ----- */
@media (max-width: 1250px) {
  .c-layout { grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 20px; }
  .tb-tab { width: 90px; }
}
@media (max-width: 1100px) {
  .c-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .c-layout > .c-side--right { display: none; }
}
@media (max-width: 900px) {
  .tb-logo { display: none; }
  .tb-mark { display: grid; }
}
@media (max-width: 800px) {
  .c-layout { grid-template-columns: 1fr; }
  .c-layout > .c-side--left { display: none; }
  .tb-tabs, .tb-circle { display: none; }
  .c-top__inner { grid-template-columns: 1fr auto; }
  .c-search { max-width: none; }
  .c-app { padding: 12px 0 90px; }
  .feed .card, .feed .feed-tabs, .feed-search { border-radius: 0; }
  .feed .card { border-left: 0; border-right: 0; }
  .feed-tabs, .stories, .feed-search { padding-inline: 12px; }
  .composer__quick span { display: none; }
  .composer__quick i { font-size: 1.3rem; }
  .c-app > :not(.c-layout) { margin-inline: 12px; }
}

.is-guest .c-app { padding: 0; max-width: none; }
.story--me .story__cover { bottom: 66px; }
.story--me .story__plus { bottom: 48px; }
.story--me b { bottom: 8px; line-height: 1.25; }
.c-toast { transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
.c-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (max-width: 800px) { .c-layout { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   v4: TEMA CLARO (gris claro + blanco, acentos negro y verde)
   ===================================================================== */
.c-body {
  --bg: #f0f2f5; --bg-alt: #e9ebee; --card: #ffffff; --card-2: #f0f2f5; --hover: #e4e6eb;
  --border: #dadde1; --text: #050505; --muted: #65676b; --ink: #0a0a0a;
  --accent: #16a34a; --accent-dark: #15803d;
  background: var(--bg); color: var(--text);
}
.c-body ::selection { background: rgba(22,163,74,.25); }

/* Textos que eran claros sobre fondo oscuro */
.post__body, .cmt__bubble p, .rules ol, .rules p, .c-post__body, .c-comment__bubble p,
.c-profile__bio, .ig__timeline p, .c-box p { color: #1c1e21; }
.c-error { color: #dc2626; }

/* Botones: verde con texto blanco; secundarios gris; crear cuenta en negro */
.c-body .btn { color: #fff; background: var(--accent); border-color: var(--accent); }
.c-body .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.c-body .btn--ghost { background: var(--hover); color: var(--text); border-color: transparent; }
.c-body .btn--ghost:hover { background: #d8dadf; }
.c-body .btn--create { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-body .btn--create:hover { background: #262626; border-color: #262626; }
.ig__btn { background: var(--hover); border-color: transparent; color: var(--text); }
.ig__btn:hover { background: #d8dadf; }
.c-body .ig__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-body .ig__btn--primary:hover { background: var(--accent-dark); }

/* Barra superior blanca */
.c-top { background: #fff; border-bottom: 0; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.04); }
.tb-mark { background: var(--ink); color: #22c55e; }
.c-search { background: var(--card-2); }
.tb-circle { background: var(--hover); color: var(--text); }
.tb-circle:hover { background: #d8dadf; }
.tb-tab { color: var(--muted); }
.tb-tab.active { color: var(--accent); }

/* Menús y ventanas */
.dropdown { background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 28px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.08); }
.dropdown .danger, .dropdown .danger i { color: #dc2626; }
.c-dialog { background: #fff; border: 0; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.c-dialog::backdrop { background: rgba(244,244,245,.75); backdrop-filter: blur(2px); }
.c-dialog__close, #post-dialog .c-dialog__close { background: var(--hover); color: var(--muted); }
.c-dialog__close:hover { background: #d8dadf; }
.c-toast { background: var(--ink); color: #fff; }

/* Tarjetas */
.card, .c-box { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.c-box--accent { background: linear-gradient(160deg, rgba(22,163,74,.08), #fff 60%); }
.c-hero { background: linear-gradient(120deg, var(--ink) 0%, #14532d 100%); color: #fff; border: 0; }
.c-hero p { color: rgba(255,255,255,.82); }

/* Colores de temas (más oscuros para leerse sobre blanco) */
.c-green  { background: rgba(22,163,74,.12);  color: #15803d; }
.c-red    { background: rgba(220,38,38,.1);   color: #dc2626; }
.c-amber  { background: rgba(217,119,6,.12);  color: #b45309; }
.c-blue   { background: rgba(37,99,235,.1);   color: #2563eb; }
.c-purple { background: rgba(147,51,234,.1);  color: #9333ea; }
.t-green { color: #15803d; } .t-red { color: #dc2626; } .t-amber { color: #b45309; } .t-blue { color: #2563eb; } .t-purple { color: #9333ea; }
.ptype--red { background: rgba(220,38,38,.1); color: #dc2626; }
.ptype--amber { background: rgba(217,119,6,.12); color: #b45309; }
.ptype--blue { background: rgba(37,99,235,.1); color: #2563eb; }
.ptype--green { background: rgba(22,163,74,.12); color: #15803d; }
.ptype--purple { background: rgba(147,51,234,.1); color: #9333ea; }
.role--anunciante { background: rgba(37,99,235,.1); color: #2563eb; }
.role--trafficker { background: rgba(22,163,74,.12); color: #15803d; }
.role--marca { background: rgba(147,51,234,.1); color: #9333ea; }
.role--demo { background: var(--hover); color: var(--muted); }
.post__solved { background: rgba(22,163,74,.12); color: #15803d; }
.solved { background: var(--accent); color: #fff; }

/* Columnas */
.sl-item.active { background: rgba(22,163,74,.1); }
.sl-item.active .sl-label { color: var(--accent-dark); }
.sl-ic { background: var(--hover); }
.sl-count { background: var(--hover); }
.sr-btn { background: var(--hover); }
.sr-person:hover .sr-btn { background: var(--accent); color: #fff; }

/* Historias */
.story { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.story__ring .av { border-color: #fff; }
.story--me b { color: var(--text); }
.story--me .story__plus { background: var(--accent); color: #fff; border-color: #fff; }

/* Muro y publicaciones */
.composer__pill { background: var(--card-2); }
.composer__pill:hover { background: var(--hover); }
.feed-tabs a { background: #fff; border-color: var(--border); }
.feed-tabs a:hover { background: var(--hover); }
.feed-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.post__img { background: var(--card-2); }
.like-dot { background: var(--accent); color: #fff; }
.cmt__bubble, .cmt-input { background: var(--card-2); }
.c-composer__img img { border: 1px solid var(--border); }
.skill { background: var(--card-2); border-color: var(--border); }

/* Perfil */
.ring > .av { border-color: var(--bg); }
.ig__upload { color: #fff; border-color: var(--bg); }
.ig__hl span { background: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border); }
.ig__tabs { border-top-color: var(--border); }
.ig__tabs a.active { color: var(--text); border-top-color: var(--ink); }
.ig__tile { color: var(--text); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.ig__tile--red    { background: linear-gradient(145deg, #fee2e2, #fff); }
.ig__tile--amber  { background: linear-gradient(145deg, #fef3c7, #fff); }
.ig__tile--blue   { background: linear-gradient(145deg, #dbeafe, #fff); }
.ig__tile--green  { background: linear-gradient(145deg, #dcfce7, #fff); }
.ig__tile--purple { background: linear-gradient(145deg, #f3e8ff, #fff); }
.ig__tile-txt span { color: var(--ink); }
.ig__tile-over { background: rgba(10,10,10,.55); color: #fff; }
.ig__tile-solved { color: #fff; }
.ig__grid { gap: 6px; }
.ig__timeline li::before { border-color: #fff; }
.ed__actions { background: var(--bg); }

/* Formularios */
.c-form input, .c-form select, .c-form textarea, .c-filters input, .c-filters select, .c-input {
  background: #fff; border: 1px solid var(--border); color: var(--text);
}
.c-roles label { background: #fff; }
.c-roles label:has(input:checked) { background: rgba(22,163,74,.08); }
.c-tabs { background: var(--card-2); }
.c-tabs button.active { color: #fff; }

/* Pantalla de entrada */
.fb { background: var(--bg); }
.fb__tagline { color: #1c1e21; }
.fb__tagline b { color: var(--accent-dark); }
.fb__login { background: #fff; border: 0; box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1); }
.fb__login input { background: #fff; border: 1px solid var(--border); color: var(--text); }
.fb__forgot { color: var(--accent-dark); }
.fb__note b { color: var(--text); }
.fb-shot { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.fb-shot figcaption { background: var(--ink); color: #fff; border-top: 0; }
.fb-shot figcaption i { color: #f87171; }
.fb__footer { background: #fff; border-top: 1px solid var(--border); }

/* Navegación inferior en celular */
.c-bottom { background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -1px 3px rgba(0,0,0,.06); }
.c-bottom a.active { color: var(--accent); }

/* Texto de publicaciones y comentarios en casi negro (gana a .card p de styles.css) */
.c-body .post__body, .c-body .cmt__bubble p, .c-body .rules p, .c-body .rules ol { color: #1c1e21; }
.c-body .empty p, .c-body .sr-empty { color: var(--muted); }

/* Avatares sin foto y estados en gris */
.c-body span.av { color: #3a3b3c; }
.story span.av--cover { background: linear-gradient(160deg, #e9ebee 0%, #c9ccd1 100%) !important; color: #4b4c4f; font-size: 2.4rem; }
.story__cover::after { background: linear-gradient(180deg, transparent 45%, rgba(28,30,33,.72) 100%); }
.story--me .story__cover { background: #e9ebee; }
.story__ring { background: #fff; box-shadow: 0 0 0 2px #8a8d91; }
.story__ring .av { border-color: #fff; }
.story:hover { box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* =====================================================================
   v5: Plataforma completa (notificaciones, mensajes, perfil con portada,
   reseñas, portafolio, guardados, búsqueda, seguir, reportes)
   ===================================================================== */

/* ----- Básicos ----- */
.badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(22px);
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  background: #e41e3f; color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; border: 2px solid #fff;
}
.tb-circle { position: relative; }
.tb-circle .badge { top: -4px; right: -6px; transform: none; }
.sl-item .badge, .dropdown .badge { position: static; transform: none; border: 0; margin-left: auto; }
.c-bottom span { position: relative; }
.c-bottom .badge { top: -4px; transform: translateX(10px); }
.vbadge { color: #16a34a; font-size: .82em; margin-left: 5px; vertical-align: 0; }
.star { color: #f59e0b; }
.fa-regular.star { color: #d1d5db; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: .85rem; color: var(--muted); }
.rating b { color: var(--text); margin-left: 3px; }
.muted-line { color: var(--muted); font-size: .92rem; }
.link-btn { background: none; border: 0; color: var(--accent-dark); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.page-title { font-size: 1.35rem; margin: 4px 0 16px; display: flex; align-items: center; gap: 10px; }
.sec-title { font-size: 1.05rem; margin: 20px 0 12px; }
.sec-title small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.c-layout--2 { grid-template-columns: 280px minmax(0, 680px); justify-content: start; gap: 40px; }

/* ----- Seguir ----- */
.follow-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: .88rem;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
}
.follow-btn:hover { background: var(--accent-dark); }
.follow-btn.on { background: var(--hover); color: var(--text); }
.follow-btn.on:hover { background: #d8dadf; }
.follow-btn--sm { padding: 6px 10px; font-size: .8rem; }
.follow-btn--sm i { display: none; }
.follow-btn--lg { padding: 9px 18px; }

/* ----- Notificaciones ----- */
.dropdown--notif { width: 380px; max-height: 70vh; overflow-y: auto; padding: 8px; }
.dd-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.dd-head h4 { font-size: 1.2rem; }
.dd-empty { color: var(--muted); text-align: center; padding: 24px 12px; display: grid; gap: 8px; justify-items: center; font-size: .9rem; }
.dd-empty i { font-size: 1.8rem; }
.notif { position: relative; align-items: flex-start !important; gap: 12px !important; padding: 8px !important; }
.notif.unread { background: rgba(22,163,74,.06); }
.notif__av { position: relative; flex: none; }
.notif__av .av { width: 52px; height: 52px; font-size: 1rem; }
.tb-mark-av { background: var(--ink) !important; color: #22c55e !important; font-weight: 800; }
.notif__ic {
  position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .65rem; border: 2px solid #fff;
}
.dropdown .notif__ic i { width: auto; color: inherit; }
.notif__ic.c-green { background: #16a34a; color: #fff; } .notif__ic.c-blue { background: #2563eb; color: #fff; }
.notif__ic.c-amber { background: #f59e0b; color: #fff; } .notif__ic.c-purple { background: #9333ea; color: #fff; }
.notif__txt { flex: 1; font-size: .9rem; line-height: 1.35; text-align: left; }
.notif__txt small { display: block; color: var(--accent-dark); font-size: .78rem; font-weight: 600; margin-top: 3px; }
.notif.unread .notif__txt { font-weight: 500; }
.notif__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; align-self: center; }

/* ----- Columna izquierda / derecha ----- */
.sl-card { background: #fff; border-radius: 10px; padding: 12px 14px; margin: 14px 4px 0; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: .85rem; }
.sl-card b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sl-card b i { color: var(--accent); }
.sl-card p { color: var(--muted); }
.sr-person { display: flex; align-items: center; gap: 10px; }
.sr-info { flex: 1; min-width: 0; }
.sr-info b { display: block; font-size: .9rem; }
.sr-info small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-case {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0;
  padding: 8px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text);
}
.sr-case:hover { background: var(--hover); }
.sr-case b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.3; }
.sr-case small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.sr-new { display: flex; gap: 6px; padding: 0 8px; flex-wrap: wrap; }
.sr-new a { display: grid; justify-items: center; gap: 4px; width: 62px; text-align: center; }
.sr-new .av { width: 48px; height: 48px; }
.sr-new small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ----- Pestañas con flechas ----- */
.tabs-wrap { position: relative; margin-bottom: 16px; }
.tabs-wrap .feed-tabs { margin: 0; scroll-behavior: smooth; }
.tabs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: none; place-items: center;
}
.tabs-arrow:hover { background: var(--hover); }
.tabs-arrow--l { left: -6px; } .tabs-arrow--r { right: -6px; }
.tabs-wrap::before, .tabs-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 30%, transparent); }
.tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 30%, transparent); }
.tabs-wrap.can-left::before, .tabs-wrap.can-right::after { opacity: 1; }
.tabs-wrap.can-left .tabs-arrow--l, .tabs-wrap.can-right .tabs-arrow--r { display: grid; }

/* ----- Publicaciones ----- */
.post__likes { display: inline-flex; align-items: center; gap: 6px; }
.like-dot { vertical-align: 0; margin: 0; }
.post__menu .dropdown hr { margin: 4px 0; }
.cmt--best .cmt__bubble { background: rgba(22,163,74,.08); box-shadow: inset 0 0 0 1.5px rgba(22,163,74,.45); }
.cmt__best { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-dark); font-size: .78rem; font-weight: 700; margin: 0 0 4px 4px; }
.cmt__meta { display: flex; gap: 12px; align-items: center; margin: 3px 0 0 12px; }
.cmt__meta small { color: var(--muted); font-size: .75rem; }
.cmt__act { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.cmt__act:hover { color: var(--accent-dark); text-decoration: underline; }
.cmt__time { display: none; }

/* ----- Personas (búsqueda) ----- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.person { padding: 18px 14px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.person .av--lg { width: 84px; height: 84px; font-size: 1.6rem; }
.person__name { font-weight: 700; }
.person small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.person__btns { display: flex; gap: 6px; margin-top: 6px; }

/* ----- Directorio de traffickers ----- */
.c-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.c-tcard { padding: 0 0 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.c-tcard__cover { width: 100%; height: 86px; background: linear-gradient(120deg, #e9ebee, #c9ccd1); background-size: cover; background-position: center; }
.c-tcard__av { margin-top: -46px; }
.c-tcard__av .av { width: 92px; height: 92px; font-size: 1.7rem; border: 4px solid #fff; }
.c-tcard__name { font-weight: 700; font-size: 1.05rem; padding: 0 14px; }
.c-tcard__head { color: var(--muted); font-size: .85rem; padding: 0 14px; line-height: 1.3; }
.c-tcard .rating span { font-size: .8rem; }
.c-tcard__skills { padding: 4px 14px 0; }
.c-tcard__price { font-size: .85rem; color: var(--muted); padding: 0 14px; }
.c-tcard__price b { color: var(--text); }
.c-tcard__btns { display: flex; gap: 8px; width: 100%; padding: 8px 14px 0; margin-top: auto; }
.c-tcard__btns .btn { flex: 1; padding: 9px; font-size: .88rem; border-radius: 8px; }
.filter-check { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 600; }

/* ----- Perfil con portada ----- */
.pf { max-width: 1100px; margin: 0 auto; }
.pf__top { overflow: hidden; margin-bottom: 16px; }
.pf__cover {
  position: relative; height: 340px; background: linear-gradient(120deg, #e9ebee 0%, #c9ccd1 100%);
  background-size: cover; background-position: center;
}
.pf__cover-btn {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; color: var(--text); border: 0; font: inherit; font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pf__cover-btn:hover { background: #f2f2f2; }
.pf__cover-btn input { display: none; }
.pf__cover-btn--del { right: auto; left: 16px; color: #dc2626; }
.pf__bar { display: flex; align-items: flex-end; gap: 20px; padding: 0 32px 16px; flex-wrap: wrap; }
.pf__avatar { position: relative; margin-top: -84px; flex: none; }
.pf__avatar .av--xl { width: 172px; height: 172px; font-size: 3.2rem; border: 5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); display: grid; }
.pf__av-btn {
  position: absolute; right: 8px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--hover); color: var(--text); display: grid; place-items: center; border: 3px solid #fff;
}
.pf__av-btn:hover { background: #d8dadf; }
.pf__av-btn input { display: none; }
.pf__id { flex: 1; min-width: 240px; padding-bottom: 4px; }
.pf__id h1 { font-size: 2rem; line-height: 1.15; }
.pf__handle { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.pf__handle i { font-size: .8rem; }
.pf__headline { color: var(--accent-dark); font-weight: 600; margin-top: 4px; }
.pf__stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.pf__stats b { color: var(--text); }
.pf__btns { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.pf__btns .btn { border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.pf__tabs { display: flex; gap: 4px; border-top: 1px solid var(--border); margin: 0 32px; overflow-x: auto; scrollbar-width: none; }
.pf__tabs a { padding: 14px 14px 12px; color: var(--muted); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; white-space: nowrap; border-radius: 8px 8px 0 0; }
.pf__tabs a:hover { background: var(--hover); }
.pf__tabs a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.pf__complete { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 20px; margin-bottom: 16px; }
.pf__complete > div { flex: 1; display: grid; gap: 8px; }
.pf__complete p { color: var(--muted) !important; font-size: .9rem; }
.pf__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.pf__side { position: sticky; top: 72px; display: grid; gap: 16px; }
.pf__box { padding: 16px 18px; margin-bottom: 16px; }
.pf__side .pf__box { margin: 0; }
.pf__box h3 { font-size: 1.2rem; margin-bottom: 12px; }
.pf__bio { text-align: center; white-space: pre-line; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.pf__facts { list-style: none; display: grid; gap: 12px; font-size: .93rem; margin-bottom: 12px; }
.pf__facts li { display: flex; gap: 12px; align-items: flex-start; }
.pf__facts i { color: #8a8d91; width: 20px; text-align: center; margin-top: 3px; }
.pf__skills { margin-bottom: 12px; }
.pf__verified { display: flex; gap: 12px; align-items: flex-start; }
.pf__verified > i { color: var(--accent); font-size: 1.6rem; }
.pf__verified p { color: var(--muted) !important; font-size: .88rem; }
.pf__main .composer { margin-bottom: 16px; }
.ig__dl { gap: 16px; }
.ig__services { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ig__service { margin: 0; }
.svc-btns { display: flex; gap: 8px; margin-top: 12px; }
.svc-btns .btn { border-radius: 8px; }

/* Portafolio */
.pf-port { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pf-case { overflow: hidden; }
.pf-case__img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dcfce7, #f0f2f5); display: grid; place-items: center; color: var(--accent); font-size: 2.4rem; }
.pf-case__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-case__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.pf-case__result { justify-self: start; background: rgba(22,163,74,.12); color: var(--accent-dark); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 99px; }
.pf-case__body p { color: var(--muted) !important; font-size: .9rem; }

/* Reseñas */
.rv-summary { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.rv-big { display: grid; justify-items: center; gap: 4px; min-width: 120px; }
.rv-big > b { font-size: 3rem; line-height: 1; }
.rv-big small { color: var(--muted); }
.rv-dist { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.rv-dist > div { display: grid; grid-template-columns: 42px 1fr 24px; gap: 10px; align-items: center; font-size: .85rem; }
.rv-dist .ig__bar span { background: #f59e0b; }
.rv-form { display: grid; gap: 12px; }
.rv-form h3 { margin: 0; }
.rv-form textarea { width: 100%; min-height: 90px; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; resize: vertical; }
.rv-form .btn { justify-self: start; border-radius: 8px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 0; }
.star-pick label { font-size: 1.7rem; color: #d1d5db; cursor: pointer; transition: transform .1s; }
.star-pick label:hover { transform: scale(1.1); }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f59e0b; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.rv { display: flex; gap: 12px; }
.rv > div { flex: 1; }
.rv .rating { margin: 2px 0 6px; }
.rv .rating small { margin-left: 6px; }

/* ----- Mensajes ----- */
.chat { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 88px); overflow: hidden; max-width: 1200px; margin: 0 auto; }
.chat__list { border-right: 1px solid var(--border); overflow-y: auto; padding: 8px; }
.chat__head { padding: 8px 8px 12px; }
.chat__head h2 { font-size: 1.5rem; }
.chat__conv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.chat__conv:hover { background: var(--hover); }
.chat__conv.active { background: rgba(22,163,74,.1); }
.chat__conv .av { width: 52px; height: 52px; flex: none; }
.chat__conv > span { flex: 1; min-width: 0; }
.chat__conv b { display: block; font-size: .95rem; }
.chat__conv small { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__conv.unread b, .chat__conv.unread small { color: var(--text); font-weight: 700; }
.chat__thread { display: flex; flex-direction: column; min-width: 0; }
.chat__top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.chat__back { display: none; }
.chat__who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat__who b { display: block; }
.chat__who small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__top .ic-wa { font-size: 1.4rem; }
.chat__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.chat__time { text-align: center; color: var(--muted); font-size: .75rem; margin: 10px 0 6px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 75%; }
.msg p { background: var(--card-2); padding: 8px 12px; border-radius: 18px; font-size: .95rem; white-space: pre-line; word-break: break-word; color: var(--text) !important; }
.msg--me { align-self: flex-end; }
.msg--me p { background: var(--accent); color: #fff !important; }
.chat__intro { margin: auto; display: grid; justify-items: center; gap: 4px; text-align: center; }
.chat__intro .av--lg { width: 84px; height: 84px; font-size: 1.6rem; margin-bottom: 6px; }
.chat__intro small, .chat__intro p { color: var(--muted) !important; }
.chat__form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.chat__form input { flex: 1; background: var(--card-2); border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; color: var(--text); }
.chat__form input:focus { outline: 2px solid var(--accent); }
.icon-btn--send { color: var(--accent); font-size: 1.15rem; width: 42px; height: 42px; }
.chat__empty { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.chat__empty > i { font-size: 3rem; color: var(--muted); }
.chat__empty b { font-size: 1.2rem; }
.chat__empty p { color: var(--muted) !important; max-width: 320px; }

/* ----- Editar perfil ----- */
.ed { max-width: 820px; }
.ed__media { overflow: hidden; }
.ed__cover { position: relative; height: 200px; background: linear-gradient(120deg, #e9ebee, #c9ccd1); background-size: cover; background-position: center; }
.ed__media .ed__photo { border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.ed__box { padding: 18px 20px; display: grid; gap: 12px; }
.ed__box h4 small { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.ed__checks { display: flex; flex-wrap: wrap; gap: 12px; }
.ed__list { display: grid; gap: 10px; }
.exp-row { border-color: var(--border); background: #fafbfc; }
.pf-row { grid-template-columns: 130px 1fr; align-items: start; }
.pf-row__img {
  width: 130px; height: 100px; border-radius: 10px; border: 1.5px dashed var(--border); background: #fff; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); overflow: hidden; font-size: 1.4rem;
}
.pf-row__img small { font-size: .75rem; }
.pf-row__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-row__img input { display: none; }
.pf-row__fields { display: grid; gap: 8px; }

/* ----- Reportar ----- */
.report-opts { display: grid; gap: 6px; }
.report-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .93rem; }
.report-opt:has(input:checked) { border-color: var(--accent); background: rgba(22,163,74,.06); }
.compose .c-input { width: 100%; min-height: 70px; font: inherit; padding: 10px 12px; border-radius: 10px; resize: vertical; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .c-layout--2 { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .pf__grid { grid-template-columns: 1fr; }
  .pf__side { position: static; }
}
@media (max-width: 800px) {
  .c-layout--2 { grid-template-columns: minmax(0, 1fr); }
  .tb-hide-m { display: none; }
  .tb-right .tb-circle[data-action="notif-menu"] { display: grid; place-items: center; }
  .dropdown--notif { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; }
  .pf__cover { height: 200px; }
  .pf__bar { flex-direction: column; align-items: center; text-align: center; padding: 0 16px 12px; }
  .pf__avatar { margin-top: -70px; }
  .pf__avatar .av--xl { width: 140px; height: 140px; }
  .pf__id { min-width: 0; }
  .pf__id h1 { font-size: 1.6rem; }
  .pf__stats, .pf__btns { justify-content: center; }
  .pf__tabs { margin: 0 8px; }
  .pf__complete { flex-direction: column; align-items: stretch; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 150px); border-radius: 0; }
  .chat--open .chat__list { display: none; }
  .chat:not(.chat--open) .chat__thread { display: none; }
  .chat__back { display: grid; }
  .pf-row { grid-template-columns: 1fr; }
  .pf-row__img { width: 100%; }
  .tabs-arrow { display: none !important; }
}

/* Ajustes: anula estilos de tarjeta de la landing (styles.css) */
.c-body .card:hover { transform: none; }
.c-body .pf__top, .c-body .chat, .c-body .pf-case { padding: 0; }
.sr-case > span:last-child { flex: 1; min-width: 0; }
.story__txt .vbadge { display: none; }
.c-filters .filter-check { display: inline-flex !important; align-items: center; gap: 8px; flex: none; }
.c-filters .filter-check input { flex: none; min-width: 0; width: auto; padding: 0; }
@media (max-width: 800px) { .pf__cover-btn { bottom: auto; top: 12px; } .pf__bio { text-align: left; } }

/* Supabase: pantalla de carga y estados */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 24px; }
.boot p { color: var(--muted); max-width: 420px; }
.boot__spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--hover); border-top-color: var(--accent); animation: nbspin .8s linear infinite; }
@keyframes nbspin { to { transform: rotate(360deg); } }
.ok-msg { color: var(--accent-dark); font-weight: 600; display: block; }
.ok-msg i { margin-right: 4px; }
.btn.is-busy, button.is-busy { opacity: .6; pointer-events: none; }
.compose input.c-input { min-height: 0; padding: 12px 14px; border-radius: 10px; font: inherit; width: 100%; }

/* =====================================================================
   v6: Entrada y registro profesionales (Nichosblacks)
   ===================================================================== */
.fb__main { grid-template-columns: minmax(0, 1.2fr) 420px; gap: 64px; align-items: start; padding-top: 56px; }
.lx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 14px;
  background: rgba(22,163,74,.1); color: var(--accent-dark); font-weight: 700; font-size: .82rem;
  padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(22,163,74,.25);
}
.lx-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -1px; color: var(--ink); max-width: 620px; }
.lx-title span { color: var(--accent-dark); }
.lx-sub { color: #4b4f56; font-size: 1.08rem; line-height: 1.55; margin: 14px 0 22px; max-width: 580px; }
.lx-perks { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; max-width: 580px; }
.lx-perks li { display: flex; gap: 14px; align-items: flex-start; }
.lx-perk__ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #22c55e; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.lx-perks b { display: block; font-size: 1rem; color: var(--ink); }
.lx-perks p { color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 2px; }
.fb__shots { max-width: 460px; gap: 16px; }
.fb-shot figcaption { font-size: .78rem; padding: 8px 10px; }
.fb__shots-note { font-size: .9rem; margin-top: 18px; }

.lx-side { position: sticky; top: 40px; }
.fb__login { padding: 26px 24px 24px; gap: 12px; }
.lx-login-head { margin-bottom: 4px; }
.lx-login-head h2 { font-size: 1.45rem; color: var(--ink); }
.lx-login-head p { color: var(--muted); font-size: .92rem; }
.btn--create { display: inline-flex; align-items: center; gap: 8px; }
.lx-trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: #4b4f56; font-size: .85rem; font-weight: 600; }
.lx-trust i { color: var(--accent); margin-right: 4px; }

/* Campos con icono */
.fld { position: relative; display: block; }
.fld > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8a8d91; font-size: .95rem; pointer-events: none; }
.fld > i.fa-whatsapp { color: #25d366; font-size: 1.1rem; }
.c-body .fld input { width: 100%; padding: 13px 44px 13px 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--text); }
.c-body .fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.fld__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; color: #8a8d91; cursor: pointer; }
.fld__eye:hover { background: var(--hover); color: var(--text); }

/* Ventana de registro en dos columnas */
.c-dialog.rg { width: min(940px, 100% - 24px); max-height: 94vh; overflow: hidden; border-radius: 18px; }
.rg .c-dialog__close { z-index: 3; }
.rg__grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); max-height: 94vh; }
.rg__aside {
  background: radial-gradient(500px 300px at 0% 0%, rgba(34,197,94,.35), transparent 60%), linear-gradient(160deg, #0a0a0a 0%, #0f2417 100%);
  color: #fff; padding: 34px 30px; display: flex; flex-direction: column; gap: 18px;
}
.rg__logo { font-size: 1.6rem; color: #fff; }
.rg__logo span { color: #22c55e; }
.rg__aside h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.4px; }
.rg__list { list-style: none; display: grid; gap: 12px; }
.rg__list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: .95rem; }
.rg__list i { color: #22c55e; margin-top: 3px; }
.rg__safe { margin-top: auto; display: flex; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px; }
.rg__safe > i { color: #22c55e; font-size: 1.2rem; margin-top: 2px; }
.rg__safe p { color: rgba(255,255,255,.8) !important; font-size: .84rem; line-height: 1.45; }
.rg__safe b { color: #fff; }

.rg__form { padding: 28px 30px 24px; overflow-y: auto; gap: 12px; }
.rg__head h2 { font-size: 1.6rem; color: var(--ink); }
.rg__head p { color: var(--muted) !important; }
.rg__label { font-weight: 700; font-size: .92rem; margin-top: 2px; }
.rg__roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rg__role {
  position: relative; display: grid !important; gap: 4px; padding: 14px 12px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rg__role:hover { border-color: #b8c2bb; transform: translateY(-1px); }
.rg__role input { position: absolute; opacity: 0; pointer-events: none; }
.rg__role-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--text); margin-bottom: 4px; }
.rg__role b { font-size: .92rem; }
.rg__role small { color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.3; }
.rg__role-check {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .6rem; color: #fff; background: var(--accent); opacity: 0; transform: scale(.6); transition: .15s;
}
.rg__role:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.14); background: rgba(22,163,74,.04); }
.rg__role:has(input:checked) .rg__role-ic { background: var(--accent); color: #fff; }
.rg__role:has(input:checked) .rg__role-check { opacity: 1; transform: scale(1); }
.rg__role:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.pw-meter { display: grid; gap: 5px; margin-top: -4px; }
.pw-meter__bar { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.pw-meter__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: #dc2626; transition: width .25s, background .25s; }
.pw-meter small { color: var(--muted); font-size: .78rem; }
.pw-meter.is-weak .pw-meter__bar span { background: #dc2626; } .pw-meter.is-weak small { color: #dc2626; }
.pw-meter.is-ok .pw-meter__bar span { background: #f59e0b; } .pw-meter.is-ok small { color: #b45309; }
.pw-meter.is-good .pw-meter__bar span, .pw-meter.is-great .pw-meter__bar span { background: var(--accent); }
.pw-meter.is-good small, .pw-meter.is-great small { color: var(--accent-dark); }
.rg__terms small { line-height: 1.4; }
.rg__terms .link-btn { font-size: inherit; padding: 0; }
.rg__cta { display: flex !important; align-items: center; justify-content: center; gap: 10px; font-size: 1.08rem; padding: 14px !important; border-radius: 12px !important; box-shadow: 0 8px 20px rgba(22,163,74,.3); }
.rg__login { text-align: center; color: var(--muted) !important; font-size: .9rem; }

@media (max-width: 900px) {
  .fb__main { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .fb__brand { text-align: left; }
  .lx-side { position: static; }
  .lx-title { font-size: 1.9rem; }
  .rg__grid { grid-template-columns: 1fr; }
  .rg__aside { display: none; }
  .c-dialog.rg { overflow-y: auto; }
}
@media (max-width: 560px) {
  .rg__roles { grid-template-columns: 1fr; }
  .rg__role { grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; }
  .rg__role-ic { grid-row: span 2; margin: 0; }
  .rg__form { padding: 22px 18px; }
  .fb__shots { display: none; }
  .fb__shots-note { display: none; }
}

/* Celular: el inicio de sesión aparece justo después del título */
@media (max-width: 900px) {
  .fb__main { display: flex; flex-direction: column; gap: 0; }
  .fb__brand { display: contents; }
  .fb__brand > .logo { order: 1; }
  .lx-eyebrow { order: 2; align-self: flex-start; }
  .lx-title { order: 3; }
  .lx-sub { order: 4; }
  .lx-side { order: 5; margin-bottom: 32px; }
  .lx-perks { order: 6; }
  .fb__shots { order: 7; }
  .fb__shots-note { order: 8; }
}
@media (max-width: 900px) { .lx-side { width: 100%; } .lx-side .fb__login { max-width: none; } }

/* =====================================================================
   v7: Entrada compacta (título + una línea + dos imágenes)
   ===================================================================== */
.fb__main { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; padding: 48px 0; max-width: 1120px; }
.fb__brand .logo--xl { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.lx-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.8px;
  color: var(--ink); max-width: 560px; margin-top: 18px;
}
.lx-title .g { color: var(--accent-dark); }
.lx-sub { font-size: 1.08rem; color: #4b4f56; margin: 12px 0 28px; max-width: 520px; }
.lx-sub b { color: var(--ink); font-weight: 700; box-shadow: inset 0 -0.45em 0 rgba(34,197,94,.22); }
.fb__shots { max-width: 520px; grid-template-columns: 1fr 1fr; gap: 22px; }
.fb-shot:nth-child(2) { margin-top: 0; }
.lx-side { position: static; }

@media (max-width: 900px) {
  .fb__main { padding: 28px 0 36px; }
  .lx-title { font-size: 1.75rem; margin-top: 14px; }
  .lx-sub { margin-bottom: 22px; }
  .lx-side { order: 5; margin-bottom: 28px; }
  .fb__shots { order: 6; display: grid !important; max-width: 100%; gap: 12px; margin: 0 auto; }
}
@media (max-width: 900px) { .fb__main { gap: 0; align-items: stretch; } .fb__brand > .logo { align-self: flex-start; } }
