/* Comentarios (comentarios-seccion.js). Usa los colores de estilos.css; aquí solo lo propio de esta sección (prefijo com-). */
.com { display: flex; flex-direction: column; gap: 16px; }
.com-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.com-cabeza .boton { margin-left: auto; }
.com-modo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: rgba(48, 209, 88, 0.16); color: var(--verde); }
.com-modo.aprueba { background: rgba(255, 214, 10, 0.16); color: #FFD60A; }
.com-punto-modo { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.com-pestanas { align-self: flex-start; width: 100%; }
.aviso.com-ok { background: rgba(48, 209, 88, 0.16); color: #B8F5C7; }
.chip.com-amarillo { background: rgba(255, 214, 10, 0.16); color: #FFD60A; }

/* Bandeja: lista a la izquierda, el comentario a la derecha */
.com-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.com-filtro { min-height: 44px; padding: 0 16px; border: none; border-radius: 22px; background: var(--tarjeta); color: var(--texto);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.com-filtro[aria-pressed="true"] { background: var(--texto); color: var(--tarjeta); }
.com-cuenta-filtro { opacity: 0.7; }
.com-red { margin-left: auto; min-width: 220px; padding: 4px 14px; }
.com-partes { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.com-lista { background: var(--tarjeta); border-radius: 18px; padding: 8px; max-height: calc(100vh - 260px); overflow-y: auto; }
.com-lista ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.com-fila { width: 100%; min-height: 44px; display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: none; border-radius: 14px;
  background: transparent; color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.com-fila:hover { background: rgba(255, 255, 255, 0.04); }
.com-fila[aria-current="true"] { background: var(--tarjeta-2); }
.com-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #3A3A3C; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; }
.com-avatar.grande { flex-basis: 44px; height: 44px; width: 44px; }
.com-fila-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.com-fila-cabeza { display: flex; align-items: center; gap: 6px; font-size: 15px; min-width: 0; }
.com-fila-cabeza strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-hace { margin-left: auto; color: var(--secundario); font-size: 13px; white-space: nowrap; }
.com-fila-comentario { color: #C7C7CC; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-chip { align-self: flex-start; }
.com-red-punto { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #2997FF; }
.com-red-punto.instagram { background: #FF6482; }
.com-red-punto.grande { flex-basis: 10px; width: 10px; height: 10px; }
.com-vacio { padding: 20px; text-align: center; }

.com-detalle-caja { display: flex; flex-direction: column; gap: 16px; }
.com-volver { display: none; align-self: flex-start; }
.com-post p { font-size: 17px; }
.com-autor { display: flex; gap: 12px; align-items: center; }
.com-bloque { display: block; }
.com-burbuja { font-size: 20px; line-height: 1.4; background: var(--tarjeta-2); border-radius: 16px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.com-ia-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.com-ia-cabeza h2 { margin-right: 4px; }
.com-respuesta { background: #0B3D2E; color: #E8F7EC; border-radius: 16px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.com-respuesta.borrador { background: var(--tarjeta-2); color: var(--texto); border: 1px dashed #5A5A5E; }
.com-escribe { display: flex; flex-direction: column; gap: 8px; }
.com-caja, .com-instrucciones { width: 100%; box-sizing: border-box; background: var(--tarjeta-2); color: var(--texto); border: none; border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 17px; line-height: 1.45; resize: vertical; }
.com-instrucciones { font-size: 15px; min-height: 260px; }

/* Cuentas, Instrucciones y Candados */
.com-ajustes { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.com-ajustes h3 { margin: 8px 0 0; font-size: 17px; }
.com-titulo-fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.com-titulo-fila > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.com-cuenta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.com-cuenta-texto { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.com-sede { min-width: 200px; }
.com-interruptor { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; }
.com-interruptor input, .com-check input { width: 22px; height: 22px; accent-color: var(--verde); flex-shrink: 0; }
.casilla.com-check { flex-direction: row; align-items: center; gap: 10px; }
.casilla.com-check span { font-size: 15px; color: var(--texto); }
.casilla input[type="range"] { accent-color: var(--azul); }
.com-modo-elegir { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.com-etiqueta { display: flex; flex-direction: column; gap: 6px; }
.com-revision { background: var(--tarjeta-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.com-datos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; overflow-wrap: anywhere; }
.com-datos li { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 12px; }
.com-ajustes .com-datos li:only-child, .com-datos li:not(:has(span)) { display: block; }
.com-datos span:first-child { color: var(--secundario); }
.com-datos li.falta span:last-child { color: #FF6961; }
.com-probar { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 10px; align-items: end; }
.com-prueba { display: flex; flex-direction: column; gap: 8px; }
.com-tecnico summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--enlace); font-weight: 600; }
.com-tecnico dl { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.com-tecnico dt { color: var(--secundario); margin-top: 8px; }
.com-tecnico dd { margin: 0; font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }

/* iPad vertical y celular: la lista o el comentario */
@media (max-width: 900px) {
  .com-partes { grid-template-columns: minmax(0, 1fr); }
  .com-lista { max-height: none; }
  .com-bandeja.con-detalle .com-lista, .com-bandeja.con-detalle .com-filtros { display: none; }
  .com-bandeja:not(.con-detalle) .com-detalle { display: none; }
  .com-volver { display: inline-flex; }
  .com-probar { grid-template-columns: minmax(0, 1fr); }
  .com-red { margin-left: 0; }
}
@media (max-width: 480px) {
  .com-pestanas .pestana { font-size: 13px; padding: 0 2px; min-width: 0; }
}
