/* =====================================================================
   COLABORADORES · «Mira cómo quedaría tu marca» (simulador)
   Maquetas realistas de los cuatro escaparates (web, podcast, Twitch y
   redes). Marcado y JS en colaboradores.html (función mock()).
   ===================================================================== */
html body .sim-wrap{
  display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:26px;align-items:start;
  text-align:left;padding:28px;border-radius:26px;
  background:
    radial-gradient(520px 260px at 0% 0%,color-mix(in srgb,var(--rojo) 9%,transparent),transparent 70%),
    radial-gradient(520px 300px at 100% 100%,color-mix(in srgb,var(--celeste) 12%,transparent),transparent 70%),
    var(--fondo-alt);
  border:1px solid var(--borde);box-shadow:var(--sombra-md);
}

/* ---------- Panel de control ---------- */
html body .sim-ctl{
  position:sticky;top:calc(var(--eof-header-alto,150px) + 16px);
  display:flex;flex-direction:column;gap:10px;padding:22px;
  background:var(--tarjeta);border:1px solid var(--borde);border-radius:20px;box-shadow:var(--sombra-sm);
}
html body .sim-ctl label,html body .sim-lbl{
  font-size:.82rem;font-weight:700;color:var(--marino-texto);letter-spacing:.01em;
}
html body .sim-ctl input{margin:0 0 6px;font-size:1.02rem;font-weight:600}
html body .sim-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body .sim-pill{
  display:flex;flex-direction:column;align-items:center;gap:2px;padding:11px 6px;cursor:pointer;
  font:inherit;color:var(--texto);background:var(--fondo);
  border:1.5px solid var(--borde);border-radius:14px;
  transition:transform .18s,border-color .18s,background-color .18s,box-shadow .18s;
}
html body .sim-pill b{font-size:.92rem}
html body .sim-pill small{font-size:.72rem;color:var(--texto-suave)}
html body .sim-pill:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--rojo) 45%,var(--borde))}
html body .sim-pill.on{
  color:#fff;border-color:transparent;
  background:linear-gradient(145deg,var(--rojo),var(--rojo-oscuro));
  box-shadow:0 10px 20px -8px rgba(209,19,46,.6);
}
html body .sim-pill.on small{color:rgba(255,255,255,.82)}
html body .sim-res{margin-top:6px;padding-top:16px;border-top:1px dashed var(--borde)}
html body .sim-res-n{display:flex;align-items:baseline;gap:8px;font-size:.9rem;color:var(--texto-suave)}
html body .sim-res-n b{font:700 2rem/1 var(--font-tit);color:var(--rojo);font-variant-numeric:tabular-nums}
html body .sim-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:10px}
html body .sim-seg i{height:6px;border-radius:99px;background:var(--borde);transition:background-color .3s}
html body .sim-seg i.on{background:linear-gradient(90deg,var(--rojo),var(--celeste))}
html body .sim-nota{margin:12px 0 0;font-size:.78rem;line-height:1.5;color:var(--texto-suave)}

