
#sectionQuienEscribe::before { background: rgba(45,212,191,0.3); }
#sectionQuienEscribe:hover::before { background: #2dd4bf; box-shadow: 0 0 8px rgba(45,212,191,0.4); }
#sectionQuienEscribe:hover { border-color: rgba(45,212,191,0.25); }
.cz-qe {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(45,212,191,0.08), transparent 60%),
    var(--bg2);
}
.cz-qe .section-card-header { margin-bottom: 16px; }

.cz-qe .cz-ib-titulo { display: flex; flex-direction: column; line-height: 1.15; }
.cz-qe .cz-ib-titulo small { font-family: var(--ce-texto, 'DM Sans', sans-serif); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.2px; }
.cz-qe .cz-ib-estado {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.cz-qe .cz-ib-estado b { color: var(--text); font-weight: 600; }
.cz-qe .cz-ib-estado-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cz-qe .cz-ib-estado-ico svg { width: 16px; height: 16px; }

.cz-qe-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.cz-qe-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cz-qe[data-estado="cocozi"] .cz-qe-pill,
.cz-qe[data-estado="cuenta"] .cz-qe-pill { color: #22c55e; background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.35); }
.cz-qe[data-estado="nadie"] .cz-qe-pill,
.cz-qe[data-estado="rota"] .cz-qe-pill   { color: #f59e0b; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }

.cz-qe .cz-ib-estado-ico { background: rgba(45,212,191,0.14); color: #2dd4bf; }
.cz-qe[data-estado="nadie"] .cz-ib-estado,
.cz-qe[data-estado="rota"] .cz-ib-estado  { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); }
.cz-qe[data-estado="nadie"] .cz-ib-estado-ico,
.cz-qe[data-estado="rota"] .cz-ib-estado-ico { background: rgba(245,158,11,0.14); color: #f59e0b; }

.cz-qe-opciones { margin-top: 14px; }
.cz-qe-opciones .mode-option.cz-qe-no { opacity: 0.45; cursor: not-allowed; }
.cz-qe-opciones .mode-option.cz-qe-no:hover { transform: none; }

.cz-qe-paso {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: rgba(45,212,191,0.05); border: 1px solid rgba(45,212,191,0.22);
}
.cz-qe-paso[hidden] { display: none; }
.cz-qe-paso-titulo { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 13.5px; }
.cz-qe-lista { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.cz-qe-lista b { color: var(--text); font-weight: 600; }
.cz-qe-lista a, .cz-qe-nota a { color: #2dd4bf; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }    
.cz-qe-nota { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.cz-qe-botones { display: flex; gap: 8px; flex-wrap: wrap; }

#qeOpcCocozi { --qe-rgb: 167,139,250; --mode-active-color: #c4b5fd; }
#qeOpcCuenta { --qe-rgb: 96,165,250;  --mode-active-color: #93c5fd; }
#qeOpcPropio { --qe-rgb: 45,212,191;  --mode-active-color: #5eead4; }
.cz-qe .cz-qe-opciones .mode-option { --mode-active-bg: rgba(var(--qe-rgb), 0.13); --mode-active-border: rgba(var(--qe-rgb), 0.65); }
.cz-qe .cz-qe-opciones .mode-option.active { box-shadow: 0 0 0 1px rgba(var(--qe-rgb), 0.25) inset, 0 4px 18px -8px rgba(var(--qe-rgb), 0.55); }
.cz-qe .cz-qe-opciones .mode-option.cz-qe-configurando:not(.active) {
  border-style: dashed; border-color: rgba(var(--qe-rgb), 0.7); background: rgba(var(--qe-rgb), 0.06);
}
.cz-qe .cz-qe-opciones .mode-option.cz-qe-configurando:not(.active) .mode-option-label { color: rgb(var(--qe-rgb)); }
.cz-qe .cz-qe-opciones .mode-option.cz-qe-configurando:not(.active)::after {
  content: '✎'; position: absolute; top: 4px; right: 8px; font-size: 11px; font-weight: 700; line-height: 1; color: rgb(var(--qe-rgb));
}

.cz-qe-pasos { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; flex-wrap: wrap; }
.cz-qe-pasos li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 4px 10px 4px 5px; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.cz-qe-pasos .cz-qe-num {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,0.08); color: var(--muted);
}
.cz-qe-pasos li[data-estado="actual"] { color: var(--text); border-color: rgba(45,212,191,0.5); background: rgba(45,212,191,0.08); }
.cz-qe-pasos li[data-estado="actual"] .cz-qe-num { background: #2dd4bf; color: #0b1220; }
.cz-qe-pasos li[data-estado="hecho"] { color: #22c55e; border-color: rgba(34,197,94,0.3); }
.cz-qe-pasos li[data-estado="hecho"] .cz-qe-num { background: rgba(34,197,94,0.18); color: #22c55e; font-size: 0; }
.cz-qe-pasos li[data-estado="hecho"] .cz-qe-num::before { content: '✓'; font-size: 11px; }
.cz-qe-botones .btn.cz-qe-enuso[disabled] { opacity: 1; cursor: default; background: rgba(34,197,94,0.12); color: #22c55e; border-color: rgba(34,197,94,0.35); box-shadow: none; }
.cz-qe-esperando::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; margin-right: 7px;
  vertical-align: 1px; animation: czQeLatido 1.4s ease-in-out infinite;
}
@keyframes czQeLatido { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .cz-qe-esperando::before { animation: none; opacity: 0.8; } }

.cz-qe[data-estado="propio"] .cz-qe-pill { color: #22c55e; background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.35); }
.cz-qe[data-estado="propio_sin_mod"] .cz-qe-pill { color: #f59e0b; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }
.cz-qe[data-estado="propio_sin_mod"] .cz-ib-estado { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); }
.cz-qe[data-estado="propio_sin_mod"] .cz-ib-estado-ico { background: rgba(245,158,11,0.14); color: #f59e0b; }
.cz-qe-paso .cz-qe-fase { display: none; }
.cz-qe-paso[data-fase="inicio"] .cz-qe-fase[data-fase="inicio"],
.cz-qe-paso[data-fase="codigo"] .cz-qe-fase[data-fase="codigo"],
.cz-qe-paso[data-fase="conectado"] .cz-qe-fase[data-fase="conectado"] { display: block; }
.cz-qe-enlace { display: inline-block; margin: 0 0 8px 18px; color: #2dd4bf; font-weight: 700; font-size: 13.5px; word-break: break-all; }
.cz-qe-codigo { margin: 0 0 10px 18px; font-size: 12.5px; color: var(--muted); }
.cz-qe-codigo b { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: 2px; color: var(--text); }
.cz-qe-bot { font-size: 13.5px; margin-bottom: 8px; color: var(--muted); }
.cz-qe-bot b { color: var(--text); }
.cz-qe-mod { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.cz-qe-mod[data-mod="si"] { color: #22c55e; background: rgba(34,197,94,0.1); }
.cz-qe-mod[data-mod="no"] { color: #f59e0b; background: rgba(245,158,11,0.1); }
.cz-qe-mod[data-mod="?"] { color: var(--muted); background: rgba(255,255,255,0.05); }
.cz-qe-paso code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: var(--text); }
.cz-qe-botones .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.toggle-item.cz-qe-bloqueado .toggle-switch { opacity: 0.45; cursor: not-allowed; }
.toggle-item.cz-qe-bloqueado .toggle-desc { color: #f59e0b; }

.cz-se-bloqueada [data-cz-se-inerte],
.cz-se-bloque[data-cz-se-inerte] { opacity: 0.4; filter: saturate(0.5); pointer-events: none; user-select: none; transition: opacity 0.2s ease; }
.cz-se-pill { display: none; }
.cz-estudio .cz-tiles > .section-card.collapsed.cz-se-bloqueada .cz-se-pill {
  display: inline-flex; align-items: center; gap: 7px; grid-column: 1; grid-row: 4; justify-self: start; margin-top: 14px;
  font-family: var(--ce-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  padding: 4px 10px 4px 9px; border-radius: 999px; color: #f59e0b; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3);
}
.cz-estudio .cz-tiles > .section-card.collapsed.cz-se-bloqueada .cz-se-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cz-estudio .cz-tiles > .section-card.collapsed.cz-se-bloqueada .section-status { display: none !important; }
.cz-qe[data-estado="pausado"] .cz-qe-pill { color: #f59e0b; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }
.cz-qe[data-estado="pausado"] .cz-ib-estado { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); }
.cz-qe[data-estado="pausado"] .cz-ib-estado-ico { background: rgba(245,158,11,0.14); color: #f59e0b; }
.cz-estudio .cz-tiles > .section-card.collapsed.cz-se-bloqueada:has(.cz-se-pill):not(.cz-se-x) { border-color: rgba(245,158,11,0.22); }
.cz-se-aviso {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.3); background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.cz-se-aviso b { color: var(--text); font-weight: 600; }
.cz-se-aviso-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(245,158,11,0.14); color: #f59e0b; }
.cz-se-aviso-ico svg { width: 17px; height: 17px; }
.cz-se-aviso-txt { flex: 1 1 220px; min-width: 0; }
.cz-se-aviso-btn {
  flex-shrink: 0; font-family: var(--ce-texto, 'DM Sans', sans-serif); font-size: 12.5px; font-weight: 700; color: #0b1220; background: #2dd4bf;
  border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease;
}
.cz-se-aviso-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cz-se-nota {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(245,158,11,0.38);
  background: rgba(245,158,11,0.05); font-size: 12px; line-height: 1.6; color: var(--muted);
}
.cz-se-nota b { color: #f59e0b; font-weight: 700; }
.cz-se-enlace {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #2dd4bf; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
.cz-se-aviso-btn:focus-visible, .cz-se-enlace:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }
.cz-se-mini { display: block; margin-top: 3px; font-size: 11.5px; color: #f59e0b; }
@media (max-width: 600px) { .cz-se-aviso-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cz-se-aviso-btn, .cz-se-bloqueada > [data-cz-se-inerte], .cz-se-bloque[data-cz-se-inerte] { transition: none; } .cz-se-aviso-btn:hover { transform: none; } }

.cz-grupo-chat { --cz-grupo-linea: rgba(45,212,191,0.4); }
.cz-grupo-chat.cz-grupo-off { --cz-grupo-linea: rgba(245,158,11,0.45); }
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos { margin-left: 22px; padding-left: 18px; }
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item { position: relative; }
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::before,
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::after {
  content: ""; position: absolute; left: -18px; background: var(--cz-grupo-linea); border-radius: 2px; pointer-events: none; transition: background 0.2s ease;
}
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::before { top: 50%; width: 16px; height: 2px; margin-top: -1px; }
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::after { top: -11px; bottom: -1px; width: 2px; }
.cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item:last-of-type::after { bottom: auto; height: calc(50% + 11px); }
.cz-qe-quien {
  --qe-rgb: 45,212,191;
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; vertical-align: 1px; max-width: 100%;
  font-family: var(--ce-texto, 'DM Sans', sans-serif); font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 1px 9px; border-radius: 999px; cursor: pointer;
  color: rgb(var(--qe-rgb)); background: rgba(var(--qe-rgb), 0.1); border: 1px solid rgba(var(--qe-rgb), 0.35);
}
.cz-qe-quien::before { content: "✍"; font-size: 10px; }
.cz-qe-quien:hover { background: rgba(var(--qe-rgb), 0.18); }
.cz-qe-quien:focus-visible { outline: 2px solid rgb(var(--qe-rgb)); outline-offset: 2px; }
.cz-qe-quien[hidden] { display: none; }
.cz-qe-quien[data-quien="cocozi"] { --qe-rgb: 167,139,250; }
.cz-qe-quien[data-quien="cuenta"] { --qe-rgb: 96,165,250; }
.cz-qe-quien[data-quien="propio"] { --qe-rgb: 45,212,191; }
.cz-qe-quien[data-quien="nadie"], .cz-qe-quien[data-quien="rota"] { --qe-rgb: 245,158,11; }
.toggle-item.cz-qe-bloqueado .cz-qe-quien { opacity: 1; cursor: pointer; }
.toggle-item.cz-qe-cargando .toggle-switch { pointer-events: none; }
.cz-qe-quien.cz-qe-reserva { visibility: hidden; }
@media (max-width: 600px) {
  .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos { margin-left: 8px; padding-left: 16px; }
  .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::before, .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::after { left: -16px; }
  .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::before { width: 14px; }
  .cz-qe-quien { margin-left: 0; margin-top: 3px; display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::before, .cz-grupo-chat.cz-grupo-on > .cz-grupo-hijos > .toggle-item::after { transition: none; } }

@media (min-width: 601px) {
  .cz-qe-opciones .mode-option { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
  .cz-qe-opciones .mode-option-desc { flex-basis: auto; }
}
@media (max-width: 600px) {
  .cz-qe .section-card-header { flex-wrap: wrap; gap: 8px; }
}