/* ---------- Rejilla de escaparates ---------- */
html body .sim-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html body .sim{
  position:relative;overflow:hidden;display:flex;flex-direction:column;
  background:var(--tarjeta);border:1px solid var(--borde);border-radius:20px;box-shadow:var(--sombra-sm);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s;
}
@media (hover:hover){html body .sim:not(.lock):hover{transform:translateY(-4px);box-shadow:var(--sombra-hover)}}
html body .sim-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px 0}
html body .sim-tg{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;font-weight:700;color:var(--marino-texto)}
html body .sim-tg svg{width:16px;height:16px;fill:none;stroke:var(--rojo);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body .sim-ok,html body .sim-need{
  font-size:.68rem;font-weight:700;padding:3px 9px;border-radius:99px;
}
html body .sim-ok{color:#0b7a46;background:rgba(46,224,138,.16)}
[data-theme=dark] html body .sim-ok,[data-theme=dark] body .sim-ok{color:#5ef0a8}
html body .sim-need{color:var(--texto-suave);background:var(--fondo-alt);border:1px solid var(--borde)}
html body .sim-b{padding:12px 14px 16px;flex:1;transition:filter .3s,opacity .3s}

/* Bloqueado: se ve la maqueta difuminada y un botón claro para subir de plan */
html body .sim.lock .sim-b{filter:blur(3px) grayscale(.7);opacity:.5;pointer-events:none;user-select:none}
html body .sim-up{
  position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);z-index:2;white-space:nowrap;
  display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:99px;
  font-size:.82rem;font-weight:700;color:#fff;text-decoration:none;
  background:var(--marino);box-shadow:0 10px 24px -8px rgba(12,27,46,.6);
  transition:transform .2s,background-color .2s;
}
[data-theme=dark] html body .sim-up,[data-theme=dark] body .sim-up{background:var(--rojo)}
html body .sim-up::before{
  content:"";width:12px;height:12px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html body .sim-up:hover{transform:translate(-50%,-52%)}

/* ---------- Pieza común: avatar con inicial ---------- */
html body .sim-av{
  flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  font:700 1.15rem var(--font-tit);color:#fff;text-transform:uppercase;
  background:linear-gradient(145deg,var(--rojo),var(--rojo-oscuro));
  box-shadow:0 0 0 3px rgba(255,255,255,.16);
}
html body .sim-av.sm{width:32px;height:32px;font-size:.92rem}
html body .sim-av.dark{background:linear-gradient(145deg,#152b46,#0c1b2e)}

/* ---------- Web: ventana de navegador ---------- */
html body .sim-web{border-radius:12px;overflow:hidden;background:#0c1b2e;border:1px solid rgba(255,255,255,.08)}
html body .sim-bar{display:flex;align-items:center;gap:5px;padding:8px 10px;background:#152b46}
html body .sim-bar i{width:8px;height:8px;border-radius:50%;background:#ff5f57}
html body .sim-bar i:nth-child(2){background:#febc2e}html body .sim-bar i:nth-child(3){background:#28c840}
html body .sim-bar span{margin-left:8px;flex:1;min-width:0;padding:3px 10px;border-radius:99px;background:rgba(255,255,255,.09);color:#a8c0dc;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .sim-web-in{display:flex;align-items:center;gap:12px;padding:18px 14px;color:#fff;min-width:0;
  background:linear-gradient(120deg,rgba(209,19,46,.28),transparent 60%)}
html body .sim-web-in b{display:block;font-size:1rem;overflow-wrap:anywhere}
html body .sim-web-in small{color:#a8c0dc;font-size:.74rem}

/* ---------- Podcast: reproductor ---------- */
html body .sim-pod{display:flex;gap:12px;align-items:center;padding:14px;border-radius:12px;color:#fff;
  background:linear-gradient(145deg,#152b46,#0c1b2e)}
html body .sim-play{flex:none;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;
  background:var(--rojo);box-shadow:0 8px 18px -6px rgba(209,19,46,.7);pointer-events:none}
html body .sim-play svg{width:18px;height:18px;fill:#fff;margin-left:2px}
html body .sim-pod-in{min-width:0;flex:1}
html body .sim-pod-in small{display:block;color:#7fa3c9;font-size:.68rem}
html body .sim-pod-in p{margin:3px 0 8px;font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}
html body .sim-wave{display:flex;align-items:center;gap:2px;height:24px}
html body .sim-wave i{flex:1;border-radius:2px;background:#5bb8e8;opacity:.9}
html body .sim-wave i:nth-child(n+14){background:#3b5878;opacity:1}

/* ---------- Twitch: directo con rótulo ---------- */
html body .sim-pitch{
  position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;color:#fff;
  background:
    radial-gradient(ellipse at 50% 120%,rgba(0,0,0,.45),transparent 60%),
    repeating-linear-gradient(90deg,#2d9a4b 0 12.5%,#278a43 12.5% 25%);
}
html body .sim-pitch::before{content:"";position:absolute;inset:14% 8%;border:2px solid rgba(255,255,255,.45);border-radius:4px}
html body .sim-pitch::after{content:"";position:absolute;left:50%;top:14%;bottom:14%;width:2px;background:rgba(255,255,255,.45)}
html body .sim-pitch .co-live{position:absolute;left:10px;top:10px;z-index:1;margin:0;display:inline-flex;align-items:center;gap:5px}
html body .sim-pitch .co-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:simPulso 1.4s ease-in-out infinite}
html body .sim-view{position:absolute;right:10px;top:10px;z-index:1;padding:2px 8px;border-radius:4px;font-size:.65rem;font-weight:700;background:rgba(0,0,0,.6)}
html body .sim-lower{
  position:absolute;left:8px;right:8px;bottom:8px;z-index:1;display:flex;align-items:center;gap:9px;
  padding:7px 10px;border-radius:8px;background:rgba(12,27,46,.92);border-left:4px solid var(--rojo);min-width:0;
}
html body .sim-lower small{display:block;font-size:.62rem;color:#a8c0dc}
html body .sim-lower b{font-size:.84rem;overflow-wrap:anywhere}
@keyframes simPulso{50%{opacity:.25}}

/* ---------- Redes: publicación ---------- */
html body .sim-soc{padding:14px;border-radius:12px;background:var(--fondo);border:1px solid var(--borde)}
html body .sim-soc-h{display:flex;align-items:center;gap:10px}
html body .sim-soc-h b{display:block;font-size:.88rem;color:var(--marino-texto)}
html body .sim-soc-h small{color:var(--texto-suave);font-size:.74rem}
html body .sim-soc p{margin:10px 0 12px;font-size:.88rem;line-height:1.5;color:var(--texto);overflow-wrap:anywhere}
html body .sim-soc p b{color:var(--rojo)}
html body .sim-acts{display:flex;gap:22px;color:var(--texto-suave)}
html body .sim-acts svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Adaptación ---------- */
@media (max-width:1060px){html body .sim-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:860px){
  html body .sim-wrap{grid-template-columns:minmax(0,1fr);padding:16px;border-radius:20px;gap:18px}
  html body .sim-ctl{position:static}
}
@media (max-width:420px){html body .sim-pill small{display:none}}
@media (prefers-reduced-motion:reduce){
  html body .sim,html body .sim-pill,html body .sim-up{transition:none}
  html body .sim-pitch .co-live::before{animation:none}
}
